mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
12b2cce914
* coff-rs6000.c (xcoff_reloc_type_br): Make the branch absolute if the target is absolute. Fix comment typo. (xcoff_ppc_relocate_section): Remove FIXME. * coff64-rs6000.c (xcoff64_reloc_type_br): Make the branch absolute if the target is absolute. ld/testsuite/ * ld-powerpc/aix-abs-branch-1.im, ld-powerpc/aix-abs-branch-1.ex, ld-powerpc/aix-abs-branch-1.s, ld-powerpc/aix-abs-branch-1.dd: New test. * ld-powerpc/aix52.exp: Run it.
15 lines
167 B
ArmAsm
15 lines
167 B
ArmAsm
.globl foo
|
|
.csect foo[PR]
|
|
foo:
|
|
bl bar - 0x3000
|
|
lwz 1,80(1)
|
|
bl bar + 0x1000
|
|
.ifeq size - 32
|
|
lwz 2,20(1)
|
|
.else
|
|
ld 2,40(1)
|
|
.endif
|
|
bl bar + 0x2800
|
|
nop
|
|
bl bar
|