projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[RuntimeDyld] Fix MachO i386 SECTDIFF relocation to support non-zero addends.
[oota-llvm.git]
/
test
/
ExecutionEngine
/
RuntimeDyld
/
X86
/
MachO_i386_DynNoPIC_relocations.s
diff --git
a/test/ExecutionEngine/RuntimeDyld/X86/MachO_i386_DynNoPIC_relocations.s
b/test/ExecutionEngine/RuntimeDyld/X86/MachO_i386_DynNoPIC_relocations.s
index 48b470d9a30dd120f8a1dfee2a42e37602f8c336..6b2fe9532c2f350816f4fa4d13d80cb693852a7c 100644
(file)
--- a/
test/ExecutionEngine/RuntimeDyld/X86/MachO_i386_DynNoPIC_relocations.s
+++ b/
test/ExecutionEngine/RuntimeDyld/X86/MachO_i386_DynNoPIC_relocations.s
@@
-6,19
+6,16
@@
.align 4, 0x90
bar:
calll tmp0$pb
.align 4, 0x90
bar:
calll tmp0$pb
- .globl tmp0$pb
tmp0$pb:
popl %eax
# Test section difference relocation to non-lazy ptr section.
tmp0$pb:
popl %eax
# Test section difference relocation to non-lazy ptr section.
-# rtdyld-check: decode_operand(inst1, 4) = x$non_lazy_ptr - tmp0$pb
- .globl inst1
+# rtdyld-check: decode_operand(inst1, 4) = x$non_lazy_ptr - tmp0$pb + 8
inst1:
inst1:
- movl
x$non_lazy_ptr-tmp0$pb
(%eax), %eax
+ movl
(x$non_lazy_ptr-tmp0$pb)+8
(%eax), %eax
movl (%eax), %ebx
# Test VANILLA relocation to jump table.
# rtdyld-check: decode_operand(inst2, 0) = bling$stub - next_pc(inst2)
movl (%eax), %ebx
# Test VANILLA relocation to jump table.
# rtdyld-check: decode_operand(inst2, 0) = bling$stub - next_pc(inst2)
- .globl inst2
inst2:
calll bling$stub
addl %ebx, %eax
inst2:
calll bling$stub
addl %ebx, %eax
@@
-30,13
+27,11
@@
inst3:
retl
.section __IMPORT,__jump_table,symbol_stubs,pure_instructions+self_modifying_code,5
retl
.section __IMPORT,__jump_table,symbol_stubs,pure_instructions+self_modifying_code,5
- .globl bling$stub
bling$stub:
.indirect_symbol bling
.ascii "\364\364\364\364\364"
.section __IMPORT,__pointers,non_lazy_symbol_pointers
bling$stub:
.indirect_symbol bling
.ascii "\364\364\364\364\364"
.section __IMPORT,__pointers,non_lazy_symbol_pointers
- .globl x$non_lazy_ptr
x$non_lazy_ptr:
.indirect_symbol x
.long 0
x$non_lazy_ptr:
.indirect_symbol x
.long 0