testsuite/ld-cris various files: Run ld with --hash-style=sysv.

* testsuite/ld-cris/dso-pltdis1.d: Run ld with --hash-style=sysv.
	* testsuite/ld-cris/dso-pltdis2.d,
	testsuite/ld-cris/dso12-pltdis.d, testsuite/ld-cris/expdyn1.d,
	testsuite/ld-cris/expdyn5.d, testsuite/ld-cris/expdyn6.d,
	testsuite/ld-cris/expdyn7.d, testsuite/ld-cris/gotplt1.d,
	testsuite/ld-cris/gotplt2.d, testsuite/ld-cris/gotplt3.d,
	testsuite/ld-cris/hiddef1.d, testsuite/ld-cris/libdso-11.d,
	testsuite/ld-cris/libdso-12.d, testsuite/ld-cris/libdso-12b.d,
	testsuite/ld-cris/libdso-12c.d, testsuite/ld-cris/libdso-13.d,
	testsuite/ld-cris/libdso-13b.d, testsuite/ld-cris/libdso-14.d,
	testsuite/ld-cris/libdso-15.d, testsuite/ld-cris/libdso-15b.d,
	testsuite/ld-cris/libdso-1b.d, testsuite/ld-cris/libdso-1c.d,
	testsuite/ld-cris/libdso-1d.d, testsuite/ld-cris/libdso-4.d,
	testsuite/ld-cris/pr16044.d, testsuite/ld-cris/pv32-1.d,
	testsuite/ld-cris/tls-dso-dtpoffd2.d,
	testsuite/ld-cris/tls-dso-dtpoffd4.d,
	testsuite/ld-cris/tls-dso-tpoffgotcomm1.d,
	testsuite/ld-cris/tls-dso-x1x2-1.d, testsuite/ld-cris/tls-gc-71.d,
	testsuite/ld-cris/tls-ie-78.d, testsuite/ld-cris/tls-js1.d,
	testsuite/ld-cris/tls-ldgdex-14.d,
	testsuite/ld-cris/tls-ldgdex-15.d,
	testsuite/ld-cris/tls-legdx-16.d,
	testsuite/ld-cris/tls-legdx-17.d,
	testsuite/ld-cris/tls-local-63.d,
	testsuite/ld-cris/tls-local-64.d, testsuite/ld-cris/tls-ok-30.d,
	testsuite/ld-cris/tls-ok-32.d, testsuite/ld-cris/tls-ok-34.d,
	testsuite/ld-cris/tls-und-38.d, testsuite/ld-cris/tls-und-42.d,
	testsuite/ld-cris/tls-und-46.d, testsuite/ld-cris/tls-und-50.d,
	testsuite/ld-cris/weakref2.d, testsuite/ld-cris/weakref3.d,
	testsuite/ld-cris/weakref4.d: Likewise.
This commit is contained in:
Hans-Peter Nilsson 2017-08-30 02:27:14 +02:00
parent 22e5c8027a
commit c7dffc390c
50 changed files with 82 additions and 49 deletions

View File

@ -1,3 +1,36 @@
2017-08-30 Hans-Peter Nilsson <hp@axis.com>
* testsuite/ld-cris/dso-pltdis1.d: Run ld with --hash-style=sysv.
* testsuite/ld-cris/dso-pltdis2.d,
testsuite/ld-cris/dso12-pltdis.d, testsuite/ld-cris/expdyn1.d,
testsuite/ld-cris/expdyn5.d, testsuite/ld-cris/expdyn6.d,
testsuite/ld-cris/expdyn7.d, testsuite/ld-cris/gotplt1.d,
testsuite/ld-cris/gotplt2.d, testsuite/ld-cris/gotplt3.d,
testsuite/ld-cris/hiddef1.d, testsuite/ld-cris/libdso-11.d,
testsuite/ld-cris/libdso-12.d, testsuite/ld-cris/libdso-12b.d,
testsuite/ld-cris/libdso-12c.d, testsuite/ld-cris/libdso-13.d,
testsuite/ld-cris/libdso-13b.d, testsuite/ld-cris/libdso-14.d,
testsuite/ld-cris/libdso-15.d, testsuite/ld-cris/libdso-15b.d,
testsuite/ld-cris/libdso-1b.d, testsuite/ld-cris/libdso-1c.d,
testsuite/ld-cris/libdso-1d.d, testsuite/ld-cris/libdso-4.d,
testsuite/ld-cris/pr16044.d, testsuite/ld-cris/pv32-1.d,
testsuite/ld-cris/tls-dso-dtpoffd2.d,
testsuite/ld-cris/tls-dso-dtpoffd4.d,
testsuite/ld-cris/tls-dso-tpoffgotcomm1.d,
testsuite/ld-cris/tls-dso-x1x2-1.d, testsuite/ld-cris/tls-gc-71.d,
testsuite/ld-cris/tls-ie-78.d, testsuite/ld-cris/tls-js1.d,
testsuite/ld-cris/tls-ldgdex-14.d,
testsuite/ld-cris/tls-ldgdex-15.d,
testsuite/ld-cris/tls-legdx-16.d,
testsuite/ld-cris/tls-legdx-17.d,
testsuite/ld-cris/tls-local-63.d,
testsuite/ld-cris/tls-local-64.d, testsuite/ld-cris/tls-ok-30.d,
testsuite/ld-cris/tls-ok-32.d, testsuite/ld-cris/tls-ok-34.d,
testsuite/ld-cris/tls-und-38.d, testsuite/ld-cris/tls-und-42.d,
testsuite/ld-cris/tls-und-46.d, testsuite/ld-cris/tls-und-50.d,
testsuite/ld-cris/weakref2.d, testsuite/ld-cris/weakref3.d,
testsuite/ld-cris/weakref4.d: Likewise.
2017-08-29 Jozef Lawrynowicz <jozef.l@somniumtech.com>
* emultempl/msp430.em (change_output_section): New function.

View File

@ -2,7 +2,7 @@
#source: dsov32-2.s
#source: dsofn4g.s
#as: --pic --no-underscore --march=v32 --em=criself
#ld: --shared -m crislinux
#ld: --shared -m crislinux --hash-style=sysv
#objdump: -d -R
# Check dissassembly of the .plt section, specifically the synthetic

View File

@ -2,7 +2,7 @@
#source: dsov32-2.s
#source: dsofng.s
#as: --pic --no-underscore --march=v32 --em=criself
#ld: --shared -m crislinux
#ld: --shared -m crislinux --hash-style=sysv
#objdump: -d
# Complement to dso-pltdis1.d; merging the other .got.plt entry.

View File

@ -2,7 +2,7 @@
#source: dsov32-1.s
#source: dsov32-2.s
#as: --pic --no-underscore --march=v32 --em=criself
#ld: --shared -m crislinux -z nocombreloc
#ld: --shared -m crislinux -z nocombreloc --hash-style=sysv
#objdump: -d
# Check dissassembly of .plt section.

View File

@ -1,6 +1,6 @@
#source: expdyn1.s
#as: --no-underscore --em=criself
#ld: -m crislinux -export-dynamic tmpdir/libdso-1.so
#ld: -m crislinux -export-dynamic tmpdir/libdso-1.so --hash-style=sysv
#objdump: -T
.*: file format elf32-cris

View File

@ -1,7 +1,7 @@
#source: expdyn1.s
#source: expdref1.s --pic
#as: --no-underscore --em=criself
#ld: -m crislinux --export-dynamic tmpdir/libdso-1.so
#ld: -m crislinux --export-dynamic tmpdir/libdso-1.so --hash-style=sysv
#objdump: -s -j .got
# Like expdyn2.d, but testing that the .got contents is correct. There

View File

@ -2,7 +2,7 @@
#source: expdref1.s --pic
#source: euwref1.s --pic
#as: --no-underscore --em=criself
#ld: -m crislinux --export-dynamic tmpdir/libdso-1.so
#ld: -m crislinux --export-dynamic tmpdir/libdso-1.so --hash-style=sysv
#objdump: -s -j .got
# Like expdyn5.d, weakly referencing symbols.

View File

@ -2,7 +2,7 @@
#source: expdref1.s --pic
#source: comref1.s --pic
#as: --no-underscore --em=criself
#ld: -m crislinux --export-dynamic tmpdir/libdso-1.so
#ld: -m crislinux --export-dynamic tmpdir/libdso-1.so --hash-style=sysv
#objdump: -s -j .got
# Like expdyn5.d, referencing COMMON symbols.

View File

@ -2,7 +2,7 @@
#source: dsofnf2.s
#source: gotrel1.s
#as: --pic --no-underscore --em=criself
#ld: -m crislinux tmpdir/libdso-1.so
#ld: -m crislinux tmpdir/libdso-1.so --hash-style=sysv
#objdump: -sR
# Make sure we don't merge a PLT-specific entry

View File

@ -2,7 +2,7 @@
#source: dsofnf.s
#source: gotrel1.s
#as: --pic --no-underscore --em=criself
#ld: -shared -m crislinux -z nocombreloc
#ld: -shared -m crislinux -z nocombreloc --hash-style=sysv
#objdump: -sR
# Make sure we merge a PLT-specific entry (usually

View File

@ -3,7 +3,7 @@
#source: gotrel1.s
#source: dso-1.s
#as: --pic --no-underscore --em=criself
#ld: -shared -m crislinux -z nocombreloc
#ld: -shared -m crislinux -z nocombreloc --hash-style=sysv
#objdump: -sR
# Like gotplt2, but make sure we merge right when we have a

View File

@ -1,7 +1,7 @@
#source: gotrel1.s
#source: hiddef1.s
#source: hidrefgotplt1.s
#ld: -shared -m crislinux
#ld: -shared -m crislinux --hash-style=sysv
#as: --pic --no-underscore -I$srcdir/$subdir --em=criself
#readelf: -S -s -r

View File

@ -1,7 +1,7 @@
#source: dso-1.s
#source: dsov32-1.s
#as: --pic --no-underscore --march=v32 --em=criself
#ld: --shared -m crislinux
#ld: --shared -m crislinux --hash-style=sysv
#objdump: -s -T
.*: file format elf32-cris

View File

@ -2,7 +2,7 @@
#source: dsov32-1.s
#source: dsov32-2.s
#as: --pic --no-underscore --march=v32 --em=criself
#ld: --shared -m crislinux -z nocombreloc
#ld: --shared -m crislinux -z nocombreloc --hash-style=sysv
#objdump: -s -T
# Check for common DSO contents; load of GOT register, branch to

View File

@ -2,7 +2,7 @@
#source: dsov32-1.s
#source: dsov32-2.s
#as: --pic --no-underscore --march=v32 --em=criself
#ld: --shared -m crislinux
#ld: --shared -m crislinux --hash-style=sysv
#objdump: -s -T
# Like libdso-12.d but without -z nocombreloc.

View File

@ -3,7 +3,7 @@
#source: dsov32-2.s
#source: dso-1.s
#as: --pic --no-underscore --march=v32 --em=criself
#ld: --shared -m crislinux --version-script $srcdir/$subdir/hidedsofns2468
#ld: --shared -m crislinux --version-script $srcdir/$subdir/hidedsofns2468 --hash-style=sysv
#objdump: -s -T
# Like libdso-12b.d, but dsofn is defined and the two called functions

View File

@ -1,7 +1,7 @@
#source: dso-1.s
#source: dsov32-3.s
#as: --pic --no-underscore --march=v32 --em=criself
#ld: --shared -m crislinux -z nocombreloc --enable-new-dtags
#ld: --shared -m crislinux -z nocombreloc --enable-new-dtags --hash-style=sysv
#readelf: -d -r
#warning: relocation R_CRIS_32_PCREL should not be used in a shared object; recompile with -fPIC

View File

@ -1,7 +1,7 @@
#source: dso-1.s
#source: dsov32-3.s
#as: --pic --no-underscore --march=v32 --em=criself
#ld: --shared -m crislinux --version-script $srcdir/$subdir/hidedsofns2468
#ld: --shared -m crislinux --version-script $srcdir/$subdir/hidedsofns2468 --hash-style=sysv
#readelf: -d -r
# Like libdso-13.d, but without -z nocombreloc and with a version

View File

@ -1,7 +1,7 @@
#source: dso-1.s
#source: dsov32-4.s
#as: --pic --no-underscore --march=v32 --em=criself
#ld: --shared -m crislinux
#ld: --shared -m crislinux --hash-style=sysv
#readelf: -d -r
# Checking that a bsr to a non-PLT-decorated nonvisible function

View File

@ -1,6 +1,6 @@
#source: expdyn2.s
#as: --pic --no-underscore --em=criself -I$srcdir/$subdir
#ld: --shared -m crislinux --version-script $srcdir/$subdir/expalltst3
#ld: --shared -m crislinux --version-script $srcdir/$subdir/expalltst3 --hash-style=sysv
#objdump: -s -T
# A DSO that has two versioned symbols, each with a weak alias.

View File

@ -1,6 +1,6 @@
#source: expdref2.s
#as: --pic --no-underscore --em=criself
#ld: --shared -m crislinux
#ld: --shared -m crislinux --hash-style=sysv
#ld_after_inputfiles: tmpdir/libdso-15.so
#objdump: -s -T

View File

@ -1,6 +1,6 @@
#source: dso-1b.s
#as: --pic --no-underscore --em=criself -I$srcdir/$subdir
#ld: --shared -m crislinux --version-script $srcdir/$subdir/hidedsofns2468
#ld: --shared -m crislinux --version-script $srcdir/$subdir/hidedsofns2468 --hash-style=sysv
#objdump: -T
# Like libdso-1, but export the function as expfn@@TST2 and another

View File

@ -1,6 +1,6 @@
#source: expdref1.s
#as: --pic --no-underscore --em=criself -I$srcdir/$subdir
#ld: --shared -m crislinux
#ld: --shared -m crislinux --hash-style=sysv
#ld_after_inputfiles: tmpdir/libdso-1b.so
#objdump: -s -T

View File

@ -1,7 +1,7 @@
#source: expdref1.s
#source: expdyn1w.s
#as: --pic --no-underscore --em=criself -I$srcdir/$subdir
#ld: --shared -m crislinux
#ld: --shared -m crislinux --hash-style=sysv
#ld_after_inputfiles: tmpdir/libdso-1b.so
#objdump: -s -T

View File

@ -1,6 +1,6 @@
#source: dso-2.s
#as: --pic --no-underscore --em=criself
#ld: --shared -m crislinux
#ld: --shared -m crislinux --hash-style=sysv
#objdump: -T
# DSO with an undef symbol "dsofn". See undef1.d.

View File

@ -2,7 +2,7 @@
#source: dso-2b.s
#source: dso-1c.s
#as: --pic --no-underscore --em=criself -I$srcdir/$subdir
#ld: --shared -m crislinux
#ld: --shared -m crislinux --hash-style=sysv
#readelf: -s -r
# PR 16044 is about a (compile-time-non-local) hidden function symbol,

View File

@ -1,6 +1,6 @@
#source: pv32.s
#as: --march=v32 --no-underscore --em=criself
#ld: -e here -m crislinux tmpdir/libdso-12.so
#ld: -e here -m crislinux tmpdir/libdso-12.so --hash-style=sysv
#objdump: -s -T
# Trivial test of linking a program to a v32 DSO.

View File

@ -4,7 +4,7 @@
#source: tls128.s
#source: tls-x.s
#as: --no-underscore --em=criself --pic -I$srcdir/$subdir
#ld: -m crislinux --shared
#ld: -m crislinux --shared --hash-style=sysv --hash-style=sysv
#objdump: -d -s -t -r -p
# Linking a file with a DTPOFF from a .dtpoffd of a GD variable, PIC

View File

@ -4,7 +4,7 @@
#source: tls128.s
#source: tls-commx.s
#as: --no-underscore --em=criself --pic -I$srcdir/$subdir
#ld: -m crislinux --shared
#ld: -m crislinux --shared --hash-style=sysv
#objdump: -d -s -t -r -p
# Linking a file with a DTPOFF from a .dtpoffd of a GD COMMON

View File

@ -1,7 +1,7 @@
#source: start1.s
#source: tls-dso-tpoffgotcomm1.s
#as: --no-underscore --pic --em=criself -I$srcdir/$subdir
#ld: -m crislinux -shared
#ld: -m crislinux -shared --hash-style=sysv
#objdump: -d -h -s -t -r -R -p
# Make sure we can link a file with TPOFFGOT relocs against common

View File

@ -1,7 +1,7 @@
#source: tls-hx.s
#source: tls-x1x2.s
#as: --no-underscore --em=criself
#ld: -m crislinux --shared
#ld: -m crislinux --shared --hash-style=sysv
#objdump: -T
# A DSO providing the TLS variables x1 and x2.

View File

@ -3,7 +3,7 @@
#source: tls128g.s
#source: tls-hx.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
# DSO with a single R_CRIS_16_DTPREL against a hidden symbol, gc:ed.

View File

@ -2,7 +2,7 @@
#source: tls128.s
#source: tls-ie-8e.s
#as: --no-underscore --em=criself
#ld: -m crislinux
#ld: -m crislinux --hash-style=sysv
#ld_after_inputfiles: tmpdir/tls-dso-xz-1.so
#objdump: -s -h -t -T -R -r -p

View File

@ -5,7 +5,7 @@
#source: tls-hx.s
#source: dso-1.s
#as: --pic --no-underscore --em=criself --march=v32
#ld: --shared -m crislinux
#ld: --shared -m crislinux --hash-style=sysv
#readelf: -a
# DSO with a R_CRIS_16_DTPREL and a R_CRIS_32_PLT_PCREL. The .got.plt

View File

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

View File

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

View File

@ -5,7 +5,7 @@
#source: tls-legd-16.s
#source: tls-x1x2.s
#as: --no-underscore --em=criself
#ld: -m crislinux tmpdir/tls-dso-xz-1.so
#ld: -m crislinux tmpdir/tls-dso-xz-1.so --hash-style=sysv
#objdump: -s -h -t -T -R -r -p
# Check that we have proper NPTL/TLS markings and GOT for an

View File

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

View File

@ -1,7 +1,7 @@
#source: tls-ie-8.s --pic
#source: tls-hx.s
#as: --no-underscore --em=criself
#ld: -m crislinux --shared
#ld: -m crislinux --shared --hash-style=sysv
#readelf: -a -x 6 -x 8 -x 5
# A R_CRIS_16_GOT_TPREL in a DSO against a hidden symbol. Make sure

View File

@ -2,7 +2,7 @@
#source: tls128.s
#source: tls-hx.s
#as: --no-underscore --em=criself
#ld: -m crislinux --shared
#ld: -m crislinux --shared --hash-style=sysv
#readelf: -a -x 6 -x 8 -x 5
# A R_CRIS_16_GOT_TPREL in a DSO against a hidden symbol, at an offset

View File

@ -1,6 +1,6 @@
#source: tls-gdgotrelm.s --defsym r=8191
#as: --no-underscore --em=criself --pic
#ld: --shared -m crislinux
#ld: --shared -m crislinux --hash-style=sysv
#objdump: -s -j .got -R
# Verify that the first and last R_CRIS_16_GOT_GD entries are ok just

View File

@ -1,6 +1,6 @@
#source: tls-dtprelm.s --defsym r=32767
#as: --no-underscore --em=criself --pic
#ld: --shared -m crislinux
#ld: --shared -m crislinux --hash-style=sysv
#objdump: -s -j .got -j .text -j .tdata -R
# Check that a R_CRIS_16_DTPREL just below the theoretical limit

View File

@ -1,6 +1,6 @@
#source: tls-gottprelm.s --defsym r=8189
#as: --no-underscore --em=criself --pic
#ld: --shared -m crislinux
#ld: --shared -m crislinux --hash-style=sysv
#objdump: -s -j .got -R
# Check that a R_CRIS_16_DTPREL just below the theoretical limit

View File

@ -1,6 +1,6 @@
#source: tls-gd-2.s --pic
#as: --no-underscore --em=criself
#ld: -m crislinux --shared
#ld: -m crislinux --shared --hash-style=sysv
#readelf: -a -x 7
# Undefined reference for a R_CRIS_32_GOT_GD in a DSO. Not an error;

View File

@ -1,6 +1,6 @@
#source: tls-ie-10.s --pic
#as: --no-underscore --em=criself
#ld: -m crislinux --shared
#ld: -m crislinux --shared --hash-style=sysv
#readelf: -a -x 7
# Undefined reference for a R_CRIS_32_GOT_TPREL in a DSO. Not an

View File

@ -1,6 +1,6 @@
#source: tls-gd-1.s --pic
#as: --no-underscore --em=criself
#ld: -m crislinux --shared
#ld: -m crislinux --shared --hash-style=sysv
#readelf: -a -x 7
# Undefined reference for a R_CRIS_16_GOT_GD in a DSO. Not an error;

View File

@ -1,6 +1,6 @@
#source: tls-ie-8.s --pic
#as: --no-underscore --em=criself
#ld: -m crislinux --shared
#ld: -m crislinux --shared --hash-style=sysv
#readelf: -a -x 7
# Undefined reference for a R_CRIS_16_GOT_TPREL in a DSO. Not an

View File

@ -1,6 +1,6 @@
#source: gotrel2.s
#as: --pic --no-underscore --em=criself
#ld: -m crislinux tmpdir/libdso-1.so
#ld: -m crislinux tmpdir/libdso-1.so --hash-style=sysv
#objdump: -s -j .got
# Like weakref1.d, but check contents of .got.

View File

@ -1,7 +1,7 @@
#source: start1.s
#source: expdref3.s
#as: --no-underscore --em=criself
#ld: -m crislinux
#ld: -m crislinux --hash-style=sysv
#ld_after_inputfiles: tmpdir/libdso-15.so
#readelf: -a -x 10

View File

@ -1,7 +1,7 @@
#source: start1.s
#source: expdref4.s
#as: --no-underscore --em=criself
#ld: -m crislinux
#ld: -m crislinux --hash-style=sysv
#ld_after_inputfiles: tmpdir/libdso-15.so
#readelf: -a -x 11