diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2020-06-30 08:47:02 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2020-06-30 08:56:14 -0700 |
commit | bbd19b19e44ee6f547291db62cba7150bb407a4c (patch) | |
tree | 5555d85949224754cd54693792aa2de599992727 /ld/testsuite/ld-x86-64 | |
parent | a1520ad8fc5c5c1932d69e4685836cc1375bd850 (diff) | |
download | gdb-bbd19b19e44ee6f547291db62cba7150bb407a4c.zip gdb-bbd19b19e44ee6f547291db62cba7150bb407a4c.tar.gz gdb-bbd19b19e44ee6f547291db62cba7150bb407a4c.tar.bz2 |
Remove x86 NaCl target support
NaCl has been deprecated:
https://developer.chrome.com/native-client/migration
and NaCl will completely disappear in 2021:
https://lists.llvm.org/pipermail/llvm-dev/2020-April/141107.html
Remove x86 NaCl target support from bfd, binutils, gas and ld.
bfd/
* archures.c (bfd_mach_i386_nacl): Removed.
(bfd_mach_i386_i386_nacl): Likewise.
(bfd_mach_x86_64_nacl): Likewise.
(bfd_mach_x64_32_nacl): Likewise.
* config.bfd: Remove *-*-nacl* targets.
* configure.ac: Remove x86 NaCl target vectors.
* cpu-i386.c (bfd_arch_i386_onebyte_nop_fill): Removed.
(bfd_x64_32_nacl_arch): Likewise.
(bfd_x86_64_nacl_arch): Likewise.
(bfd_i386_nacl_arch): Likewise.
(bfd_x64_32_arch_intel_syntax): Updated.
* elf32-i386.c: Don't include "elf-nacl.h".
(elf_i386_nacl_plt): Removed.
(elf_i386_nacl_plt0_entry): Likewise.
(elf_i386_nacl_plt_entry): Likewise.
(elf_i386_nacl_pic_plt0_entry): Likewise.
(elf_i386_nacl_pic_plt_entry): Likewise.
(elf_i386_nacl_eh_frame_plt): Likewise.
(elf_i386_nacl_plt): Likewise.
(elf32_i386_nacl_elf_object_p): Likewise.
(elf_i386_get_synthetic_symtab): Updated.
(elf_i386_link_setup_gnu_properties): Likewise.
* elf64-x86-64.c: Don't include "elf-nacl.h".
(elf_x86_64_nacl_plt): Removed.
(elf64_x86_64_nacl_elf_object_p): Likewise.
(elf_x86_64_nacl_plt0_entry): Likewise.
(elf_x86_64_nacl_plt_entry): Likewise.
(elf_x86_64_nacl_eh_frame_plt): Likewise.
(elf_x86_64_nacl_plt): Likewise.
(elf32_x86_64_nacl_elf_object_p): Likewise.
(elf_x86_64_get_synthetic_symtab): Updated.
(elf_x86_64_link_setup_gnu_properties): Likewise.
* elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Likewise.
* targets.c: Remove x86 NaCl target vectors.
* bfd-in2.h: Regenerated.
* configure: Likewise.
binutils/
* NEWS: Mention x86 NaCl target support removal.
* dwarf.c (init_dwarf_regnames_by_bfd_arch_and_mach): Remove
x86 NaCl target support.
* testsuite/binutils-all/elfedit-1.d: Likewise.
* testsuite/binutils-all/i386/i386.exp: Likewise.
* testsuite/binutils-all/x86-64/objects.exp: Likewise.
* testsuite/binutils-all/x86-64/pr23494a-x32.d: Likewise.
* testsuite/binutils-all/x86-64/pr23494a.d: Likewise.
* testsuite/binutils-all/x86-64/pr23494b-x32.d: Likewise.
* testsuite/binutils-all/x86-64/pr23494b.d: Likewise.
* testsuite/binutils-all/x86-64/pr23494c-x32.d: Likewise.
* testsuite/binutils-all/x86-64/pr23494c.d: Likewise.
* testsuite/binutils-all/x86-64/pr23494d-x32.d: Likewise.
* testsuite/binutils-all/x86-64/pr23494d.d: Likewise.
* testsuite/binutils-all/x86-64/pr23494e-x32.d: Likewise.
* testsuite/binutils-all/x86-64/pr23494e.d: Likewise.
* testsuite/binutils-all/x86-64/x86-64.exp: Likewise.
gas/
* NEWS: Mention x86 NaCl target support removal.
* config/tc-i386.c: Remove x86 NaCl target support.
* config/tc-i386.h: Likewise.
* configure.tgt: Likewise.
* testsuite/gas/i386/i386.exp: Likewise.
* testsuite/gas/i386/iamcu-1.d: Likewise.
* testsuite/gas/i386/iamcu-2.d: Likewise.
* testsuite/gas/i386/iamcu-3.d: Likewise.
* testsuite/gas/i386/iamcu-4.d: Likewise.
* testsuite/gas/i386/iamcu-5.d: Likewise.
* testsuite/gas/i386/k1om.d: Likewise.
* testsuite/gas/i386/l1om.d: Likewise.
ld/
* Makefile.am (ALL_EMULATION_SOURCES): Remove eelf_i386_nacl.c,
eelf32_x86_64_nacl.c, eelf_x86_64_nacl.c.
Remove x86 NaCl dep files.
* NEWS: Mention x86 NaCl target support removal.
* configure.tgt: Remove x86 NaCl target support.
* testsuite/ld-elf/binutils.exp: Likewise.
* testsuite/ld-elf/elf.exp: Likewise.
* testsuite/ld-elfvers/vers.exp: Likewise.
* testsuite/ld-i386/align-branch-1.d: Likewise.
* testsuite/ld-i386/export-class.exp: Likewise.
* testsuite/ld-i386/i386.exp: Likewise.
* testsuite/ld-i386/load1.d: Likewise.
* testsuite/ld-i386/pie1.d: Likewise.
* testsuite/ld-i386/pr12570a.d: Likewise.
* testsuite/ld-i386/pr12570b.d: Likewise.
* testsuite/ld-i386/pr19636-1d.d: Likewise.
* testsuite/ld-i386/pr19636-1l.d: Likewise.
* testsuite/ld-i386/pr19636-2c.d: Likewise.
* testsuite/ld-i386/pr19636-2d.d: Likewise.
* testsuite/ld-i386/pr19636-2e.d: Likewise.
* testsuite/ld-i386/pr20244-1a.d: Likewise.
* testsuite/ld-i386/pr20244-1b.d: Likewise.
* testsuite/ld-i386/pr20244-2a.d: Likewise.
* testsuite/ld-i386/pr20244-2b.d: Likewise.
* testsuite/ld-i386/pr20244-2c.d: Likewise.
* testsuite/ld-i386/pr20244-4a.d: Likewise.
* testsuite/ld-i386/pr20244-4b.d: Likewise.
* testsuite/ld-i386/pr21884.d: Likewise.
* testsuite/ld-ifunc/binutils.exp: Likewise.
* testsuite/ld-ifunc/ifunc-10-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-10-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-11-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-11-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-12-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-12-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-13-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-13-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-14a-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-14a-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-14b-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-14b-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-14c-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-14c-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-14d-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-14d-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-14e-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-14e-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-14f-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-14f-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-15-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-15-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-16-i386-now.d: Likewise.
* testsuite/ld-ifunc/ifunc-16-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-16-x86-64-now.d: Likewise.
* testsuite/ld-ifunc/ifunc-16-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-17a-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-17a-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-17b-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-17b-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-18a-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-18a-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-18b-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-18b-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-19a-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-19a-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-19b-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-19b-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-2-i386-now.d: Likewise.
* testsuite/ld-ifunc/ifunc-2-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-2-local-i386-now.d: Likewise.
* testsuite/ld-ifunc/ifunc-2-local-i386.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-20-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-20-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-21-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-21-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-22-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-22-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-5a-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-5a-local-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-5a-local-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-5a-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-5b-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-5b-local-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-5b-local-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-5b-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-5r-local-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-5r-local-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-6a-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-6a-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-6b-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-6b-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-7a-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-7a-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-7b-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-7b-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-8-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-8-x86-64.d: Likewise.
* testsuite/ld-ifunc/ifunc-9-i386.d: Likewise.
* testsuite/ld-ifunc/ifunc-9-x86-64.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-plugin/lto.exp: Likewise.
* testsuite/ld-x86-64/align-branch-1.d: Likewise.
* testsuite/ld-x86-64/dwarfreloc.exp: Likewise.
* testsuite/ld-x86-64/line.exp: Likewise.
* testsuite/ld-x86-64/load1a.d: Likewise.
* testsuite/ld-x86-64/load1b.d: Likewise.
* testsuite/ld-x86-64/load1c.d: Likewise.
* testsuite/ld-x86-64/load1d.d: Likewise.
* testsuite/ld-x86-64/pie3.d: Likewise.
* testsuite/ld-x86-64/pr18160.d: Likewise.
* testsuite/ld-x86-64/pr19013-x32.d: Likewise.
* testsuite/ld-x86-64/pr19013.d: Likewise.
* testsuite/ld-x86-64/pr19636-2d.d: Likewise.
* testsuite/ld-x86-64/pr19636-2l.d: Likewise.
* testsuite/ld-x86-64/pr20253-1b.d: Likewise.
* testsuite/ld-x86-64/pr20253-1d.d: Likewise.
* testsuite/ld-x86-64/pr20253-1f.d: Likewise.
* testsuite/ld-x86-64/pr20253-1h.d: Likewise.
* testsuite/ld-x86-64/pr20253-1j.d: Likewise.
* testsuite/ld-x86-64/pr20253-1l.d: Likewise.
* testsuite/ld-x86-64/pr21884.d: Likewise.
* testsuite/ld-x86-64/pr22393-3a.rd: Likewise.
* testsuite/ld-x86-64/pr22393-3b.rd: Likewise.
* testsuite/ld-x86-64/tlsgd10.dd: Likewise.
* testsuite/ld-x86-64/tlsgd5.dd: Likewise.
* testsuite/ld-x86-64/tlsgd8.dd: Likewise.
* testsuite/ld-x86-64/x86-64.exp: Likewise.
* emulparams/elf32_x86_64_nacl.sh: Removed.
* emulparams/elf_i386_nacl.sh: Likewise.
* emulparams/elf_x86_64_nacl.sh: Likewise.
* testsuite/ld-i386/emit-relocs-nacl.rd: Likewise.
* testsuite/ld-i386/load1-nacl.d: Likewise.
* testsuite/ld-i386/pie1-nacl.d: Likewise.
* testsuite/ld-i386/plt-nacl.pd: Likewise.
* testsuite/ld-i386/plt-pic-nacl.pd: Likewise.
* testsuite/ld-i386/pr17709-nacl.rd: Likewise.
* testsuite/ld-i386/pr19636-1d-nacl.d: Likewise.
* testsuite/ld-i386/pr19636-2c-nacl.d: Likewise.
* testsuite/ld-i386/pr19636-2d-nacl.d: Likewise.
* testsuite/ld-i386/pr19636-2e-nacl.d: Likewise.
* testsuite/ld-i386/pr19827-nacl.rd: Likewise.
* testsuite/ld-i386/pr21884-nacl.d: Likewise.
* testsuite/ld-i386/pr21884-nacl.t: Likewise.
* testsuite/ld-i386/tlsbin-nacl.rd: Likewise.
* testsuite/ld-i386/tlsbin2-nacl.rd: Likewise.
* testsuite/ld-i386/tlsbindesc-nacl.rd: Likewise.
* testsuite/ld-i386/tlsdesc-nacl.rd: Likewise.
* testsuite/ld-i386/tlsgdesc-nacl.rd: Likewise.
* testsuite/ld-i386/tlsnopic-nacl.rd: Likewise.
* testsuite/ld-i386/tlspic-nacl.rd: Likewise.
* testsuite/ld-i386/tlspic2-nacl.rd: Likewise.
* testsuite/ld-x86-64/ilp32-4-nacl.d: Likewise.
* testsuite/ld-x86-64/load1a-nacl.d: Likewise.
* testsuite/ld-x86-64/load1b-nacl.d: Likewise.
* testsuite/ld-x86-64/load1c-nacl.d: Likewise.
* testsuite/ld-x86-64/load1d-nacl.d: Likewise.
* testsuite/ld-x86-64/pie3-nacl.d: Likewise.
* testsuite/ld-x86-64/plt-nacl.pd: Likewise.
* testsuite/ld-x86-64/pr17709-nacl.rd: Likewise.
* testsuite/ld-x86-64/pr19013-nacl.d: Likewise.
* testsuite/ld-x86-64/pr19636-2d-nacl.d: Likewise.
* testsuite/ld-x86-64/pr19827-nacl.rd: Likewise.
* testsuite/ld-x86-64/pr21884-nacl.d: Likewise.
* testsuite/ld-x86-64/pr21884-nacl.t: Likewise.
* testsuite/ld-x86-64/split-by-file-nacl.rd: Likewise.
* testsuite/ld-x86-64/tlsbin-nacl.rd: Likewise.
* testsuite/ld-x86-64/tlsbin2-nacl.rd: Likewise.
* testsuite/ld-x86-64/tlsbindesc-nacl.rd: Likewise.
* testsuite/ld-x86-64/tlsdesc-nacl.pd: Likewise.
* testsuite/ld-x86-64/tlsdesc-nacl.rd: Likewise.
* testsuite/ld-x86-64/tlsgdesc-nacl.rd: Likewise.
* testsuite/ld-x86-64/tlspic-nacl.rd: Likewise.
* testsuite/ld-x86-64/tlspic2-nacl.rd: Likewise.
* Makefile.in: Regenerated.
* po/BLD-POTFILES.in: Likewise.
Diffstat (limited to 'ld/testsuite/ld-x86-64')
48 files changed, 11 insertions, 1475 deletions
diff --git a/ld/testsuite/ld-x86-64/align-branch-1.d b/ld/testsuite/ld-x86-64/align-branch-1.d index 19a6a4d..c980b90 100644 --- a/ld/testsuite/ld-x86-64/align-branch-1.d +++ b/ld/testsuite/ld-x86-64/align-branch-1.d @@ -1,7 +1,6 @@ #as: --64 -mbranches-within-32B-boundaries #ld: -melf_x86_64 #objdump: -dw -#notarget: i?86-*-nacl* x86_64-*-nacl* .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/dwarfreloc.exp b/ld/testsuite/ld-x86-64/dwarfreloc.exp index af32715..54583aa 100644 --- a/ld/testsuite/ld-x86-64/dwarfreloc.exp +++ b/ld/testsuite/ld-x86-64/dwarfreloc.exp @@ -34,9 +34,7 @@ # <5d> DW_AT_type : <0x0> # Only the testcase .s files are arch-dependent, the relocations are cross-arch. -if { !([istarget "x86_64-*-elf*"] - || [istarget "x86_64-*-nacl*"] - || [istarget "x86_64-*-linux*"]) } { +if { !([istarget "x86_64-*-elf*"] || [istarget "x86_64-*-linux*"]) } { return } diff --git a/ld/testsuite/ld-x86-64/ilp32-4-nacl.d b/ld/testsuite/ld-x86-64/ilp32-4-nacl.d deleted file mode 100644 index 01cb85a..0000000 --- a/ld/testsuite/ld-x86-64/ilp32-4-nacl.d +++ /dev/null @@ -1,30 +0,0 @@ -#source: ilp32-4.s -#as: --x32 -#ld: -m elf32_x86_64_nacl -shared --no-ld-generated-unwind-info --hash-style=sysv -#readelf: -d -S --wide -#target: x86_64-*-nacl* - -There are 9 section headers, starting at offset 0x[0-9a-f]+: - -Section Headers: - +\[Nr\] Name +Type +Addr +Off +Size +ES +Flg +Lk +Inf +Al - +\[ 0\] +NULL +0+ 0+ 0+ 00 +0 +0 +0 - +\[ 1\] \.text +PROGBITS +0+ 0+10000 +0+1 +00 +AX +0 +0 +1 - +\[ 2\] \.hash +HASH +100000b4 +0+b4 +0+14 +04 +A +3 +0 +4 - +\[ 3\] \.dynsym +DYNSYM +100000c8 +0+c8 +0+20 +10 +A +4 +1 +4 - +\[ 4\] \.dynstr +STRTAB +100000e8 +0+e8 +0+8 +00 +A +0 +0 +1 - +\[ 5\] \.dynamic +DYNAMIC +100100f0 +0+f0 +0+58 +08 +WA +4 +0 +4 - +\[ 6\] \.symtab +SYMTAB +0+0 +[0-9a-f]+ +[0-9a-f]+ +10 +7 +[0-9] +4 - +\[ 7\] \.strtab +STRTAB +0+ +[0-9a-f]+ +[0-9a-f]+ +00 +0 +0 +1 - +\[ 8\] \.shstrtab +STRTAB +0+ +[0-9a-f]+ +0+40 +00 +0 +0 +1 -Key to Flags: -#... - -Dynamic section at offset 0xf0 contains 6 entries: - Tag Type Name/Value - 0x00000004 \(HASH\) 0x100000b4 - 0x00000005 \(STRTAB\) 0x100000e8 - 0x00000006 \(SYMTAB\) 0x100000c8 - 0x0000000a \(STRSZ\) 8 \(bytes\) - 0x0000000b \(SYMENT\) 16 \(bytes\) - 0x00000000 \(NULL\) 0x0 diff --git a/ld/testsuite/ld-x86-64/line.exp b/ld/testsuite/ld-x86-64/line.exp index 7eb6cf7..1a43d27 100644 --- a/ld/testsuite/ld-x86-64/line.exp +++ b/ld/testsuite/ld-x86-64/line.exp @@ -19,18 +19,11 @@ # Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, # MA 02110-1301, USA. -if { !([istarget "x86_64-*-elf*"] - || [istarget "x86_64-*-nacl*"] - || [istarget "x86_64-*-linux*"]) } { +if { !([istarget "x86_64-*-elf*"] || [istarget "x86_64-*-linux*"]) } { return } -if [istarget "*-*-nacl*"] { - set emul "elf_x86_64_nacl" -} else { - set emul "elf_x86_64" -} - +set emul "elf_x86_64" set testline "undefined line" if ![ld_assemble $as "--64 $srcdir/$subdir/undefined.s" tmpdir/undefined.o] { diff --git a/ld/testsuite/ld-x86-64/load1a-nacl.d b/ld/testsuite/ld-x86-64/load1a-nacl.d deleted file mode 100644 index f038400..0000000 --- a/ld/testsuite/ld-x86-64/load1a-nacl.d +++ /dev/null @@ -1,55 +0,0 @@ -#source: load1.s -#as: --64 -#ld: -melf_x86_64 -#objdump: -dw --sym -#target: x86_64-*-nacl* - -.*: +file format .* - -SYMBOL TABLE: -#... -0+100300b0 l O .data 0+1 bar -#... -0+100300b1 g O .data 0+1 foo -#... - -Disassembly of section .text: - -0+20000 <_start>: -[ ]*[a-f0-9]+: 81 d0 b0 00 03 10 adc \$0x100300b0,%eax -[ ]*[a-f0-9]+: 81 c3 b0 00 03 10 add \$0x100300b0,%ebx -[ ]*[a-f0-9]+: 81 e1 b0 00 03 10 and \$0x100300b0,%ecx -[ ]*[a-f0-9]+: 81 fa b0 00 03 10 cmp \$0x100300b0,%edx -[ ]*[a-f0-9]+: 81 ce b0 00 03 10 or \$0x100300b0,%esi -[ ]*[a-f0-9]+: 81 df b0 00 03 10 sbb \$0x100300b0,%edi -[ ]*[a-f0-9]+: 81 ed b0 00 03 10 sub \$0x100300b0,%ebp -[ ]*[a-f0-9]+: 41 81 f0 b0 00 03 10 xor \$0x100300b0,%r8d -[ ]*[a-f0-9]+: 41 f7 c7 b0 00 03 10 test \$0x100300b0,%r15d -[ ]*[a-f0-9]+: 48 81 d0 b0 00 03 10 adc \$0x100300b0,%rax -[ ]*[a-f0-9]+: 48 81 c3 b0 00 03 10 add \$0x100300b0,%rbx -[ ]*[a-f0-9]+: 48 81 e1 b0 00 03 10 and \$0x100300b0,%rcx -[ ]*[a-f0-9]+: 48 81 fa b0 00 03 10 cmp \$0x100300b0,%rdx -[ ]*[a-f0-9]+: 48 81 cf b0 00 03 10 or \$0x100300b0,%rdi -[ ]*[a-f0-9]+: 48 81 de b0 00 03 10 sbb \$0x100300b0,%rsi -[ ]*[a-f0-9]+: 48 81 ed b0 00 03 10 sub \$0x100300b0,%rbp -[ ]*[a-f0-9]+: 49 81 f0 b0 00 03 10 xor \$0x100300b0,%r8 -[ ]*[a-f0-9]+: 49 f7 c7 b0 00 03 10 test \$0x100300b0,%r15 -[ ]*[a-f0-9]+: 81 d0 b1 00 03 10 adc \$0x100300b1,%eax -[ ]*[a-f0-9]+: 81 c3 b1 00 03 10 add \$0x100300b1,%ebx -[ ]*[a-f0-9]+: 81 e1 b1 00 03 10 and \$0x100300b1,%ecx -[ ]*[a-f0-9]+: 81 fa b1 00 03 10 cmp \$0x100300b1,%edx -[ ]*[a-f0-9]+: 81 ce b1 00 03 10 or \$0x100300b1,%esi -[ ]*[a-f0-9]+: 81 df b1 00 03 10 sbb \$0x100300b1,%edi -[ ]*[a-f0-9]+: 81 ed b1 00 03 10 sub \$0x100300b1,%ebp -[ ]*[a-f0-9]+: 41 81 f0 b1 00 03 10 xor \$0x100300b1,%r8d -[ ]*[a-f0-9]+: 41 f7 c7 b1 00 03 10 test \$0x100300b1,%r15d -[ ]*[a-f0-9]+: 48 81 d0 b1 00 03 10 adc \$0x100300b1,%rax -[ ]*[a-f0-9]+: 48 81 c3 b1 00 03 10 add \$0x100300b1,%rbx -[ ]*[a-f0-9]+: 48 81 e1 b1 00 03 10 and \$0x100300b1,%rcx -[ ]*[a-f0-9]+: 48 81 fa b1 00 03 10 cmp \$0x100300b1,%rdx -[ ]*[a-f0-9]+: 48 81 cf b1 00 03 10 or \$0x100300b1,%rdi -[ ]*[a-f0-9]+: 48 81 de b1 00 03 10 sbb \$0x100300b1,%rsi -[ ]*[a-f0-9]+: 48 81 ed b1 00 03 10 sub \$0x100300b1,%rbp -[ ]*[a-f0-9]+: 49 81 f0 b1 00 03 10 xor \$0x100300b1,%r8 -[ ]*[a-f0-9]+: 49 f7 c7 b1 00 03 10 test \$0x100300b1,%r15 -#pass diff --git a/ld/testsuite/ld-x86-64/load1a.d b/ld/testsuite/ld-x86-64/load1a.d index 09dacb4..194d304 100644 --- a/ld/testsuite/ld-x86-64/load1a.d +++ b/ld/testsuite/ld-x86-64/load1a.d @@ -2,7 +2,6 @@ #as: --64 -mrelax-relocations=yes #ld: -melf_x86_64 -z max-page-size=0x200000 -z noseparate-code #objdump: -dw --sym -#notarget: x86_64-*-nacl* .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/load1b-nacl.d b/ld/testsuite/ld-x86-64/load1b-nacl.d deleted file mode 100644 index f4ab3be..0000000 --- a/ld/testsuite/ld-x86-64/load1b-nacl.d +++ /dev/null @@ -1,55 +0,0 @@ -#source: load1.s -#as: --x32 -#ld: -melf32_x86_64 -#objdump: -dw --sym -#target: x86_64-*-nacl* - -.*: +file format .* - -SYMBOL TABLE: -#... -10030074 l O .data 0+1 bar -#... -10030075 g O .data 0+1 foo -#... - -Disassembly of section .text: - -0+20000 <_start>: - +[a-f0-9]+: 81 d0 74 00 03 10 adc \$0x10030074,%eax - +[a-f0-9]+: 81 c3 74 00 03 10 add \$0x10030074,%ebx - +[a-f0-9]+: 81 e1 74 00 03 10 and \$0x10030074,%ecx - +[a-f0-9]+: 81 fa 74 00 03 10 cmp \$0x10030074,%edx - +[a-f0-9]+: 81 ce 74 00 03 10 or \$0x10030074,%esi - +[a-f0-9]+: 81 df 74 00 03 10 sbb \$0x10030074,%edi - +[a-f0-9]+: 81 ed 74 00 03 10 sub \$0x10030074,%ebp - +[a-f0-9]+: 41 81 f0 74 00 03 10 xor \$0x10030074,%r8d - +[a-f0-9]+: 41 f7 c7 74 00 03 10 test \$0x10030074,%r15d - +[a-f0-9]+: 48 81 d0 74 00 03 10 adc \$0x10030074,%rax - +[a-f0-9]+: 48 81 c3 74 00 03 10 add \$0x10030074,%rbx - +[a-f0-9]+: 48 81 e1 74 00 03 10 and \$0x10030074,%rcx - +[a-f0-9]+: 48 81 fa 74 00 03 10 cmp \$0x10030074,%rdx - +[a-f0-9]+: 48 81 cf 74 00 03 10 or \$0x10030074,%rdi - +[a-f0-9]+: 48 81 de 74 00 03 10 sbb \$0x10030074,%rsi - +[a-f0-9]+: 48 81 ed 74 00 03 10 sub \$0x10030074,%rbp - +[a-f0-9]+: 49 81 f0 74 00 03 10 xor \$0x10030074,%r8 - +[a-f0-9]+: 49 f7 c7 74 00 03 10 test \$0x10030074,%r15 - +[a-f0-9]+: 81 d0 75 00 03 10 adc \$0x10030075,%eax - +[a-f0-9]+: 81 c3 75 00 03 10 add \$0x10030075,%ebx - +[a-f0-9]+: 81 e1 75 00 03 10 and \$0x10030075,%ecx - +[a-f0-9]+: 81 fa 75 00 03 10 cmp \$0x10030075,%edx - +[a-f0-9]+: 81 ce 75 00 03 10 or \$0x10030075,%esi - +[a-f0-9]+: 81 df 75 00 03 10 sbb \$0x10030075,%edi - +[a-f0-9]+: 81 ed 75 00 03 10 sub \$0x10030075,%ebp - +[a-f0-9]+: 41 81 f0 75 00 03 10 xor \$0x10030075,%r8d - +[a-f0-9]+: 41 f7 c7 75 00 03 10 test \$0x10030075,%r15d - +[a-f0-9]+: 48 81 d0 75 00 03 10 adc \$0x10030075,%rax - +[a-f0-9]+: 48 81 c3 75 00 03 10 add \$0x10030075,%rbx - +[a-f0-9]+: 48 81 e1 75 00 03 10 and \$0x10030075,%rcx - +[a-f0-9]+: 48 81 fa 75 00 03 10 cmp \$0x10030075,%rdx - +[a-f0-9]+: 48 81 cf 75 00 03 10 or \$0x10030075,%rdi - +[a-f0-9]+: 48 81 de 75 00 03 10 sbb \$0x10030075,%rsi - +[a-f0-9]+: 48 81 ed 75 00 03 10 sub \$0x10030075,%rbp - +[a-f0-9]+: 49 81 f0 75 00 03 10 xor \$0x10030075,%r8 - +[a-f0-9]+: 49 f7 c7 75 00 03 10 test \$0x10030075,%r15 -#pass diff --git a/ld/testsuite/ld-x86-64/load1b.d b/ld/testsuite/ld-x86-64/load1b.d index 74cc059..e38707c 100644 --- a/ld/testsuite/ld-x86-64/load1b.d +++ b/ld/testsuite/ld-x86-64/load1b.d @@ -2,7 +2,6 @@ #as: --x32 -mrelax-relocations=yes #ld: -melf32_x86_64 -z max-page-size=0x200000 -z noseparate-code #objdump: -dw --sym -#notarget: x86_64-*-nacl* .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/load1c-nacl.d b/ld/testsuite/ld-x86-64/load1c-nacl.d deleted file mode 100644 index f677b8d..0000000 --- a/ld/testsuite/ld-x86-64/load1c-nacl.d +++ /dev/null @@ -1,48 +0,0 @@ -#source: load1.s -#as: --64 -#ld: -shared -melf_x86_64 --hash-style=sysv -#objdump: -dw -#target: x86_64-*-nacl* - -.*: +file format .* - -Disassembly of section .text: - -0+ <_start>: - +[a-f0-9]+: 13 05 9a 02 01 10 adc 0x1001029a\(%rip\),%eax # 100102a0 <.got> - +[a-f0-9]+: 03 1d 94 02 01 10 add 0x10010294\(%rip\),%ebx # 100102a0 <.got> - +[a-f0-9]+: 23 0d 8e 02 01 10 and 0x1001028e\(%rip\),%ecx # 100102a0 <.got> - +[a-f0-9]+: 3b 15 88 02 01 10 cmp 0x10010288\(%rip\),%edx # 100102a0 <.got> - +[a-f0-9]+: 0b 35 82 02 01 10 or 0x10010282\(%rip\),%esi # 100102a0 <.got> - +[a-f0-9]+: 1b 3d 7c 02 01 10 sbb 0x1001027c\(%rip\),%edi # 100102a0 <.got> - +[a-f0-9]+: 2b 2d 76 02 01 10 sub 0x10010276\(%rip\),%ebp # 100102a0 <.got> - +[a-f0-9]+: 44 33 05 6f 02 01 10 xor 0x1001026f\(%rip\),%r8d # 100102a0 <.got> - +[a-f0-9]+: 44 85 3d 68 02 01 10 test %r15d,0x10010268\(%rip\) # 100102a0 <.got> - +[a-f0-9]+: 48 13 05 61 02 01 10 adc 0x10010261\(%rip\),%rax # 100102a0 <.got> - +[a-f0-9]+: 48 03 1d 5a 02 01 10 add 0x1001025a\(%rip\),%rbx # 100102a0 <.got> - +[a-f0-9]+: 48 23 0d 53 02 01 10 and 0x10010253\(%rip\),%rcx # 100102a0 <.got> - +[a-f0-9]+: 48 3b 15 4c 02 01 10 cmp 0x1001024c\(%rip\),%rdx # 100102a0 <.got> - +[a-f0-9]+: 48 0b 3d 45 02 01 10 or 0x10010245\(%rip\),%rdi # 100102a0 <.got> - +[a-f0-9]+: 48 1b 35 3e 02 01 10 sbb 0x1001023e\(%rip\),%rsi # 100102a0 <.got> - +[a-f0-9]+: 48 2b 2d 37 02 01 10 sub 0x10010237\(%rip\),%rbp # 100102a0 <.got> - +[a-f0-9]+: 4c 33 05 30 02 01 10 xor 0x10010230\(%rip\),%r8 # 100102a0 <.got> - +[a-f0-9]+: 4c 85 3d 29 02 01 10 test %r15,0x10010229\(%rip\) # 100102a0 <.got> - +[a-f0-9]+: 13 05 2b 02 01 10 adc 0x1001022b\(%rip\),%eax # 100102a8 <foo-0x21> - +[a-f0-9]+: 03 1d 25 02 01 10 add 0x10010225\(%rip\),%ebx # 100102a8 <foo-0x21> - +[a-f0-9]+: 23 0d 1f 02 01 10 and 0x1001021f\(%rip\),%ecx # 100102a8 <foo-0x21> - +[a-f0-9]+: 3b 15 19 02 01 10 cmp 0x10010219\(%rip\),%edx # 100102a8 <foo-0x21> - +[a-f0-9]+: 0b 35 13 02 01 10 or 0x10010213\(%rip\),%esi # 100102a8 <foo-0x21> - +[a-f0-9]+: 1b 3d 0d 02 01 10 sbb 0x1001020d\(%rip\),%edi # 100102a8 <foo-0x21> - +[a-f0-9]+: 2b 2d 07 02 01 10 sub 0x10010207\(%rip\),%ebp # 100102a8 <foo-0x21> - +[a-f0-9]+: 44 33 05 00 02 01 10 xor 0x10010200\(%rip\),%r8d # 100102a8 <foo-0x21> - +[a-f0-9]+: 44 85 3d f9 01 01 10 test %r15d,0x100101f9\(%rip\) # 100102a8 <foo-0x21> - +[a-f0-9]+: 48 13 05 f2 01 01 10 adc 0x100101f2\(%rip\),%rax # 100102a8 <foo-0x21> - +[a-f0-9]+: 48 03 1d eb 01 01 10 add 0x100101eb\(%rip\),%rbx # 100102a8 <foo-0x21> - +[a-f0-9]+: 48 23 0d e4 01 01 10 and 0x100101e4\(%rip\),%rcx # 100102a8 <foo-0x21> - +[a-f0-9]+: 48 3b 15 dd 01 01 10 cmp 0x100101dd\(%rip\),%rdx # 100102a8 <foo-0x21> - +[a-f0-9]+: 48 0b 3d d6 01 01 10 or 0x100101d6\(%rip\),%rdi # 100102a8 <foo-0x21> - +[a-f0-9]+: 48 1b 35 cf 01 01 10 sbb 0x100101cf\(%rip\),%rsi # 100102a8 <foo-0x21> - +[a-f0-9]+: 48 2b 2d c8 01 01 10 sub 0x100101c8\(%rip\),%rbp # 100102a8 <foo-0x21> - +[a-f0-9]+: 4c 33 05 c1 01 01 10 xor 0x100101c1\(%rip\),%r8 # 100102a8 <foo-0x21> - +[a-f0-9]+: 4c 85 3d ba 01 01 10 test %r15,0x100101ba\(%rip\) # 100102a8 <foo-0x21> -#pass diff --git a/ld/testsuite/ld-x86-64/load1c.d b/ld/testsuite/ld-x86-64/load1c.d index 3b75352..db9c69f 100644 --- a/ld/testsuite/ld-x86-64/load1c.d +++ b/ld/testsuite/ld-x86-64/load1c.d @@ -2,7 +2,6 @@ #as: --64 #ld: -shared -melf_x86_64 --hash-style=sysv -z max-page-size=0x200000 -z noseparate-code #objdump: -dw -#notarget: x86_64-*-nacl* .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/load1d-nacl.d b/ld/testsuite/ld-x86-64/load1d-nacl.d deleted file mode 100644 index db1f7af..0000000 --- a/ld/testsuite/ld-x86-64/load1d-nacl.d +++ /dev/null @@ -1,48 +0,0 @@ -#source: load1.s -#as: --x32 -#ld: -shared -melf32_x86_64 --hash-style=sysv -#objdump: -dw -#target: x86_64-*-nacl* - -.*: +file format .* - -Disassembly of section .text: - -0+ <_start>: - +[a-f0-9]+: 13 05 8a 01 01 10 adc 0x1001018a\(%rip\),%eax # 10010190 <.got> - +[a-f0-9]+: 03 1d 84 01 01 10 add 0x10010184\(%rip\),%ebx # 10010190 <.got> - +[a-f0-9]+: 23 0d 7e 01 01 10 and 0x1001017e\(%rip\),%ecx # 10010190 <.got> - +[a-f0-9]+: 3b 15 78 01 01 10 cmp 0x10010178\(%rip\),%edx # 10010190 <.got> - +[a-f0-9]+: 0b 35 72 01 01 10 or 0x10010172\(%rip\),%esi # 10010190 <.got> - +[a-f0-9]+: 1b 3d 6c 01 01 10 sbb 0x1001016c\(%rip\),%edi # 10010190 <.got> - +[a-f0-9]+: 2b 2d 66 01 01 10 sub 0x10010166\(%rip\),%ebp # 10010190 <.got> - +[a-f0-9]+: 44 33 05 5f 01 01 10 xor 0x1001015f\(%rip\),%r8d # 10010190 <.got> - +[a-f0-9]+: 44 85 3d 58 01 01 10 test %r15d,0x10010158\(%rip\) # 10010190 <.got> - +[a-f0-9]+: 48 13 05 51 01 01 10 adc 0x10010151\(%rip\),%rax # 10010190 <.got> - +[a-f0-9]+: 48 03 1d 4a 01 01 10 add 0x1001014a\(%rip\),%rbx # 10010190 <.got> - +[a-f0-9]+: 48 23 0d 43 01 01 10 and 0x10010143\(%rip\),%rcx # 10010190 <.got> - +[a-f0-9]+: 48 3b 15 3c 01 01 10 cmp 0x1001013c\(%rip\),%rdx # 10010190 <.got> - +[a-f0-9]+: 48 0b 3d 35 01 01 10 or 0x10010135\(%rip\),%rdi # 10010190 <.got> - +[a-f0-9]+: 48 1b 35 2e 01 01 10 sbb 0x1001012e\(%rip\),%rsi # 10010190 <.got> - +[a-f0-9]+: 48 2b 2d 27 01 01 10 sub 0x10010127\(%rip\),%rbp # 10010190 <.got> - +[a-f0-9]+: 4c 33 05 20 01 01 10 xor 0x10010120\(%rip\),%r8 # 10010190 <.got> - +[a-f0-9]+: 4c 85 3d 19 01 01 10 test %r15,0x10010119\(%rip\) # 10010190 <.got> - +[a-f0-9]+: 13 05 1b 01 01 10 adc 0x1001011b\(%rip\),%eax # 10010198 <foo-0x21> - +[a-f0-9]+: 03 1d 15 01 01 10 add 0x10010115\(%rip\),%ebx # 10010198 <foo-0x21> - +[a-f0-9]+: 23 0d 0f 01 01 10 and 0x1001010f\(%rip\),%ecx # 10010198 <foo-0x21> - +[a-f0-9]+: 3b 15 09 01 01 10 cmp 0x10010109\(%rip\),%edx # 10010198 <foo-0x21> - +[a-f0-9]+: 0b 35 03 01 01 10 or 0x10010103\(%rip\),%esi # 10010198 <foo-0x21> - +[a-f0-9]+: 1b 3d fd 00 01 10 sbb 0x100100fd\(%rip\),%edi # 10010198 <foo-0x21> - +[a-f0-9]+: 2b 2d f7 00 01 10 sub 0x100100f7\(%rip\),%ebp # 10010198 <foo-0x21> - +[a-f0-9]+: 44 33 05 f0 00 01 10 xor 0x100100f0\(%rip\),%r8d # 10010198 <foo-0x21> - +[a-f0-9]+: 44 85 3d e9 00 01 10 test %r15d,0x100100e9\(%rip\) # 10010198 <foo-0x21> - +[a-f0-9]+: 48 13 05 e2 00 01 10 adc 0x100100e2\(%rip\),%rax # 10010198 <foo-0x21> - +[a-f0-9]+: 48 03 1d db 00 01 10 add 0x100100db\(%rip\),%rbx # 10010198 <foo-0x21> - +[a-f0-9]+: 48 23 0d d4 00 01 10 and 0x100100d4\(%rip\),%rcx # 10010198 <foo-0x21> - +[a-f0-9]+: 48 3b 15 cd 00 01 10 cmp 0x100100cd\(%rip\),%rdx # 10010198 <foo-0x21> - +[a-f0-9]+: 48 0b 3d c6 00 01 10 or 0x100100c6\(%rip\),%rdi # 10010198 <foo-0x21> - +[a-f0-9]+: 48 1b 35 bf 00 01 10 sbb 0x100100bf\(%rip\),%rsi # 10010198 <foo-0x21> - +[a-f0-9]+: 48 2b 2d b8 00 01 10 sub 0x100100b8\(%rip\),%rbp # 10010198 <foo-0x21> - +[a-f0-9]+: 4c 33 05 b1 00 01 10 xor 0x100100b1\(%rip\),%r8 # 10010198 <foo-0x21> - +[a-f0-9]+: 4c 85 3d aa 00 01 10 test %r15,0x100100aa\(%rip\) # 10010198 <foo-0x21> -#pass diff --git a/ld/testsuite/ld-x86-64/load1d.d b/ld/testsuite/ld-x86-64/load1d.d index c7550e2..7ccae53 100644 --- a/ld/testsuite/ld-x86-64/load1d.d +++ b/ld/testsuite/ld-x86-64/load1d.d @@ -2,7 +2,6 @@ #as: --x32 #ld: -shared -melf32_x86_64 --hash-style=sysv -z max-page-size=0x200000 -z noseparate-code #objdump: -dw -#notarget: x86_64-*-nacl* .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/pie3-nacl.d b/ld/testsuite/ld-x86-64/pie3-nacl.d deleted file mode 100644 index efb74ed..0000000 --- a/ld/testsuite/ld-x86-64/pie3-nacl.d +++ /dev/null @@ -1,14 +0,0 @@ -#source: pie3.s -#as: --64 -#ld: -pie -melf_x86_64 --hash-style=sysv -#objdump: -dw -#target: x86_64-*-nacl* - -.*: +file format .* - - -Disassembly of section .text: - -0+ <_start>: - +0: 48 8d 05 f9 ff ff ff lea -0x7\(%rip\),%rax # 0 <_start> -#pass diff --git a/ld/testsuite/ld-x86-64/pie3.d b/ld/testsuite/ld-x86-64/pie3.d index 6457fbd..b943837 100644 --- a/ld/testsuite/ld-x86-64/pie3.d +++ b/ld/testsuite/ld-x86-64/pie3.d @@ -1,7 +1,6 @@ #as: --64 #ld: -pie -melf_x86_64 --hash-style=sysv -z max-page-size=0x200000 -z noseparate-code #objdump: -dw -#notarget: x86_64-*-nacl* .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/plt-nacl.pd b/ld/testsuite/ld-x86-64/plt-nacl.pd deleted file mode 100644 index 9f572fd..0000000 --- a/ld/testsuite/ld-x86-64/plt-nacl.pd +++ /dev/null @@ -1,55 +0,0 @@ -#source: plt.s -#as: --64 -#ld: -melf_x86_64_nacl -#objdump: -drj.plt -#target: x86_64-*-nacl* - -.*: +file format .* - -Disassembly of section .plt: - -[0-9a-f]+ <.plt>: - +[0-9a-f]+: ff 35 ([0-9a-f]{2} ){4} * pushq 0x[0-9a-f]+\(%rip\) +# [0-9a-f]+ <_GLOBAL_OFFSET_TABLE_\+0x8> - +[0-9a-f]+: 4c 8b 1d ([0-9a-f]{2} ){4} * mov 0x[0-9a-f]+\(%rip\),%r11 +# [0-9a-f]+ <_GLOBAL_OFFSET_TABLE_\+0x10> - +[0-9a-f]+: 41 83 e3 e0 and \$0xffffffe0,%r11d - +[0-9a-f]+: 4d 01 fb add %r15,%r11 - +[0-9a-f]+: 41 ff e3 jmpq \*%r11 - +[0-9a-f]+: 66 0f 1f 84 00 00 00 nopw 0x0\(%rax,%rax,1\) - +[0-9a-f]+: 00 00 * - +[0-9a-f]+: 66 66 66 66 66 66 2e data16 data16 data16 data16 data16 nopw %cs:0x0\(%rax,%rax,1\) - +[0-9a-f]+: 0f 1f 84 00 00 00 00 * - +[0-9a-f]+: 00 * - +[0-9a-f]+: 66 66 66 66 66 66 2e data16 data16 data16 data16 data16 nopw %cs:0x0\(%rax,%rax,1\) - +[0-9a-f]+: 0f 1f 84 00 00 00 00 * - +[0-9a-f]+: 00 * - +[0-9a-f]+: 66 90 xchg %ax,%ax - -[0-9a-f]+ <fn1@plt>: - +[0-9a-f]+: 4c 8b 1d ([0-9a-f]{2} ){4} * mov 0x[0-9a-f]+\(%rip\),%r11 +# [0-9a-f]+ <fn1> - +[0-9a-f]+: 41 83 e3 e0 and \$0xffffffe0,%r11d - +[0-9a-f]+: 4d 01 fb add %r15,%r11 - +[0-9a-f]+: 41 ff e3 jmpq \*%r11 - +[0-9a-f]+: 66 66 66 66 66 66 2e data16 data16 data16 data16 data16 nopw %cs:0x0\(%rax,%rax,1\) - +[0-9a-f]+: 0f 1f 84 00 00 00 00 * - +[0-9a-f]+: 00 * - +[0-9a-f]+: 68 00 00 00 00 pushq \$0x0 - +[0-9a-f]+: e9 ([0-9a-f]{2} ){4} * jmpq [0-9a-f]+ <.plt> - +[0-9a-f]+: 66 66 66 66 66 66 2e data16 data16 data16 data16 data16 nopw %cs:0x0\(%rax,%rax,1\) - +[0-9a-f]+: 0f 1f 84 00 00 00 00 * - +[0-9a-f]+: 00 * - +[0-9a-f]+: 0f 1f 80 00 00 00 00 nopl 0x0\(%rax\) - -[0-9a-f]+ <fn2@plt>: - +[0-9a-f]+: 4c 8b 1d ([0-9a-f]{2} ){4} * mov 0x[0-9a-f]+\(%rip\),%r11 +# [0-9a-f]+ <fn2> - +[0-9a-f]+: 41 83 e3 e0 and \$0xffffffe0,%r11d - +[0-9a-f]+: 4d 01 fb add %r15,%r11 - +[0-9a-f]+: 41 ff e3 jmpq \*%r11 - +[0-9a-f]+: 66 66 66 66 66 66 2e data16 data16 data16 data16 data16 nopw %cs:0x0\(%rax,%rax,1\) - +[0-9a-f]+: 0f 1f 84 00 00 00 00 * - +[0-9a-f]+: 00 * - +[0-9a-f]+: 68 01 00 00 00 pushq \$0x1 - +[0-9a-f]+: e9 ([0-9a-f]{2} ){4} * jmpq [0-9a-f]+ <.plt> - +[0-9a-f]+: 66 66 66 66 66 66 2e data16 data16 data16 data16 data16 nopw %cs:0x0\(%rax,%rax,1\) - +[0-9a-f]+: 0f 1f 84 00 00 00 00 * - +[0-9a-f]+: 00 * - +[0-9a-f]+: 0f 1f 80 00 00 00 00 nopl 0x0\(%rax\) diff --git a/ld/testsuite/ld-x86-64/pr17709-nacl.rd b/ld/testsuite/ld-x86-64/pr17709-nacl.rd deleted file mode 100644 index beffd3c..0000000 --- a/ld/testsuite/ld-x86-64/pr17709-nacl.rd +++ /dev/null @@ -1,4 +0,0 @@ - -Relocation section '.rela\..*' at offset .* contains 1 entry: - +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend -[0-9a-f ]+R_X86_64_COPY+[0-9a-f ]+ +foo \+ 0 diff --git a/ld/testsuite/ld-x86-64/pr18160.d b/ld/testsuite/ld-x86-64/pr18160.d index ebbda3a..b944bbe 100644 --- a/ld/testsuite/ld-x86-64/pr18160.d +++ b/ld/testsuite/ld-x86-64/pr18160.d @@ -1,7 +1,6 @@ #as: --64 #ld: --gc-sections -melf_x86_64 -T pr18160.t #objdump: -dw -#notarget: x86_64-*-nacl* .*: +file format elf32-i386 diff --git a/ld/testsuite/ld-x86-64/pr19013-nacl.d b/ld/testsuite/ld-x86-64/pr19013-nacl.d deleted file mode 100644 index 990a508..0000000 --- a/ld/testsuite/ld-x86-64/pr19013-nacl.d +++ /dev/null @@ -1,9 +0,0 @@ -#source: pr19013.s -#as: --x32 -#ld: --oformat elf32-i386-nacl -#objdump: -s -j .rodata -#target: x86_64-*-nacl* - -#... - [0-9a-f]+ 02030041 42434400 +...ABCD. + -#pass diff --git a/ld/testsuite/ld-x86-64/pr19013-x32.d b/ld/testsuite/ld-x86-64/pr19013-x32.d index 97fb841..5634b87 100644 --- a/ld/testsuite/ld-x86-64/pr19013-x32.d +++ b/ld/testsuite/ld-x86-64/pr19013-x32.d @@ -2,7 +2,6 @@ #as: --x32 #ld: --oformat elf32-i386 -m elf32_x86_64 #objdump: -s -j .rodata -#notarget: x86_64-*-nacl* #... [0-9a-f]+ 02030041 42434400 +...ABCD. + diff --git a/ld/testsuite/ld-x86-64/pr19013.d b/ld/testsuite/ld-x86-64/pr19013.d index 554e6e8..97137a7 100644 --- a/ld/testsuite/ld-x86-64/pr19013.d +++ b/ld/testsuite/ld-x86-64/pr19013.d @@ -1,7 +1,6 @@ #as: --64 #ld: --oformat elf32-i386 -m elf_x86_64 #objdump: -s -j .rodata -#notarget: x86_64-*-nacl* #... [0-9a-f]+ 00000203 00414243 4400 +.....ABCD. + diff --git a/ld/testsuite/ld-x86-64/pr19636-2d-nacl.d b/ld/testsuite/ld-x86-64/pr19636-2d-nacl.d deleted file mode 100644 index f584bda..0000000 --- a/ld/testsuite/ld-x86-64/pr19636-2d-nacl.d +++ /dev/null @@ -1,37 +0,0 @@ -#source: pr19636-2.s -#as: --64 -mrelax-relocations=no -#ld: -pie -m elf_x86_64 --no-dynamic-linker --hash-style=sysv -#objdump: -dw -#target: x86_64-*-nacl* - -.*: +file format .* - - -Disassembly of section .plt: - -0+ <.plt>: -[ ]*[a-f0-9]+: ff 35 42 02 01 10 pushq 0x10010242\(%rip\) # 10010248 <_GLOBAL_OFFSET_TABLE_\+0x8> -[ ]*[a-f0-9]+: 4c 8b 1d 43 02 01 10 mov 0x10010243\(%rip\),%r11 # 10010250 <_GLOBAL_OFFSET_TABLE_\+0x10> -[ ]*[a-f0-9]+: 41 83 e3 e0 and \$0xffffffe0,%r11d -[ ]*[a-f0-9]+: 4d 01 fb add %r15,%r11 -[ ]*[a-f0-9]+: 41 ff e3 jmpq \*%r11 -[ ]*[a-f0-9]+: 66 0f 1f 84 00 00 00 00 00 nopw 0x0\(%rax,%rax,1\) -[ ]*[a-f0-9]+: 66 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 data16 data16 data16 data16 data16 nopw %cs:0x0\(%rax,%rax,1\) -[ ]*[a-f0-9]+: 66 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 data16 data16 data16 data16 data16 nopw %cs:0x0\(%rax,%rax,1\) -[ ]*[a-f0-9]+: 66 90 xchg %ax,%ax -[ ]*[a-f0-9]+: 4c 8b 1d 11 02 01 10 mov 0x10010211\(%rip\),%r11 # 10010258 <_GLOBAL_OFFSET_TABLE_\+0x18> -[ ]*[a-f0-9]+: 41 83 e3 e0 and \$0xffffffe0,%r11d -[ ]*[a-f0-9]+: 4d 01 fb add %r15,%r11 -[ ]*[a-f0-9]+: 41 ff e3 jmpq \*%r11 -[ ]*[a-f0-9]+: 66 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 data16 data16 data16 data16 data16 nopw %cs:0x0\(%rax,%rax,1\) -[ ]*[a-f0-9]+: 68 00 00 00 00 pushq \$0x0 -[ ]*[a-f0-9]+: e9 00 00 00 00 jmpq 6a <\.plt\+0x6a> -[ ]*[a-f0-9]+: 66 66 66 66 66 66 2e 0f 1f 84 00 00 00 00 00 data16 data16 data16 data16 data16 nopw %cs:0x0\(%rax,%rax,1\) -[ ]*[a-f0-9]+: 0f 1f 80 00 00 00 00 nopl 0x0\(%rax\) - -Disassembly of section .text: - -0+80 <_start>: -[ ]*[a-f0-9]+: 48 3b 05 a9 01 01 10 cmp 0x100101a9\(%rip\),%rax # 10010230 <\.got> -[ ]*[a-f0-9]+: ff 25 ab 01 01 10 jmpq \*0x100101ab\(%rip\) # 10010238 <\.got\+0x8> -[ ]*[a-f0-9]+: e8 ae ff ff ff callq 40 <\.plt\+0x40> diff --git a/ld/testsuite/ld-x86-64/pr19636-2d.d b/ld/testsuite/ld-x86-64/pr19636-2d.d index b0e71d9..1815d2c 100644 --- a/ld/testsuite/ld-x86-64/pr19636-2d.d +++ b/ld/testsuite/ld-x86-64/pr19636-2d.d @@ -2,7 +2,6 @@ #as: --64 -mrelax-relocations=no #ld: -pie -m elf_x86_64 --no-dynamic-linker --hash-style=sysv -z max-page-size=0x200000 -z noseparate-code #objdump: -dw -#notarget: x86_64-*-nacl* .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/pr19636-2l.d b/ld/testsuite/ld-x86-64/pr19636-2l.d index e99c06a..994a6da 100644 --- a/ld/testsuite/ld-x86-64/pr19636-2l.d +++ b/ld/testsuite/ld-x86-64/pr19636-2l.d @@ -3,7 +3,6 @@ #ld: -pie -m elf_x86_64 --no-dynamic-linker --hash-style=sysv -z dynamic-undefined-weak -z max-page-size=0x200000 -z noseparate-code #objdump: -dw #warning: -z dynamic-undefined-weak ignored -#notarget: x86_64-*-nacl* .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/pr19827-nacl.rd b/ld/testsuite/ld-x86-64/pr19827-nacl.rd deleted file mode 100644 index bd70130..0000000 --- a/ld/testsuite/ld-x86-64/pr19827-nacl.rd +++ /dev/null @@ -1,5 +0,0 @@ -#readelf: -r --wide - -Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 1 entry: - Offset Info Type Symbol's Value Symbol's Name \+ Addend -[0-9a-f]+ +[0-9a-f]+ +R_X86_64_RELATIVE +[0-9a-f]+ diff --git a/ld/testsuite/ld-x86-64/pr20253-1b.d b/ld/testsuite/ld-x86-64/pr20253-1b.d index 21ff6f3..fdf94e1 100644 --- a/ld/testsuite/ld-x86-64/pr20253-1b.d +++ b/ld/testsuite/ld-x86-64/pr20253-1b.d @@ -2,7 +2,6 @@ #as: --64 #ld: -melf_x86_64 -z max-page-size=0x200000 -z noseparate-code #objdump: -dw -#notarget: x86_64-*-nacl* .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/pr20253-1d.d b/ld/testsuite/ld-x86-64/pr20253-1d.d index 34bd4e7..aed1605 100644 --- a/ld/testsuite/ld-x86-64/pr20253-1d.d +++ b/ld/testsuite/ld-x86-64/pr20253-1d.d @@ -2,7 +2,6 @@ #as: --64 #ld: -pie -melf_x86_64 --hash-style=sysv -z max-page-size=0x200000 -z noseparate-code #objdump: -dw -#notarget: x86_64-*-nacl* .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/pr20253-1f.d b/ld/testsuite/ld-x86-64/pr20253-1f.d index cdf10f4..884d127 100644 --- a/ld/testsuite/ld-x86-64/pr20253-1f.d +++ b/ld/testsuite/ld-x86-64/pr20253-1f.d @@ -2,7 +2,6 @@ #as: --64 #ld: -shared -melf_x86_64 --hash-style=sysv -z max-page-size=0x200000 -z noseparate-code #objdump: -dw -#notarget: x86_64-*-nacl* .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/pr20253-1h.d b/ld/testsuite/ld-x86-64/pr20253-1h.d index ed903a3..d21a7af 100644 --- a/ld/testsuite/ld-x86-64/pr20253-1h.d +++ b/ld/testsuite/ld-x86-64/pr20253-1h.d @@ -2,7 +2,6 @@ #as: --x32 #ld: -melf32_x86_64 -z max-page-size=0x200000 -z noseparate-code #objdump: -dw -#notarget: x86_64-*-nacl* .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/pr20253-1j.d b/ld/testsuite/ld-x86-64/pr20253-1j.d index db48952..9436544 100644 --- a/ld/testsuite/ld-x86-64/pr20253-1j.d +++ b/ld/testsuite/ld-x86-64/pr20253-1j.d @@ -2,7 +2,6 @@ #as: --x32 #ld: -pie -melf32_x86_64 --hash-style=sysv -z max-page-size=0x200000 -z noseparate-code #objdump: -dw -#notarget: x86_64-*-nacl* .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/pr20253-1l.d b/ld/testsuite/ld-x86-64/pr20253-1l.d index 49aa5c1..3d37f34 100644 --- a/ld/testsuite/ld-x86-64/pr20253-1l.d +++ b/ld/testsuite/ld-x86-64/pr20253-1l.d @@ -2,7 +2,6 @@ #as: --x32 #ld: -shared -melf32_x86_64 --hash-style=sysv -z max-page-size=0x200000 -z noseparate-code #objdump: -dw -#notarget: x86_64-*-nacl* .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/pr21884-nacl.d b/ld/testsuite/ld-x86-64/pr21884-nacl.d deleted file mode 100644 index 8883505..0000000 --- a/ld/testsuite/ld-x86-64/pr21884-nacl.d +++ /dev/null @@ -1,10 +0,0 @@ -#source: dummy.s -#as: --64 -#ld: -m elf_x86_64 -T pr21884-nacl.t -b binary -#objdump: -b binary -s -#target: x86_64-*-nacl* - -.*: file format binary - -Contents of section .data: -#pass diff --git a/ld/testsuite/ld-x86-64/pr21884-nacl.t b/ld/testsuite/ld-x86-64/pr21884-nacl.t deleted file mode 100644 index 722312e..0000000 --- a/ld/testsuite/ld-x86-64/pr21884-nacl.t +++ /dev/null @@ -1,11 +0,0 @@ -OUTPUT_FORMAT("elf64-x86-64-nacl"); -OUTPUT_ARCH(i386:x86-64); - -ENTRY(_start); -SECTIONS { - . = 0x10000; - _start = . ; - .data : { - *(.data) - } -} diff --git a/ld/testsuite/ld-x86-64/pr21884.d b/ld/testsuite/ld-x86-64/pr21884.d index 7a2a3f3..a62d8bc 100644 --- a/ld/testsuite/ld-x86-64/pr21884.d +++ b/ld/testsuite/ld-x86-64/pr21884.d @@ -2,7 +2,6 @@ #as: --64 #ld: -m elf_x86_64 -T pr21884.t -b binary #objdump: -b binary -s -#notarget: x86_64-*-nacl* .*: file format binary diff --git a/ld/testsuite/ld-x86-64/pr22393-3a.rd b/ld/testsuite/ld-x86-64/pr22393-3a.rd index 0050f1b..b17e09b 100644 --- a/ld/testsuite/ld-x86-64/pr22393-3a.rd +++ b/ld/testsuite/ld-x86-64/pr22393-3a.rd @@ -1,7 +1,7 @@ #source: pr22393-1.s #ld: -shared -z separate-code #readelf: -l --wide -#target: *-*-linux-gnu *-*-gnu* *-*-nacl* +#target: *-*-linux-gnu *-*-gnu* #failif #... diff --git a/ld/testsuite/ld-x86-64/pr22393-3b.rd b/ld/testsuite/ld-x86-64/pr22393-3b.rd index 0050f1b..b17e09b 100644 --- a/ld/testsuite/ld-x86-64/pr22393-3b.rd +++ b/ld/testsuite/ld-x86-64/pr22393-3b.rd @@ -1,7 +1,7 @@ #source: pr22393-1.s #ld: -shared -z separate-code #readelf: -l --wide -#target: *-*-linux-gnu *-*-gnu* *-*-nacl* +#target: *-*-linux-gnu *-*-gnu* #failif #... diff --git a/ld/testsuite/ld-x86-64/split-by-file-nacl.rd b/ld/testsuite/ld-x86-64/split-by-file-nacl.rd deleted file mode 100644 index 4e3e74a..0000000 --- a/ld/testsuite/ld-x86-64/split-by-file-nacl.rd +++ /dev/null @@ -1,15 +0,0 @@ -There are 9 section headers, starting at offset .*: - -Section Headers: - \[Nr\] Name Type Address Off Size ES Flg Lk Inf Al - \[ 0\] NULL 0000000000000000 000000 000000 00 0 0 0 - \[ 1\] .text PROGBITS 0000000000000000 000040 000000 00 AX 0 0 1 - \[ 2\] .foo PROGBITS 0000000000000000 000040 000003 00 AXl 0 0 1 - \[ 3\] .data PROGBITS 0000000000000000 000043 000000 00 WA 0 0 1 - \[ 4\] .bss NOBITS 0000000000000000 000043 000000 00 WA 0 0 1 - \[ 5\] .foo.0 PROGBITS 0000000000000003 000043 000003 00 AXl 0 0 1 - \[ 6\] .symtab SYMTAB 0000000000000000 [0-9a-f]+ [0-9a-f]+ 18 7 [0-9] 8 - \[ 7\] .strtab STRTAB 0000000000000000 [0-9a-f]+ [0-9a-f]+ 00 0 0 1 - \[ 8\] .shstrtab STRTAB 0000000000000000 [0-9a-f]+ 000038 00 0 0 1 -Key to Flags: -#pass diff --git a/ld/testsuite/ld-x86-64/tlsbin-nacl.rd b/ld/testsuite/ld-x86-64/tlsbin-nacl.rd deleted file mode 100644 index 15f28ac..0000000 --- a/ld/testsuite/ld-x86-64/tlsbin-nacl.rd +++ /dev/null @@ -1,147 +0,0 @@ -#source: tlsbinpic.s -#source: tlsbin.s -#as: --64 -#ld: -shared -melf_x86_64_nacl --no-ld-generated-unwind-info -#readelf: -WSsrl -#target: x86_64-*-nacl* - -There are [0-9]+ section headers, starting at offset 0x[0-9a-f]+: - -Section Headers: - +\[Nr\] Name +Type +Address +Off +Size +ES Flg Lk Inf Al - +\[[ 0-9]+\] +NULL +0+ 0+ 0+ 00 +0 +0 +0 - +\[[ 0-9]+\] .plt +.* - +\[[ 0-9]+\] .text +PROGBITS +0+21000 [0-9a-f]+ 0+231 00 +AX +0 +0 +4096 - +\[[ 0-9]+\] .interp +.* - +\[[ 0-9]+\] .hash +.* - +\[[ 0-9]+\] .dynsym +.* - +\[[ 0-9]+\] .dynstr +.* - +\[[ 0-9]+\] .rela.dyn +.* - +\[[ 0-9]+\] .rela.plt +.* - +\[[ 0-9]+\] .tdata +PROGBITS +0+10030348 [0-9a-f]+ 0+60 00 WAT +0 +0 +1 - +\[[ 0-9]+\] .tbss +NOBITS +0+100303a8 [0-9a-f]+ 0+40 00 WAT +0 +0 +1 - +\[[ 0-9]+\] .dynamic +DYNAMIC +0+100303a8 [0-9a-f]+ 0+140 10 +WA +6 +0 +8 - +\[[ 0-9]+\] .got +PROGBITS +0+100304e8 [0-9a-f]+ 0+20 08 +WA +0 +0 +8 - +\[[ 0-9]+\] .got.plt +PROGBITS +0+10030508 [0-9a-f]+ 0+20 08 +WA +0 +0 +8 - +\[[ 0-9]+\] .symtab +.* - +\[[ 0-9]+\] .strtab +.* - +\[[ 0-9]+\] .shstrtab +.* -Key to Flags: -#... - -Elf file type is EXEC \(Executable file\) -Entry point 0x21139 -There are [0-9]+ program headers, starting at offset [0-9]+ - -Program Headers: - +Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg Align - +PHDR.* - +INTERP.* -.*Requesting program interpreter.* - +LOAD +0x0+10000 0x0+20000 0x0+20000 0x0+10000 0x0+10000 R E +0x10000 - +LOAD +0x0+ 0x0+10020000 0x0+10020000 0x0+348 0x0+348 R +0x10000 - +LOAD +0x0+348 0x0+10030348 0x0+10030348 0x0+1e0 0x0+1e0 RW +0x10000 - +DYNAMIC +0x0+3a8 0x0+100303a8 0x0+100303a8 0x0+140 0x0+140 RW +0x8 - +TLS +0x0+348 0x0+10030348 0x0+10030348 0x0+60 0x0+a0 R +0x1 - - Section to Segment mapping: - +Segment Sections... - +00 * - +01 +.interp * - +02 +.plt .text * - +03 +.interp .hash .dynsym .dynstr .rela.dyn .rela.plt * - +04 +.tdata .dynamic .got .got.plt * - +05 +.dynamic * - +06 +.tdata .tbss * - -Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 4 entries: - +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend -[0-9a-f ]+R_X86_64_TPOFF64 +0+ sG5 \+ 0 -[0-9a-f ]+R_X86_64_TPOFF64 +0+ sG2 \+ 0 -[0-9a-f ]+R_X86_64_TPOFF64 +0+ sG6 \+ 0 -[0-9a-f ]+R_X86_64_TPOFF64 +0+ sG1 \+ 0 - -Relocation section '.rela.plt' at offset 0x[0-9a-f]+ contains 1 entry: - +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend -[0-9a-f ]+R_X86_64_JUMP_SLOT[0-9a-f ]+__tls_get_addr \+ 0 - -Symbol table '\.dynsym' contains [0-9]+ entries: - +Num: +Value +Size +Type +Bind +Vis +Ndx +Name -.* NOTYPE +LOCAL +DEFAULT +UND * -.* TLS +GLOBAL +DEFAULT +UND sG5 -.* TLS +GLOBAL +DEFAULT +UND sG2 -.* FUNC +GLOBAL +DEFAULT +UND __tls_get_addr -.* TLS +GLOBAL +DEFAULT +UND sG6 -.* TLS +GLOBAL +DEFAULT +UND sG1 - -Symbol table '\.symtab' contains [0-9]+ entries: - +Num: +Value +Size +Type +Bind +Vis +Ndx +Name -.* NOTYPE +LOCAL +DEFAULT +UND * -.* SECTION +LOCAL +DEFAULT +1 * -.* SECTION +LOCAL +DEFAULT +2 * -.* SECTION +LOCAL +DEFAULT +3 * -.* SECTION +LOCAL +DEFAULT +4 * -.* SECTION +LOCAL +DEFAULT +5 * -.* SECTION +LOCAL +DEFAULT +6 * -.* SECTION +LOCAL +DEFAULT +7 * -.* SECTION +LOCAL +DEFAULT +8 * -.* SECTION +LOCAL +DEFAULT +9 * -.* SECTION +LOCAL +DEFAULT +10 * -.* SECTION +LOCAL +DEFAULT +11 * -.* SECTION +LOCAL +DEFAULT +12 * -.* SECTION +LOCAL +DEFAULT +13 * -.* FILE +LOCAL +DEFAULT +ABS tmpdir/tlsbinpic.o -.* TLS +LOCAL +DEFAULT +9 sl1 -.* TLS +LOCAL +DEFAULT +9 sl2 -.* TLS +LOCAL +DEFAULT +9 sl3 -.* TLS +LOCAL +DEFAULT +9 sl4 -.* TLS +LOCAL +DEFAULT +9 sl5 -.* TLS +LOCAL +DEFAULT +9 sl6 -.* TLS +LOCAL +DEFAULT +9 sl7 -.* TLS +LOCAL +DEFAULT +9 sl8 -.* FILE +LOCAL +DEFAULT +ABS tmpdir/tlsbin.o -.* TLS +LOCAL +DEFAULT +10 bl1 -.* TLS +LOCAL +DEFAULT +10 bl2 -.* TLS +LOCAL +DEFAULT +10 bl3 -.* TLS +LOCAL +DEFAULT +10 bl4 -.* TLS +LOCAL +DEFAULT +10 bl5 -.* TLS +LOCAL +DEFAULT +10 bl6 -.* TLS +LOCAL +DEFAULT +10 bl7 -.* TLS +LOCAL +DEFAULT +10 bl8 -.* FILE +LOCAL +DEFAULT +ABS -.* OBJECT +LOCAL +DEFAULT +11 _DYNAMIC -.* OBJECT +LOCAL +DEFAULT +13 _GLOBAL_OFFSET_TABLE_ -.* TLS +GLOBAL +DEFAULT +9 sg8 -.* TLS +GLOBAL +DEFAULT +10 bg8 -.* TLS +GLOBAL +DEFAULT +10 bg6 -.* TLS +GLOBAL +DEFAULT +UND sG5 -.* TLS +GLOBAL +DEFAULT +10 bg3 -.* TLS +GLOBAL +DEFAULT +9 sg3 -.* TLS +GLOBAL +HIDDEN +9 sh3 -.* TLS +GLOBAL +DEFAULT +UND sG2 -.* TLS +GLOBAL +DEFAULT +9 sg4 -.* TLS +GLOBAL +DEFAULT +9 sg5 -.* TLS +GLOBAL +DEFAULT +10 bg5 -.* FUNC +GLOBAL +DEFAULT +UND __tls_get_addr -.* TLS +GLOBAL +HIDDEN +9 sh7 -.* TLS +GLOBAL +HIDDEN +9 sh8 -.* TLS +GLOBAL +DEFAULT +9 sg1 -.* FUNC +GLOBAL +DEFAULT +2 _start -.* TLS +GLOBAL +HIDDEN +9 sh4 -.* TLS +GLOBAL +DEFAULT +10 bg7 -.* TLS +GLOBAL +HIDDEN +9 sh5 -.* NOTYPE +GLOBAL +DEFAULT +13 __bss_start -.* TLS +GLOBAL +DEFAULT +UND sG6 -.* FUNC +GLOBAL +DEFAULT +2 fn2 -.* TLS +GLOBAL +DEFAULT +9 sg2 -.* TLS +GLOBAL +DEFAULT +UND sG1 -.* TLS +GLOBAL +HIDDEN +9 sh1 -.* TLS +GLOBAL +DEFAULT +9 sg6 -.* TLS +GLOBAL +DEFAULT +9 sg7 -.* NOTYPE +GLOBAL +DEFAULT +13 _edata -.* NOTYPE +GLOBAL +DEFAULT +13 _end -.* TLS +GLOBAL +HIDDEN +9 sh2 -.* TLS +GLOBAL +HIDDEN +9 sh6 -.* TLS +GLOBAL +DEFAULT +10 bg2 -.* TLS +GLOBAL +DEFAULT +10 bg1 -.* TLS +GLOBAL +DEFAULT +10 bg4 diff --git a/ld/testsuite/ld-x86-64/tlsbin2-nacl.rd b/ld/testsuite/ld-x86-64/tlsbin2-nacl.rd deleted file mode 100644 index ffaf585..0000000 --- a/ld/testsuite/ld-x86-64/tlsbin2-nacl.rd +++ /dev/null @@ -1,140 +0,0 @@ -#source: tlsbinpic2.s -#source: tlsbin.s -#as: --64 -#ld: -shared -melf_x86_64_nacl --no-ld-generated-unwind-info -#readelf: -WSsrl -#target: x86_64-*-nacl* - -There are [0-9]+ section headers, starting at offset 0x[0-9a-f]+: - -Section Headers: - +\[Nr\] Name +Type +Address +Off +Size +ES Flg Lk Inf Al - +\[[ 0-9]+\] +NULL +0+ 0+ 0+ 00 +0 +0 +0 - +\[[ 0-9]+\] .text +PROGBITS +0+20000 [0-9a-f]+ 0+233 00 +AX +0 +0 +4096 - +\[[ 0-9]+\] .interp +.* - +\[[ 0-9]+\] .hash +.* - +\[[ 0-9]+\] .dynsym +.* - +\[[ 0-9]+\] .dynstr +.* - +\[[ 0-9]+\] .rela.dyn +.* - +\[[ 0-9]+\] .tdata +PROGBITS +0+10030348 [0-9a-f]+ 0+60 00 WAT +0 +0 +1 - +\[[ 0-9]+\] .tbss +NOBITS +0+100303a8 [0-9a-f]+ 0+40 00 WAT +0 +0 +1 - +\[[ 0-9]+\] .dynamic +DYNAMIC +0+100303a8 [0-9a-f]+ 0+100 10 +WA +5 +0 +8 - +\[[ 0-9]+\] .got +PROGBITS +0+100304a8 [0-9a-f]+ 0+28 08 +WA +0 +0 +8 - +\[[ 0-9]+\] .got.plt +PROGBITS +0+100304d0 [0-9a-f]+ 0+18 08 +WA +0 +0 +8 - +\[[ 0-9]+\] .symtab +.* - +\[[ 0-9]+\] .strtab +.* - +\[[ 0-9]+\] .shstrtab +.* -Key to Flags: -#... - -Elf file type is EXEC \(Executable file\) -Entry point 0x2013b -There are [0-9]+ program headers, starting at offset [0-9]+ - -Program Headers: - +Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg Align - +PHDR.* - +INTERP.* -.*Requesting program interpreter.* - +LOAD +0x0+10000 0x0+20000 0x0+20000 0x0+10000 0x0+10000 R E +0x10000 - +LOAD +0x0+ 0x0+10020000 0x0+10020000 0x0+348 0x0+348 R +0x10000 - +LOAD +0x0+348 0x0+10030348 0x0+10030348 0x0+1a0 0x0+1a0 RW +0x10000 - +DYNAMIC +0x0+3a8 0x0+100303a8 0x0+100303a8 0x0+100 0x0+100 RW +0x8 - +TLS +0x0+348 0x0+10030348 0x0+10030348 0x0+60 0x0+a0 R +0x1 - - Section to Segment mapping: - +Segment Sections... - +00 * - +01 +.interp * - +02 +.text * - +03 +.interp .hash .dynsym .dynstr .rela.dyn * - +04 +.tdata .dynamic .got .got.plt * - +05 +.dynamic * - +06 +.tdata .tbss * - -Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 5 entries: - +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend -[0-9a-f ]+R_X86_64_TPOFF64 +0+ sG5 \+ 0 -[0-9a-f ]+R_X86_64_TPOFF64 +0+ sG2 \+ 0 -[0-9a-f ]+R_X86_64_GLOB_DAT +0+ __tls_get_addr \+ 0 -[0-9a-f ]+R_X86_64_TPOFF64 +0+ sG6 \+ 0 -[0-9a-f ]+R_X86_64_TPOFF64 +0+ sG1 \+ 0 - -Symbol table '\.dynsym' contains [0-9]+ entries: - +Num: +Value +Size +Type +Bind +Vis +Ndx +Name -.* NOTYPE +LOCAL +DEFAULT +UND * -.* TLS +GLOBAL +DEFAULT +UND sG5 -.* TLS +GLOBAL +DEFAULT +UND sG2 -.* FUNC +GLOBAL +DEFAULT +UND __tls_get_addr -.* TLS +GLOBAL +DEFAULT +UND sG6 -.* TLS +GLOBAL +DEFAULT +UND sG1 - -Symbol table '\.symtab' contains [0-9]+ entries: - +Num: +Value +Size +Type +Bind +Vis +Ndx +Name -.* NOTYPE +LOCAL +DEFAULT +UND * -.* SECTION +LOCAL +DEFAULT +1 * -.* SECTION +LOCAL +DEFAULT +2 * -.* SECTION +LOCAL +DEFAULT +3 * -.* SECTION +LOCAL +DEFAULT +4 * -.* SECTION +LOCAL +DEFAULT +5 * -.* SECTION +LOCAL +DEFAULT +6 * -.* SECTION +LOCAL +DEFAULT +7 * -.* SECTION +LOCAL +DEFAULT +8 * -.* SECTION +LOCAL +DEFAULT +9 * -.* SECTION +LOCAL +DEFAULT +10 * -.* SECTION +LOCAL +DEFAULT +11 * -.* FILE +LOCAL +DEFAULT +ABS tmpdir/tlsbinpic2.o -.* TLS +LOCAL +DEFAULT +7 sl1 -.* TLS +LOCAL +DEFAULT +7 sl2 -.* TLS +LOCAL +DEFAULT +7 sl3 -.* TLS +LOCAL +DEFAULT +7 sl4 -.* TLS +LOCAL +DEFAULT +7 sl5 -.* TLS +LOCAL +DEFAULT +7 sl6 -.* TLS +LOCAL +DEFAULT +7 sl7 -.* TLS +LOCAL +DEFAULT +7 sl8 -.* FILE +LOCAL +DEFAULT +ABS tmpdir/tlsbin.o -.* TLS +LOCAL +DEFAULT +8 bl1 -.* TLS +LOCAL +DEFAULT +8 bl2 -.* TLS +LOCAL +DEFAULT +8 bl3 -.* TLS +LOCAL +DEFAULT +8 bl4 -.* TLS +LOCAL +DEFAULT +8 bl5 -.* TLS +LOCAL +DEFAULT +8 bl6 -.* TLS +LOCAL +DEFAULT +8 bl7 -.* TLS +LOCAL +DEFAULT +8 bl8 -.* FILE +LOCAL +DEFAULT +ABS -.* OBJECT +LOCAL +DEFAULT +9 _DYNAMIC -.* OBJECT +LOCAL +DEFAULT +11 _GLOBAL_OFFSET_TABLE_ -.* TLS +GLOBAL +DEFAULT +7 sg8 -.* TLS +GLOBAL +DEFAULT +8 bg8 -.* TLS +GLOBAL +DEFAULT +8 bg6 -.* TLS +GLOBAL +DEFAULT +UND sG5 -.* TLS +GLOBAL +DEFAULT +8 bg3 -.* TLS +GLOBAL +DEFAULT +7 sg3 -.* TLS +GLOBAL +HIDDEN +7 sh3 -.* TLS +GLOBAL +DEFAULT +UND sG2 -.* TLS +GLOBAL +DEFAULT +7 sg4 -.* TLS +GLOBAL +DEFAULT +7 sg5 -.* TLS +GLOBAL +DEFAULT +8 bg5 -.* FUNC +GLOBAL +DEFAULT +UND __tls_get_addr -.* TLS +GLOBAL +HIDDEN +7 sh7 -.* TLS +GLOBAL +HIDDEN +7 sh8 -.* TLS +GLOBAL +DEFAULT +7 sg1 -.* FUNC +GLOBAL +DEFAULT +1 _start -.* TLS +GLOBAL +HIDDEN +7 sh4 -.* TLS +GLOBAL +DEFAULT +8 bg7 -.* TLS +GLOBAL +HIDDEN +7 sh5 -.* NOTYPE +GLOBAL +DEFAULT +11 __bss_start -.* TLS +GLOBAL +DEFAULT +UND sG6 -.* FUNC +GLOBAL +DEFAULT +1 fn2 -.* TLS +GLOBAL +DEFAULT +7 sg2 -.* TLS +GLOBAL +DEFAULT +UND sG1 -.* TLS +GLOBAL +HIDDEN +7 sh1 -.* TLS +GLOBAL +DEFAULT +7 sg6 -.* TLS +GLOBAL +DEFAULT +7 sg7 -.* NOTYPE +GLOBAL +DEFAULT +11 _edata -.* NOTYPE +GLOBAL +DEFAULT +11 _end -.* TLS +GLOBAL +HIDDEN +7 sh2 -.* TLS +GLOBAL +HIDDEN +7 sh6 -.* TLS +GLOBAL +DEFAULT +8 bg2 -.* TLS +GLOBAL +DEFAULT +8 bg1 -.* TLS +GLOBAL +DEFAULT +8 bg4 diff --git a/ld/testsuite/ld-x86-64/tlsbindesc-nacl.rd b/ld/testsuite/ld-x86-64/tlsbindesc-nacl.rd deleted file mode 100644 index 670958a..0000000 --- a/ld/testsuite/ld-x86-64/tlsbindesc-nacl.rd +++ /dev/null @@ -1,138 +0,0 @@ -#source: tlsbindesc.s -#source: tlsbin.s -#as: --64 -#ld: -shared -melf_x86_64_nacl --no-ld-generated-unwind-info -#readelf: -WSsrl -#target: x86_64-*-nacl* - -There are [0-9]+ section headers, starting at offset 0x[0-9a-f]+: - -Section Headers: - +\[Nr\] Name +Type +Address +Off +Size +ES Flg Lk Inf Al - +\[[ 0-9]+\] +NULL +0+ 0+ 0+ 00 +0 +0 +0 - +\[[ 0-9]+\] .text +PROGBITS +0+20000 0+10000 0+1fd 00 +AX +0 +0 +4096 - +\[[ 0-9]+\] .interp +.* - +\[[ 0-9]+\] .hash +.* - +\[[ 0-9]+\] .dynsym +.* - +\[[ 0-9]+\] .dynstr +.* - +\[[ 0-9]+\] .rela.dyn +.* - +\[[ 0-9]+\] .tdata +PROGBITS +0+10030300 0+300 0+60 00 WAT +0 +0 +1 - +\[[ 0-9]+\] .tbss +NOBITS +0+10030360 0+360 0+40 00 WAT +0 +0 +1 - +\[[ 0-9]+\] .dynamic +DYNAMIC +0+10030360 0+360 0+100 10 +WA +5 +0 +8 - +\[[ 0-9]+\] .got +PROGBITS +0+10030460 0+460 0+20 08 +WA +0 +0 +8 - +\[[ 0-9]+\] .got.plt +PROGBITS +0+10030480 0+480 0+18 08 +WA +0 +0 +8 - +\[[ 0-9]+\] .symtab +.* - +\[[ 0-9]+\] .strtab +.* - +\[[ 0-9]+\] .shstrtab +.* -Key to Flags: -#... - -Elf file type is EXEC \(Executable file\) -Entry point 0x20105 -There are [0-9]+ program headers, starting at offset [0-9]+ - -Program Headers: - +Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg Align - +PHDR.* - +INTERP.* -.*Requesting program interpreter.* - +LOAD +0x0+10000 0x0+20000 0x0+20000 0x0+10000 0x0+10000 R E 0x10000 - +LOAD +0x0+ 0x0+10020000 0x0+10020000 0x0+300 0x0+300 R +0x10000 - +LOAD +0x0+300 0x0+10030300 0x0+10030300 0x0+198 0x0+198 RW +0x10000 - +DYNAMIC +0x0+360 0x0+10030360 0x0+10030360 0x0+100 0x0+100 RW +0x8 - +TLS +0x0+300 0x0+10030300 0x0+10030300 0x0+60 0x0+a0 R +0x1 - - Section to Segment mapping: - +Segment Sections... - +00 * - +01 +.interp * - +02 +.text * - +03 +.interp .hash .dynsym .dynstr .rela.dyn * - +04 +.tdata .dynamic .got .got.plt * - +05 +.dynamic * - +06 +.tdata .tbss * - -Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 4 entries: - +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend -0+10030460 +0+100000012 R_X86_64_TPOFF64 +0+ sG5 \+ 0 -0+10030468 +0+200000012 R_X86_64_TPOFF64 +0+ sG2 \+ 0 -0+10030470 +0+300000012 R_X86_64_TPOFF64 +0+ sG6 \+ 0 -0+10030478 +0+400000012 R_X86_64_TPOFF64 +0+ sG1 \+ 0 - -Symbol table '\.dynsym' contains [0-9]+ entries: - +Num: +Value +Size +Type +Bind +Vis +Ndx +Name - +[0-9]+: 0+ +0 +NOTYPE +LOCAL +DEFAULT +UND * - +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG5 - +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG2 - +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG6 - +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG1 - -Symbol table '\.symtab' contains [0-9]+ entries: - +Num: +Value +Size +Type +Bind +Vis +Ndx +Name - +[0-9]+: 0+ +0 +NOTYPE +LOCAL +DEFAULT +UND * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +1 * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +2 * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +3 * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +4 * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +5 * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +6 * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +7 * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +8 * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +9 * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +10 * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +11 * -.* FILE +LOCAL +DEFAULT +ABS tmpdir/tlsbindesc.o - +[0-9]+: 0+20 +0 +TLS +LOCAL +DEFAULT +7 sl1 - +[0-9]+: 0+24 +0 +TLS +LOCAL +DEFAULT +7 sl2 - +[0-9]+: 0+28 +0 +TLS +LOCAL +DEFAULT +7 sl3 - +[0-9]+: 0+2c +0 +TLS +LOCAL +DEFAULT +7 sl4 - +[0-9]+: 0+30 +0 +TLS +LOCAL +DEFAULT +7 sl5 - +[0-9]+: 0+34 +0 +TLS +LOCAL +DEFAULT +7 sl6 - +[0-9]+: 0+38 +0 +TLS +LOCAL +DEFAULT +7 sl7 - +[0-9]+: 0+3c +0 +TLS +LOCAL +DEFAULT +7 sl8 -.* FILE +LOCAL +DEFAULT +ABS tmpdir/tlsbin.o - +[0-9]+: 0+80 +0 +TLS +LOCAL +DEFAULT +8 bl1 - +[0-9]+: 0+84 +0 +TLS +LOCAL +DEFAULT +8 bl2 - +[0-9]+: 0+88 +0 +TLS +LOCAL +DEFAULT +8 bl3 - +[0-9]+: 0+8c +0 +TLS +LOCAL +DEFAULT +8 bl4 - +[0-9]+: 0+90 +0 +TLS +LOCAL +DEFAULT +8 bl5 - +[0-9]+: 0+94 +0 +TLS +LOCAL +DEFAULT +8 bl6 - +[0-9]+: 0+98 +0 +TLS +LOCAL +DEFAULT +8 bl7 - +[0-9]+: 0+9c +0 +TLS +LOCAL +DEFAULT +8 bl8 -.* FILE +LOCAL +DEFAULT +ABS - +[0-9]+: 0+a0 +0 +TLS +LOCAL +DEFAULT +7 _TLS_MODULE_BASE_ - +[0-9]+: 0+10030360 +0 +OBJECT +LOCAL +DEFAULT +9 _DYNAMIC - +[0-9]+: 0+10030480 +0 +OBJECT +LOCAL +DEFAULT +11 _GLOBAL_OFFSET_TABLE_ - +[0-9]+: 0+1c +0 +TLS +GLOBAL +DEFAULT +7 sg8 - +[0-9]+: 0+7c +0 +TLS +GLOBAL +DEFAULT +8 bg8 - +[0-9]+: 0+74 +0 +TLS +GLOBAL +DEFAULT +8 bg6 - +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG5 - +[0-9]+: 0+68 +0 +TLS +GLOBAL +DEFAULT +8 bg3 - +[0-9]+: 0+8 +0 +TLS +GLOBAL +DEFAULT +7 sg3 - +[0-9]+: 0+48 +0 +TLS +GLOBAL +HIDDEN +7 sh3 - +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG2 - +[0-9]+: 0+c +0 +TLS +GLOBAL +DEFAULT +7 sg4 - +[0-9]+: 0+10 +0 +TLS +GLOBAL +DEFAULT +7 sg5 - +[0-9]+: 0+70 +0 +TLS +GLOBAL +DEFAULT +8 bg5 - +[0-9]+: 0+58 +0 +TLS +GLOBAL +HIDDEN +7 sh7 - +[0-9]+: 0+5c +0 +TLS +GLOBAL +HIDDEN +7 sh8 - +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +7 sg1 - +[0-9]+: 0+20105 +0 +FUNC +GLOBAL +DEFAULT +1 _start - +[0-9]+: 0+4c +0 +TLS +GLOBAL +HIDDEN +7 sh4 - +[0-9]+: 0+78 +0 +TLS +GLOBAL +DEFAULT +8 bg7 - +[0-9]+: 0+50 +0 +TLS +GLOBAL +HIDDEN +7 sh5 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +11 __bss_start - +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG6 - +[0-9]+: 0+20000 +0 +FUNC +GLOBAL +DEFAULT +1 fn2 - +[0-9]+: 0+4 +0 +TLS +GLOBAL +DEFAULT +7 sg2 - +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG1 - +[0-9]+: 0+40 +0 +TLS +GLOBAL +HIDDEN +7 sh1 - +[0-9]+: 0+14 +0 +TLS +GLOBAL +DEFAULT +7 sg6 - +[0-9]+: 0+18 +0 +TLS +GLOBAL +DEFAULT +7 sg7 - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +11 _edata - +[0-9]+: [0-9a-f]+ +0 +NOTYPE +GLOBAL +DEFAULT +11 _end - +[0-9]+: 0+44 +0 +TLS +GLOBAL +HIDDEN +7 sh2 - +[0-9]+: 0+54 +0 +TLS +GLOBAL +HIDDEN +7 sh6 - +[0-9]+: 0+64 +0 +TLS +GLOBAL +DEFAULT +8 bg2 - +[0-9]+: 0+60 +0 +TLS +GLOBAL +DEFAULT +8 bg1 - +[0-9]+: 0+6c +0 +TLS +GLOBAL +DEFAULT +8 bg4 diff --git a/ld/testsuite/ld-x86-64/tlsdesc-nacl.pd b/ld/testsuite/ld-x86-64/tlsdesc-nacl.pd deleted file mode 100644 index f744f0e..0000000 --- a/ld/testsuite/ld-x86-64/tlsdesc-nacl.pd +++ /dev/null @@ -1,40 +0,0 @@ -#source: tlsdesc.s -#source: tlspic2.s -#as: --64 -#ld: -shared -melf_x86_64_nacl --no-ld-generated-unwind-info -#objdump: -drj.plt -#target: x86_64-*-nacl* - -.*: +file format elf64-x86-64-nacl - -Disassembly of section .plt: - -[0-9a-f]+ <.plt>: - +[0-9a-f]+: ff 35 .. .. .. .. pushq 0x[0-9a-f]+\(%rip\) +# [0-9a-f]+ <_GLOBAL_OFFSET_TABLE_\+0x8> - +[0-9a-f]+: 4c 8b 1d .. .. .. .. mov 0x[0-9a-f]+\(%rip\),%r11 +# [0-9a-f]+ <_GLOBAL_OFFSET_TABLE_\+0x10> - +[0-9a-f]+: 41 83 e3 e0 and \$0xffffffe0,%r11d - +[0-9a-f]+: 4d 01 fb add %r15,%r11 - +[0-9a-f]+: 41 ff e3 jmpq \*%r11 - +[0-9a-f]+: 66 0f 1f 84 00 00 00 nopw 0x0\(%rax,%rax,1\) - +[0-9a-f]+: 00 00 * - +[0-9a-f]+: 66 66 66 66 66 66 2e data16 data16 data16 data16 data16 nopw %cs:0x0\(%rax,%rax,1\) - +[0-9a-f]+: 0f 1f 84 00 00 00 00 * - +[0-9a-f]+: 00 * - +[0-9a-f]+: 66 66 66 66 66 66 2e data16 data16 data16 data16 data16 nopw %cs:0x0\(%rax,%rax,1\) - +[0-9a-f]+: 0f 1f 84 00 00 00 00 * - +[0-9a-f]+: 00 * - +[0-9a-f]+: 66 90 xchg %ax,%ax - +[0-9a-f]+: ff 35 .. .. .. .. pushq 0x[0-9a-f]+\(%rip\) +# [0-9a-f]+ <_GLOBAL_OFFSET_TABLE_\+0x8> - +[0-9a-f]+: 4c 8b 1d .. .. .. .. mov 0x[0-9a-f]+\(%rip\),%r11 +# [0-9a-f]+ <.*> - +[0-9a-f]+: 41 83 e3 e0 and \$0xffffffe0,%r11d - +[0-9a-f]+: 4d 01 fb add %r15,%r11 - +[0-9a-f]+: 41 ff e3 jmpq \*%r11 - +[0-9a-f]+: 66 0f 1f 84 00 00 00 nopw 0x0\(%rax,%rax,1\) - +[0-9a-f]+: 00 00 * - +[0-9a-f]+: 66 66 66 66 66 66 2e data16 data16 data16 data16 data16 nopw %cs:0x0\(%rax,%rax,1\) - +[0-9a-f]+: 0f 1f 84 00 00 00 00 * - +[0-9a-f]+: 00 * - +[0-9a-f]+: 66 66 66 66 66 66 2e data16 data16 data16 data16 data16 nopw %cs:0x0\(%rax,%rax,1\) - +[0-9a-f]+: 0f 1f 84 00 00 00 00 * - +[0-9a-f]+: 00 * - +[0-9a-f]+: 66 90 xchg %ax,%ax diff --git a/ld/testsuite/ld-x86-64/tlsdesc-nacl.rd b/ld/testsuite/ld-x86-64/tlsdesc-nacl.rd deleted file mode 100644 index 1a7c693..0000000 --- a/ld/testsuite/ld-x86-64/tlsdesc-nacl.rd +++ /dev/null @@ -1,154 +0,0 @@ -#source: tlsdesc.s -#source: tlspic2.s -#as: --64 -#ld: -shared -melf_x86_64_nacl --no-ld-generated-unwind-info -#readelf: -WSsrld -#target: x86_64-*-nacl* - -There are [0-9]+ section headers, starting at offset 0x[0-9a-f]+: - -Section Headers: - +\[Nr\] Name +Type +Address +Off +Size +ES Flg Lk Inf Al - +\[[ 0-9]+\] +NULL +0+ 0+ 0+ 00 +0 +0 +0 - +\[[ 0-9]+\] .plt +PROGBITS +0+ [0-9a-f]+ +0+80 +40 +AX +0 +0 +32 - +\[[ 0-9]+\] .text +PROGBITS +0+1000 [0-9a-f]+ +0+153 00 +AX +0 +0 4096 - +\[[ 0-9]+\] .hash +.* - +\[[ 0-9]+\] .dynsym +.* - +\[[ 0-9]+\] .dynstr +.* - +\[[ 0-9]+\] .rela.dyn +.* - +\[[ 0-9]+\] .rela.plt +.* - +\[[ 0-9]+\] .tdata +PROGBITS +0+100103e8 [0-9a-f]+ +0+60 00 WAT +0 +0 +1 - +\[[ 0-9]+\] .tbss +NOBITS +0+10010448 [0-9a-f]+ 0+20 00 WAT +0 +0 +1 - +\[[ 0-9]+\] .dynamic +DYNAMIC +0+10010448 [0-9a-f]+ 0+150 10 +WA +5 +0 +8 - +\[[ 0-9]+\] .got +PROGBITS +0+10010598 [0-9a-f]+ 0+48 08 +WA +0 +0 +8 - +\[[ 0-9]+\] .got.plt +PROGBITS +0+100105e0 [0-9a-f]+ 0+68 08 +WA +0 +0 +8 - +\[[ 0-9]+\] .symtab +.* - +\[[ 0-9]+\] .strtab +.* - +\[[ 0-9]+\] .shstrtab +.* -Key to Flags: -#... - -Elf file type is DYN \(Shared object file\) -Entry point 0x1000 -There are [0-9]+ program headers, starting at offset [0-9]+ - -Program Headers: - +Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg Align - +LOAD +0x[0-9a-f]+ 0x0+ 0x0+ 0x[0-9a-f]+ 0x[0-9a-f]+ R E 0x10000 - +LOAD +0x[0-9a-f]+ 0x0+10000000 0x0+10000000 0x[0-9a-f]+ 0x[0-9a-f]+ R +0x10000 - +LOAD +0x[0-9a-f]+ 0x0+100103e8 0x0+100103e8 0x0+260 0x0+260 RW +0x10000 - +DYNAMIC +0x[0-9a-f]+ 0x0+10010448 0x0+10010448 0x0+150 0x0+150 RW +0x8 - +TLS +0x[0-9a-f]+ 0x0+100103e8 0x0+100103e8 0x0+60 0x0+80 R +0x1 - - Section to Segment mapping: - +Segment Sections... - +00 +.plt .text * - +01 +.hash .dynsym .dynstr .rela.dyn .rela.plt * - +02 +.tdata .dynamic .got .got.plt * - +03 +.dynamic * - +04 +.tdata .tbss * - -Dynamic section at offset 0x[0-9a-f]+ contains 16 entries: - +Tag +Type +Name/Value - 0x[0-9a-f]+ +\(HASH\).* - 0x[0-9a-f]+ +\(STRTAB\).* - 0x[0-9a-f]+ +\(SYMTAB\).* - 0x[0-9a-f]+ +\(STRSZ\).* - 0x[0-9a-f]+ +\(SYMENT\).* - 0x[0-9a-f]+ +\(PLTGOT\).* - 0x[0-9a-f]+ +\(PLTRELSZ\).* - 0x[0-9a-f]+ +\(PLTREL\).* - 0x[0-9a-f]+ +\(JMPREL\).* - 0x[0-9a-f]+ +\(TLSDESC_PLT\) +0x40 - 0x[0-9a-f]+ +\(TLSDESC_GOT\) +0x100105d8 - 0x[0-9a-f]+ +\(RELA\).* - 0x[0-9a-f]+ +\(RELASZ\).* - 0x[0-9a-f]+ +\(RELAENT\).* - 0x[0-9a-f]+ +\(FLAGS\).* - 0x[0-9a-f]+ +\(NULL\).* - -Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 8 entries: - +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend -0+10010598 +[0-9a-f]+ R_X86_64_TPOFF64 +24 -0+100105a0 +[0-9a-f]+ R_X86_64_TPOFF64 +30 -0+100105a8 +[0-9a-f]+ R_X86_64_TPOFF64 +64 -0+100105b8 +[0-9a-f]+ R_X86_64_TPOFF64 +50 -0+100105c0 +[0-9a-f]+ R_X86_64_TPOFF64 +70 -0+100105d0 +[0-9a-f]+ R_X86_64_TPOFF64 +44 -0+100105b0 +[0-9a-f]+ R_X86_64_TPOFF64 +0+10 sg5 \+ 0 -0+100105c8 +[0-9a-f]+ R_X86_64_TPOFF64 +0+4 sg2 \+ 0 - -Relocation section '.rela.plt' at offset 0x[0-9a-f]+ contains 5 entries: - +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend -0+10010628 +[0-9a-f]+ R_X86_64_TLSDESC +0+ sg1 \+ 0 -0+100105f8 +[0-9a-f]+ R_X86_64_TLSDESC +20 -0+10010638 +[0-9a-f]+ R_X86_64_TLSDESC +40 -0+10010608 +[0-9a-f]+ R_X86_64_TLSDESC +60 -0+10010618 +[0-9a-f]+ R_X86_64_TLSDESC +0 - -Symbol table '\.dynsym' contains [0-9]+ entries: - +Num: +Value +Size +Type +Bind +Vis +Ndx +Name - +[0-9]+: 0+ +0 +NOTYPE +LOCAL +DEFAULT +UND * - +[0-9]+: 0+1c +0 +TLS +GLOBAL +DEFAULT +8 sg8 - +[0-9]+: 0+8 +0 +TLS +GLOBAL +DEFAULT +8 sg3 - +[0-9]+: 0+c +0 +TLS +GLOBAL +DEFAULT +8 sg4 - +[0-9]+: 0+10 +0 +TLS +GLOBAL +DEFAULT +8 sg5 - +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +8 sg1 - +[0-9]+: 0+1000 +0 +FUNC +GLOBAL +DEFAULT +2 fn1 - +[0-9]+: 0+4 +0 +TLS +GLOBAL +DEFAULT +8 sg2 - +[0-9]+: 0+14 +0 +TLS +GLOBAL +DEFAULT +8 sg6 - +[0-9]+: 0+18 +0 +TLS +GLOBAL +DEFAULT +8 sg7 - -Symbol table '\.symtab' contains [0-9]+ entries: - +Num: +Value +Size +Type +Bind +Vis +Ndx +Name - +[0-9]+: 0+ +0 +NOTYPE +LOCAL +DEFAULT +UND * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +1 * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +2 * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +3 * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +4 * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +5 * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +6 * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +7 * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +8 * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +9 * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +10 * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +11 * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +12 * -.* FILE +LOCAL +DEFAULT +ABS tmpdir/tlsdesc.o - +[0-9]+: 0+20 +0 +TLS +LOCAL +DEFAULT +8 sl1 - +[0-9]+: 0+24 +0 +TLS +LOCAL +DEFAULT +8 sl2 - +[0-9]+: 0+28 +0 +TLS +LOCAL +DEFAULT +8 sl3 - +[0-9]+: 0+2c +0 +TLS +LOCAL +DEFAULT +8 sl4 - +[0-9]+: 0+30 +0 +TLS +LOCAL +DEFAULT +8 sl5 - +[0-9]+: 0+34 +0 +TLS +LOCAL +DEFAULT +8 sl6 - +[0-9]+: 0+38 +0 +TLS +LOCAL +DEFAULT +8 sl7 - +[0-9]+: 0+3c +0 +TLS +LOCAL +DEFAULT +8 sl8 -.* FILE +LOCAL +DEFAULT +ABS - +[0-9]+: 0+60 +0 +TLS +LOCAL +DEFAULT +9 sH1 - +[0-9]+: 0+ +0 +TLS +LOCAL +DEFAULT +8 _TLS_MODULE_BASE_ - +[0-9]+: 0+10010448 +0 +OBJECT +LOCAL +DEFAULT +10 _DYNAMIC - +[0-9]+: 0+48 +0 +TLS +LOCAL +DEFAULT +8 sh3 - +[0-9]+: 0+64 +0 +TLS +LOCAL +DEFAULT +9 sH2 - +[0-9]+: 0+78 +0 +TLS +LOCAL +DEFAULT +9 sH7 - +[0-9]+: 0+58 +0 +TLS +LOCAL +DEFAULT +8 sh7 - +[0-9]+: 0+5c +0 +TLS +LOCAL +DEFAULT +8 sh8 - +[0-9]+: 0+6c +0 +TLS +LOCAL +DEFAULT +9 sH4 - +[0-9]+: 0+4c +0 +TLS +LOCAL +DEFAULT +8 sh4 - +[0-9]+: 0+68 +0 +TLS +LOCAL +DEFAULT +9 sH3 - +[0-9]+: 0+50 +0 +TLS +LOCAL +DEFAULT +8 sh5 - +[0-9]+: 0+70 +0 +TLS +LOCAL +DEFAULT +9 sH5 - +[0-9]+: 0+74 +0 +TLS +LOCAL +DEFAULT +9 sH6 - +[0-9]+: 0+7c +0 +TLS +LOCAL +DEFAULT +9 sH8 - +[0-9]+: 0+40 +0 +TLS +LOCAL +DEFAULT +8 sh1 - +[0-9]+: 0+100105e0 +0 +OBJECT +LOCAL +DEFAULT +12 _GLOBAL_OFFSET_TABLE_ - +[0-9]+: 0+44 +0 +TLS +LOCAL +DEFAULT +8 sh2 - +[0-9]+: 0+54 +0 +TLS +LOCAL +DEFAULT +8 sh6 - +[0-9]+: 0+1c +0 +TLS +GLOBAL +DEFAULT +8 sg8 - +[0-9]+: 0+8 +0 +TLS +GLOBAL +DEFAULT +8 sg3 - +[0-9]+: 0+c +0 +TLS +GLOBAL +DEFAULT +8 sg4 - +[0-9]+: 0+10 +0 +TLS +GLOBAL +DEFAULT +8 sg5 - +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +8 sg1 - +[0-9]+: 0+1000 +0 +FUNC +GLOBAL +DEFAULT +2 fn1 - +[0-9]+: 0+4 +0 +TLS +GLOBAL +DEFAULT +8 sg2 - +[0-9]+: 0+14 +0 +TLS +GLOBAL +DEFAULT +8 sg6 - +[0-9]+: 0+18 +0 +TLS +GLOBAL +DEFAULT +8 sg7 diff --git a/ld/testsuite/ld-x86-64/tlsgd10.dd b/ld/testsuite/ld-x86-64/tlsgd10.dd index 6c3ca5c..7a69f61 100644 --- a/ld/testsuite/ld-x86-64/tlsgd10.dd +++ b/ld/testsuite/ld-x86-64/tlsgd10.dd @@ -2,7 +2,7 @@ #as: --64 #ld: -melf_x86_64 tmpdir/tlsgd10 #objdump: -drwj.text -#target: x86_64-*-linux* x86_64-*-nacl* +#target: x86_64-*-linux* .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/tlsgd5.dd b/ld/testsuite/ld-x86-64/tlsgd5.dd index c2e2621..5aa2bd9 100644 --- a/ld/testsuite/ld-x86-64/tlsgd5.dd +++ b/ld/testsuite/ld-x86-64/tlsgd5.dd @@ -2,7 +2,7 @@ #as: --64 #ld: -melf_x86_64 tmpdir/tlsgd5 #objdump: -drw -#target: x86_64-*-linux* x86_64-*-nacl* +#target: x86_64-*-linux* .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/tlsgd8.dd b/ld/testsuite/ld-x86-64/tlsgd8.dd index 2bb1132..f9cac0b 100644 --- a/ld/testsuite/ld-x86-64/tlsgd8.dd +++ b/ld/testsuite/ld-x86-64/tlsgd8.dd @@ -2,7 +2,7 @@ #as: --64 #ld: -melf_x86_64 tmpdir/tlsgd8 #objdump: -drwj.text -#target: x86_64-*-linux* x86_64-*-nacl* +#target: x86_64-*-linux* .*: +file format .* diff --git a/ld/testsuite/ld-x86-64/tlsgdesc-nacl.rd b/ld/testsuite/ld-x86-64/tlsgdesc-nacl.rd deleted file mode 100644 index b0421d9..0000000 --- a/ld/testsuite/ld-x86-64/tlsgdesc-nacl.rd +++ /dev/null @@ -1,97 +0,0 @@ -#source: tlsgdesc.s -#as: --64 -#ld: -shared -melf64_x86_64_nacl --no-ld-generated-unwind-info -#readelf: -WSsrl -#target: x86_64-*-nacl* - -There are [0-9]+ section headers, starting at offset 0x[0-9a-f]+: - -Section Headers: - +\[Nr\] Name +Type +Address +Off +Size +ES Flg Lk Inf Al - +\[[ 0-9]+\] +NULL +0+ 0+ 0+ 0+ +0 +0 +0 - +\[[ 0-9]+\] \.plt +.* - +\[[ 0-9]+\] \.text +.* - +\[[ 0-9]+\] \.hash +.* - +\[[ 0-9]+\] \.dynsym +.* - +\[[ 0-9]+\] \.dynstr +.* - +\[[ 0-9]+\] \.rela.dyn +.* - +\[[ 0-9]+\] \.rela.plt +.* - +\[[ 0-9]+\] \.dynamic +.* - +\[[ 0-9]+\] \.got +.* - +\[[ 0-9]+\] \.got.plt +.* - +\[[ 0-9]+\] \.symtab +.* - +\[[ 0-9]+\] \.strtab +.* - +\[[ 0-9]+\] \.shstrtab +.* -Key to Flags: -#... - -Elf file type is DYN \(Shared object file\) -Entry point 0x[0-9a-f]+ -There are [0-9]+ program headers, starting at offset [0-9]+ - -Program Headers: - +Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg Align - +LOAD.* - +LOAD.* - +LOAD.* - +DYNAMIC.* - - Section to Segment mapping: - +Segment Sections... - +00 +.plt .text * - +01 +.hash .dynsym .dynstr .rela.dyn .rela.plt * - +02 +.dynamic .got .got.plt * - +03 +.dynamic * - -Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 8 entries: - +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend -[0-9a-f]+ +0+100000012 R_X86_64_TPOFF64 +0+ sG3 \+ 0 -[0-9a-f]+ +0+200000012 R_X86_64_TPOFF64 +0+ sG5 \+ 0 -[0-9a-f]+ +0+300000010 R_X86_64_DTPMOD64 +0+ sG2 \+ 0 -[0-9a-f]+ +0+300000011 R_X86_64_DTPOFF64 +0+ sG2 \+ 0 -[0-9a-f]+ +0+400000012 R_X86_64_TPOFF64 +0+ sG4 \+ 0 -[0-9a-f]+ +0+600000012 R_X86_64_TPOFF64 +0+ sG6 \+ 0 -[0-9a-f]+ +0+800000010 R_X86_64_DTPMOD64 +0+ sG1 \+ 0 -[0-9a-f]+ +0+800000011 R_X86_64_DTPOFF64 +0+ sG1 \+ 0 - -Relocation section '.rela.plt' at offset 0x[0-9a-f]+ contains 3 entries: - +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend -[0-9a-f]+ +0+500000007 R_X86_64_JUMP_SLOT +0+ __tls_get_addr \+ 0 -[0-9a-f]+ +0+800000024 R_X86_64_TLSDESC +0+ sG1 \+ 0 -[0-9a-f]+ +0+300000024 R_X86_64_TLSDESC +0+ sG2 \+ 0 - -Symbol table '\.dynsym' contains [0-9]+ entries: - +Num: +Value +Size +Type +Bind +Vis +Ndx +Name - +[0-9]+: 0+ +0 +NOTYPE +LOCAL +DEFAULT +UND * - +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG3 - +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG5 - +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG2 - +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG4 - +[0-9]+: 0+ +0 +NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr - +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG6 - +[0-9]+: [0-9a-f]+ +0 +FUNC +GLOBAL +DEFAULT +2 fc1 - +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG1 - -Symbol table '\.symtab' contains [0-9]+ entries: - +Num: +Value +Size +Type +Bind +Vis +Ndx +Name - +[0-9]+: 0+ +0 +NOTYPE +LOCAL +DEFAULT +UND * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +1 * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +2 * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +3 * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +4 * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +5 * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +6 * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +7 * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +8 * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +9 * - +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +10 * - +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +8 _DYNAMIC - +[0-9]+: [0-9a-f]+ +0 +OBJECT +LOCAL +DEFAULT +10 _GLOBAL_OFFSET_TABLE_ - +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG3 - +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG5 - +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG2 - +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG4 - +[0-9]+: 0+ +0 +NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr - +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG6 - +[0-9]+: [0-9a-f]+ +0 +FUNC +GLOBAL +DEFAULT +2 fc1 - +[0-9]+: 0+ +0 +TLS +GLOBAL +DEFAULT +UND sG1 diff --git a/ld/testsuite/ld-x86-64/tlspic-nacl.rd b/ld/testsuite/ld-x86-64/tlspic-nacl.rd deleted file mode 100644 index f4f8772..0000000 --- a/ld/testsuite/ld-x86-64/tlspic-nacl.rd +++ /dev/null @@ -1,138 +0,0 @@ -#source: tlspic1.s -#source: tlspic2.s -#as: --64 -#ld: -shared -melf_x86_64_nacl --no-ld-generated-unwind-info -#readelf: -WSsrl -#target: x86_64-*-nacl* - -There are [0-9]+ section headers, starting at offset 0x[0-9a-f]+: - -Section Headers: - +\[Nr\] Name +Type +Address +Off +Size +ES Flg Lk Inf Al - +\[[ 0-9]+\] +NULL +0+ 0+ 0+ 00 +0 +0 +0 - +\[[ 0-9]+\] .plt +.* - +\[[ 0-9]+\] .text +PROGBITS +0+1000 [0-9a-f]+ 0+31a 00 +AX +0 +0 4096 - +\[[ 0-9]+\] .hash +.* - +\[[ 0-9]+\] .dynsym +.* - +\[[ 0-9]+\] .dynstr +.* - +\[[ 0-9]+\] .rela.dyn +.* - +\[[ 0-9]+\] .rela.plt +.* - +\[[ 0-9]+\] .tdata +PROGBITS +0+10010440 [0-9a-f]+ 0+60 00 WAT +0 +0 +1 - +\[[ 0-9]+\] .tbss +NOBITS +0+100104a0 [0-9a-f]+ 0+20 00 WAT +0 +0 +1 - +\[[ 0-9]+\] .dynamic +DYNAMIC +0+100104a0 [0-9a-f]+ 0+130 10 +WA +5 +0 +8 - +\[[ 0-9]+\] .got +PROGBITS +0+100105d0 [0-9a-f]+ 0+90 08 +WA +0 +0 +8 - +\[[ 0-9]+\] .got.plt +PROGBITS +0+10010660 [0-9a-f]+ 0+20 08 +WA +0 +0 +8 - +\[[ 0-9]+\] .symtab +.* - +\[[ 0-9]+\] .strtab +.* - +\[[ 0-9]+\] .shstrtab +.* -Key to Flags: -#... - -Elf file type is DYN \(Shared object file\) -Entry point 0x1000 -There are [0-9]+ program headers, starting at offset [0-9]+ - -Program Headers: - +Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg Align - +LOAD +0x0+10000 0x0+ 0x0+ 0x[0-9a-f]+ 0x[0-9a-f]+ R E 0x10000 - +LOAD +0x0+ 0x0+10000000 0x0+10000000 0x0+440 0x0+440 R +0x10000 - +LOAD +0x0+440 0x0+10010440 0x0+10010440 0x0+240 0x0+240 RW +0x10000 - +DYNAMIC +0x0+4a0 0x0+100104a0 0x0+100104a0 0x0+130 0x0+130 RW +0x8 - +TLS +0x0+440 0x0+10010440 0x0+10010440 0x0+60 0x0+80 R +0x1 - - Section to Segment mapping: - +Segment Sections... - +00 +.plt .text * - +01 +.hash .dynsym .dynstr .rela.dyn .rela.plt * - +02 +.tdata .dynamic .got .got.plt * - +03 +.dynamic * - +04 +.tdata .tbss * - -Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 14 entries: - +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend -[0-9a-f ]+R_X86_64_DTPMOD64 +0 -[0-9a-f ]+R_X86_64_TPOFF64 +24 -[0-9a-f ]+R_X86_64_TPOFF64 +30 -[0-9a-f ]+R_X86_64_DTPMOD64 +0 -[0-9a-f ]+R_X86_64_DTPMOD64 +0 -[0-9a-f ]+R_X86_64_TPOFF64 +64 -[0-9a-f ]+R_X86_64_TPOFF64 +50 -[0-9a-f ]+R_X86_64_TPOFF64 +70 -[0-9a-f ]+R_X86_64_DTPMOD64 +0 -[0-9a-f ]+R_X86_64_TPOFF64 +44 -[0-9a-f ]+R_X86_64_TPOFF64 +0+10 sg5 \+ 0 -[0-9a-f ]+R_X86_64_DTPMOD64 +0+ sg1 \+ 0 -[0-9a-f ]+R_X86_64_DTPOFF64 +0+ sg1 \+ 0 -[0-9a-f ]+R_X86_64_TPOFF64 +0+4 sg2 \+ 0 - -Relocation section '.rela.plt' at offset 0x[0-9a-f]+ contains 1 entry: - +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend -[0-9a-f ]+R_X86_64_JUMP_SLOT +0+ __tls_get_addr \+ 0 - -Symbol table '\.dynsym' contains [0-9]+ entries: - +Num: +Value +Size +Type +Bind +Vis +Ndx +Name -.* NOTYPE +LOCAL +DEFAULT +UND * -.* TLS +GLOBAL +DEFAULT +8 sg8 -.* TLS +GLOBAL +DEFAULT +8 sg3 -.* TLS +GLOBAL +DEFAULT +8 sg4 -.* TLS +GLOBAL +DEFAULT +8 sg5 -.* NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr -.* TLS +GLOBAL +DEFAULT +8 sg1 -.* FUNC +GLOBAL +DEFAULT +2 fn1 -.* TLS +GLOBAL +DEFAULT +8 sg2 -.* TLS +GLOBAL +DEFAULT +8 sg6 -.* TLS +GLOBAL +DEFAULT +8 sg7 - -Symbol table '\.symtab' contains [0-9]+ entries: - +Num: +Value +Size +Type +Bind +Vis +Ndx +Name -.* NOTYPE +LOCAL +DEFAULT +UND * -.* SECTION +LOCAL +DEFAULT +1 * -.* SECTION +LOCAL +DEFAULT +2 * -.* SECTION +LOCAL +DEFAULT +3 * -.* SECTION +LOCAL +DEFAULT +4 * -.* SECTION +LOCAL +DEFAULT +5 * -.* SECTION +LOCAL +DEFAULT +6 * -.* SECTION +LOCAL +DEFAULT +7 * -.* SECTION +LOCAL +DEFAULT +8 * -.* SECTION +LOCAL +DEFAULT +9 * -.* SECTION +LOCAL +DEFAULT +10 * -.* SECTION +LOCAL +DEFAULT +11 * -.* SECTION +LOCAL +DEFAULT +12 * -.* FILE +LOCAL +DEFAULT +ABS tmpdir/tlspic1.o -.* TLS +LOCAL +DEFAULT +8 sl1 -.* TLS +LOCAL +DEFAULT +8 sl2 -.* TLS +LOCAL +DEFAULT +8 sl3 -.* TLS +LOCAL +DEFAULT +8 sl4 -.* TLS +LOCAL +DEFAULT +8 sl5 -.* TLS +LOCAL +DEFAULT +8 sl6 -.* TLS +LOCAL +DEFAULT +8 sl7 -.* TLS +LOCAL +DEFAULT +8 sl8 -.* FILE +LOCAL +DEFAULT +ABS -.* TLS +LOCAL +DEFAULT +9 sH1 -.* OBJECT +LOCAL +DEFAULT +10 _DYNAMIC -.* TLS +LOCAL +DEFAULT +8 sh3 -.* TLS +LOCAL +DEFAULT +9 sH2 -.* TLS +LOCAL +DEFAULT +9 sH7 -.* TLS +LOCAL +DEFAULT +8 sh7 -.* TLS +LOCAL +DEFAULT +8 sh8 -.* TLS +LOCAL +DEFAULT +9 sH4 -.* TLS +LOCAL +DEFAULT +8 sh4 -.* TLS +LOCAL +DEFAULT +9 sH3 -.* TLS +LOCAL +DEFAULT +8 sh5 -.* TLS +LOCAL +DEFAULT +9 sH5 -.* TLS +LOCAL +DEFAULT +9 sH6 -.* TLS +LOCAL +DEFAULT +9 sH8 -.* TLS +LOCAL +DEFAULT +8 sh1 -.* OBJECT +LOCAL +DEFAULT +12 _GLOBAL_OFFSET_TABLE_ -.* TLS +LOCAL +DEFAULT +8 sh2 -.* TLS +LOCAL +DEFAULT +8 sh6 -.* TLS +GLOBAL +DEFAULT +8 sg8 -.* TLS +GLOBAL +DEFAULT +8 sg3 -.* TLS +GLOBAL +DEFAULT +8 sg4 -.* TLS +GLOBAL +DEFAULT +8 sg5 -.* NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr -.* TLS +GLOBAL +DEFAULT +8 sg1 -.* FUNC +GLOBAL +DEFAULT +2 fn1 -.* TLS +GLOBAL +DEFAULT +8 sg2 -.* TLS +GLOBAL +DEFAULT +8 sg6 -.* TLS +GLOBAL +DEFAULT +8 sg7 diff --git a/ld/testsuite/ld-x86-64/tlspic2-nacl.rd b/ld/testsuite/ld-x86-64/tlspic2-nacl.rd deleted file mode 100644 index d6082d6..0000000 --- a/ld/testsuite/ld-x86-64/tlspic2-nacl.rd +++ /dev/null @@ -1,139 +0,0 @@ -#source: tlspic3.s -#source: tlspic2.s -#as: --64 -#ld: -shared -melf_x86_64_nacl --no-ld-generated-unwind-info -#readelf: -WSsrl -#target: x86_64-*-nacl* - -There are [0-9]+ section headers, starting at offset 0x[0-9a-f]+: - -Section Headers: - +\[Nr\] Name +Type +Address +Off +Size +ES Flg Lk Inf Al - +\[[ 0-9]+\] +NULL +0+ 0+ 0+ 00 +0 +0 +0 - +\[[ 0-9]+\] .plt +.* - +\[[ 0-9]+\] .text +PROGBITS +0+1000 [0-9a-f]+ 0+31a 00 +AX +0 +0 4096 - +\[[ 0-9]+\] .hash +.* - +\[[ 0-9]+\] .dynsym +.* - +\[[ 0-9]+\] .dynstr +.* - +\[[ 0-9]+\] .rela.dyn +.* - +\[[ 0-9]+\] .rela.plt +.* - +\[[ 0-9]+\] .tdata +PROGBITS +0+10010458 [0-9a-f]+ 0+60 00 WAT +0 +0 +1 - +\[[ 0-9]+\] .tbss +NOBITS +0+100104b8 [0-9a-f]+ 0+20 00 WAT +0 +0 +1 - +\[[ 0-9]+\] .dynamic +DYNAMIC +0+100104b8 [0-9a-f]+ 0+130 10 +WA +5 +0 +8 - +\[[ 0-9]+\] .got +PROGBITS +0+100105e8 [0-9a-f]+ 0+98 08 +WA +0 +0 +8 - +\[[ 0-9]+\] .got.plt +PROGBITS +0+10010680 [0-9a-f]+ 0+20 08 +WA +0 +0 +8 - +\[[ 0-9]+\] .symtab +.* - +\[[ 0-9]+\] .strtab +.* - +\[[ 0-9]+\] .shstrtab +.* -Key to Flags: -#... - -Elf file type is DYN \(Shared object file\) -Entry point 0x1000 -There are [0-9]+ program headers, starting at offset [0-9]+ - -Program Headers: - +Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg Align - +LOAD +0x0+10000 0x0+ 0x0+ 0x[0-9a-f]+ 0x[0-9a-f]+ R E 0x10000 - +LOAD +0x0+ 0x0+10000000 0x0+10000000 0x0+458 0x0+458 R +0x10000 - +LOAD +0x0+458 0x0+10010458 0x0+10010458 0x0+248 0x0+248 RW +0x10000 - +DYNAMIC +0x0+4b8 0x0+100104b8 0x0+100104b8 0x0+130 0x0+130 RW +0x8 - +TLS +0x0+458 0x0+10010458 0x0+10010458 0x0+60 0x0+80 R +0x1 - - Section to Segment mapping: - +Segment Sections... - +00 +.plt .text * - +01 +.hash .dynsym .dynstr .rela.dyn .rela.plt * - +02 +.tdata .dynamic .got .got.plt * - +03 +.dynamic * - +04 +.tdata .tbss * - -Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 15 entries: - +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend -[0-9a-f ]+R_X86_64_DTPMOD64 +0 -[0-9a-f ]+R_X86_64_TPOFF64 +24 -[0-9a-f ]+R_X86_64_TPOFF64 +30 -[0-9a-f ]+R_X86_64_DTPMOD64 +0 -[0-9a-f ]+R_X86_64_DTPMOD64 +0 -[0-9a-f ]+R_X86_64_TPOFF64 +64 -[0-9a-f ]+R_X86_64_TPOFF64 +50 -[0-9a-f ]+R_X86_64_TPOFF64 +70 -[0-9a-f ]+R_X86_64_DTPMOD64 +0 -[0-9a-f ]+R_X86_64_TPOFF64 +44 -[0-9a-f ]+R_X86_64_TPOFF64 +0+10 sg5 \+ 0 -[0-9a-f ]+R_X86_64_GLOB_DAT +0+ __tls_get_addr \+ 0 -[0-9a-f ]+R_X86_64_DTPMOD64 +0+ sg1 \+ 0 -[0-9a-f ]+R_X86_64_DTPOFF64 +0+ sg1 \+ 0 -[0-9a-f ]+R_X86_64_TPOFF64 +0+4 sg2 \+ 0 - -Relocation section '.rela.plt' at offset 0x[0-9a-f]+ contains 1 entry: - +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend -[0-9a-f ]+R_X86_64_JUMP_SLOT +0+ __tls_get_addr \+ 0 - -Symbol table '\.dynsym' contains [0-9]+ entries: - +Num: +Value +Size +Type +Bind +Vis +Ndx +Name -.* NOTYPE +LOCAL +DEFAULT +UND * -.* TLS +GLOBAL +DEFAULT +8 sg8 -.* TLS +GLOBAL +DEFAULT +8 sg3 -.* TLS +GLOBAL +DEFAULT +8 sg4 -.* TLS +GLOBAL +DEFAULT +8 sg5 -.* NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr -.* TLS +GLOBAL +DEFAULT +8 sg1 -.* FUNC +GLOBAL +DEFAULT +2 fn1 -.* TLS +GLOBAL +DEFAULT +8 sg2 -.* TLS +GLOBAL +DEFAULT +8 sg6 -.* TLS +GLOBAL +DEFAULT +8 sg7 - -Symbol table '\.symtab' contains [0-9]+ entries: - +Num: +Value +Size +Type +Bind +Vis +Ndx +Name -.* NOTYPE +LOCAL +DEFAULT +UND * -.* SECTION +LOCAL +DEFAULT +1 * -.* SECTION +LOCAL +DEFAULT +2 * -.* SECTION +LOCAL +DEFAULT +3 * -.* SECTION +LOCAL +DEFAULT +4 * -.* SECTION +LOCAL +DEFAULT +5 * -.* SECTION +LOCAL +DEFAULT +6 * -.* SECTION +LOCAL +DEFAULT +7 * -.* SECTION +LOCAL +DEFAULT +8 * -.* SECTION +LOCAL +DEFAULT +9 * -.* SECTION +LOCAL +DEFAULT +10 * -.* SECTION +LOCAL +DEFAULT +11 * -.* SECTION +LOCAL +DEFAULT +12 * -.* FILE +LOCAL +DEFAULT +ABS tmpdir/tlspic3.o -.* TLS +LOCAL +DEFAULT +8 sl1 -.* TLS +LOCAL +DEFAULT +8 sl2 -.* TLS +LOCAL +DEFAULT +8 sl3 -.* TLS +LOCAL +DEFAULT +8 sl4 -.* TLS +LOCAL +DEFAULT +8 sl5 -.* TLS +LOCAL +DEFAULT +8 sl6 -.* TLS +LOCAL +DEFAULT +8 sl7 -.* TLS +LOCAL +DEFAULT +8 sl8 -.* FILE +LOCAL +DEFAULT +ABS -.* TLS +LOCAL +DEFAULT +9 sH1 -.* OBJECT +LOCAL +DEFAULT +10 _DYNAMIC -.* TLS +LOCAL +DEFAULT +8 sh3 -.* TLS +LOCAL +DEFAULT +9 sH2 -.* TLS +LOCAL +DEFAULT +9 sH7 -.* TLS +LOCAL +DEFAULT +8 sh7 -.* TLS +LOCAL +DEFAULT +8 sh8 -.* TLS +LOCAL +DEFAULT +9 sH4 -.* TLS +LOCAL +DEFAULT +8 sh4 -.* TLS +LOCAL +DEFAULT +9 sH3 -.* TLS +LOCAL +DEFAULT +8 sh5 -.* TLS +LOCAL +DEFAULT +9 sH5 -.* TLS +LOCAL +DEFAULT +9 sH6 -.* TLS +LOCAL +DEFAULT +9 sH8 -.* TLS +LOCAL +DEFAULT +8 sh1 -.* OBJECT +LOCAL +DEFAULT +12 _GLOBAL_OFFSET_TABLE_ -.* TLS +LOCAL +DEFAULT +8 sh2 -.* TLS +LOCAL +DEFAULT +8 sh6 -.* TLS +GLOBAL +DEFAULT +8 sg8 -.* TLS +GLOBAL +DEFAULT +8 sg3 -.* TLS +GLOBAL +DEFAULT +8 sg4 -.* TLS +GLOBAL +DEFAULT +8 sg5 -.* NOTYPE +GLOBAL +DEFAULT +UND __tls_get_addr -.* TLS +GLOBAL +DEFAULT +8 sg1 -.* FUNC +GLOBAL +DEFAULT +2 fn1 -.* TLS +GLOBAL +DEFAULT +8 sg2 -.* TLS +GLOBAL +DEFAULT +8 sg6 -.* TLS +GLOBAL +DEFAULT +8 sg7 diff --git a/ld/testsuite/ld-x86-64/x86-64.exp b/ld/testsuite/ld-x86-64/x86-64.exp index 7e6a2c9..e687c42 100644 --- a/ld/testsuite/ld-x86-64/x86-64.exp +++ b/ld/testsuite/ld-x86-64/x86-64.exp @@ -22,18 +22,11 @@ # Test x86_64 linking; all types of relocs. This tests the assembler and # tools like objdump as well as the linker. -if { !([istarget "x86_64-*-elf*"] - || [istarget "x86_64-*-nacl*"] - || [istarget "x86_64-*-linux*"]) } { +if { !([istarget "x86_64-*-elf*"] || [istarget "x86_64-*-linux*"]) } { return } -if [istarget "*-*-nacl*"] { - set emul "elf_x86_64_nacl" -} else { - set emul "elf_x86_64" -} - +set emul "elf_x86_64" set saved_ASFLAGS "$ASFLAGS" set ASFLAGS "$ASFLAGS -mx86-used-note=no" @@ -230,38 +223,6 @@ set x86_64tests { "--64" { dummy.s } {} "pr20550"} } -# So as to avoid rewriting every last test case here in a nacl variant, -# we use black magic to massage the generic cases into nacl-variant cases. -if [istarget "*-*-nacl*"] { - set emul elf_x86_64_nacl - - set lhs {elf(32)?_(i386|x86_64)[[:>:]]} - set rhs {&_nacl} - - # Change all the -melf_x86_64 to -melf_x86_64_nacl so linking can succeed. - regsub -all -- $lhs $x86_64tests $rhs x86_64tests - - set zlhs {-z noseparate-code -z max-page-size=0x200000} - set zrhs {} - - # Remove -z max-page-size=0x200000 -z noseparate-code since they - # generate different addresses for nacl targets. - regsub -all -- $zlhs $x86_64tests $zrhs x86_64tests - - # Same, applied to all the run_dump_test cases. - set options_regsub(ld) [list $lhs $rhs] - - # The section/segment layout differs too much for the vanilla - # readelf output files to match. So massage the cases so that - # they refer to a foo-nacl.rd file instead of a foo.rd file. - regsub -all -- {([a-z0-9]+)\.rd} $x86_64tests {\1-nacl.rd} x86_64tests - - # Likewise for PLTs. - regsub -all -- {([a-z0-9]+)\.pd} $x86_64tests {\1-nacl.pd} x86_64tests -} else { - set emul elf_x86_64 -} - run_ld_link_tests $x86_64tests set test_name "Mixed x86_64 and i386 input test 1" @@ -335,7 +296,6 @@ run_dump_test "gotplt1" run_dump_test "pie1" run_dump_test "pie2" run_dump_test "pie3" -run_dump_test "pie3-nacl" run_dump_test "pic1" run_dump_test "largecomm-1a" run_dump_test "largecomm-1b" @@ -412,7 +372,6 @@ run_dump_test "property-x86-cet5b-x32" run_dump_test "property-x86-cet6" run_dump_test "property-x86-cet6-x32" run_dump_test "pr21884" -run_dump_test "pr21884-nacl" run_dump_test "pr22071" run_dump_test "pr22115-1a" run_dump_test "pr22115-1a-x32" @@ -473,7 +432,7 @@ run_dump_test "pr25416-3" run_dump_test "pr25416-4" run_dump_test "pr26018" -if { ![istarget "x86_64-*-linux*"] && ![istarget "x86_64-*-nacl*"]} { +if ![istarget "x86_64-*-linux*"] { return } @@ -512,7 +471,6 @@ run_dump_test "ilp32-1" run_dump_test "ilp32-2" run_dump_test "ilp32-3" run_dump_test "ilp32-4" -run_dump_test "ilp32-4-nacl" run_dump_test "ilp32-5" run_dump_test "ilp32-6" run_dump_test "ilp32-7" @@ -564,10 +522,6 @@ run_dump_test "load1a" run_dump_test "load1b" run_dump_test "load1c" run_dump_test "load1d" -run_dump_test "load1a-nacl" -run_dump_test "load1b-nacl" -run_dump_test "load1c-nacl" -run_dump_test "load1d-nacl" run_dump_test "load2" run_dump_test "call1a" run_dump_test "call1b" @@ -591,7 +545,6 @@ run_dump_test "ifunc-textrel-2b" run_dump_test "pr18815" run_dump_test "pr19013" run_dump_test "pr19013-x32" -run_dump_test "pr19013-nacl" run_dump_test "pr19162" run_dump_test "pr19175" run_dump_test "pr18591" @@ -610,7 +563,6 @@ run_dump_test "pr19636-2a" run_dump_test "pr19636-2b" run_dump_test "pr19636-2c" run_dump_test "pr19636-2d" -run_dump_test "pr19636-2d-nacl" run_dump_test "pr19636-2e" run_dump_test "pr19636-2f" run_dump_test "pr19636-2g" |