Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[llvm-objdump][MachO] Print a newline before lazy bind/bind/weak/expo…
…rts trie This adds a separator between two pieces of information. Reviewed By: #lld-macho, alexshap Differential Revision: https://reviews.llvm.org/D102114
- Loading branch information
Showing
8 changed files
with
52 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
# RUN: llvm-objdump --macho --bind %p/Inputs/bind.macho-x86_64 \ | ||
# RUN: | FileCheck %s | ||
# RUN: | FileCheck %s --match-full-lines --strict-whitespace | ||
|
||
|
||
# CHECK:__DATA __data 0x00001028 pointer 0 flat-namespace _any | ||
# CHECK:__DATA __data 0x00001020 pointer 0 main-executable _fromApp | ||
# CHECK:__DATA __data 0x00001018 pointer 0 this-image _myfunc | ||
# CHECK:__DATA __data 0x00001000 pointer 0 libfoo _foo | ||
# CHECK:__DATA __data 0x00001008 pointer 0 libbar _bar | ||
# CHECK:__DATA __data 0x00001010 pointer 0 libSystem _malloc | ||
# CHECK:{{.*}}bind.macho-x86_64: | ||
#CHECK-EMPTY: | ||
# CHECK-NEXT:Bind table: | ||
# CHECK-NEXT:segment section address type addend dylib symbol | ||
# CHECK-NEXT:__DATA __data 0x00001028 pointer 0 flat-namespace _any | ||
# CHECK-NEXT:__DATA __data 0x00001020 pointer 0 main-executable _fromApp | ||
# CHECK-NEXT:__DATA __data 0x00001018 pointer 0 this-image _myfunc | ||
# CHECK-NEXT:__DATA __data 0x00001000 pointer 0 libfoo _foo | ||
# CHECK-NEXT:__DATA __data 0x00001008 pointer 0 libbar _bar | ||
# CHECK-NEXT:__DATA __data 0x00001010 pointer 0 libSystem _malloc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
# RUN: llvm-objdump --macho --lazy-bind %p/Inputs/lazy-bind.macho-x86_64 \ | ||
# RUN: | FileCheck %s | ||
# RUN: | FileCheck %s --match-full-lines --strict-whitespace | ||
|
||
|
||
# CHECK: __DATA __la_symbol_ptr 0x100001010 libfoo _foo | ||
# CHECK: __DATA __la_symbol_ptr 0x100001018 libbar _bar | ||
# CHECK: __DATA __la_symbol_ptr 0x100001020 libSystem _malloc | ||
# CHECK:{{.*}}lazy-bind.macho-x86_64: | ||
#CHECK-EMPTY: | ||
# CHECK-NEXT:Lazy bind table: | ||
# CHECK-NEXT:segment section address dylib symbol | ||
# CHECK-NEXT:__DATA __la_symbol_ptr 0x100001010 libfoo _foo | ||
# CHECK-NEXT:__DATA __la_symbol_ptr 0x100001018 libbar _bar | ||
# CHECK-NEXT:__DATA __la_symbol_ptr 0x100001020 libSystem _malloc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
# RUN: llvm-objdump --macho --rebase --arch x86_64 \ | ||
# RUN: %p/Inputs/rebase.macho-x86_64 | FileCheck %s | ||
# RUN: %p/Inputs/rebase.macho-x86_64 | FileCheck %s --match-full-lines --strict-whitespace | ||
|
||
|
||
# CHECK: segment section address type | ||
# CHECK: __DATA __data 0x00001010 pointer | ||
# CHECK: __DATA __data 0x00001028 pointer | ||
# CHECK: __DATA __data 0x00001030 pointer | ||
# CHECK: __DATA __data 0x00001038 pointer | ||
# CHECK: __DATA __data 0x00001040 pointer | ||
# CHECK: __DATA __data 0x00001258 pointer | ||
# CHECK: __DATA __mystuff 0x00001278 pointer | ||
# CHECK: __DATA __mystuff 0x00001288 pointer | ||
# CHECK: __DATA __mystuff 0x00001298 pointer | ||
# CHECK: __DATA __mystuff 0x000012A8 pointer | ||
# CHECK:{{.*}}rebase.macho-x86_64: | ||
#CHECK-EMPTY: | ||
# CHECK-NEXT:Rebase table: | ||
# CHECK-NEXT:segment section address type | ||
# CHECK-NEXT:__DATA __data 0x00001010 pointer | ||
# CHECK-NEXT:__DATA __data 0x00001028 pointer | ||
# CHECK-NEXT:__DATA __data 0x00001030 pointer | ||
# CHECK-NEXT:__DATA __data 0x00001038 pointer | ||
# CHECK-NEXT:__DATA __data 0x00001040 pointer | ||
# CHECK-NEXT:__DATA __data 0x00001258 pointer | ||
# CHECK-NEXT:__DATA __mystuff 0x00001278 pointer | ||
# CHECK-NEXT:__DATA __mystuff 0x00001288 pointer | ||
# CHECK-NEXT:__DATA __mystuff 0x00001298 pointer | ||
# CHECK-NEXT:__DATA __mystuff 0x000012A8 pointer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters