Support different ld --hash-style in the ld testsuite

When ld is running with something other than --hash-style=sysv by
default, numerous tests need tweaking.  Most of the changes just add
--hash-style=sysv.  I didn't want to make --hash-style=sysv global as
that means --hash-style=gnu isn't well tested.

	* testsuite/ld-alpha/alpha.exp: Add --hash-style=sysv to various
	test's ld options.
	* testsuite/ld-arm/arm-elf.exp: Likewise.
	* testsuite/ld-elf/elf.exp: Likewise.
	* testsuite/ld-elf/readelf.exp: Likewise.
	* testsuite/ld-elfvsb/elfvsb.exp: Likewise.
	* testsuite/ld-i386/i386.exp: Likewise.
	* testsuite/ld-ia64/ia64.exp: Likewise.
	* testsuite/ld-m68k/m68k.exp: Likewise.
	* testsuite/ld-metag/metag.exp: Likewise.
	* testsuite/ld-powerpc/powerpc.exp: Likewise.
	* testsuite/ld-s390/s390.exp: Likewise.
	* testsuite/ld-sh/sh-vxworks.exp: Likewise.
	* testsuite/ld-shared/shared.exp: Likewise.
	* testsuite/ld-sparc/sparc.exp: Likewise.
	* testsuite/ld-tic6x/tic6x.exp: Likewise.
	* testsuite/ld-vax-elf/vax-elf.exp: Likewise.
	* testsuite/ld-x86-64/mpx.exp: Likewise.
	* testsuite/ld-x86-64/x86-64.exp: Likewise.
	* testsuite/ld-xtensa/xtensa.exp: Likewise.

	* testsuite/ld-elf/comm-data2.ld: Add .gnu.hash output section.
	* testsuite/ld-elf/pr20828-v.ld: Likewise.
	* testsuite/ld-elf/pr20828.ld: Likewise.
	* testsuite/ld-elf/pr21233.ld: Likewise.
	* testsuite/ld-elf/pr21384.ld: Likewise.
	* testsuite/ld-elf/provide-hidden-1.ld: Likewise.
	* testsuite/ld-elf/provide-hidden-2.ld: Likewise.
	* testsuite/ld-elf/provide-hidden-s.ld: Likewise.
	* testsuite/ld-scripts/cross1.t: Likewise.

	* testsuite/ld-elf/stab.d: Adjust allowed section indices.

	* testsuite/ld-i386/pie1.d: Don't match addresses.
	* testsuite/ld-i386/plt-pic2.dd: Likewise.
	* testsuite/ld-i386/pr19636-1d.d: Likewise.
	* testsuite/ld-i386/pr19636-2c.d: Likewise.
	* testsuite/ld-powerpc/elfv2so.d: Likewise.
	* testsuite/ld-powerpc/tlsopt5.d: Likewise.
	* testsuite/ld-powerpc/tlsopt5.wf: Likewise.
	* testsuite/ld-powerpc/tlsopt5_32.d: Likewise.

	* testsuite/ld-i386/pr19636-2b.d: Don't match _start.

	* testsuite/ld-powerpc/ambiguousv1.d: Relax symbol count, index
	and address match.
	* testsuite/ld-powerpc/ambiguousv1b.d: Likewise.
	* testsuite/ld-powerpc/ambiguousv2.d: Likewise.
	* testsuite/ld-powerpc/ambiguousv2b.d: Likewise.

	* testsuite/ld-aarch64/gc-plt-relocs.d: Run ld with --hash-style=sysv.
	* testsuite/ld-aarch64/ifunc-1.d: Likewise.
	* testsuite/ld-aarch64/ifunc-2.d: Likewise.
	* testsuite/ld-aarch64/ifunc-21.d: Likewise.
	* testsuite/ld-aarch64/relasz.d: Likewise.
	* testsuite/ld-aarch64/tls-small-ld.d: Likewise.
	* testsuite/ld-aarch64/tls-tiny-ld.d: Likewise.
	* testsuite/ld-arc/tls_gd-01.d: Likewise.
	* testsuite/ld-cris/libdso-10.d: Likewise.
	* testsuite/ld-cris/libdso-2.d: Likewise.
	* testsuite/ld-cris/pic-gc-72.d: Likewise.
	* testsuite/ld-cris/pic-gc-73.d: Likewise.
	* testsuite/ld-cris/tls-gd-1.d: Likewise.
	* testsuite/ld-cris/tls-gd-1h.d: Likewise.
	* testsuite/ld-cris/tls-gd-2.d: Likewise.
	* testsuite/ld-cris/tls-gd-2h.d: Likewise.
	* testsuite/ld-cris/tls-ie-10.d: Likewise.
	* testsuite/ld-cris/tls-ie-11.d: Likewise.
	* testsuite/ld-cris/tls-ie-8.d: Likewise.
	* testsuite/ld-cris/tls-ie-9.d: Likewise.
	* testsuite/ld-cris/tls-ld-4.d: Likewise.
	* testsuite/ld-cris/tls-ld-5.d: Likewise.
	* testsuite/ld-cris/tls-ld-6.d: Likewise.
	* testsuite/ld-cris/tls-ld-7.d: Likewise.
	* testsuite/ld-cris/tls-ldgd-14.d: Likewise.
	* testsuite/ld-cris/tls-ldgd-15.d: Likewise.
	* testsuite/ld-cris/tls-ldgdx-14.d: Likewise.
	* testsuite/ld-cris/tls-ldgdx-15.d: Likewise.
	* testsuite/ld-cris/tls-local-54.d: Likewise.
	* testsuite/ld-cris/tls-local-60.d: Likewise.
	* testsuite/ld-cris/tls-local-61.d: Likewise.
	* testsuite/ld-cris/weakhiddso.d: Likewise.
	* testsuite/ld-elf/linkinfo1a.d: Likewise.
	* testsuite/ld-elf/linkinfo1b.d: Likewise.
	* testsuite/ld-elf/pr19617a.d: Likewise.
	* testsuite/ld-elfvsb/hidden2.d: Likewise.
	* testsuite/ld-frv/fdpic-pie-6.d: Likewise.
	* testsuite/ld-frv/fdpic-shared-2.d: Likewise.
	* testsuite/ld-frv/fdpic-shared-5.d: Likewise.
	* testsuite/ld-frv/fdpic-shared-6.d: Likewise.
	* testsuite/ld-frv/fdpic-shared-8.d: Likewise.
	* testsuite/ld-frv/fdpic-shared-local-2.d: Likewise.
	* testsuite/ld-frv/fdpic-shared-local-8.d: Likewise.
	* testsuite/ld-frv/tls-dynamic-2.d: Likewise.
	* testsuite/ld-i386/ibt-plt-1.d: Likewise.
	* testsuite/ld-i386/ibt-plt-2a.d: Likewise.
	* testsuite/ld-i386/ibt-plt-2c.d: Likewise.
	* testsuite/ld-i386/ibt-plt-3a.d: Likewise.
	* testsuite/ld-i386/ibt-plt-3c.d: Likewise.
	* testsuite/ld-i386/pr20830.d: Likewise.
	* testsuite/ld-ia64/merge1.d: Likewise.
	* testsuite/ld-ia64/merge2.d: Likewise.
	* testsuite/ld-ia64/merge3.d: Likewise.
	* testsuite/ld-ia64/merge4.d: Likewise.
	* testsuite/ld-ia64/merge5.d: Likewise.
	* testsuite/ld-ifunc/ifunc-1-local-x86.d: Likewise.
	* testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
	* testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
	* testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
	* testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
	* testsuite/ld-ifunc/ifunc-2-local-x86-64.d: Likewise.
	* testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
	* testsuite/ld-ifunc/ifunc-2-x86-64.d: Likewise.
	* testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.
	* testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
	* testsuite/ld-ifunc/pr17154-i386.d: Likewise.
	* testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
	* testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
	* testsuite/ld-m68k/got-1.d: Likewise.
	* testsuite/ld-m68k/got-multigot-12-13-14-34-35-ok.d: Likewise.
	* testsuite/ld-m68k/got-multigot-14-ok.d: Likewise.
	* testsuite/ld-m68k/got-multigot-15-er.d: Likewise.
	* testsuite/ld-m68k/got-negative-12-13-14-34-ok.d: Likewise.
	* testsuite/ld-m68k/got-negative-12-13-14-35-er.d: Likewise.
	* testsuite/ld-m68k/got-negative-14-ok.d: Likewise.
	* testsuite/ld-m68k/got-negative-15-er.d: Likewise.
	* testsuite/ld-m68k/got-single-12-ok.d: Likewise.
	* testsuite/ld-m68k/got-single-13-er.d: Likewise.
	* testsuite/ld-m68k/got-xgot-12-13-14-15-34-35-ok.d: Likewise.
	* testsuite/ld-m68k/got-xgot-15-ok.d: Likewise.
	* testsuite/ld-m68k/tls-gd-1.d: Likewise.
	* testsuite/ld-m68k/tls-gd-2.d: Likewise.
	* testsuite/ld-m68k/tls-gd-ie-1.d: Likewise.
	* testsuite/ld-m68k/tls-ie-1.d: Likewise.
	* testsuite/ld-m68k/tls-ld-1.d: Likewise.
	* testsuite/ld-m68k/tls-ld-2.d: Likewise.
	* testsuite/ld-sh/shared-2.d: Likewise.
	* testsuite/ld-sh/tlsbin-2.d: Likewise.
	* testsuite/ld-sh/tlspic-2.d: Likewise.
	* testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
	* testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
	* testsuite/ld-x86-64/bnd-ifunc-1.d: Likewise.
	* testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
	* testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
	* testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
	* testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
	* testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
	* testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
	* testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
	* testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
	* testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
	* testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
	* testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
	* testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
	* testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
	* testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
	* testsuite/ld-x86-64/ilp32-4-nacl.d: Likewise.
	* testsuite/ld-x86-64/ilp32-4.d: Likewise.
	* testsuite/ld-x86-64/load1c-nacl.d: Likewise.
	* testsuite/ld-x86-64/load1c.d: Likewise.
	* testsuite/ld-x86-64/load1d-nacl.d: Likewise.
	* testsuite/ld-x86-64/load1d.d: Likewise.
	* testsuite/ld-x86-64/pie3-nacl.d: Likewise.
	* testsuite/ld-x86-64/pie3.d: Likewise.
	* testsuite/ld-x86-64/pr14207.d: Likewise.
	* testsuite/ld-x86-64/pr19162.d: Likewise.
	* testsuite/ld-x86-64/pr19636-2d-nacl.d: Likewise.
	* testsuite/ld-x86-64/pr19636-2d.d: Likewise.
	* testsuite/ld-x86-64/pr20253-1d.d: Likewise.
	* testsuite/ld-x86-64/pr20253-1f.d: Likewise.
	* testsuite/ld-x86-64/pr20253-1j.d: Likewise.
	* testsuite/ld-x86-64/pr20253-1l.d: Likewise.
	* testsuite/ld-x86-64/pr20830a-now.d: Likewise.
	* testsuite/ld-x86-64/pr20830a.d: Likewise.
	* testsuite/ld-x86-64/pr20830b-now.d: Likewise.
	* testsuite/ld-x86-64/pr20830b.d: Likewise.
	* testsuite/ld-x86-64/pr21038a-now.d: Likewise.
	* testsuite/ld-x86-64/pr21038a.d: Likewise.
	* testsuite/ld-x86-64/pr21038b-now.d: Likewise.
	* testsuite/ld-x86-64/pr21038b.d: Likewise.
	* testsuite/ld-x86-64/pr21038c-now.d: Likewise.
	* testsuite/ld-x86-64/pr21038c.d: Likewise.
This commit is contained in:
Alan Modra 2017-08-06 22:04:25 +09:30
parent b3293efaf8
commit bab55c0522
175 changed files with 603 additions and 354 deletions

View File

@ -1,3 +1,188 @@
2017-08-07 Alan Modra <amodra@gmail.com>
* testsuite/ld-alpha/alpha.exp: Add --hash-style=sysv to various
test's ld options.
* testsuite/ld-arm/arm-elf.exp: Likewise.
* testsuite/ld-elf/elf.exp: Likewise.
* testsuite/ld-elf/readelf.exp: Likewise.
* testsuite/ld-elfvsb/elfvsb.exp: Likewise.
* testsuite/ld-i386/i386.exp: Likewise.
* testsuite/ld-ia64/ia64.exp: Likewise.
* testsuite/ld-m68k/m68k.exp: Likewise.
* testsuite/ld-metag/metag.exp: Likewise.
* testsuite/ld-powerpc/powerpc.exp: Likewise.
* testsuite/ld-s390/s390.exp: Likewise.
* testsuite/ld-sh/sh-vxworks.exp: Likewise.
* testsuite/ld-shared/shared.exp: Likewise.
* testsuite/ld-sparc/sparc.exp: Likewise.
* testsuite/ld-tic6x/tic6x.exp: Likewise.
* testsuite/ld-vax-elf/vax-elf.exp: Likewise.
* testsuite/ld-x86-64/mpx.exp: Likewise.
* testsuite/ld-x86-64/x86-64.exp: Likewise.
* testsuite/ld-xtensa/xtensa.exp: Likewise.
* testsuite/ld-elf/comm-data2.ld: Add .gnu.hash output section.
* testsuite/ld-elf/pr20828-v.ld: Likewise.
* testsuite/ld-elf/pr20828.ld: Likewise.
* testsuite/ld-elf/pr21233.ld: Likewise.
* testsuite/ld-elf/pr21384.ld: Likewise.
* testsuite/ld-elf/provide-hidden-1.ld: Likewise.
* testsuite/ld-elf/provide-hidden-2.ld: Likewise.
* testsuite/ld-elf/provide-hidden-s.ld: Likewise.
* testsuite/ld-scripts/cross1.t: Likewise.
* testsuite/ld-elf/stab.d: Adjust allowed section indices.
* testsuite/ld-i386/pie1.d: Don't match addresses.
* testsuite/ld-i386/plt-pic2.dd: Likewise.
* testsuite/ld-i386/pr19636-1d.d: Likewise.
* testsuite/ld-i386/pr19636-2c.d: Likewise.
* testsuite/ld-powerpc/elfv2so.d: Likewise.
* testsuite/ld-powerpc/tlsopt5.d: Likewise.
* testsuite/ld-powerpc/tlsopt5.wf: Likewise.
* testsuite/ld-powerpc/tlsopt5_32.d: Likewise.
* testsuite/ld-i386/pr19636-2b.d: Don't match _start.
* testsuite/ld-powerpc/ambiguousv1.d: Relax symbol count, index
and address match.
* testsuite/ld-powerpc/ambiguousv1b.d: Likewise.
* testsuite/ld-powerpc/ambiguousv2.d: Likewise.
* testsuite/ld-powerpc/ambiguousv2b.d: Likewise.
* testsuite/ld-aarch64/gc-plt-relocs.d: Run ld with --hash-style=sysv.
* testsuite/ld-aarch64/ifunc-1.d: Likewise.
* testsuite/ld-aarch64/ifunc-2.d: Likewise.
* testsuite/ld-aarch64/ifunc-21.d: Likewise.
* testsuite/ld-aarch64/relasz.d: Likewise.
* testsuite/ld-aarch64/tls-small-ld.d: Likewise.
* testsuite/ld-aarch64/tls-tiny-ld.d: Likewise.
* testsuite/ld-arc/tls_gd-01.d: Likewise.
* testsuite/ld-cris/libdso-10.d: Likewise.
* testsuite/ld-cris/libdso-2.d: Likewise.
* testsuite/ld-cris/pic-gc-72.d: Likewise.
* testsuite/ld-cris/pic-gc-73.d: Likewise.
* testsuite/ld-cris/tls-gd-1.d: Likewise.
* testsuite/ld-cris/tls-gd-1h.d: Likewise.
* testsuite/ld-cris/tls-gd-2.d: Likewise.
* testsuite/ld-cris/tls-gd-2h.d: Likewise.
* testsuite/ld-cris/tls-ie-10.d: Likewise.
* testsuite/ld-cris/tls-ie-11.d: Likewise.
* testsuite/ld-cris/tls-ie-8.d: Likewise.
* testsuite/ld-cris/tls-ie-9.d: Likewise.
* testsuite/ld-cris/tls-ld-4.d: Likewise.
* testsuite/ld-cris/tls-ld-5.d: Likewise.
* testsuite/ld-cris/tls-ld-6.d: Likewise.
* testsuite/ld-cris/tls-ld-7.d: Likewise.
* testsuite/ld-cris/tls-ldgd-14.d: Likewise.
* testsuite/ld-cris/tls-ldgd-15.d: Likewise.
* testsuite/ld-cris/tls-ldgdx-14.d: Likewise.
* testsuite/ld-cris/tls-ldgdx-15.d: Likewise.
* testsuite/ld-cris/tls-local-54.d: Likewise.
* testsuite/ld-cris/tls-local-60.d: Likewise.
* testsuite/ld-cris/tls-local-61.d: Likewise.
* testsuite/ld-cris/weakhiddso.d: Likewise.
* testsuite/ld-elf/linkinfo1a.d: Likewise.
* testsuite/ld-elf/linkinfo1b.d: Likewise.
* testsuite/ld-elf/pr19617a.d: Likewise.
* testsuite/ld-elfvsb/hidden2.d: Likewise.
* testsuite/ld-frv/fdpic-pie-6.d: Likewise.
* testsuite/ld-frv/fdpic-shared-2.d: Likewise.
* testsuite/ld-frv/fdpic-shared-5.d: Likewise.
* testsuite/ld-frv/fdpic-shared-6.d: Likewise.
* testsuite/ld-frv/fdpic-shared-8.d: Likewise.
* testsuite/ld-frv/fdpic-shared-local-2.d: Likewise.
* testsuite/ld-frv/fdpic-shared-local-8.d: Likewise.
* testsuite/ld-frv/tls-dynamic-2.d: Likewise.
* testsuite/ld-i386/ibt-plt-1.d: Likewise.
* testsuite/ld-i386/ibt-plt-2a.d: Likewise.
* testsuite/ld-i386/ibt-plt-2c.d: Likewise.
* testsuite/ld-i386/ibt-plt-3a.d: Likewise.
* testsuite/ld-i386/ibt-plt-3c.d: Likewise.
* testsuite/ld-i386/pr20830.d: Likewise.
* testsuite/ld-ia64/merge1.d: Likewise.
* testsuite/ld-ia64/merge2.d: Likewise.
* testsuite/ld-ia64/merge3.d: Likewise.
* testsuite/ld-ia64/merge4.d: Likewise.
* testsuite/ld-ia64/merge5.d: Likewise.
* testsuite/ld-ifunc/ifunc-1-local-x86.d: Likewise.
* testsuite/ld-ifunc/ifunc-1-x86.d: Likewise.
* testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
* testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
* testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d: Likewise.
* testsuite/ld-ifunc/ifunc-2-local-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-2-x86-64-now.d: Likewise.
* testsuite/ld-ifunc/ifunc-2-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-3a-x86.d: Likewise.
* testsuite/ld-ifunc/pr17154-i386-now.d: Likewise.
* testsuite/ld-ifunc/pr17154-i386.d: Likewise.
* testsuite/ld-ifunc/pr17154-x86-64-now.d: Likewise.
* testsuite/ld-ifunc/pr17154-x86-64.d: Likewise.
* testsuite/ld-m68k/got-1.d: Likewise.
* testsuite/ld-m68k/got-multigot-12-13-14-34-35-ok.d: Likewise.
* testsuite/ld-m68k/got-multigot-14-ok.d: Likewise.
* testsuite/ld-m68k/got-multigot-15-er.d: Likewise.
* testsuite/ld-m68k/got-negative-12-13-14-34-ok.d: Likewise.
* testsuite/ld-m68k/got-negative-12-13-14-35-er.d: Likewise.
* testsuite/ld-m68k/got-negative-14-ok.d: Likewise.
* testsuite/ld-m68k/got-negative-15-er.d: Likewise.
* testsuite/ld-m68k/got-single-12-ok.d: Likewise.
* testsuite/ld-m68k/got-single-13-er.d: Likewise.
* testsuite/ld-m68k/got-xgot-12-13-14-15-34-35-ok.d: Likewise.
* testsuite/ld-m68k/got-xgot-15-ok.d: Likewise.
* testsuite/ld-m68k/tls-gd-1.d: Likewise.
* testsuite/ld-m68k/tls-gd-2.d: Likewise.
* testsuite/ld-m68k/tls-gd-ie-1.d: Likewise.
* testsuite/ld-m68k/tls-ie-1.d: Likewise.
* testsuite/ld-m68k/tls-ld-1.d: Likewise.
* testsuite/ld-m68k/tls-ld-2.d: Likewise.
* testsuite/ld-sh/shared-2.d: Likewise.
* testsuite/ld-sh/tlsbin-2.d: Likewise.
* testsuite/ld-sh/tlspic-2.d: Likewise.
* testsuite/ld-x86-64/bnd-branch-1-now.d: Likewise.
* testsuite/ld-x86-64/bnd-ifunc-1-now.d: Likewise.
* testsuite/ld-x86-64/bnd-ifunc-1.d: Likewise.
* testsuite/ld-x86-64/bnd-ifunc-2-now.d: Likewise.
* testsuite/ld-x86-64/bnd-ifunc-2.d: Likewise.
* testsuite/ld-x86-64/bnd-plt-1-now.d: Likewise.
* testsuite/ld-x86-64/bnd-plt-1.d: Likewise.
* testsuite/ld-x86-64/ibt-plt-1-x32.d: Likewise.
* testsuite/ld-x86-64/ibt-plt-1.d: Likewise.
* testsuite/ld-x86-64/ibt-plt-2a-x32.d: Likewise.
* testsuite/ld-x86-64/ibt-plt-2a.d: Likewise.
* testsuite/ld-x86-64/ibt-plt-2c-x32.d: Likewise.
* testsuite/ld-x86-64/ibt-plt-2c.d: Likewise.
* testsuite/ld-x86-64/ibt-plt-3a-x32.d: Likewise.
* testsuite/ld-x86-64/ibt-plt-3a.d: Likewise.
* testsuite/ld-x86-64/ibt-plt-3c-x32.d: Likewise.
* testsuite/ld-x86-64/ibt-plt-3c.d: Likewise.
* testsuite/ld-x86-64/ilp32-4-nacl.d: Likewise.
* testsuite/ld-x86-64/ilp32-4.d: Likewise.
* testsuite/ld-x86-64/load1c-nacl.d: Likewise.
* testsuite/ld-x86-64/load1c.d: Likewise.
* testsuite/ld-x86-64/load1d-nacl.d: Likewise.
* testsuite/ld-x86-64/load1d.d: Likewise.
* testsuite/ld-x86-64/pie3-nacl.d: Likewise.
* testsuite/ld-x86-64/pie3.d: Likewise.
* testsuite/ld-x86-64/pr14207.d: Likewise.
* testsuite/ld-x86-64/pr19162.d: Likewise.
* testsuite/ld-x86-64/pr19636-2d-nacl.d: Likewise.
* testsuite/ld-x86-64/pr19636-2d.d: Likewise.
* testsuite/ld-x86-64/pr20253-1d.d: Likewise.
* testsuite/ld-x86-64/pr20253-1f.d: Likewise.
* testsuite/ld-x86-64/pr20253-1j.d: Likewise.
* testsuite/ld-x86-64/pr20253-1l.d: Likewise.
* testsuite/ld-x86-64/pr20830a-now.d: Likewise.
* testsuite/ld-x86-64/pr20830a.d: Likewise.
* testsuite/ld-x86-64/pr20830b-now.d: Likewise.
* testsuite/ld-x86-64/pr20830b.d: Likewise.
* testsuite/ld-x86-64/pr21038a-now.d: Likewise.
* testsuite/ld-x86-64/pr21038a.d: Likewise.
* testsuite/ld-x86-64/pr21038b-now.d: Likewise.
* testsuite/ld-x86-64/pr21038b.d: Likewise.
* testsuite/ld-x86-64/pr21038c-now.d: Likewise.
* testsuite/ld-x86-64/pr21038c.d: Likewise.
2017-08-06 H.J. Lu <hongjiu.lu@intel.com>
PR ld/21903:

View File

@ -2,7 +2,7 @@
#source: gc-plt-main.s
#source: gc-plt-hidden.s
#source: gc-plt2.s
#ld: --gc-sections -T aarch64.ld --shared
#ld: --gc-sections -T aarch64.ld --shared --hash-style=sysv
#objdump: -dT
# Shared object with plt related relocs against global symbol

View File

@ -1,4 +1,4 @@
#ld: -shared
#ld: -shared --hash-style=sysv
#objdump: -dw
#target: aarch64*-*-*

View File

@ -1,4 +1,4 @@
#ld: -shared
#ld: -shared --hash-style=sysv
#objdump: -dw
#target: aarch64*-*-*

View File

@ -1,5 +1,5 @@
#source: ifunc-21.s
#ld: -shared -z nocombreloc
#ld: -shared --hash-style=sysv -z nocombreloc
#objdump: -d -s -j .got.plt -j .text
#target: aarch64*-*-*

View File

@ -1,5 +1,5 @@
#source: relasz.s
#ld: -shared -Taarch64.ld
#ld: -shared --hash-style=sysv -Taarch64.ld
#readelf: -d
# Check that the RELASZ section has the correct size even if we are
# using a non-default linker script that merges .rela.dyn and .rela.plt

View File

@ -1,5 +1,5 @@
#source: tls-small-ld.s
#ld: -T relocs.ld -shared
#ld: -T relocs.ld -shared --hash-style=sysv
#readelf: -Wr
Relocation section '\.rela\.dyn' at offset 0x10070 contains 2 entries:

View File

@ -1,5 +1,5 @@
#source: tls-tiny-ld.s
#ld: -T relocs.ld -shared
#ld: -T relocs.ld -shared --hash-style=sysv
#readelf: -Wr
Relocation section '\.rela\.dyn' at offset 0x10070 contains 2 entries:

View File

@ -37,7 +37,7 @@ if { !([istarget "alpha*-*-elf*"]
# readelf: Apply readelf options on result. Compare with regex (last arg).
set alphatests {
{"TLS -fpic -shared" "-shared -melf64alpha" ""
{"TLS -fpic -shared" "-shared -melf64alpha --hash-style=sysv" ""
"" {align.s tlspic1.s tlspic2.s}
{{readelf -WSsrl tlspic.rd} {objdump -drj.text tlspic.dd}
{objdump -sj.got tlspic.sd} {objdump -sj.tdata tlspic.td}}
@ -45,12 +45,13 @@ set alphatests {
{"Helper shared library" "-shared -melf64alpha" ""
"" {tlslib.s} {} "libtlslib.so"}
{"TLS -fpic and -fno-pic exec"
"-melf64alpha tmpdir/libtlslib.so" "" "" {align.s tlsbinpic.s tlsbin.s}
"-melf64alpha tmpdir/libtlslib.so --hash-style=sysv" ""
"" {align.s tlsbinpic.s tlsbin.s}
{{readelf -WSsrl tlsbin.rd} {objdump -drj.text tlsbin.dd}
{objdump -sj.got tlsbin.sd} {objdump -sj.tdata tlsbin.td}}
"tlsbin"}
{"TLS -fpic and -fno-pic exec -relax"
"-relax -melf64alpha tmpdir/libtlslib.so" ""
"-relax -melf64alpha --hash-style=sysv tmpdir/libtlslib.so" ""
"" {align.s tlsbinpic.s tlsbin.s}
{{readelf -WSsrl tlsbinr.rd} {objdump -drj.text tlsbinr.dd}
{objdump -sj.got tlsbinr.sd}}

View File

@ -1,6 +1,6 @@
#source: tls_gd-01.s
#as: -mcpu=arc700
#ld: -shared
#ld: -shared --hash-style=sysv
#objdump: -d
#xfail: arc*-*-elf*

View File

@ -21,23 +21,24 @@
if {[istarget "arm-*-vxworks"]} {
set armvxworkstests {
{"VxWorks shared library test 1" "-shared -Tvxworks1.ld" ""
{"VxWorks shared library test 1"
"-shared -Tvxworks1.ld --hash-style=sysv" ""
"" {vxworks1-lib.s}
{{readelf --relocs vxworks1-lib.rd} {objdump -dr vxworks1-lib.dd}
{readelf --symbols vxworks1-lib.nd} {readelf -d vxworks1-lib.td}}
"libvxworks1.so"}
{"VxWorks executable test 1 (dynamic)" \
"tmpdir/libvxworks1.so -Tvxworks1.ld -q --force-dynamic" ""
{"VxWorks executable test 1 (dynamic)"
"tmpdir/libvxworks1.so -Tvxworks1.ld --hash-style=sysv -q --force-dynamic" ""
"" {vxworks1.s}
{{readelf --relocs vxworks1.rd} {objdump -dr vxworks1.dd}}
"vxworks1"}
{"VxWorks executable test 2 (dynamic)" \
"-Tvxworks1.ld -q --force-dynamic" ""
"-Tvxworks1.ld --hash-style=sysv -q --force-dynamic" ""
"" {vxworks2.s}
{{readelf --segments vxworks2.sd}}
"vxworks2"}
{"VxWorks executable test 2 (static)"
"-Tvxworks1.ld" ""
"-Tvxworks1.ld --hash-style=sysv" ""
"" {vxworks2.s}
{{readelf --segments vxworks2-static.sd}}
"vxworks2"}
@ -99,43 +100,57 @@ set armelftests_common_1 {
{"arm-rel31" "-static -T arm.ld" "" "" {arm-rel31.s}
{{objdump -s arm-rel31.d}}
"arm-rel31"}
{"arm-rel32" "-shared -T arm-dyn.ld" "" "" {arm-rel32.s}
{"arm-rel32" "-shared -T arm-dyn.ld --hash-style=sysv" "" "" {arm-rel32.s}
{{objdump -Rsj.data arm-rel32.d}}
"arm-rel32"}
{"arm-call" "--no-fix-arm1176 -static -T arm.ld" "" "-meabi=4" {arm-call1.s arm-call2.s}
{{objdump -d arm-call.d}}
"arm-call"}
{"TLS shared library" "-shared -T arm-lib.ld" "" "" {tls-lib.s}
{"TLS shared library" "-shared -T arm-lib.ld --hash-style=sysv" ""
"" {tls-lib.s}
{{objdump -fdw tls-lib.d} {objdump -Rw tls-lib.r}}
"tls-lib.so"}
{"TLS dynamic application" "-T arm-dyn.ld tmpdir/tls-lib.so" "" "" {tls-app.s}
{"TLS dynamic application"
"-T arm-dyn.ld --hash-style=sysv tmpdir/tls-lib.so" "" "" {tls-app.s}
{{objdump -fdw tls-app.d} {objdump -Rw tls-app.r}}
"tls-app"}
{"TLS gnu shared library got" "-shared -T arm-dyn.ld" "" "" {tls-gdesc-got.s}
{"TLS gnu shared library got"
"-shared -T arm-dyn.ld --hash-style=sysv" "" "" {tls-gdesc-got.s}
{{objdump "-fDR -j .got" tls-gdesc-got.d}}
"tls-lib2-got.so"}
{"TLS gnu GD to IE relaxation" "-static -T arm-dyn.ld" "" "" {tls-gdierelax.s}
{"TLS gnu GD to IE relaxation"
"-static -T arm-dyn.ld --hash-style=sysv" "" "" {tls-gdierelax.s}
{{objdump -fdw tls-gdierelax.d}}
"tls-app-rel-ie"}
{"TLS gnu GD to IE shared relaxation" "--no-fix-arm1176 -shared -T arm-dyn.ld" "" "" {tls-gdierelax2.s}
{"TLS gnu GD to IE shared relaxation"
"--no-fix-arm1176 -shared -T arm-dyn.ld --hash-style=sysv" ""
"" {tls-gdierelax2.s}
{{objdump -fdw tls-gdierelax2.d}}
"tls-app-rel-ie2"}
{"TLS gnu GD to LE relaxation" "-T arm-dyn.ld" "" "" {tls-gdlerelax.s}
{"TLS gnu GD to LE relaxation" "-T arm-dyn.ld --hash-style=sysv" ""
"" {tls-gdlerelax.s}
{{objdump -fdw tls-gdlerelax.d}}
"tls-app-rel-le"}
{"TLS mixed models shared lib" "-shared -T arm-dyn.ld" "" "" {tls-mixed.s}
{"TLS mixed models shared lib"
"-shared -T arm-dyn.ld --hash-style=sysv" "" "" {tls-mixed.s}
{{objdump -Rw tls-mixed.r}}
"tls-mixed.so"}
{"TLS descseq relaxation" "-T arm-dyn.ld" "" "" {tls-descrelax.s}
{"TLS descseq relaxation"
"-T arm-dyn.ld --hash-style=sysv" "" "" {tls-descrelax.s}
{{objdump -fdw tls-descrelax.d}}
"tls-descrelax"}
{"TLS descseq relaxation v7" "-T arm-dyn.ld" "" "" {tls-descrelax-v7.s}
{"TLS descseq relaxation v7"
"-T arm-dyn.ld --hash-style=sysv" "" "" {tls-descrelax-v7.s}
{{objdump -fdw tls-descrelax-v7.d}}
"tls-descrelax-v7"}
{"TLS descseq relaxation BE8" "-T arm-dyn.ld -EB --be8" "" "-mbig-endian" {tls-descrelax-be8.s}
{"TLS descseq relaxation BE8"
"-T arm-dyn.ld --hash-style=sysv -EB --be8" ""
"-mbig-endian" {tls-descrelax-be8.s}
{{objdump -fdw tls-descrelax-be8.d}}
"tls-descrelax-be8"}
{"TLS descseq relaxation BE32" "-T arm-dyn.ld -EB" "" "-mbig-endian" {tls-descrelax-be32.s}
{"TLS descseq relaxation BE32"
"-T arm-dyn.ld --hash-style=sysv -EB" ""
"-mbig-endian" {tls-descrelax-be32.s}
{{objdump -fdw tls-descrelax-be32.d}}
"tls-descrelax-be32"}
{"TLS local PIC symbol static link" "-T arm.ld" "" "" {tls-local-static.s}
@ -229,7 +244,7 @@ set armelftests_common_3 {
{"EABI ABI flags ld -r" "-r" "" "-mfloat-abi=soft -meabi=5" {eabi-soft-float.s}
{{readelf -h eabi-soft-float-r.d}}
"eabi-soft-float-r.o"}
{"PC-relative in -shared" "-shared" ""
{"PC-relative in -shared" "-shared --hash-style=sysv" ""
"" {pcrel-shared.s}
{{readelf -dr pcrel-shared.rd}}
"pcrel-shared.so"}
@ -267,7 +282,8 @@ set armelftests_nonacl {
{"jump19" "-static -T arm.ld" "" "" {jump19.s}
{{objdump -dr jump19.d}}
"jump19"}
{"Thumb and -gc-sections" "-shared -T arm-dyn.ld" "" "" {gc-thumb-lib.s}
{"Thumb and -gc-sections"
"-shared -T arm-dyn.ld --hash-style=sysv" "" "" {gc-thumb-lib.s}
{}
"gc-thumb-lib.so"}
{"Thumb and -gc-sections" "-pie -T arm.ld -gc-sections tmpdir/gc-thumb-lib.so" "" "" {gc-thumb.s}
@ -294,32 +310,40 @@ set armelftests_nonacl {
{"Non-pcrel function reference" "tmpdir/arm-lib.so" "" "" {arm-app-abs32.s}
{{objdump -fdw arm-app-abs32.d} {objdump -Rw arm-app-abs32.r}}
"arm-app-abs32"}
{"Thumb shared library with ARM entry points" "-shared -T arm-lib.ld" "" "-mthumb-interwork"
{mixed-lib.s}
{"Thumb shared library with ARM entry points"
"-shared -T arm-lib.ld --hash-style=sysv" ""
"-mthumb-interwork" {mixed-lib.s}
{{objdump -fdw armthumb-lib.d} {readelf -Ds armthumb-lib.sym}}
"armthumb-lib.so"}
{"Mixed ARM/Thumb shared library" "-shared -T arm-lib.ld -use-blx" "" ""
{mixed-lib.s}
{"Mixed ARM/Thumb shared library"
"-shared -T arm-lib.ld --hash-style=sysv -use-blx" ""
"" {mixed-lib.s}
{{objdump -fdw mixed-lib.d} {objdump -Rw mixed-lib.r}
{readelf -Ds mixed-lib.sym}}
"mixed-lib.so"}
{"Mixed ARM/Thumb dynamic application" "tmpdir/mixed-lib.so -T arm-dyn.ld" "" ""
{mixed-app.s}
{"Mixed ARM/Thumb dynamic application"
"tmpdir/mixed-lib.so -T arm-dyn.ld --hash-style=sysv" ""
"" {mixed-app.s}
{{objdump -fdw mixed-app.d} {objdump -Rw mixed-app.r}
{readelf -Ds mixed-app.sym}}
"mixed-app"}
{"Mixed ARM/Thumb arch5 dynamic application" "tmpdir/mixed-lib.so -T arm-dyn.ld --use-blx" "" ""
{mixed-app.s}
{"Mixed ARM/Thumb arch5 dynamic application"
"tmpdir/mixed-lib.so -T arm-dyn.ld --hash-style=sysv --use-blx" ""
"" {mixed-app.s}
{{objdump -fdw mixed-app-v5.d} {objdump -Rw mixed-app.r}
{readelf -Ds mixed-app.sym}}
"mixed-app-v5"}
{"Using Thumb lib by another lib" "-shared tmpdir/mixed-lib.so" "" "" {use-thumb-lib.s}
{{readelf -Ds use-thumb-lib.sym}}
"use-thumb-lib.so"}
{"TLS gnu shared library inlined trampoline" "--no-fix-arm1176 -shared -T arm-dyn.ld" "" "" {tls-descseq.s}
{"TLS gnu shared library inlined trampoline"
"--no-fix-arm1176 -shared -T arm-dyn.ld --hash-style=sysv" ""
"" {tls-descseq.s}
{{objdump -fdw tls-descseq.d} {objdump -Rw tls-descseq.r}}
"tls-lib2inline.so"}
{"TLS shared library gdesc local" "--no-fix-arm1176 -shared -T arm-dyn.ld" "" "" {tls-lib-loc.s}
{"TLS shared library gdesc local"
"--no-fix-arm1176 -shared -T arm-dyn.ld --hash-style=sysv" ""
"" {tls-lib-loc.s}
{{objdump -fdw tls-lib-loc.d} {objdump -Rw tls-lib-loc.r}}
"tls-lib-loc.so"}
}
@ -555,30 +579,35 @@ set armeabitests_nonacl {
{{objdump -d farcall-mix2.d}}
"farcall-mix2"}
{"Mixed ARM/Thumb dynamic application with farcalls" "tmpdir/mixed-lib.so -T arm-dyn.ld --section-start .far_arm=0x2100000 --section-start .far_thumb=0x2200000" "" ""
{farcall-mixed-app.s}
{"Mixed ARM/Thumb dynamic application with farcalls"
"tmpdir/mixed-lib.so -T arm-dyn.ld --hash-style=sysv --section-start .far_arm=0x2100000 --section-start .far_thumb=0x2200000" ""
"" {farcall-mixed-app.s}
{{objdump -fdw farcall-mixed-app.d} {objdump -Rw farcall-mixed-app.r}
{readelf -Ds farcall-mixed-app.sym}}
"farcall-mixed-app"}
{"Mixed ARM/Thumb arch5 dynamic application with farcalls" "tmpdir/mixed-lib.so -T arm-dyn.ld --use-blx --section-start .far_arm=0x2100000 --section-start .far_thumb=0x2200000" "" ""
{farcall-mixed-app.s}
{"Mixed ARM/Thumb arch5 dynamic application with farcalls"
"tmpdir/mixed-lib.so -T arm-dyn.ld --hash-style=sysv --use-blx --section-start .far_arm=0x2100000 --section-start .far_thumb=0x2200000" ""
"" {farcall-mixed-app.s}
{{objdump -fdw farcall-mixed-app-v5.d} {objdump -Rw farcall-mixed-app.r}
{readelf -Ds farcall-mixed-app.sym}}
"farcall-mixed-app-v5"}
{"Mixed ARM/Thumb2 dynamic application with farcalls" "tmpdir/mixed-lib.so -T arm-dyn.ld --section-start .mid_thumb=0x10081c0 --section-start .far_arm=0x2100000 --section-start .far_thumb=0x2200000" "" ""
{farcall-mixed-app2.s}
{"Mixed ARM/Thumb2 dynamic application with farcalls"
"tmpdir/mixed-lib.so -T arm-dyn.ld --hash-style=sysv --section-start .mid_thumb=0x10081c0 --section-start .far_arm=0x2100000 --section-start .far_thumb=0x2200000" ""
"" {farcall-mixed-app2.s}
{{objdump -fdw farcall-mixed-app2.d} {objdump -Rw farcall-mixed-app2.r}
{readelf -Ds farcall-mixed-app2.sym}}
"farcall-mixed-app2"}
{"Mixed ARM/Thumb shared library with long branches (v4t)" "-shared -T arm-lib.ld" "" "-march=armv4t"
{farcall-mixed-lib1.s farcall-mixed-lib2.s}
{"Mixed ARM/Thumb shared library with long branches (v4t)"
"-shared -T arm-lib.ld --hash-style=sysv" ""
"-march=armv4t" {farcall-mixed-lib1.s farcall-mixed-lib2.s}
{{objdump -fdw farcall-mixed-lib-v4t.d}}
"farcall-mixed-lib.so"}
{"Mixed ARM/Thumb shared library with long branches (v5t)" "--no-fix-arm1176 -shared -T arm-lib.ld" "" "-march=armv5t"
{farcall-mixed-lib1.s farcall-mixed-lib2.s}
{"Mixed ARM/Thumb shared library with long branches (v5t)"
"--no-fix-arm1176 -shared -T arm-lib.ld --hash-style=sysv" ""
"-march=armv5t" {farcall-mixed-lib1.s farcall-mixed-lib2.s}
{{objdump -fdw farcall-mixed-lib.d}}
"farcall-mixed-lib.so"}
@ -773,19 +802,29 @@ set armeabitests_nonacl {
{{objdump -d farcall-group-limit.d}}
"farcall-group-limit"}
{"TLS gnu shared library" "--no-fix-arm1176 -shared -T arm-dyn.ld" "" "" {tls-gdesc.s}
{"TLS gnu shared library"
"--no-fix-arm1176 -shared -T arm-dyn.ld --hash-style=sysv" ""
"" {tls-gdesc.s}
{{objdump -fdw tls-gdesc.d} {objdump -Rw tls-gdesc.r}}
"tls-lib2.so"}
{"TLS gnu shared library non-lazy" "-z now -shared -T arm-dyn.ld" "" "" {tls-gdesc.s}
{"TLS gnu shared library non-lazy"
"-z now -shared -T arm-dyn.ld --hash-style=sysv" ""
"" {tls-gdesc.s}
{{readelf "-x .got" tls-gdesc-nlazy.g}}
"tls-lib2-nlazy.so"}
{"TLS long plt library" "-shared -T arm-dyn.ld --section-start .foo=0x4001000" "" "" {tls-longplt-lib.s}
{"TLS long plt library"
"-shared -T arm-dyn.ld --hash-style=sysv --section-start .foo=0x4001000" ""
"" {tls-longplt-lib.s}
{{objdump -fdw tls-longplt-lib.d}}
"tls-longplt-lib.so"}
{"TLS long plt" "-T arm-dyn.ld --section-start .foo=0x4001000 tmpdir/tls-longplt-lib.so" "" "" {tls-longplt.s}
{"TLS long plt"
"-T arm-dyn.ld --hash-style=sysv --section-start .foo=0x4001000 tmpdir/tls-longplt-lib.so" ""
"" {tls-longplt.s}
{{objdump -fdw tls-longplt.d}}
"tls-longplt"}
{"TLS thumb1" "-shared -T arm-dyn.ld --section-start .foo=0x4001000" "" "" {tls-thumb1.s}
{"TLS thumb1"
"-shared -T arm-dyn.ld --hash-style=sysv --section-start .foo=0x4001000" ""
"" {tls-thumb1.s}
{{objdump -fdw tls-thumb1.d}}
"tls-thumb1"}
{"Cortex-A8 erratum fix, b.w"
@ -867,7 +906,7 @@ set armeabitests_nonacl {
{{objdump -dr cortex-a8-fix-blx-plt.d}}
"cortex-a8-fix-blx-plt"}
{"Cortex-A8 erratum fix, relocate bl.w to PLT"
"-EL --section-start=.plt=0x8e00 -Ttext=0x8f00 --fix-cortex-a8 -shared" ""
"-EL --section-start=.plt=0x8e00 -Ttext=0x8f00 --fix-cortex-a8 -shared --hash-style=sysv" ""
"-EL" {cortex-a8-thumb-target.s cortex-a8-fix-bl-rel.s}
{{objdump -dr cortex-a8-fix-bl-rel-plt.d}}
"cortex-a8-fix-bl-rel-thumb"}
@ -962,14 +1001,17 @@ set armeabitests_nonacl {
"" {long-plt-format.s}
{{objdump "-d -j .plt" long-plt-format.d}}
"long-plt-format"}
{"IFUNC and TLS descriptor shared library" "-shared -T arm-lib.ld --version-script=ifunc-gdesc.ver" "" "" {ifunc-gdesc.s}
{"IFUNC and TLS descriptor shared library"
"-shared -T arm-lib.ld --hash-style=sysv --version-script=ifunc-gdesc.ver" ""
"" {ifunc-gdesc.s}
{{objdump "-Rw" ifunc-gdesc.r}}
"ifunc-gdesc.so"}
{"arm-pic-veneer" "-static -T arm.ld --pic-veneer" "" "" {arm-pic-veneer.s}
{{objdump -d arm-pic-veneer.d}}
"arm-pic-veneer"}
{"Preempt Thumb symbol" "tmpdir/mixed-lib.so -T arm-dyn.ld --use-blx" "" ""
{preempt-app.s}
{"Preempt Thumb symbol"
"tmpdir/mixed-lib.so -T arm-dyn.ld --hash-style=sysv --use-blx" ""
"" {preempt-app.s}
{{readelf -Ds preempt-app.sym}}
"preempt-app"}
}

View File

@ -1,6 +1,6 @@
#source: dso-1.s
#as: --pic --no-underscore --march=v32 --em=criself
#ld: --shared -m crislinux
#ld: --shared -m crislinux --hash-style=sysv
#objdump: -p -h
# Sanity check; just an empty GOT.

View File

@ -1,7 +1,7 @@
#source: dso-1.s
#source: dso-2.s
#as: --pic --no-underscore --em=criself
#ld: --shared -m crislinux --version-script $srcdir/$subdir/hide1
#ld: --shared -m crislinux --hash-style=sysv --version-script $srcdir/$subdir/hide1
#readelf: -S -s -r
# Use "dsofn" from dso-1 in a GOTPLT reloc, but hide it in a

View File

@ -2,7 +2,7 @@
#source: expdref1.s
#source: expdyn1.s
#as: --pic --no-underscore --em=criself -I$srcdir/$subdir
#ld: --shared -m crislinux --gc-sections
#ld: --shared -m crislinux --gc-sections --hash-style=sysv
#objdump: -s -t -R -p -T
# Exercise PIC relocs through changed GC sweep function.

View File

@ -1,7 +1,7 @@
#source: pic-gc-73.s
#source: expdyn1.s
#as: --pic --no-underscore --em=criself -I$srcdir/$subdir
#ld: --shared -m crislinux --gc-sections
#ld: --shared -m crislinux --gc-sections --hash-style=sysv
#objdump: -s -t -R -p -T
# Left-over code coverage case from pic-gc-72; local symbol.

View File

@ -1,5 +1,5 @@
#as: --pic --no-underscore --em=criself
#ld: --shared -m crislinux
#ld: --shared -m crislinux --hash-style=sysv
#source: tls-gd-1.s
#source: tls128.s
#source: tls-x.s

View File

@ -1,5 +1,5 @@
#as: --pic --no-underscore --em=criself
#ld: --shared -m crislinux
#ld: --shared -m crislinux --hash-style=sysv
#source: tls-gd-1.s
#source: tls128g.s
#source: tls-hx.s

View File

@ -1,5 +1,5 @@
#as: --pic --no-underscore --em=criself
#ld: --shared -m crislinux
#ld: --shared -m crislinux --hash-style=sysv
#source: tls-gd-2.s
#source: tls128g.s
#source: tls-x.s

View File

@ -1,5 +1,5 @@
#as: --pic --no-underscore --em=criself
#ld: --shared -m crislinux
#ld: --shared -m crislinux --hash-style=sysv
#source: tls-gd-2.s
#source: tls128g.s
#source: tls-hx.s

View File

@ -1,5 +1,5 @@
#as: --pic --no-underscore --em=criself
#ld: --shared -m crislinux
#ld: --shared -m crislinux --hash-style=sysv
#source: tls-ie-10.s
#source: tls128g.s
#source: tls-x.s

View File

@ -1,5 +1,5 @@
#as: --pic --no-underscore --em=criself
#ld: --shared -m crislinux
#ld: --shared -m crislinux --hash-style=sysv
#source: tls-ie-11.s
#source: tls128g.s
#source: tls-x1x2.s

View File

@ -1,5 +1,5 @@
#as: --pic --no-underscore --em=criself
#ld: --shared -m crislinux
#ld: --shared -m crislinux --hash-style=sysv
#source: tls-ie-8.s
#source: tls128g.s
#source: tls-x.s

View File

@ -1,5 +1,5 @@
#as: --pic --no-underscore --em=criself
#ld: --shared -m crislinux
#ld: --shared -m crislinux --hash-style=sysv
#source: tls-ie-9.s
#source: tls128g.s
#source: tls-x1x2.s

View File

@ -1,5 +1,5 @@
#as: --pic --no-underscore --em=criself
#ld: --shared -m crislinux
#ld: --shared -m crislinux --hash-style=sysv
#source: tls-ld-4.s
#source: tls128g.s
#source: tls-hx.s

View File

@ -1,5 +1,5 @@
#as: --pic --no-underscore --em=criself
#ld: --shared -m crislinux
#ld: --shared -m crislinux --hash-style=sysv
#source: tls-ld-5.s
#source: tls128g.s
#source: tls-hx1x2.s

View File

@ -1,5 +1,5 @@
#as: --pic --no-underscore --em=criself -I$srcdir/$subdir
#ld: --shared -m crislinux
#ld: --shared -m crislinux --hash-style=sysv
#source: tls128g.s
#source: tls-ld-6.s
#source: tls-hx.s

View File

@ -1,5 +1,5 @@
#as: --pic --no-underscore --em=criself
#ld: --shared -m crislinux
#ld: --shared -m crislinux --hash-style=sysv
#source: tls-ld-7.s
#source: tls128g.s
#source: tls-hx1x2.s

View File

@ -6,7 +6,7 @@
#source: tls-z.s
#source: tls-hx1x2.s
#as: --pic --no-underscore --em=criself
#ld: --shared -m crislinux
#ld: --shared -m crislinux --hash-style=sysv
#objdump: -s -t -R -p -T
# Check that we have proper NPTL/TLS markings and GOT for two

View File

@ -6,7 +6,7 @@
#source: tls-z.s
#source: tls-hx1x2.s
#as: --pic --no-underscore --em=criself
#ld: --shared -m crislinux
#ld: --shared -m crislinux --hash-style=sysv
#objdump: -s -t -R -p -T
# Check that we have proper NPTL/TLS markings and GOT for two

View File

@ -4,7 +4,7 @@
#source: tls-ldgd-14.s
#source: tls-hx1x2.s
#as: --pic --no-underscore --em=criself
#ld: --shared -m crislinux tmpdir/tls-dso-xz-1.so
#ld: --shared -m crislinux --hash-style=sysv tmpdir/tls-dso-xz-1.so
#objdump: -s -h -t -T -R -r -p
# Check that we have proper NPTL/TLS markings and GOT for two

View File

@ -4,7 +4,7 @@
#source: tls-ldgd-15.s
#source: tls-hx1x2.s
#as: --pic --no-underscore --em=criself
#ld: --shared -m crislinux tmpdir/tls-dso-xz-1.so
#ld: --shared -m crislinux --hash-style=sysv tmpdir/tls-dso-xz-1.so
#objdump: -s -h -t -T -R -r -p
# Check that we have proper NPTL/TLS markings and GOT for two

View File

@ -1,6 +1,6 @@
#source: tls-local-54.s
#as: --pic --no-underscore --em=criself -I$srcdir/$subdir
#ld: --shared -m crislinux
#ld: --shared -m crislinux --hash-style=sysv
#objdump: -s -t -R -p -T
# A DSO with a R_CRIS_32_GOT_GD against a local symbol.

View File

@ -1,7 +1,7 @@
#source: tls-x.s
#source: tls-local-59.s
#as: --pic --no-underscore --em=criself -I$srcdir/$subdir
#ld: -m crislinux --shared
#ld: -m crislinux --shared --hash-style=sysv
#objdump: -s -t -r -p -R -T
# A DSO with a R_CRIS_32_GOT_GD, a R_CRIS_16_GOT_GD, a

View File

@ -1,6 +1,6 @@
#source: tls-local-59.s
#as: --pic --no-underscore --em=criself -I$srcdir/$subdir
#ld: -m crislinux --shared
#ld: -m crislinux --shared --hash-style=sysv
#objdump: -s -t -r -p -R -T
# A DSO with a R_CRIS_32_GOT_GD, a R_CRIS_16_GOT_GD, a

View File

@ -1,6 +1,6 @@
#source: weakhid.s
#as: --pic --no-underscore --em=criself
#ld: --shared -m crislinux -z nocombreloc
#ld: --shared -m crislinux -z nocombreloc --hash-style=sysv
#objdump: -s -R -T
# Check that .weak and .weak .hidden object references are handled

View File

@ -9,6 +9,7 @@ SECTIONS
.rela.dyn : { *(.rela.*) }
.interp : { *(.interp) }
.hash : { *(.hash) }
.gnu.hash : { *(.gnu.hash) }
.dynsym : { *(.dynsym) }
.dynstr : { *(.dynstr) }
. = 0x76540000;

View File

@ -104,7 +104,7 @@ if { [check_shared_lib_support] } then {
setup_xfail "tic6x-*-*"
run_ld_link_tests {
{"Build shared library for next test"
"-shared" "" "" "note-3.s" {} "note-3.so" }
"-shared --hash-style=sysv" "" "" "note-3.s" {} "note-3.so" }
{"Link using broken linker script"
"--script note-3.t tmpdir/note-3.so" "" "" ""
{ { ld "note-3.l" } }

View File

@ -1,5 +1,5 @@
#source: linkinfo1.s
#ld: -shared
#ld: -shared --hash-style=sysv
#readelf: -SW
#target: x86_64-* i?86-*

View File

@ -1,5 +1,5 @@
#source: linkinfo1.s
#ld: -shared
#ld: -shared --hash-style=sysv
#objcopy_linked_file: --strip-debug
#readelf: -SW
#target: x86_64-* i?86-*

View File

@ -1,5 +1,5 @@
#source: pr19617.s
#ld: -E --no-dynamic-linker
#ld: -E --no-dynamic-linker --hash-style=sysv
#readelf : --dyn-syms --wide
#target: *-*-linux* *-*-gnu* *-*-solaris*

View File

@ -1,6 +1,7 @@
SECTIONS
{
.hash : { *(.hash) }
.gnu.hash : { *(.gnu.hash) }
.dynsym : { *(.dynsym) }
.dynstr : { *(.dynstr) }
.gnu.version : { *(.gnu.version) }

View File

@ -8,6 +8,7 @@ SECTIONS
}
.dynamic : { *(.dynamic) }
.hash : { *(.hash) }
.gnu.hash : { *(.gnu.hash) }
.dynsym : { *(.dynsym) }
.dynstr : { *(.dynstr) }
.gnu.version : { *(.gnu.version) }

View File

@ -1,6 +1,7 @@
SECTIONS
{
.hash : { *(.hash) }
.gnu.hash : { *(.gnu.hash) }
.dynsym : { *(.dynsym) }
.dynstr : { *(.dynstr) }
.rel.dyn : { *(.rel.dyn) }

View File

@ -8,6 +8,7 @@ SECTIONS
}
.dynamic : { *(.dynamic) }
.hash : { *(.hash) }
.gnu.hash : { *(.gnu.hash) }
.dynsym : { *(.dynsym) }
.dynstr : { *(.dynstr) }
.gnu.version : { *(.gnu.version) }

View File

@ -13,4 +13,5 @@ SECTIONS
.dynstr : { *(.dynstr) }
.dynamic : { *(.dynamic) }
.hash : { *(.hash) }
.gnu.hash : { *(.gnu.hash) }
}

View File

@ -9,4 +9,5 @@ SECTIONS
.dynstr : { *(.dynstr) }
.dynamic : { *(.dynamic) }
.hash : { *(.hash) }
.gnu.hash : { *(.gnu.hash) }
}

View File

@ -9,4 +9,5 @@ SECTIONS
.dynstr : { *(.dynstr) }
.dynamic : { *(.dynamic) }
.hash : { *(.hash) }
.gnu.hash : { *(.gnu.hash) }
}

View File

@ -44,7 +44,7 @@ if [check_shared_lib_support] {
[list \
"readelf version information" \
"$LFLAGS --no-dynamic-linker -e 0 --export-dynamic -T ver_def.ld\
--version-script=ver_def.ver" \
--hash-style=sysv --version-script=ver_def.ver" \
"" "" \
{ver_def.s} \
[list [list readelf --version-info ver_def$DUMP.vd]] \

View File

@ -5,10 +5,10 @@
#notarget: "ia64-*-*" "alpha*"
# Disabled on alpha because the entry point may be above 4GB but the stabs
# value on 32 bits.
# value only 32 bits.
#...
\[[0-9 ][0-9]\] \.stab +PROGBITS +0+ [0-9a-f]+ [0-9a-f]+ [0-9a-f]+ +[1-9]+ +0.*
.* \.stab +PROGBITS +0+ [0-9a-f]+ [0-9a-f]+ [0-9a-f]+ +[1-9][0-9]* +0.*
#...
\[[0-9 ][0-9]\] \.stabstr +STRTAB +0+ [0-9a-f]+ [0-9a-f]+ 00 +0 +0.*
.* \.stabstr +STRTAB +0+ [0-9a-f]+ [0-9a-f]+ 00 +0 +0.*
#...

View File

@ -377,7 +377,7 @@ proc visibility_run {visibility} {
visibility_test $visibility vnp "visibility ($visibility) (non PIC, load offset)" \
mainnp.o sh1np.o sh2np.o elfvsb \
"-T $srcdir/$subdir/elf-offset.ld"
"-Wl,-T,$srcdir/$subdir/elf-offset.ld,--hash-style=sysv"
} }
# Now compile the code using -fpic.

View File

@ -1,5 +1,5 @@
#source: hidden2.s
#ld: -shared -T hidden2.ld
#ld: -shared -T hidden2.ld --hash-style=sysv
#readelf: -Ds
# It is also ok to remove this symbol, but we currently make it local.

View File

@ -1,7 +1,7 @@
#name: FRV uClinux PIC relocs to weak undefined symbols, pie linking
#source: fdpic6.s
#objdump: -DR -j .text -j .data -j .got -j .plt
#ld: -pie --defsym WD1=D6
#ld: -pie --hash-style=sysv --defsym WD1=D6
.*: file format elf.*frv.*

View File

@ -1,7 +1,7 @@
#name: FRV uClinux PIC relocs to (mostly) global symbols, shared linking
#source: fdpic2.s
#objdump: -DR -j .text -j .data -j .got -j .plt
#ld: -shared --version-script fdpic2min.ldv
#ld: -shared --hash-style=sysv --version-script fdpic2min.ldv
.*: file format elf.*frv.*

View File

@ -1,7 +1,7 @@
#name: FRV uClinux PIC relocs to undefined symbols, shared linking
#source: fdpic5.s
#objdump: -DRz -j .text -j .data -j .got -j .plt
#ld: -shared
#ld: -shared --hash-style=sysv
.*: file format elf.*frv.*

View File

@ -1,7 +1,7 @@
#name: FRV uClinux PIC relocs to weak undefined symbols, shared linking
#source: fdpic6.s
#objdump: -DR -j .text -j .data -j .got -j .plt
#ld: -shared --defsym WD1=D6 --version-script fdpic6.ldv
#ld: -shared --hash-style=sysv --defsym WD1=D6 --version-script fdpic6.ldv
.*: file format elf.*frv.*

View File

@ -1,7 +1,7 @@
#name: FRV uClinux PIC relocs to (mostly) global symbols with addends, shared linking
#source: fdpic8.s
#objdump: -DR -j .text -j .data -j .got -j .plt
#ld: -shared --version-script fdpic8min.ldv
#ld: -shared --hash-style=sysv --version-script fdpic8min.ldv
.*: file format elf.*frv.*

View File

@ -1,7 +1,7 @@
#name: FRV uClinux PIC relocs to forced-local symbols, shared linking
#source: fdpic2.s
#objdump: -DR -j .text -j .data -j .got -j .plt
#ld: -shared --version-script fdpic2.ldv
#ld: -shared --hash-style=sysv --version-script fdpic2.ldv
.*: file format elf.*frv.*

View File

@ -1,7 +1,7 @@
#name: FRV uClinux PIC relocs to forced-local symbols with addends, shared linking
#source: fdpic8.s
#objdump: -DR -j .text -j .data -j .got -j .plt
#ld: -shared --version-script fdpic8.ldv
#ld: -shared --hash-style=sysv --version-script fdpic8.ldv
.*: file format elf.*frv.*

View File

@ -1,7 +1,7 @@
#name: FRV TLS relocs with addends, dynamic linking
#source: tls-2.s
#objdump: -DR -j .text -j .got -j .plt
#ld: tmpdir/tls-1-dep.so
#ld: --hash-style=sysv tmpdir/tls-1-dep.so
.*: file format elf.*frv.*

View File

@ -24,23 +24,24 @@
if {[istarget "i?86-*-vxworks"]} {
set i386tests {
{"VxWorks shared library test 1" "-shared -Tvxworks1.ld" ""
{"VxWorks shared library test 1"
"-shared -Tvxworks1.ld --hash-style=sysv" ""
"" {vxworks1-lib.s}
{{readelf --relocs vxworks1-lib.rd} {objdump -dr vxworks1-lib.dd}
{readelf --symbols vxworks1-lib.nd} {readelf -d vxworks1-lib.td}}
"libvxworks1.so"}
{"VxWorks executable test 1 (dynamic)" \
"tmpdir/libvxworks1.so -Tvxworks1.ld -q --force-dynamic" ""
"tmpdir/libvxworks1.so -Tvxworks1.ld --hash-style=sysv -q --force-dynamic" ""
"" {vxworks1.s}
{{readelf --relocs vxworks1.rd} {objdump -dr vxworks1.dd}}
"vxworks1"}
{"VxWorks executable test 2 (dynamic)" \
"-Tvxworks1.ld -q --force-dynamic" ""
"-Tvxworks1.ld --hash-style=sysv -q --force-dynamic" ""
"" {vxworks2.s}
{{readelf --segments vxworks2.sd}}
"vxworks2"}
{"VxWorks executable test 2 (static)"
"-Tvxworks1.ld" ""
"-Tvxworks1.ld --hash-style=sysv" ""
"" {vxworks2.s}
{{readelf --segments vxworks2-static.sd}}
"vxworks2"}
@ -128,20 +129,20 @@ set i386tests {
"-shared -melf_i386 tmpdir/libpltlib.so" "" "--32" {plt-pic.s}
{{objdump -drj.plt plt-pic.pd}} "libplt-pic.so"}
{"TLS -fpic -shared transitions"
"-shared -melf_i386 --no-ld-generated-unwind-info" ""
"-shared -melf_i386 --no-ld-generated-unwind-info --hash-style=sysv" ""
"--32" {tlspic1.s tlspic2.s}
{{readelf -Ssrl tlspic.rd} {objdump -drj.text tlspic.dd}
{objdump -sj.got tlspic.sd} {objdump -sj.tdata tlspic.td}}
"libtlspic.so"}
{"TLS -fpic -shared transitions without PLT"
"-shared -melf_i386 --no-ld-generated-unwind-info" ""
"-shared -melf_i386 --no-ld-generated-unwind-info --hash-style=sysv" ""
"-mrelax-relocations=yes --32"
{tlspic3.s tlspic2.s}
{{readelf -Ssrl tlspic2.rd} {objdump -drj.text tlspic2.dd}
{objdump -sj.got tlspic2.sd} {objdump -sj.tdata tlspic2.td}}
"libtlspic2.so"}
{"TLS descriptor -fpic -shared transitions"
"-shared -melf_i386 --no-ld-generated-unwind-info" ""
"-shared -melf_i386 --no-ld-generated-unwind-info --hash-style=sysv" ""
"--32" {tlsdesc.s tlspic2.s}
{{readelf -Ssrl tlsdesc.rd} {objdump -drj.text tlsdesc.dd}
{objdump "-s -j.got -j.got.plt" tlsdesc.sd} {objdump -sj.tdata tlsdesc.td}}
@ -149,31 +150,31 @@ set i386tests {
{"Helper shared library" "-shared -melf_i386" ""
"--32" {tlslib.s} {} "libtlslib.so"}
{"TLS -fpic and -fno-pic exec transitions"
"-melf_i386 tmpdir/libtlslib.so --no-ld-generated-unwind-info" ""
"-melf_i386 tmpdir/libtlslib.so --no-ld-generated-unwind-info --hash-style=sysv" ""
"--32" {tlsbinpic.s tlsbin.s}
{{readelf -Ssrl tlsbin.rd} {objdump -drj.text tlsbin.dd}
{objdump -sj.got tlsbin.sd} {objdump -sj.tdata tlsbin.td}}
"tlsbin"}
{"TLS -fpic and -fno-pic exec transitions without PLT"
"-melf_i386 tmpdir/libtlslib.so --no-ld-generated-unwind-info" ""
"-melf_i386 tmpdir/libtlslib.so --no-ld-generated-unwind-info --hash-style=sysv" ""
"-mrelax-relocations=yes --32"
{tlsbinpic2.s tlsbin.s}
{{readelf -Ssrl tlsbin2.rd} {objdump -drj.text tlsbin2.dd}
{objdump -sj.got tlsbin2.sd} {objdump -sj.tdata tlsbin2.td}}
"tlsbin2"}
{"TLS descriptor -fpic and -fno-pic exec transitions"
"-melf_i386 tmpdir/libtlslib.so --no-ld-generated-unwind-info" ""
"-melf_i386 tmpdir/libtlslib.so --no-ld-generated-unwind-info --hash-style=sysv" ""
"--32" {tlsbindesc.s tlsbin.s}
{{readelf -Ssrl tlsbindesc.rd} {objdump -drj.text tlsbindesc.dd}
{objdump -sj.got tlsbindesc.sd} {objdump -sj.tdata tlsbindesc.td}}
"tlsbindesc"}
{"TLS -fno-pic -shared"
"-shared -melf_i386 --no-ld-generated-unwind-info" ""
"-shared -melf_i386 --no-ld-generated-unwind-info --hash-style=sysv" ""
"--32" {tlsnopic1.s tlsnopic2.s}
{{readelf -Ssrl tlsnopic.rd} {objdump -drj.text tlsnopic.dd}
{objdump -sj.got tlsnopic.sd}} "libtlsnopic.so"}
{"TLS with global dynamic and descriptors"
"-shared -melf_i386 --no-ld-generated-unwind-info" ""
"-shared -melf_i386 --no-ld-generated-unwind-info --hash-style=sysv" ""
"--32" {tlsgdesc.s}
{{readelf -Ssrl tlsgdesc.rd} {objdump -drj.text tlsgdesc.dd}}
"libtlsgdesc.so"}
@ -1271,7 +1272,7 @@ if { !([istarget "i?86-*-linux*"]
run_ld_link_tests [list \
[list \
"basic PLT generation (non-PIC, -z now)" \
"-z now -melf_i386 tmpdir/libpltlib.so" \
"-z now -melf_i386 --hash-style=sysv tmpdir/libpltlib.so" \
"" \
"--32" \
{plt2.s} \

View File

@ -1,5 +1,5 @@
#as: --32
#ld: -shared -m elf_i386
#ld: -shared -m elf_i386 --hash-style=sysv
#objdump: -dw
.*: +file format .*

View File

@ -1,6 +1,6 @@
#source: ibt-plt-2.s
#as: --32
#ld: -shared -m elf_i386 -z ibtplt
#ld: -shared -m elf_i386 -z ibtplt --hash-style=sysv
#objdump: -dw
.*: +file format .*

View File

@ -1,6 +1,6 @@
#source: ibt-plt-2.s
#as: --32
#ld: -shared -m elf_i386 -z ibt
#ld: -shared -m elf_i386 -z ibt --hash-style=sysv
#objdump: -dw
.*: +file format .*

View File

@ -1,6 +1,6 @@
#source: ibt-plt-3.s
#as: --32
#ld: -shared -m elf_i386 -z ibtplt
#ld: -shared -m elf_i386 -z ibtplt --hash-style=sysv
#objdump: -dw
.*: +file format .*

View File

@ -1,6 +1,6 @@
#source: ibt-plt-3.s
#as: --32
#ld: -shared -m elf_i386 -z ibtplt
#ld: -shared -m elf_i386 -z ibtplt --hash-style=sysv
#objdump: -dw
.*: +file format .*

View File

@ -12,6 +12,6 @@ SYMBOL TABLE:
Disassembly of section .text:
0+129 <_start>:
+129: 8d 80 00 e0 ff ff lea -0x2000\(%eax\),%eax
.* <_start>:
.*: 8d 80 00 e0 ff ff lea -0x2000\(%eax\),%eax
#pass

View File

@ -9,25 +9,25 @@
Disassembly of section .plt:
0+180 <.plt>:
.* <.plt>:
+[a-f0-9]+: ff b3 04 00 00 00 pushl 0x4\(%ebx\)
+[a-f0-9]+: ff a3 08 00 00 00 jmp \*0x8\(%ebx\)
+[a-f0-9]+: 00 00 add %al,\(%eax\)
...
0+190 <fn1@plt>:
.* <fn1@plt>:
+[a-f0-9]+: ff a3 0c 00 00 00 jmp \*0xc\(%ebx\)
+[a-f0-9]+: 68 00 00 00 00 push \$0x0
+[a-f0-9]+: e9 e0 ff ff ff jmp 180 <.plt>
+[a-f0-9]+: e9 e0 ff ff ff jmp .* <.plt>
0+1a0 <fn2@plt>:
.* <fn2@plt>:
+[a-f0-9]+: ff a3 10 00 00 00 jmp \*0x10\(%ebx\)
+[a-f0-9]+: 68 08 00 00 00 push \$0x8
+[a-f0-9]+: e9 d0 ff ff ff jmp 180 <.plt>
+[a-f0-9]+: e9 d0 ff ff ff jmp .* <.plt>
Disassembly of section .text:
0+1b0 <foo>:
+[a-f0-9]+: e8 db ff ff ff call 190 <fn1@plt>
+[a-f0-9]+: e9 e6 ff ff ff jmp 1a0 <fn2@plt>
.* <foo>:
+[a-f0-9]+: e8 db ff ff ff call .* <fn1@plt>
+[a-f0-9]+: e9 e6 ff ff ff jmp .* <fn2@plt>
#pass

View File

@ -9,7 +9,7 @@
Disassembly of section .plt:
0+c0 <.plt>:
.* <.plt>:
[ ]*[a-f0-9]+: ff b3 04 00 00 00 pushl 0x4\(%ebx\)
[ ]*[a-f0-9]+: ff a3 08 00 00 00 jmp \*0x8\(%ebx\)
[ ]*[a-f0-9]+: 00 00 add %al,\(%eax\)
@ -20,7 +20,7 @@ Disassembly of section .plt:
Disassembly of section .text:
0+e0 <_start>:
.* <_start>:
[ ]*[a-f0-9]+: 3b 80 f8 ff ff ff cmp -0x8\(%eax\),%eax
[ ]*[a-f0-9]+: ff a0 fc ff ff ff jmp \*-0x4\(%eax\)
[ ]*[a-f0-9]+: e8 df ff ff ff call d0 <.*>
[ ]*[a-f0-9]+: e8 df ff ff ff call .* <\.plt\+0x10>

View File

@ -9,8 +9,6 @@ Relocation section '\.rel\.dyn' at offset [0x0-9a-f]+ contains 1 entries:
Symbol table '\.dynsym' contains [0-9]+ entries:
+Num: +Value +Size Type +Bind +Vis +Ndx Name
#...
+[0-9]+: +[a-f0-9]+ +0 +NOTYPE +GLOBAL +DEFAULT +[0-9]+ +_start
#...
+[0-9]+: +[a-f0-9]+ +0 +NOTYPE +WEAK +DEFAULT +UND +func
#...

View File

@ -9,20 +9,20 @@
Disassembly of section .plt:
0+130 <.plt>:
.* <.plt>:
[ ]*[a-f0-9]+: ff b3 04 00 00 00 pushl 0x4\(%ebx\)
[ ]*[a-f0-9]+: ff a3 08 00 00 00 jmp \*0x8\(%ebx\)
[ ]*[a-f0-9]+: 00 00 add %al,\(%eax\)
[ ]*[a-f0-9]+: 00 00 add %al,\(%eax\)
[ ]*[a-f0-9]+: ff a3 0c 00 00 00 jmp \*0xc\(%ebx\)
[ ]*[a-f0-9]+: 68 00 00 00 00 push \$0x0
[ ]*[a-f0-9]+: e9 00 00 00 00 jmp 150 <_start>
[ ]*[a-f0-9]+: e9 00 00 00 00 jmp .* <_start>
Disassembly of section .text:
0+150 <_start>:
.* <_start>:
[ ]*[a-f0-9]+: 3b 80 fc ff ff ff cmp -0x4\(%eax\),%eax
[ ]*[a-f0-9]+: ff a0 fc ff ff ff jmp \*-0x4\(%eax\)
[ ]*[a-f0-9]+: e8 df ff ff ff call 140 <.*>
[ ]*[a-f0-9]+: e8 df ff ff ff call .* <\.plt\+0x10>
[ ]*[a-f0-9]+: 3d 00 00 00 00 cmp \$0x0,%eax
[ ]*[a-f0-9]+: e8 fc ff ff ff call 167 <.*>
[ ]*[a-f0-9]+: e8 fc ff ff ff call .* <_start\+0x17>

View File

@ -1,6 +1,6 @@
#name: PR ld/20830 (.plt.got)
#as: --32
#ld: -melf_i386 -shared -z relro --ld-generated-unwind-info
#ld: -melf_i386 -shared -z relro --ld-generated-unwind-info --hash-style=sysv
#objdump: -dw -Wf
.*: +file format .*

View File

@ -37,7 +37,7 @@ if { !([istarget "ia64-*-elf*"]
# readelf: Apply readelf options on result. Compare with regex (last arg).
set ia64tests {
{"TLS -fpic -shared" "-shared" ""
{"TLS -fpic -shared" "-shared --hash-style=sysv" ""
"-mtune=itanium1" {tlspic1.s tlspic2.s}
{{readelf -WSsrl tlspic.rd} {objdump -drj.text tlspic.dd}
{objdump -sj.got tlspic.sd} {objdump -sj.tdata tlspic.td}}
@ -45,7 +45,8 @@ set ia64tests {
{"Helper shared library" "-shared" ""
"" {tlslib.s} {} "libtlslib.so"}
{"TLS -fpic and -fno-pic exec"
"tmpdir/libtlslib.so" "" "-mtune=itanium1" {tlsbinpic.s tlsbin.s}
"tmpdir/libtlslib.so --hash-style=sysv" ""
"-mtune=itanium1" {tlsbinpic.s tlsbin.s}
{{readelf -WSsrl tlsbin.rd} {objdump -drj.text tlsbin.dd}
{objdump -sj.got tlsbin.sd} {objdump -sj.tdata tlsbin.td}}
"tlsbin"}

View File

@ -1,6 +1,6 @@
#source: merge1.s
#as: -x
#ld: -shared
#ld: -shared --hash-style=sysv
#objdump: -d
#...

View File

@ -1,6 +1,6 @@
#source: merge2.s
#as: -x
#ld: -shared
#ld: -shared --hash-style=sysv
#objdump: -d
#...

View File

@ -1,6 +1,6 @@
#source: merge3.s
#as: -x
#ld: -shared
#ld: -shared --hash-style=sysv
#objdump: -d
#...

View File

@ -1,6 +1,6 @@
#source: merge4.s
#as: -x
#ld: -shared
#ld: -shared --hash-style=sysv
#objdump: -d
#...

View File

@ -1,6 +1,6 @@
#source: merge5.s
#as: -x
#ld: -shared
#ld: -shared --hash-style=sysv
#objdump: -d
#...

View File

@ -1,4 +1,4 @@
#ld: -shared -Map tmpdir/ifunc-1-local-x86.map
#ld: -shared -Map tmpdir/ifunc-1-local-x86.map --hash-style=sysv
#objdump: -dw
#target: x86_64-*-* i?86-*-*
#map: ifunc-1-local-x86.map

View File

@ -1,4 +1,4 @@
#ld: -shared -Map tmpdir/ifunc-1-x86.map
#ld: -shared -Map tmpdir/ifunc-1-x86.map --hash-style=sysv
#objdump: -dw
#target: x86_64-*-* i?86-*-*
#map: ifunc-1-x86.map

View File

@ -1,5 +1,5 @@
#source: ifunc-2-i386.s
#ld: -z now -m elf_i386 -shared
#ld: -z now -m elf_i386 -shared --hash-style=sysv
#as: --32
#objdump: -dw
#target: x86_64-*-* i?86-*-*

View File

@ -1,5 +1,5 @@
#source: ifunc-2-local-i386.s
#ld: -z now -m elf_i386 -shared
#ld: -z now -m elf_i386 -shared --hash-style=sysv
#as: --32
#objdump: -dw
#target: x86_64-*-* i?86-*-*

View File

@ -1,6 +1,6 @@
#source: ifunc-2-local-x86-64.s
#as: --64
#ld: -z now -shared -melf_x86_64
#ld: -z now -shared -melf_x86_64 --hash-style=sysv
#objdump: -dw
#target: x86_64-*-*
#notarget: x86_64-*-nacl*

View File

@ -1,5 +1,5 @@
#as: --64
#ld: -shared -melf_x86_64
#ld: -shared -melf_x86_64 --hash-style=sysv
#objdump: -dw
#target: x86_64-*-*

View File

@ -1,6 +1,6 @@
#source: ifunc-2-x86-64.s
#as: --64
#ld: -z now -shared -melf_x86_64
#ld: -z now -shared -melf_x86_64 --hash-style=sysv
#objdump: -dw
#target: x86_64-*-*
#notarget: x86_64-*-nacl*

View File

@ -1,5 +1,5 @@
#as: --64
#ld: -shared -melf_x86_64
#ld: -shared -melf_x86_64 --hash-style=sysv
#objdump: -dw
#target: x86_64-*-*

View File

@ -1,5 +1,5 @@
#source: ifunc-3-x86.s
#ld: -shared
#ld: -shared --hash-style=sysv
#objdump: -dw
#target: x86_64-*-* i?86-*-*

View File

@ -1,5 +1,5 @@
#source: pr17154-x86.s
#ld: -z now -m elf_i386 -shared
#ld: -z now -m elf_i386 -shared --hash-style=sysv
#as: --32
#objdump: -dw
#target: x86_64-*-* i?86-*-*

View File

@ -1,5 +1,5 @@
#source: pr17154-x86.s
#ld: -m elf_i386 -shared
#ld: -m elf_i386 -shared --hash-style=sysv
#as: --32
#objdump: -dw
#target: x86_64-*-* i?86-*-*

View File

@ -1,6 +1,6 @@
#source: pr17154-x86.s
#as: --64
#ld: -z now -shared -melf_x86_64
#ld: -z now -shared -melf_x86_64 --hash-style=sysv
#objdump: -dw
#target: x86_64-*-*
#notarget: x86_64-*-nacl*

View File

@ -1,6 +1,6 @@
#source: pr17154-x86.s
#as: --64
#ld: -shared -melf_x86_64
#ld: -shared -melf_x86_64 --hash-style=sysv
#objdump: -dw
#target: x86_64-*-*

View File

@ -1,5 +1,5 @@
#source: got-1.s
#ld: -shared
#ld: -shared --hash-style=sysv
#readelf: -d -r
Dynamic section at offset .* contains 9 entries:

View File

@ -1,5 +1,5 @@
#as: -mcpu=5206
#ld: -shared --got=multigot
#ld: -shared --got=multigot --hash-style=sysv
#readelf: -d -r
Dynamic section at offset .* contains 9 entries:

View File

@ -1,5 +1,5 @@
#as: -mcpu=5206
#ld: -shared --got=multigot
#ld: -shared --got=multigot --hash-style=sysv
#readelf: -d -r
Dynamic section at offset .* contains 9 entries:

View File

@ -1,3 +1,3 @@
#as: -mcpu=5206
#ld: -shared --got=multigot
#ld: -shared --got=multigot --hash-style=sysv
#error: .*GOT overflow.*

View File

@ -1,5 +1,5 @@
#as: -mcpu=5206
#ld: -shared --got=negative
#ld: -shared --got=negative --hash-style=sysv
#readelf: -d -r
Dynamic section at offset .* contains 9 entries:

View File

@ -1,3 +1,3 @@
#as: -mcpu=5206
#ld: -shared --got=negative
#ld: -shared --got=negative --hash-style=sysv
#error: .*relocation truncated to fit.*

View File

@ -1,5 +1,5 @@
#as: -mcpu=5206
#ld: -shared --got=negative
#ld: -shared --got=negative --hash-style=sysv
#readelf: -d -r
Dynamic section at offset .* contains 9 entries:

View File

@ -1,3 +1,3 @@
#as: -mcpu=5206
#ld: -shared --got=negative
#ld: -shared --got=negative --hash-style=sysv
#error: .*GOT overflow.*

View File

@ -1,5 +1,5 @@
#as: -mcpu=5206
#ld: -shared --got=single
#ld: -shared --got=single --hash-style=sysv
#readelf: -d -r
Dynamic section at offset .* contains 9 entries:

View File

@ -1,3 +1,3 @@
#as: -mcpu=5206
#ld: -shared --got=single
#ld: -shared --got=single --hash-style=sysv
#error: .*relocation truncated to fit.*

Some files were not shown because too many files have changed in this diff Show More