old-cross-binutils/binutils/testsuite/binutils-all/symbols-4.d
Alan Modra c8373ebb4e Tweak binutils testsuite
Some targets provide aligned .bss sections, so explicitly align.
msp430 and rl78 emit "magic" symbols when assembling symbol.s, and
mips targets emit STT_OBJECT rather than STT_NOTYPE syms.

	* binutils-all/strip-12.s: Align .bss section.
	* binutils-all/strip-12.d: Adjust.
	* binutils-all/symbols-1.d: Allow extraneous symbols.
	* binutils-all/symbols-2.d: Likewise, and V for weakened syms.
	* binutils-all/symbols-3.d: Likewise.
	* binutils-all/symbols-4.d: Likewise.
2015-08-11 23:29:36 +09:30

15 lines
206 B
D

#name: weaken '*' but not 'foo' or 'bar'
#PROG: objcopy
#objcopy: -w -W !foo -W !bar -W *
#source: symbols.s
#DUMPPROG: nm
#nm: -n
#...
0+ D bar
0+ [VW] foa
0+ [VW] fob
0+ D foo
0+ [VW] foo1
0+ [VW] foo2