old-cross-binutils/ld/testsuite/ld-mmix
Jan Beulich 34a79995c4 ld/ELF: refine fake STT_FILE symbol emission
There's no real need to emit these always: They're needed only if we
indeed want to emit a localized symbol. Hence defer emission until we
at least did the basic early checks that would lead to no such symbol
getting emitted. This in particular avoids emitting such a symbol in
the majority of (if not all) "ld -r" cases.

I hope my set of cross build tests caught all the test cases needing
adjustment - please forgive if I missed a few.

bfd/
2013-10-29  Jan Beulich <jbeulich@suse.com>

	* elflink.c (struct elf_outext_info): Add field file_sym_done.
	(bfd_elf_final_link): Initialize new field. Move fake STT_FILE
	symbol emission from here ...
	(elf_link_output_extsym): ... to here.

gas/testsuite/
2013-10-29  Jan Beulich <jbeulich@suse.com>

	* gas/microblaze/relax_size.elf: Drop expectation of no longer
	present STT_FILE symbol.
	* gas/microblaze/relax_size2.elf: Likewise.

ld/testsuite/
2013-10-29  Jan Beulich <jbeulich@suse.com>

	* ld-cris/tls-e-tpoffcomm1.d: Drop expectation of no longer
	present STT_FILE symbol.
	* ld-mmix/bpo-18.d: Likewise.
	* ld-mmix/bpo-22.d: Likewise.
	* ld-mmix/greg-6.d: Likewise.
	* ld-mmix/greg-7.d: Likewise.
	* ld-mmix/loc4.d: Likewise.
	* ld-mmix/local1.d: Likewise.
	* ld-mmix/local3.d: Likewise.
	* ld-mmix/local5.d: Likewise.
	* ld-mmix/local7.d: Likewise.
	* ld-mmix/loct-1.d: Likewise.
	* ld-sh/sh64/abi32.xd: Likewise.
	* ld-sh/sh64/abi64.xd: Likewise.
	* ld-sh/sh64/cmpct1.xd: Likewise.
	* ld-sh/sh64/crange1.rd: Likewise.
	* ld-sh/sh64/crange2.rd: Likewise.
	* ld-sh/sh64/crange3-cmpct.rd: Likewise.
	* ld-sh/sh64/crange3-media.rd: Likewise.
	* ld-sh/sh64/crange3.rd: Likewise.
	* ld-sh/sh64/crangerel1.rd: Likewise.
	* ld-sh/sh64/crangerel2.rd: Likewise.
	* ld-sh/sh64/mix1.xd: Likewise.
	* ld-sh/sh64/mix2.xd: Likewise.
	* ld-sh/sh64/shdl32.xd: Likewise.
	* ld-sh/sh64/shdl64.xd: Likewise.
2013-10-29 17:52:24 +01:00
..
a.s
areg-256.s
areg-t.s
aregm.s
b-badfil1.d
b-badfil1.s
b-badfil2.d
b-badfil2.s
b-badfixo.d
b-badfixo.s
b-badloc.d
b-badloc.s
b-badlop.d
b-badlop.s
b-badm.d
b-badm2.s
b-badmain.s
b-badquot.d
b-badquot.s
b-badrx1.d
b-badrx1.s
b-badrx2.d
b-badrx2.s
b-badrx3.d
b-badrx3.s
b-bend.s
b-bend1.d
b-bend2.d
b-bend3.d
b-bstab1.d
b-bstab1.s
b-fixo2.d
b-fixo2.s
b-goodmain.s
b-loc64k.d
b-loc64k.s
b-nosym.d
b-nosym.s
b-offloc.s
b-post1.s
b-twoinsn.s
b-widec.s
b-widec1.d
b-widec2.d
b-widec2.s
b-widec3.d
b-widec3.s
bpo-1.d bfd/ 2012-06-06 10:50:18 +00:00
bpo-1.s
bpo-1m.d
bpo-2.d bfd/ 2012-06-06 10:50:18 +00:00
bpo-2.s
bpo-2m.d
bpo-3.d bfd/ 2012-06-06 10:50:18 +00:00
bpo-3.s
bpo-3m.d
bpo-4.d bfd/ 2012-06-06 10:50:18 +00:00
bpo-4.s
bpo-4m.d
bpo-5.d bfd/ 2012-06-06 10:50:18 +00:00
bpo-5.s
bpo-5m.d
bpo-6.d bfd/ 2006-06-02 00:32:00 +00:00
bpo-6.s
bpo-6m.d
bpo-7.d
bpo-7.s
bpo-7m.d
bpo-8.d
bpo-8.s
bpo-8m.d
bpo-9.d bfd/ 2012-06-06 10:50:18 +00:00
bpo-9.s
bpo-9m.d
bpo-10.d ld/ 2012-06-15 15:13:41 +00:00
bpo-10.s
bpo-11.d ld/ 2012-06-15 15:13:41 +00:00
bpo-11.s
bpo-12.d
bpo-12m.d
bpo-13.d
bpo-13m.d
bpo-14.d bfd/ 2012-06-06 10:50:18 +00:00
bpo-14m.d
bpo-15.d
bpo-15m.d
bpo-16.d bfd/ 2012-06-06 10:50:18 +00:00
bpo-16m.d
bpo-17.d bfd/ 2012-06-06 10:50:18 +00:00
bpo-17m.d
bpo-18.d ld/ELF: refine fake STT_FILE symbol emission 2013-10-29 17:52:24 +01:00
bpo-18m.d
bpo-19.d bfd/ 2006-06-02 00:32:00 +00:00
bpo-19m.d
bpo-20.d
bpo-20m.d
bpo-21.d
bpo-21m.d
bpo-22.d ld/ELF: refine fake STT_FILE symbol emission 2013-10-29 17:52:24 +01:00
bpo64addr.ld
bspec1.d binutils/testsuite/: 2010-07-19 15:11:03 +00:00
bspec1.s
bspec1m.d
bspec2.d binutils/testsuite/: 2010-07-19 15:11:03 +00:00
bspec2.s
bspec2m.d
bspec801.s
bspec802.s
bspec803.s
bspec804.s
bspec805.s
bspec806.s
bspec807.s
bspec808.s
bza-1b.d
bza-1f.d
bza-2b.d
bza-2f.d
bza-7b.d
bza-7f.d
bza-8b.d
bza-8f.d
bza.s
data-1.s * ld-mmix/sec-1.d, ld-mmix/sec-3.d: Force end-of-section symbols 2012-09-09 16:31:12 +00:00
data1.s
dloc1.s
dloc2.s
ext1-254.s
ext1.s
ext1g.s
ext1l.s
getaa-1b.d
getaa-1f.d
getaa-2b.d
getaa-2f.d
getaa-4b.d
getaa-4f.d
getaa-6b.d
getaa-6f.d
getaa-7b.d
getaa-7f.d
getaa-8b.d
getaa-8f.d
getaa.s
getaa12b.d
getaa12f.d
getaa14b.d
getaa14f.d
greg-1.d bfd/ 2012-06-06 10:50:18 +00:00
greg-1.s
greg-2.d bfd/ 2012-06-06 10:50:18 +00:00
greg-2.s
greg-3.d bfd/ 2012-06-06 10:50:18 +00:00
greg-3.s
greg-4.d bfd/ 2012-06-06 10:50:18 +00:00
greg-4.s
greg-5.d bfd/ 2012-06-06 10:50:18 +00:00
greg-5.s
greg-5s.d bfd/ 2012-06-06 10:50:18 +00:00
greg-6.d ld/ELF: refine fake STT_FILE symbol emission 2013-10-29 17:52:24 +01:00
greg-7.d ld/ELF: refine fake STT_FILE symbol emission 2013-10-29 17:52:24 +01:00
greg-8.d
greg-9.d
greg-10.d
greg-11.d
greg-11b.d
greg-12.d
greg-13.d
greg-14.d
greg-14s.d
greg-15.d
greg-16.d
greg-17.d
greg-18.d
greg-19.d bfd/ 2012-06-06 10:50:18 +00:00
greg-20.d
gregbza1.s
gregget1.s
gregget2.s
gregldo1.s
gregpsj1.s
hdr-1.d
jumpa-1b.d
jumpa-1f.d
jumpa-2b.d
jumpa-2f.d
jumpa-3b.d
jumpa-3f.d
jumpa-4b.d
jumpa-4f.d
jumpa-5b.d
jumpa-5f.d
jumpa-6b.d
jumpa-6f.d
jumpa-7b.d
jumpa-7f.d
jumpa-8b.d
jumpa-8f.d
jumpa-9b.d
jumpa-9f.d
jumpa.s
jumpa12b.d
jumpa12f.d
jumpa13b.d
jumpa13f.d
jumpa14b.d
jumpa14f.d
loc1.d ld/ 2012-06-15 15:13:41 +00:00
loc1.s
loc1m.d
loc2.d ld/ 2012-06-15 15:13:41 +00:00
loc2.s
loc2m.d
loc3.d ld/ 2012-06-15 15:13:41 +00:00
loc3m.d
loc4.d ld/ELF: refine fake STT_FILE symbol emission 2013-10-29 17:52:24 +01:00
loc4m.d
loc5.d
loc5m.d
loc6.d ld/ 2012-06-15 15:13:41 +00:00
loc6m.d
loc7.d
loc7m.d
loc8.d PR gas/6607 2008-06-16 15:07:01 +00:00
loc8.s PR gas/6607 2008-06-16 15:07:01 +00:00
loc8m.d PR gas/6607 2008-06-16 15:07:01 +00:00
loc9.d PR gas/6607 2008-06-16 15:07:01 +00:00
loc9.s PR gas/6607 2008-06-16 15:07:01 +00:00
loc9m.d PR gas/6607 2008-06-16 15:07:01 +00:00
loc10.d PR gas/6607 2008-06-16 15:07:01 +00:00
loc10.s PR gas/6607 2008-06-16 15:07:01 +00:00
loc10m.d PR gas/6607 2008-06-16 15:07:01 +00:00
local1.d ld/ELF: refine fake STT_FILE symbol emission 2013-10-29 17:52:24 +01:00
local1.s
local1m.d
local2.d
local2.s
local2m.d
local3.d ld/ELF: refine fake STT_FILE symbol emission 2013-10-29 17:52:24 +01:00
local3m.d
local4.d
local4m.d
local5.d ld/ELF: refine fake STT_FILE symbol emission 2013-10-29 17:52:24 +01:00
local5m.d
local6.d
local6m.d
local7.d ld/ELF: refine fake STT_FILE symbol emission 2013-10-29 17:52:24 +01:00
local7m.d
local8.d
local8m.d
local9.d
local9m.d
local10.d
local10m.d
local11.d
local11m.d
local12.d
local12m.d
locdo-1.d ld/ 2012-06-15 15:13:41 +00:00
locdo.s
loct-1.d ld/ELF: refine fake STT_FILE symbol emission 2013-10-29 17:52:24 +01:00
loct.s
locto-1.d ld/ 2012-06-15 15:13:41 +00:00
locto.s
main1.s
mmix.exp update copyright dates 2009-09-02 07:25:43 +00:00
mmohdr1.ld
mmosec1.ld
mmosec2.ld
nop123.s
orph-.d * ld-mmix/sec-1.d, ld-mmix/sec-3.d: Force end-of-section symbols 2012-09-09 16:31:12 +00:00
orph-awp.d * ld-mmix/sec-1.d, ld-mmix/sec-3.d: Force end-of-section symbols 2012-09-09 16:31:12 +00:00
orph-d-a.d * ld-mmix/sec-1.d, ld-mmix/sec-3.d: Force end-of-section symbols 2012-09-09 16:31:12 +00:00
orph-d-awn.d * ld-mmix/sec-1.d, ld-mmix/sec-3.d: Force end-of-section symbols 2012-09-09 16:31:12 +00:00
orph-d-awp.d * ld-mmix/sec-1.d, ld-mmix/sec-3.d: Force end-of-section symbols 2012-09-09 16:31:12 +00:00
orph-d-awpe.d * ld-mmix/sec-1.d, ld-mmix/sec-3.d: Force end-of-section symbols 2012-09-09 16:31:12 +00:00
orph-d.d * ld-mmix/sec-1.d, ld-mmix/sec-3.d: Force end-of-section symbols 2012-09-09 16:31:12 +00:00
orph-dc-ap.d * ld-mmix/sec-1.d, ld-mmix/sec-3.d: Force end-of-section symbols 2012-09-09 16:31:12 +00:00
orph-dc-awp.d * ld-mmix/sec-1.d, ld-mmix/sec-3.d: Force end-of-section symbols 2012-09-09 16:31:12 +00:00
orph-dc.d * ld-mmix/sec-1.d, ld-mmix/sec-3.d: Force end-of-section symbols 2012-09-09 16:31:12 +00:00
pad2p18m32.s
pad2p26m32.s
pad4.s
pad16.s
pr12815-1.d PR ld/12815 2011-07-25 01:16:05 +00:00
pr12815-1.ld PR ld/12815 2011-07-25 01:16:05 +00:00
pr12815-1.s PR ld/12815 2011-07-25 01:16:05 +00:00
pr12815-2.d PR ld/12815 2011-07-25 01:16:05 +00:00
pr12815-2.s PR ld/12815 2011-07-25 01:16:05 +00:00
pushja.s
pushja1b-s.d
pushja1b.d
pushja1f-s.d
pushja1f.d
pushja2b.d
pushja2f.d
pushja7b-s.d
pushja7b.d
pushja7f-s.d
pushja7f.d
pushja8b.d
pushja8f.d
pushjs1.d
pushjs1b.d
pushjs1bm.d
pushjs1m.d
pushjs1r.d
pushjs2.d
pushjs2b.d
pushjs2bm.d
pushjs2m.d
pushjs2r.d
pushjs3.d
pushjs3b.d
pushjs3bm.d
pushjs3m.d
pushjs3r.d
pushjs4.d
pushjs4b.d
pushjs4bm.d
pushjs4m.d
pushjs4r.d
reg-1.d
reg-1m.d
reg-2.d
reg-2m.d
regext1.s
sec-1.d * ld-mmix/sec-1.d, ld-mmix/sec-3.d: Force end-of-section symbols 2012-09-09 16:31:12 +00:00
sec-1.s
sec-2.d
sec-2.s
sec-3.d * ld-mmix/sec-1.d, ld-mmix/sec-3.d: Force end-of-section symbols 2012-09-09 16:31:12 +00:00
sec-4.d
sec-5.d
sec-6.d
sec-6.s
sec-6m.d
sec-7a.s
sec-7b.s
sec-7c.s
sec-7d.s
sec-7e.s
sec-7m.d * ld-mmix/bpo-9.d: Update. 2012-06-06 06:12:35 +00:00
sec-8a.s
sec-8b.s
sec-8d.s
sec-8m.d
sec-8m.s
sec-9.d
spec801.d
spec802.d
spec803.d
spec804.d
spec805.d
spec806.d
spec807.d
spec808.d
start-1.d ld/ 2012-06-15 15:13:41 +00:00
start-2.d
start.s
start2.s
start3.s
start4.s
sym-1.d
sym-2.d
sym-2.s
tm-ae.s * ld-mmix/sec-1.d, ld-mmix/sec-3.d: Force end-of-section symbols 2012-09-09 16:31:12 +00:00
tm-ape.s * ld-mmix/sec-1.d, ld-mmix/sec-3.d: Force end-of-section symbols 2012-09-09 16:31:12 +00:00
tm-awne.s * ld-mmix/sec-1.d, ld-mmix/sec-3.d: Force end-of-section symbols 2012-09-09 16:31:12 +00:00
tm-awpe.s * ld-mmix/sec-1.d, ld-mmix/sec-3.d: Force end-of-section symbols 2012-09-09 16:31:12 +00:00
tm-d-ap.s * ld-mmix/sec-1.d, ld-mmix/sec-3.d: Force end-of-section symbols 2012-09-09 16:31:12 +00:00
tm-d-awp.s * ld-mmix/sec-1.d, ld-mmix/sec-3.d: Force end-of-section symbols 2012-09-09 16:31:12 +00:00
tm-d.s * ld-mmix/sec-1.d, ld-mmix/sec-3.d: Force end-of-section symbols 2012-09-09 16:31:12 +00:00
tm-e.s * ld-mmix/sec-1.d, ld-mmix/sec-3.d: Force end-of-section symbols 2012-09-09 16:31:12 +00:00
tm-orph1.s * ld-mmix/sec-1.d, ld-mmix/sec-3.d: Force end-of-section symbols 2012-09-09 16:31:12 +00:00
undef-1.d
undef-1.s
undef-1m.d
undef-2.d
undef-2.s
undef-2m.d
undef-3.d ld/ 2012-06-15 15:13:41 +00:00
undef-3m.d
x.s * ld-mmix/x.s, ld-mmix/y.s, ld-mmix/zeroeh.ld, 2009-07-31 04:55:48 +00:00
y.s * ld-mmix/x.s, ld-mmix/y.s, ld-mmix/zeroeh.ld, 2009-07-31 04:55:48 +00:00
zeroeh.ld * ld-mmix/x.s, ld-mmix/y.s, ld-mmix/zeroeh.ld, 2009-07-31 04:55:48 +00:00
zeroehelf.d * ld-mmix/x.s, ld-mmix/y.s, ld-mmix/zeroeh.ld, 2009-07-31 04:55:48 +00:00
zeroehmmo.d * ld-mmix/x.s, ld-mmix/y.s, ld-mmix/zeroeh.ld, 2009-07-31 04:55:48 +00:00