old-cross-binutils/binutils/testsuite/binutils-all/symbols-3.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
215 B
D

#name: weaken 'fo*' but not 'foo', localize foo.
#PROG: objcopy
#objcopy: -w -W !foo -W fo* -L foo
#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