forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294236 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
test/tools/llvm-objdump/X86/macho-info-plist-nofollow.test
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 |
---|---|---|
@@ -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 |
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