old-cross-binutils/ld/testsuite/ld-elf
Alan Modra 1240be6b7d PR 17287, DT_NEEDED of unneeded libraries affects --as-needed
PR 17287
bfd/
	* elflink.c (on_needed_list): Only consider libraries that have
	been loaded.
ld/
	* ld.texinfo (--as-needed): Clarify that references from libraries
	must be from needed libraries.
ld/testsuite/
	* ld-plugin/needed3.c: New file.
	* ld-elf/shared.exp: Add needed3 test.
2014-08-18 18:45:01 +09:30
..
audit.exp Update copyright years 2014-03-05 22:16:15 +10:30
audit.rd
begin.c
beginwarn.c
binutils.exp Update copyright years 2014-03-05 22:16:15 +10:30
comm-data.exp Update copyright years 2014-03-05 22:16:15 +10:30
comm-data1.s
comm-data1.sd
comm-data2.ld * ld-elf/comm-data.exp: Use check_shared_lib_support rather than 2013-08-24 22:37:18 +00:00
comm-data2.rd
comm-data2.s * ld-elf/comm-data.exp: Use check_shared_lib_support rather than 2013-08-24 22:37:18 +00:00
comm-data2.sd
comm-data2.xd * ld-elf/comm-data.exp: Use check_shared_lib_support rather than 2013-08-24 22:37:18 +00:00
comm-data2r.rd * ld-elf/comm-data.exp: Use check_shared_lib_support rather than 2013-08-24 22:37:18 +00:00
comm-data2r.sd * ld-elf/comm-data.exp: Use check_shared_lib_support rather than 2013-08-24 22:37:18 +00:00
comm-data2r.xd * ld-elf/comm-data.exp: Use check_shared_lib_support rather than 2013-08-24 22:37:18 +00:00
comm-data3.sd
comm-data3a.s
comm-data3b.s
comm-data4.d
comm-data4.s
comm-data5.d
comm-data5.s
comm1.c
commonpage1.d
commonpage2.d
compress.exp Update copyright years 2014-03-05 22:16:15 +10:30
compress1.s Update copyright years 2014-03-05 22:16:15 +10:30
compress1a.d
compress1b.d
compress1c.d
data1.c
data1.h
data2.c
del.cc
depaudit.rd
depaudit2.rd
discard.ld
discard1.d
discard1.s
discard2.d
discard2.s
discard3.d
dl1.c
dl1.list
dl1.out
dl1main.c
dl2.c
dl2.list
dl2a.list
dl2a.out
dl2b.out
dl2main.c
dl2xxx.c
dl2xxx.list
dl3.cc
dl3.list
dl3a.out
dl3b.out
dl3header.h
dl3main.cc
dl4.c
dl4.list
dl4a.out
dl4b.out
dl4main.c
dl4xxx.c
dl4xxx.list
dl5.cc
dl5.out
dl6.c
dl6a.out
dl6amain.c
dl6b.out
dl6bmain.c
dl6cmain.c
dl6dmain.c
dummy.c
dwarf.exp Update copyright years 2014-03-05 22:16:15 +10:30
dwarf1.c
dwarf1.h
dwarf1.out
dwarf1main.c
dynamic-1.c Mark symbol in executables if it matches dynamic_list 2014-02-10 08:05:54 -08:00
dynamic-1.rd Mark symbol in executables if it matches dynamic_list 2014-02-10 08:05:54 -08:00
dynamic-1.syms Mark symbol in executables if it matches dynamic_list 2014-02-10 08:05:54 -08:00
dynamic1.d
dynamic1.ld
dynamic1.s
dynbss1.c
dynsym1.d
eh-frame-hdr.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
eh-frame-hdr.s
eh-group.exp Update copyright years 2014-03-05 22:16:15 +10:30
eh-group1.s
eh-group2.s
eh1.d * dwarf.c (dwarf_vmatoa): Rename to dwarf_vmatoa_1 and add a 2013-09-12 09:14:47 +00:00
eh1.s
eh1a.s
eh2.d * dwarf.c (dwarf_vmatoa): Rename to dwarf_vmatoa_1 and add a 2013-09-12 09:14:47 +00:00
eh2a.s
eh3.d * dwarf.c (dwarf_vmatoa): Rename to dwarf_vmatoa_1 and add a 2013-09-12 09:14:47 +00:00
eh3.s
eh3a.s
eh4.d * dwarf.c (dwarf_vmatoa): Rename to dwarf_vmatoa_1 and add a 2013-09-12 09:14:47 +00:00
eh4.s
eh4a.s
eh5.d * dwarf.c (dwarf_vmatoa): Rename to dwarf_vmatoa_1 and add a 2013-09-12 09:14:47 +00:00
eh5.s
eh5a.s
eh5b.s
eh6.d * dwarf.c (dwarf_vmatoa): Rename to dwarf_vmatoa_1 and add a 2013-09-12 09:14:47 +00:00
eh6.s
ehdr_start-missing.d Fix references to __ehdr_start when it cannot be defined 2013-11-19 10:54:00 -08:00
ehdr_start-missing.t Fix references to __ehdr_start when it cannot be defined 2013-11-19 10:54:00 -08:00
ehdr_start-shared.d non-PIC references to __ehdr_start in pie and shared 2014-01-15 22:23:16 +10:30
ehdr_start-strongref.s Fix references to __ehdr_start when it cannot be defined 2013-11-19 10:54:00 -08:00
ehdr_start-userdef.d non-PIC references to __ehdr_start in pie and shared 2014-01-15 22:23:16 +10:30
ehdr_start-userdef.t Fix references to __ehdr_start when it cannot be defined 2013-11-19 10:54:00 -08:00
ehdr_start-weak.d non-PIC references to __ehdr_start in pie and shared 2014-01-15 22:23:16 +10:30
ehdr_start.d non-PIC references to __ehdr_start in pie and shared 2014-01-15 22:23:16 +10:30
ehdr_start.s
elf.exp Reload --as-needed libraries inside groups 2014-07-03 17:05:42 +09:30
empty.d
empty.s
empty2.d
empty2.s
end.c
endhidden.c
endprotected.c
exclude.exp Update copyright years 2014-03-05 22:16:15 +10:30
exclude1.s
exclude2.s
exclude3.s
exclude3a.d
exclude3b.d
exclude3c.d
export-class-def.s
export-class-dep.s
export-class-lib.s
export-class-lib.ver
export-class-ref.s
export-class.exp Update copyright years 2014-03-05 22:16:15 +10:30
export-class.sd
export-class.vd
expr1.d
expr1.s
expr1.t
extract-symbol-1.ld
extract-symbol-1.s
extract-symbol-1sec.d
extract-symbol-1sym.d
fini.c
fini.out
fini0.s * ld-elf/init0.s: Add alloc attribute to .section directive. 2013-03-22 09:40:06 +00:00
fini1.s * ld-elf/init0.s: Add alloc attribute to .section directive. 2013-03-22 09:40:06 +00:00
fini2.s * ld-elf/init0.s: Add alloc attribute to .section directive. 2013-03-22 09:40:06 +00:00
fini3.s * ld-elf/init0.s: Add alloc attribute to .section directive. 2013-03-22 09:40:06 +00:00
finin.s * ld-elf/init0.s: Add alloc attribute to .section directive. 2013-03-22 09:40:06 +00:00
flags1.d * archures.c: Add some more MSP430 machine numbers. 2013-05-02 21:06:15 +00:00
flags1.ld
flags1.s
foo.c
foo.map
foo0.s
foo1.s
foo2.s
foo3.s
foon.s
frame.exp Update copyright years 2014-03-05 22:16:15 +10:30
frame.s
func1.c
global1.d
group.ld [MIPS] Implement O32 FPXX, FP64 and FP64A ABI extensions 2014-07-29 11:27:59 +01:00
group1.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
group1a.s
group1b.s
group2.d
group3a.d
group3a.s
group3b.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
group3b.s
group4.d
group5.d
group6.d
group7.d
group8.s
group8a.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
group8b.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
group9.s
group9a.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
group9b.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
group10.d
group10.s
hash.d
header.d
header.s
header.t
hidden.out
indirect.exp Update copyright years 2014-03-05 22:16:15 +10:30
indirect1a.c
indirect1b.c
indirect1c.c
indirect2.c
indirect3.out
indirect3a.c
indirect3b.c
indirect3c.c
indirect4.out
indirect4a.c
indirect4b.c
indirect4c.c
init-fini-arrays.d * archures.c: Add some more MSP430 machine numbers. 2013-05-02 21:06:15 +00:00
init-fini-arrays.s
init-mixed.c
init-mixed.out
init.c
init.out
init0.s * ld-elf/init0.s: Add alloc attribute to .section directive. 2013-03-22 09:40:06 +00:00
init1.s * ld-elf/init0.s: Add alloc attribute to .section directive. 2013-03-22 09:40:06 +00:00
init2.s * ld-elf/init0.s: Add alloc attribute to .section directive. 2013-03-22 09:40:06 +00:00
init3.s * ld-elf/init0.s: Add alloc attribute to .section directive. 2013-03-22 09:40:06 +00:00
initn.s * ld-elf/init0.s: Add alloc attribute to .section directive. 2013-03-22 09:40:06 +00:00
libbarw.rd Check .gnu.warning section in shared library 2013-07-24 17:24:20 +00:00
linkinfo1.s Set SHF_INFO_LINK bit for SHT_REL/SHT_RELA sections 2013-12-19 11:34:47 -08:00
linkinfo1a.d Set SHF_INFO_LINK bit for SHT_REL/SHT_RELA sections 2013-12-19 11:34:47 -08:00
linkinfo1b.d Set SHF_INFO_LINK bit for SHT_REL/SHT_RELA sections 2013-12-19 11:34:47 -08:00
linkonce1.d
linkonce1a.s
linkonce1b.s
linkonce2.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
linkoncerdiff.d
linkoncerdiff1.s
linkoncerdiff2.s
lma.lnk
lma.s
loadaddr.s
loadaddr.t
loadaddr1.d
loadaddr1.t
loadaddr2.d
loadaddr2.t
loadaddr3.t
loadaddr3a.d
loadaddr3b.d
local1.d
local1.map
local1.s
main.c
maxpage1.d
maxpage1.s
maxpage2.d
maxpage3.t
maxpage3a.d
maxpage3b.d
maxpage3c.d
maxpage4.d
maxpage4.t
maxpage5.d
maxpage5.s
maxpage5.t
merge.d gas/ 2014-03-20 21:18:43 +00:00
merge.ld
merge.s
merge2.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
merge2.s
multibss1.d
multibss1.s
needed1.out
needed1a.c
needed1b.c
needed1c.c
needed2.ver Add a test for --as-needed with symbol versioning 2013-12-11 08:00:34 -08:00
needed2a.c Add a test for --as-needed with symbol versioning 2013-12-11 08:00:34 -08:00
needed2b.c Add a test for --as-needed with symbol versioning 2013-12-11 08:00:34 -08:00
needed2c.c Add a test for --as-needed with symbol versioning 2013-12-11 08:00:34 -08:00
needed3.c PR 17287, DT_NEEDED of unneeded libraries affects --as-needed 2014-08-18 18:45:01 +09:30
new.cc
nobits-1.d
nobits-1.s
nobits-1.t
noload-1.d
noload-1.s
noload-1.t
noload-2.d
noload-3.d
noload-3.s
noload-3.t
normal.out
note-1.d
note-1.s
note-1.t
note-2.d
note-2.s
note-2.t
note-3.l
note-3.s
note-3.t
now-1.d Add tests for ELF DT_XXX 2013-02-06 16:21:51 +00:00
now-2.d Add tests for ELF DT_XXX 2013-02-06 16:21:51 +00:00
now-3.d Add tests for ELF DT_XXX 2013-02-06 16:21:51 +00:00
now-4.d Add tests for ELF DT_XXX 2013-02-06 16:21:51 +00:00
orphan-region.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
orphan-region.ld [MIPS] Implement O32 FPXX, FP64 and FP64A ABI extensions 2014-07-29 11:27:59 +01:00
orphan-region.s
orphan.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
orphan.ld [MIPS] Implement O32 FPXX, FP64 and FP64A ABI extensions 2014-07-29 11:27:59 +01:00
orphan.s
orphan2.d
orphan2.s
orphan3.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
orphan3a.s
orphan3b.s
orphan3c.s
orphan3d.s
orphan3e.s
orphan3f.s
orphan4.d
orphan4.ld
orphan4.s
overlay.d
overlay.s
overlay.t
pass.out
pr349-1.s
pr349-2.s
pr349.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
pr2404.out Add a testcase for PR ld/2404 2014-01-20 04:50:47 -08:00
pr2404a.c Add a testcase for PR ld/2404 2014-01-20 04:50:47 -08:00
pr2404b.c Add a testcase for PR ld/2404 2014-01-20 04:50:47 -08:00
pr9676-1.c
pr9676-2.c
pr9676-3.c
pr9676-4.c
pr9676.rd
pr9679-1.c
pr9679-2.c
pr9679.rd
pr11138-1.c
pr11138-1.map
pr11138-2.c
pr11138-2.map
pr11138.out
pr11304.d
pr11304a.s
pr11304b.s
pr12851.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
pr12851.s
pr12975.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
pr12975.s
pr12975.t
pr13177.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
pr13177.s
pr13195.c
pr13195.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
pr13195.s
pr13195.t
pr13250-1.c
pr13250-2.c
pr13250-3.c
pr13839.d
pr13839.s
pr13839.t
pr14052.d
pr14052.t
pr14156a.d
pr14156b.d
pr14156c.d
pr14156c.t
pr14170a.s
pr14170b.s
pr14170c.s
pr14323-1.c
pr14323-2.c
pr14525.c
pr14525.out
pr14862-1.c
pr14862-2.c
pr14862.map
pr14862.out PR ld/12549 2013-03-18 02:47:03 +00:00
pr14926.d * ld-elf/pr14926.d: Disable for d10v, msp, xstormy. 2013-01-14 13:23:05 +00:00
pr14926.s
pr16322.d Adjust LOAD segment to generate GNU_RELRO segment 2014-01-08 05:57:21 -08:00
pr16322.s Adjust LOAD segment to generate GNU_RELRO segment 2014-01-08 05:57:21 -08:00
pr16498a.d Improve orphaned TLS section handling 2014-01-24 08:56:07 -08:00
pr16498a.s Replace .align with .p2align 2014-01-24 10:01:56 -08:00
pr16498a.t Improve orphaned TLS section handling 2014-01-24 08:56:07 -08:00
pr16498b.d Add another testcase for PR ld/16498 2014-01-24 09:03:21 -08:00
pr16498b.t Add another testcase for PR ld/16498 2014-01-24 09:03:21 -08:00
pr17068.s Reload --as-needed libraries inside groups 2014-07-03 17:05:42 +09:30
pr17068a.s Reload --as-needed libraries inside groups 2014-07-03 17:05:42 +09:30
pr17068b.s Reload --as-needed libraries inside groups 2014-07-03 17:05:42 +09:30
pr17068c.s Reload --as-needed libraries inside groups 2014-07-03 17:05:42 +09:30
pr17068d.s Reload --as-needed libraries inside groups 2014-07-03 17:05:42 +09:30
pr17068e.s Reload --as-needed libraries inside groups 2014-07-03 17:05:42 +09:30
pr17068ez.s Reload --as-needed libraries inside groups 2014-07-03 17:05:42 +09:30
preinit.c
preinit.out
provide-hidden-1.ld * ld-elf/provide-hidden-s.nd: New test. 2013-05-03 14:57:15 +00:00
provide-hidden-1.s * ld-elf/provide-hidden-s.nd: New test. 2013-05-03 14:57:15 +00:00
provide-hidden-2.ld * ld-elf/provide-hidden-s.nd: New test. 2013-05-03 14:57:15 +00:00
provide-hidden-2.s * ld-elf/provide-hidden-s.nd: New test. 2013-05-03 14:57:15 +00:00
provide-hidden-3.s * ld-elf/provide-hidden-s.nd: New test. 2013-05-03 14:57:15 +00:00
provide-hidden-4.s * ld-elf/provide-hidden-s.nd: New test. 2013-05-03 14:57:15 +00:00
provide-hidden-abs.nd * ld-elf/provide-hidden-s.nd: New test. 2013-05-03 14:57:15 +00:00
provide-hidden-def.nd * ld-elf/provide-hidden-s.nd: New test. 2013-05-03 14:57:15 +00:00
provide-hidden-dyn.nd * ld-elf/provide-hidden-s.nd: New test. 2013-05-03 14:57:15 +00:00
provide-hidden-dynabs.nd * ld-elf/provide-hidden-s.nd: New test. 2013-05-03 14:57:15 +00:00
provide-hidden-dynsec.nd * ld-elf/provide-hidden-s.nd: New test. 2013-05-03 14:57:15 +00:00
provide-hidden-s.ld * ld-elf/provide-hidden-s.nd: New test. 2013-05-03 14:57:15 +00:00
provide-hidden-s.nd * ld-elf/provide-hidden-s.nd: New test. 2013-05-03 14:57:15 +00:00
provide-hidden-sec.nd * ld-elf/provide-hidden-s.nd: New test. 2013-05-03 14:57:15 +00:00
provide-hidden.exp Update copyright years 2014-03-05 22:16:15 +10:30
rdynamic-1.c Add rdynamic-1 test 2014-01-29 14:30:41 -08:00
rdynamic-1.rd Add rdynamic-1 test 2014-01-29 14:30:41 -08:00
rel.c bfd/ 2013-03-20 03:44:56 +00:00
relmain.c bfd/ 2013-03-20 03:44:56 +00:00
relmain.out bfd/ 2013-03-20 03:44:56 +00:00
relocatable.d
relocatable.t
relro1.s
relro2.s
rpath-1.d Add tests for ELF DT_XXX 2013-02-06 16:21:51 +00:00
rpath-2.d Add tests for ELF DT_XXX 2013-02-06 16:21:51 +00:00
runpath-1.d Add tests for ELF DT_XXX 2013-02-06 16:21:51 +00:00
runpath-2.d Add tests for ELF DT_XXX 2013-02-06 16:21:51 +00:00
sec-to-seg-script-adjoining-pages.t
sec-to-seg-script-disjoint-pages.t
sec-to-seg-script-same-page.t
sec-to-seg.exp Update copyright years 2014-03-05 22:16:15 +10:30
sec-to-seg1.s
sec-to-seg2.s
sec64k.exp Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
seg.d
seg.s
seg.t
shared.exp PR 17287, DT_NEEDED of unneeded libraries affects --as-needed 2014-08-18 18:45:01 +09:30
simple.s
stab.d
stack-exec.rd
stack-size.rd
stack.s
start.s
symbol1ref.s
symbol1w.s
symbol2ref.s
symbol2w.s
symbol3.s
symbol3w.s
table.s
tbss.s
tbss1.s
tbss2.s
tbss3.s
tdata1.s
tdata2.s
tdata3.s
textaddr1.d
textaddr2.d
textaddr3.d
textaddr4.d
textaddr5.d
textaddr6.d
textaddr7.d
tls_common.exp Update copyright years 2014-03-05 22:16:15 +10:30
tls_common.s
tls_gc.s
unknown.d
unknown2.d
unknown2.s
var1.d
var1.s
var1.t
warn.out
warn1.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
warn2.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
warn3.d Remove support for the (deprecated) openrisc and or32 configurations and replace 2014-04-22 15:57:47 +01:00
weak-dyn-1.ld
weak-dyn-1.rd
weak-dyn-1a.s
weak-dyn-1b.s
weakdef1.c
wrap.exp Update copyright years 2014-03-05 22:16:15 +10:30
wrap1.c
wrap1.out
wrap1a.c
wrap1b.c