diff options
author | Jim Grosbach <grosbach@apple.com> | 2011-12-07 19:46:59 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2011-12-07 19:46:59 +0000 |
commit | 577b09155f9a6fa38e5a7918da9701e120b3642f (patch) | |
tree | a2eefae85f5ef3c67c6ba1bf2218a61d3aea1ccc /test/MC/MachO | |
parent | feb468ab24a9e85b4d27faa6badfb57a2414610c (diff) | |
download | external_llvm-577b09155f9a6fa38e5a7918da9701e120b3642f.zip external_llvm-577b09155f9a6fa38e5a7918da9701e120b3642f.tar.gz external_llvm-577b09155f9a6fa38e5a7918da9701e120b3642f.tar.bz2 |
Darwin assembler improved relocs when w/o subsections_via_symbols.
When the file isn't being built with subsections-via-symbols, symbol
differences involving non-local symbols can be resolved more aggressively.
Needed for gas compatibility.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@146054 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/MC/MachO')
-rw-r--r-- | test/MC/MachO/ARM/darwin-ARM-reloc.s | 4 | ||||
-rw-r--r-- | test/MC/MachO/reloc-pcrel-offset.s | 2 | ||||
-rw-r--r-- | test/MC/MachO/reloc-pcrel.s | 2 |
3 files changed, 7 insertions, 1 deletions
diff --git a/test/MC/MachO/ARM/darwin-ARM-reloc.s b/test/MC/MachO/ARM/darwin-ARM-reloc.s index 86b45e0..fe69a94 100644 --- a/test/MC/MachO/ARM/darwin-ARM-reloc.s +++ b/test/MC/MachO/ARM/darwin-ARM-reloc.s @@ -19,12 +19,14 @@ Ld0_0: Lsc0_0: .long 0 + .subsections_via_symbols + @ CHECK: ('cputype', 12) @ CHECK: ('cpusubtype', 9) @ CHECK: ('filetype', 1) @ CHECK: ('num_load_commands', 3) @ CHECK: ('load_commands_size', 364) -@ CHECK: ('flag', 0) +@ CHECK: ('flag', 8192) @ CHECK: ('load_commands', [ @ CHECK: # Load Command 0 @ CHECK: (('command', 1) diff --git a/test/MC/MachO/reloc-pcrel-offset.s b/test/MC/MachO/reloc-pcrel-offset.s index e0f12bf..bc611d7 100644 --- a/test/MC/MachO/reloc-pcrel-offset.s +++ b/test/MC/MachO/reloc-pcrel-offset.s @@ -12,3 +12,5 @@ .text _a: call _a + + .subsections_via_symbols diff --git a/test/MC/MachO/reloc-pcrel.s b/test/MC/MachO/reloc-pcrel.s index fff7cc0..2684408 100644 --- a/test/MC/MachO/reloc-pcrel.s +++ b/test/MC/MachO/reloc-pcrel.s @@ -60,3 +60,5 @@ L1: call _c + 1 // call _a - L0 call _b - L0 + + .subsections_via_symbols |