diff options
| author | Kevin Enderby <enderby@apple.com> | 2018-03-29 20:04:29 +0000 |
|---|---|---|
| committer | Kevin Enderby <enderby@apple.com> | 2018-03-29 20:04:29 +0000 |
| commit | d9911f6f7baca75a9d51352bf9ef3718ee05cd82 (patch) | |
| tree | c47555f3648246d792375778d0d18efb22d70236 /llvm/test | |
| parent | 943e12e1c54c06458a31ae88974ed7b0d0babb14 (diff) | |
| download | bcm5719-llvm-d9911f6f7baca75a9d51352bf9ef3718ee05cd82.tar.gz bcm5719-llvm-d9911f6f7baca75a9d51352bf9ef3718ee05cd82.zip | |
For llvm-nm and Mach-O files that are fully stripped, special case a redacted LC_MAIN
As a further refinement on:
r328274 - For llvm-nm and Mach-O files also use function starts info in some cases when printing symbols
we want to special case a redacted LC_MAIN so it is easier to find.
rdar://38978929
llvm-svn: 328820
Diffstat (limited to 'llvm/test')
| -rwxr-xr-x | llvm/test/tools/llvm-nm/X86/Inputs/Strip-N.LC_MAIN.exe.macho-x86_64 | bin | 0 -> 8304 bytes | |||
| -rw-r--r-- | llvm/test/tools/llvm-nm/X86/dyldinfo.test | 6 |
2 files changed, 6 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-nm/X86/Inputs/Strip-N.LC_MAIN.exe.macho-x86_64 b/llvm/test/tools/llvm-nm/X86/Inputs/Strip-N.LC_MAIN.exe.macho-x86_64 Binary files differnew file mode 100755 index 00000000000..eaacd44ef06 --- /dev/null +++ b/llvm/test/tools/llvm-nm/X86/Inputs/Strip-N.LC_MAIN.exe.macho-x86_64 diff --git a/llvm/test/tools/llvm-nm/X86/dyldinfo.test b/llvm/test/tools/llvm-nm/X86/dyldinfo.test index 483dd2104aa..90e652f5831 100644 --- a/llvm/test/tools/llvm-nm/X86/dyldinfo.test +++ b/llvm/test/tools/llvm-nm/X86/dyldinfo.test @@ -2,6 +2,7 @@ # RUN: llvm-nm -no-dyldinfo %p/Inputs/Strip-ST.dylib.macho-x86_64 | FileCheck --check-prefix=NO-DYLDINFO %s # RUN: llvm-nm -dyldinfo-only %p/Inputs/Strip-ST.dylib.macho-x86_64 | FileCheck --check-prefix=DYLDINFO-ONLY %s # RUN: llvm-nm %p/Inputs/Strip-N.hello.exe.macho-x86_64 | FileCheck --check-prefix=FUNC-STARTS %s +# RUN: llvm-nm %p/Inputs/Strip-N.LC_MAIN.exe.macho-x86_64 | FileCheck --check-prefix=LC-MAIN %s # DEFAULT: 0000000000000f90 T __Bob_is_slow # DEFAULT: 0000000000001008 D __T0ims_data @@ -24,3 +25,8 @@ # FUNC-STARTS: 0000000100000f30 T _main # FUNC-STARTS: U _printf # FUNC-STARTS: U dyld_stub_binder + +# LC-MAIN: 0000000100000f50 t <redacted LC_MAIN> +# LC-MAIN: 0000000100000000 T __mh_execute_header +# LC-MAIN: U _printf +# LC-MAIN: U dyld_stub_binder |

