diff options
| author | Kevin Enderby <enderby@apple.com> | 2017-02-06 21:01:08 +0000 |
|---|---|---|
| committer | Kevin Enderby <enderby@apple.com> | 2017-02-06 21:01:08 +0000 |
| commit | 418659fe99470fcc724e5cbe25de2aed6b3569bd (patch) | |
| tree | 0e3d869f5371ac1c2bb98aee936cbcd1f687c922 /llvm/test | |
| parent | a80cfb3063b7e4f01533748e90e97e73bbbb2e2b (diff) | |
| download | bcm5719-llvm-418659fe99470fcc724e5cbe25de2aed6b3569bd.tar.gz bcm5719-llvm-418659fe99470fcc724e5cbe25de2aed6b3569bd.zip | |
Fix a bug in llvm-obdump(1) with the -macho and -info-plist options
which caused it to print more than the (__TEXT,__info_plist) if that
section did not end with a null.
rdar://27378808
llvm-svn: 294236
Diffstat (limited to 'llvm/test')
| -rw-r--r-- | llvm/test/tools/llvm-objdump/X86/macho-info-plist-nofollow.test | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/test/tools/llvm-objdump/X86/macho-info-plist-nofollow.test b/llvm/test/tools/llvm-objdump/X86/macho-info-plist-nofollow.test new file mode 100644 index 00000000000..12ad166c5a2 --- /dev/null +++ b/llvm/test/tools/llvm-objdump/X86/macho-info-plist-nofollow.test @@ -0,0 +1,10 @@ +# RUN: llvm-mc < %s -triple x86_64-apple-darwin -filetype=obj | llvm-objdump -m -info-plist - | FileCheck %s + +.section __TEXT, __info_plist +.ascii "This is the (__TEXT,__info_plist) section\n" +.section __TEXT, __follow +.asciz "This is the (__TEXT,__follow) section\n" + +# CHECK: Contents of (__TEXT,__info_plist) section +# CHECK: This is the (__TEXT,__info_plist) section +# CHECK-NOT: This is the (__TEXT,__follow) section |

