old-cross-binutils/ld/testsuite/ld-powerpc/aix-abs-branch-1.s
Richard Sandiford 12b2cce914 bfd/
* 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.
2009-03-14 09:16:01 +00:00

14 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