binutils-gdb/ld/testsuite/ld-undefined/weak-fundef.s
Alan Modra 7cc340055d PR26882, --enable-textrel-check=warning test failures on powerpc
PR 26882
	* testsuite/ld-powerpc/dotsym3.d: Add "-z notext" to ld options.
	* testsuite/ld-powerpc/dotsym4.d: Likewise.
	* testsuite/ld-powerpc/ppc476-shared.d: Likewise.
	* testsuite/ld-powerpc/ppc476-shared2.d: Likewise.
	* testsuite/ld-powerpc/powerpc.exp: Likewise for various tests.
	* testsuite/ld-undefined/weak-fundef.s: Add BLPLT variant.
	* testsuite/ld-undefined/weak-undef.exp: Define BLPLT for ppc32.
2020-11-17 20:59:53 +10:30

18 lines
247 B
ArmAsm

.text
.weak undef_weak_fun
.type undef_weak_fun %function
.ifdef BL
bl undef_weak_fun
nop
.endif
.ifdef BLPLT
bl undef_weak_fun@plt
.endif
.ifdef CALLPLT
call undef_weak_fun@plt
.endif
.ifdef HPPA
bl undef_weak_fun,%r2
nop
.endif