binutils-gdb/ld/testsuite/ld-elf
H.J. Lu 4b97e3893e Add 2 testcases for PR ld/22269
Since undefined weak symbols in static PIE are always resolved to 0 at
run-time, linker should resolve them as 0 at link-time, regardless of
whether "-z dynamic-undefined-weak" is used.  "-z dynamic-undefined-weak"
only makes undefined weak symbols dynamic, but doesn't change undefined
weak symbol resolution in static PIE at link-time.  These tests currently
pass on x86, but fails on many other targets.

The framework to resolve weak symbols in static PE at link-time is
posted at

https://sourceware.org/ml/binutils/2017-10/msg00087.html

which requires users/hjl/check_relocs branch to call check_relocs after
opening all inputs.  I will submit backend patches for failling targets
after merging users/hjl/check_relocs branch next.

	* PR ld/22269
	* testsuite/ld-elf/pr22269.s: New file.
	* testsuite/ld-elf/pr22269a.d: Likewise.
	* testsuite/ld-elf/pr22269b.d: Likewise.
2017-10-11 13:44:16 -07:00
..
attributes.d
attributes.ld
attributes.s
audit.exp Add -z globalaudit linker command line option to set the DF_GLOBALAUDIT flag bit in the dynamic tags. 2017-08-11 16:36:28 +01:00
audit.rd
begin.c
beginwarn.c
binutils.exp LD/testsuite: Conditionalize the placement of `.got' in GNU_RELRO 2017-07-18 17:20:30 +01:00
check-ptr-eq.c
comm1.c
comm-data1.s
comm-data1.sd
comm-data2.ld Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
comm-data2.rd
comm-data2.s
comm-data2.sd
comm-data2.xd
comm-data2r.rd
comm-data2r.sd
comm-data2r.xd
comm-data3.sd
comm-data3a.s
comm-data3b.s
comm-data4.d
comm-data4.s
comm-data5.d
comm-data5.s
comm-data.exp
commonpage1.d
commonpage2.d
compress1.s
compress1a.d
compress1b.d
compress1c.d
compress.exp
compressed1a.d
compressed1b.d
compressed1c.d
compressed1d.d
compressed1e.d
data1.c
data1.h
data2.c
del.cc
depaudit2.rd
depaudit.rd
discard1.d
discard1.s
discard2.d
discard2.s
discard3.d
discard.ld
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
dwarf1.c
dwarf1.h
dwarf1.out
dwarf1main.c
dwarf2.err
dwarf2a.c
dwarf2b.c
dwarf3.c
dwarf3.err
dwarf.exp
dynamic1.d
dynamic1.ld
dynamic1.s
dynamic-1.c
dynamic-1.rd
dynamic-1.syms
dynbss1.c
dynsym1.d
eh1.d
eh1.s
eh1a.s
eh2.d
eh2a.s
eh3.d Remove .eh_frame zero terminators 2017-08-31 19:40:35 +09:30
eh3.s
eh3a.s
eh4.d Remove .eh_frame zero terminators 2017-08-31 19:40:35 +09:30
eh4.s
eh4a.s
eh5.d
eh5.s
eh5a.s
eh5b.s
eh6.d
eh6.s
eh-frame-hdr.d
eh-frame-hdr.s
eh-group1.s
eh-group2.s
eh-group.exp
ehdr_start-missing.d
ehdr_start-missing.t
ehdr_start-shared.d
ehdr_start-strongref.s
ehdr_start-userdef.d
ehdr_start-userdef.t
ehdr_start-weak.d
ehdr_start.d
ehdr_start.s
elf.exp Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
empty2.d
empty2.s
empty-implib.out
empty.d
empty.s
end.c
endhidden.c
endprotected.c
endsym.d
endsym.s
exclude1.s
exclude2.s
exclude3.s
exclude3a.d
exclude3b.d
exclude3c.d
exclude.exp
export-class-def.s
export-class-dep.s
export-class-lib.s
export-class-lib.ver
export-class-ref.s
export-class.exp
export-class.sd
export-class.vd
expr1.d
expr1.s
expr1.t
fini0.s
fini1.s
fini2.s
fini3.s
fini.c
fini.out
finin.s
flags1.d
flags1.ld
flags1.s
foo0.s
foo1.s
foo2.s
foo3.s
foo.c
foo.map
foon.s
frame.exp
frame.s
func1.c
gabiend.rt
gabinormal.rt
gap.s
global1.d
globalaudit.rd globalaudit.rd: Allow additional bits in DT_FLAGS_1 2017-09-14 12:45:18 -07:00
gnubegin.rS
gnunormal.rS
group1.d
group1a.s
group1b.s
group2.d
group3a.d
group3a.s
group3b.d
group3b.s
group4.d
group5.d
group6.d
group7.d
group8.s
group8a.d
group8b.d
group9.s
group9a.d
group9b.d PR21167, relocation sections not included in groups 2017-10-05 08:38:11 +10:30
group10.d
group10.s
group11.d
group12.d
group12.ld
group.ld
hash.d
header.d
header.s
header.t
hidden.out
implib.rd
implib.s
indirect1a.c
indirect1b.c
indirect1c.c
indirect2.c
indirect3.out
indirect3a.c
indirect3b.c
indirect3c.c
indirect4.out
indirect4a.c
indirect4b.c
indirect4c.c
indirect5.map
indirect5.out
indirect5a.c
indirect5b.c
indirect6a.c
indirect.exp
init0.s
init1.s
init2.s
init3.s
init-fini-arrays.d
init-fini-arrays.s
init-mixed.c
init-mixed.out
init.c
init.out
initn.s
libbarw.rd
linkinfo1.s
linkinfo1a.d Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
linkinfo1b.d Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
linkonce1.d
linkonce1a.s
linkonce1b.s
linkonce2.d
linkoncerdiff1.s
linkoncerdiff2.s
linkoncerdiff.d
lma.lnk
lma.s
loadaddr1.d
loadaddr1.t
loadaddr2.d
loadaddr2.t
loadaddr3.t
loadaddr3a.d
loadaddr3b.d
loadaddr.s
loadaddr.t
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
mbind1.s
mbind1a.d
mbind1b.d
mbind1c.d
mbind2a.s
mbind2b.c
merge2.d
merge2.s
merge3.d
merge3.s
merge.d ld-elf/merge.d: Don't expect to fail for sparc 2017-10-07 16:14:50 -07:00
merge.ld
merge.s
multibss1.d
multibss1.s
needed1.out
needed1a.c
needed1b.c
needed1c.c
needed2.ver
needed2a.c
needed2b.c
needed2c.c
needed3.c
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 More support for ld --hash-style in the ld testsuite 2017-08-08 07:22:36 +09:30
note-3.s
note-3.t More support for ld --hash-style in the ld testsuite 2017-08-08 07:22:36 +09:30
now-1.d
now-2.d
now-3.d
now-4.d
orphan2.d
orphan2.s
orphan3.d
orphan3a.s
orphan3b.s
orphan3c.s
orphan3d.s
orphan3e.s
orphan3f.s
orphan4.d
orphan4.ld
orphan4.s
orphan-5.d
orphan-5.l
orphan-6.d
orphan-6.l
orphan-7.d
orphan-7.map
orphan-8.d
orphan-8.map
orphan-9.d
orphan-9.ld
orphan-9.s
orphan-10.d
orphan-10.s
orphan-11.d ld: Early detection of orphans we know will be discarded 2017-08-24 12:41:34 +01:00
orphan-11.ld LD/testsuite: Also discard `.MIPS.options' in orphan tests 2017-08-30 22:55:14 +01:00
orphan-11.s ld: Early detection of orphans we know will be discarded 2017-08-24 12:41:34 +01:00
orphan-12.d ld: Early detection of orphans we know will be discarded 2017-08-24 12:41:34 +01:00
orphan-12.s ld: Early detection of orphans we know will be discarded 2017-08-24 12:41:34 +01:00
orphan-region.d
orphan-region.ld
orphan-region.s
orphan.d
orphan.ld
orphan.s
overlay.d
overlay.s
overlay.t
pass.out
pie.d
pr349-1.s
pr349-2.s
pr349.d
pr2404.out
pr2404a.c
pr2404b.c
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
pr12851.s
pr12975.d
pr12975.s
pr12975.t
pr13177.d
pr13177.s
pr13195.c
pr13195.d
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
pr14926.d
pr14926.s
pr16322.d
pr16322.s
pr16452.map
pr16452.od
pr16452a.c
pr16452b.c
pr16457.od
pr16496a.c
pr16496a.map
pr16496b.c
pr16496b.od
pr16498a.d
pr16498a.s
pr16498a.t
pr16498b.d
pr16498b.t
pr17068.s
pr17068a.s
pr17068b.s
pr17068c.s
pr17068d.s
pr17068e.s
pr17068ez.s
pr17550-1.s
pr17550-2.s
pr17550-3.s
pr17550-4.s
pr17550a.d
pr17550b.d
pr17550c.d
pr17550d.d
pr17615.d
pr17615.s
pr18458a.c
pr18458b.c
pr18458c.c
pr18718.c
pr18720.out
pr18720.rd
pr18720a.c
pr18720b.c
pr18720c.c
pr18735.d
pr18735.s
pr19005.d
pr19005.s
pr19005.t
pr19073.map
pr19073.rd
pr19073.s
pr19162.d
pr19162a.s
pr19162b.s
pr19539.d
pr19539.s
pr19539.t
pr19553.map
pr19553a.c
pr19553b.c
pr19553b.out
pr19553c.c
pr19553c.out
pr19553d.c
pr19553d.out
pr19579a.c
pr19579b.c
pr19617.s
pr19617a.d Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
pr19617b.d
pr19617c.d
pr19698.d
pr19698.s
pr19698.t
pr19719a.c
pr19719b.c
pr19719c.c
pr19719d.c
pr19789.d
pr19789.s
pr20513a.d
pr20513a.s
pr20513b.d
pr20513b.s
pr20513c.d
pr20513d.d
pr20513e.d
pr20513f.d
pr20528a.d
pr20528a.s
pr20528b.d
pr20528b.s
pr20828-a.sd
pr20828-b.sd
pr20828-c.sd
pr20828-d.sd
pr20828-e.sd
pr20828-v.ld Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
pr20828-v.od
pr20828-v.s
pr20828-v.ver
pr20828.ld Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
pr20828.s
pr20828.ver
pr20995-2so.r
pr20995.r
pr20995a.s
pr20995b.s
pr20995c.s
pr21086.c
pr21086.list
pr21233-e.ld
pr21233-l.s
pr21233-l.sd
pr21233.ld Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
pr21233.s
pr21233.sd
pr21384.d
pr21384.dl
pr21384.ld Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
pr21384.s
pr21389.map
pr21389.s
pr21389a.d
pr21389b.d
pr21389c.d
pr21562a.d Make __start/__stop symbols protected visibility 2017-08-21 23:29:29 +09:30
pr21562a.s
pr21562a.t
pr21562b.d Make __start/__stop symbols protected visibility 2017-08-21 23:29:29 +09:30
pr21562b.s
pr21562b.t
pr21562c.d Make __start/__stop symbols protected visibility 2017-08-21 23:29:29 +09:30
pr21562c.t
pr21562d.d Make __start/__stop symbols protected visibility 2017-08-21 23:29:29 +09:30
pr21562d.t
pr21562e.d Make __start/__stop symbols protected visibility 2017-08-21 23:29:29 +09:30
pr21562f.d Make __start/__stop symbols protected visibility 2017-08-21 23:29:29 +09:30
pr21562g.d Make __start/__stop symbols protected visibility 2017-08-21 23:29:29 +09:30
pr21562h.d Make __start/__stop symbols protected visibility 2017-08-21 23:29:29 +09:30
pr21562i.d Make __start/__stop symbols protected visibility 2017-08-21 23:29:29 +09:30
pr21562j.d Make __start/__stop symbols protected visibility 2017-08-21 23:29:29 +09:30
pr21562k.d Make __start/__stop symbols protected visibility 2017-08-21 23:29:29 +09:30
pr21562l.d Make __start/__stop symbols protected visibility 2017-08-21 23:29:29 +09:30
pr21562m.d Make __start/__stop symbols protected visibility 2017-08-21 23:29:29 +09:30
pr21562n.d Make __start/__stop symbols protected visibility 2017-08-21 23:29:29 +09:30
pr21884.d Add more targets to the list of architectures not supporting format changing during linking. Fix seg-faults triggered when this is attempted. 2017-08-03 11:59:32 +01:00
pr21884.t Check ELF section header only for ELF output 2017-08-02 05:10:48 -07:00
pr21884a.s Check ELF section header only for ELF output 2017-08-02 05:10:48 -07:00
pr21884b.s Check ELF section header only for ELF output 2017-08-02 05:10:48 -07:00
pr21903.s Move common symbol check after bed->common_definition 2017-08-07 08:02:29 -07:00
pr21903a.d Treat common symbol as undefined for --no-define-common 2017-08-06 08:19:04 -07:00
pr21903b.d Treat common symbol as undefined for --no-define-common 2017-08-06 08:19:04 -07:00
pr21903c.d ld: Add "--" after regexp 2017-08-24 17:45:24 -07:00
pr21903d.d ld: Add "--" after regexp 2017-08-24 17:45:24 -07:00
pr21903e.d ld: Add "--" after regexp 2017-08-24 17:45:24 -07:00
pr21904.d Add a testcase for "ld -d" 2017-08-04 05:39:56 -07:00
pr21904.s Add a testcase for "ld -d" 2017-08-04 05:39:56 -07:00
pr21964-1a.c Update PR ld/21964 tests 2017-08-22 09:41:43 -07:00
pr21964-1b.c Update PR ld/21964 tests 2017-08-22 09:41:43 -07:00
pr21964-1c.c Update PR ld/21964 tests 2017-08-22 09:41:43 -07:00
pr21964-2a.c Update PR ld/21964 tests 2017-08-22 09:41:43 -07:00
pr21964-2b.c Update PR ld/21964 tests 2017-08-22 09:41:43 -07:00
pr21964-2c.c Update PR ld/21964 tests 2017-08-22 09:41:43 -07:00
pr21978.od Add a test for PR binutils/21978 2017-09-30 03:04:52 -07:00
pr21978a.c Add a test for PR binutils/21978 2017-09-30 03:04:52 -07:00
pr21978b.c Add a test for PR binutils/21978 2017-09-30 03:04:52 -07:00
pr22150.vd Add a test for PR ld/22150 2017-09-22 07:05:53 -07:00
pr22150.ver Add a test for PR ld/22150 2017-09-22 07:05:53 -07:00
pr22150a.s Add a test for PR ld/22150 2017-09-22 07:05:53 -07:00
pr22150b.s Add a test for PR ld/22150 2017-09-22 07:05:53 -07:00
pr22269.s Add 2 testcases for PR ld/22269 2017-10-11 13:44:16 -07:00
pr22269a.d Add 2 testcases for PR ld/22269 2017-10-11 13:44:16 -07:00
pr22269b.d Add 2 testcases for PR ld/22269 2017-10-11 13:44:16 -07:00
preinit.c
preinit.out
provide-hidden-1.ld Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
provide-hidden-1.s
provide-hidden-2.ld Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
provide-hidden-2.s
provide-hidden-3.s
provide-hidden-4.s
provide-hidden-abs.nd
provide-hidden-def.nd
provide-hidden-dyn.nd
provide-hidden-dynabs.nd
provide-hidden-dynsec.nd
provide-hidden-s.ld Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
provide-hidden-s.nd
provide-hidden-sec.nd
provide-hidden.exp
rdynamic-1.c
rdynamic-1.rd
readelf.exp Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
rel.c
relmain.c
relmain.out
relocatable.d
relocatable.t
relro1.s
relro2.s
rpath-1.d
rpath-2.d
runpath-1.d
runpath-2.d
sec64k.exp
sec-to-seg1.s
sec-to-seg2.s
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
seg.d
seg.s
seg.t
shared.exp Add a test for PR binutils/21978 2017-09-30 03:04:52 -07:00
simple.s
sizeof.s
sizeofa.d Make __start/__stop symbols protected visibility 2017-08-21 23:29:29 +09:30
sizeofb.d Make __start/__stop symbols protected visibility 2017-08-21 23:29:29 +09:30
sizeofc.d LD: Fix .startof.SECNAME/.sizeof.SECNAME tests for MIPS/IRIX 2017-06-26 16:15:15 +01:00
stab.d Support different ld --hash-style in the ld testsuite 2017-08-07 22:10:51 +09:30
stack-exec.rd
stack-size.rd
stack.s
start.s
startof.s
startofa.d Make __start/__stop symbols protected visibility 2017-08-21 23:29:29 +09:30
startofb.d Make __start/__stop symbols protected visibility 2017-08-21 23:29:29 +09:30
startofc.d LD: Fix .startof.SECNAME/.sizeof.SECNAME tests for MIPS/IRIX 2017-06-26 16:15:15 +01:00
strtab.d
strtab.s
symbol1ref.s
symbol1w.s
symbol2ref.s
symbol2w.s
symbol3.s
symbol3w.s
symbolic-func.r
symbolic-func.s
table.s
tbss1.s
tbss2.s
tbss3.s
tbss.s
tdata1.s
tdata2.s
tdata3.s
textaddr1.d
textaddr2.d
textaddr3.d
textaddr4.d
textaddr5.d
textaddr6.d
textaddr7.d
tls_common.exp
tls_common.s
tls_gc.s
unknown2.d
unknown2.s
unknown.d
var1.d
var1.s
var1.t
ver_def-tic6x.vd
ver_def.ld
ver_def.s
ver_def.vd
ver_def.ver
warn1.d
warn2.d
warn3.d
warn.out
weak-dyn-1.ld
weak-dyn-1.rd
weak-dyn-1a.s
weak-dyn-1b.s
weakdef1.c
wrap1.c
wrap1.out
wrap1a.c
wrap1b.c
wrap.exp
zlibbegin.rS
zlibnormal.rS