binutils-gdb/ld/testsuite/ld-undefined/weak-fundef.s
Alan Modra bf174910c8 Add undefined weak function tests
* testsuite/ld-undefined/weak-fundef.s: New.
	* testsuite/ld-undefined/weak-undef.t: Don't specify filename.
	* testsuite/ld-undefined/weak-undef.exp: Run new tests.  Rearrange
	much of old code.  Use is_elf_format to select targets.
2016-08-12 14:34:49 +09:30

15 lines
202 B
ArmAsm

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