diff options
author | Alan Modra <amodra@gmail.com> | 2018-06-08 20:17:34 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2018-06-08 20:17:34 +0930 |
commit | fd161d860f1df7140153eab4726705cc3e2727b0 (patch) | |
tree | 04782c728b8692241959b3512aa227334c3f13ca /ld/testsuite/ld-frv | |
parent | 4f652d7b9a15cd3aae25de38f51baafe7e529646 (diff) | |
download | gdb-fd161d860f1df7140153eab4726705cc3e2727b0.zip gdb-fd161d860f1df7140153eab4726705cc3e2727b0.tar.gz gdb-fd161d860f1df7140153eab4726705cc3e2727b0.tar.bz2 |
Define various symbols conditionally in shared libraries
The values of symbols in shared libraries like _end, _edata, and
__bss_start are generally not that useful outside of the shared
library. This patch defines them conditionally with PROVIDE, since a
shared library might need the local value. An example is glibc ld.so
local access to "_begin", "_etext" and "_end". (ld.so gains access to
the local values by making the references using hidden visibility.
That makes the definitions hidden too.)
We can't use PROVIDE_HIDDEN in the linker scripts because the shared
library might need the value of the symbol in the executable. An
example is freebsd libc dynamic access to "_end".
PR ld/23161
* emulparams/aarch64cloudabi.sh: PROVIDE __bss_start__, _bss_end__,
and __end__ in shared libraries.
* emulparams/aarch64fbsd.sh: Likewise.
* emulparams/aarch64linux.sh: Likewise.
* emulparams/aarch64linux32.sh: Likewise.
* emulparams/armelf_fuchsia.sh: Likewise.
* emulparams/armelf_linux.sh: Likewise.
* emulparams/armelf_phoenix.sh: Likewise.
* emulparams/aarch64elf.sh: Likewise, and __data_start
* emulparams/aarch64elf32.sh: Likewise.
* emulparams/armelf.sh: Likewise.
* emulparams/armnto.sh: Likewise.
* emulparams/elf32bmip.sh: Remove duplicate ". = ." from
OTHER_GOT_SYMBOLS. PROVIDE _ftext, _fdata, and _fbss in shared libs.
* emulparams/elf32bmipn32-defs.sh: Likewise.
* emulparams/elf32frv.sh: PROVIDE __end and __data_start in shared libs.
* emulparams/elf32lriscv-defs.sh: Tidy.
* emulparams/elf32mcore.sh: PROVIDE __bss_start and _bss_end in
shared libs
* emulparams/elf32ppccommon.sh: PROVIDE __end in shared libs.
* emulparams/elf32rl78.sh: Tidy.
* emulparams/i386nto.sh: PROVIDE _btext in shared libs.
* emulparams/shelf_nto.sh: Likewise.
* emulparams/shlelf_nto.sh: Likewise.
* emulparams/score3_elf.sh: PROVIDE _gp, _bss_start__, _bss_end__,
__bss_end__, __end__, _fdata, _sdata_begin, and _bss_start in
shared libs.
* scripttempl/elf.sc: Don't use EXECUTABLE_SYMBOLS for shared
libraries. PROVIDE _edata, edata, __bss_start, and _end in shared
libraries.
* testsuite/ld-elf/pr23161.map,
* testsuite/ld-elf/pr23161a.c,
* testsuite/ld-elf/pr23161b.c,
* testsuite/ld-elf/pr23161c.c,
* testsuite/ld-elf/pr23161a.rd,
* testsuite/ld-elf/pr23161b.rd,
* testsuite/ld-elf/pr23161c.rd,
* testsuite/ld-elf/pr23161d.rd: New tests.
* testsuite/ld-elf/shared.exp: Run ld/23161 tests.
* testsuite/ld-elf/pr23162.rd,
* testsuite/ld-aarch64/ifunc-1-local.d,
* testsuite/ld-aarch64/ifunc-1.d,
* testsuite/ld-aarch64/ifunc-2-local.d,
* testsuite/ld-aarch64/ifunc-2.d,
* testsuite/ld-aarch64/ifunc-21.d,
* testsuite/ld-aarch64/ifunc-3a.d,
* testsuite/ld-alpha/tlsbin.rd,
* testsuite/ld-alpha/tlsbin.sd,
* testsuite/ld-alpha/tlsbinr.rd,
* testsuite/ld-alpha/tlspic.rd,
* testsuite/ld-alpha/tlspic.sd,
* testsuite/ld-cris/dso-pltdis1.d,
* testsuite/ld-cris/dso-pltdis2.d,
* testsuite/ld-cris/dso12-pltdis.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-1.d,
* testsuite/ld-cris/libdso-10.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-1c.d,
* testsuite/ld-cris/libdso-1d.d,
* testsuite/ld-cris/libdso-2.d,
* testsuite/ld-cris/pic-gc-72.d,
* testsuite/ld-cris/pic-gc-73.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-gc-71.d,
* testsuite/ld-cris/tls-gd-1.d,
* testsuite/ld-cris/tls-gd-1h.d,
* testsuite/ld-cris/tls-gd-2.d,
* testsuite/ld-cris/tls-gd-2h.d,
* testsuite/ld-cris/tls-ie-10.d,
* testsuite/ld-cris/tls-ie-11.d,
* testsuite/ld-cris/tls-ie-78.d,
* testsuite/ld-cris/tls-ie-8.d,
* testsuite/ld-cris/tls-ie-9.d,
* testsuite/ld-cris/tls-js1.d,
* testsuite/ld-cris/tls-ld-4.d,
* testsuite/ld-cris/tls-ld-5.d,
* testsuite/ld-cris/tls-ld-6.d,
* testsuite/ld-cris/tls-ld-7.d,
* testsuite/ld-cris/tls-ldgd-14.d,
* testsuite/ld-cris/tls-ldgd-15.d,
* testsuite/ld-cris/tls-ldgdex-14.d,
* testsuite/ld-cris/tls-ldgdex-15.d,
* testsuite/ld-cris/tls-ldgdx-14.d,
* testsuite/ld-cris/tls-ldgdx-15.d,
* testsuite/ld-cris/tls-legdx-16.d,
* testsuite/ld-cris/tls-legdx-17.d,
* testsuite/ld-cris/tls-local-54.d,
* testsuite/ld-cris/tls-local-60.d,
* testsuite/ld-cris/tls-local-61.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/weakhiddso.d,
* testsuite/ld-cris/weakref2.d,
* testsuite/ld-frv/fdpic-shared-1.d,
* testsuite/ld-frv/fdpic-shared-2.d,
* testsuite/ld-frv/fdpic-shared-3.d,
* testsuite/ld-frv/fdpic-shared-4.d,
* testsuite/ld-frv/fdpic-shared-5.d,
* testsuite/ld-frv/fdpic-shared-7.d,
* testsuite/ld-frv/fdpic-shared-8.d,
* testsuite/ld-frv/tls-dynamic-2.d,
* testsuite/ld-i386/ibt-plt-1.d,
* testsuite/ld-i386/ibt-plt-2a.d,
* testsuite/ld-i386/ibt-plt-2b.d,
* testsuite/ld-i386/ibt-plt-2c.d,
* testsuite/ld-i386/ibt-plt-2d.d,
* testsuite/ld-i386/ibt-plt-3a.d,
* testsuite/ld-i386/ibt-plt-3b.d,
* testsuite/ld-i386/ibt-plt-3c.d,
* testsuite/ld-i386/ibt-plt-3d.d,
* testsuite/ld-i386/plt2.dd,
* testsuite/ld-i386/pr20830.d,
* testsuite/ld-i386/tlsbin-nacl.rd,
* testsuite/ld-i386/tlsbin.rd,
* testsuite/ld-i386/tlsbin2-nacl.rd,
* testsuite/ld-i386/tlsbin2.rd,
* testsuite/ld-i386/tlsbindesc-nacl.rd,
* testsuite/ld-i386/tlsbindesc.rd,
* testsuite/ld-i386/tlsdesc-nacl.rd,
* testsuite/ld-i386/tlsdesc.rd,
* testsuite/ld-i386/tlsgdesc-nacl.rd,
* testsuite/ld-i386/tlsgdesc.rd,
* testsuite/ld-i386/tlsnopic-nacl.rd,
* testsuite/ld-i386/tlsnopic.dd,
* testsuite/ld-i386/tlsnopic.rd,
* testsuite/ld-i386/tlsnopic.sd,
* testsuite/ld-i386/tlspic-nacl.rd,
* testsuite/ld-i386/tlspic.rd,
* testsuite/ld-i386/tlspic2-nacl.rd,
* testsuite/ld-i386/tlspic2.rd,
* testsuite/ld-ia64/merge1.d,
* testsuite/ld-ia64/merge2.d,
* testsuite/ld-ia64/merge3.d,
* testsuite/ld-ia64/merge4.d,
* testsuite/ld-ia64/merge5.d,
* testsuite/ld-ia64/tlsbin.rd,
* testsuite/ld-ia64/tlspic.rd,
* testsuite/ld-ifunc/ifunc-2-i386-now.d,
* testsuite/ld-ifunc/ifunc-2-local-i386-now.d,
* testsuite/ld-ifunc/ifunc-2-local-x86-64-now.d,
* testsuite/ld-ifunc/ifunc-2-local-x86-64.d,
* testsuite/ld-ifunc/ifunc-2-x86-64-now.d,
* testsuite/ld-ifunc/ifunc-2-x86-64.d,
* testsuite/ld-ifunc/pr17154-i386-now.d,
* testsuite/ld-ifunc/pr17154-i386.d,
* testsuite/ld-ifunc/pr17154-x86-64-now.d,
* testsuite/ld-ifunc/pr17154-x86-64.d,
* testsuite/ld-m68k/tls-def-1.d,
* testsuite/ld-m68k/tls-gd-1.d2,
* testsuite/ld-metag/shared.d,
* testsuite/ld-metag/stub_pic_app.d,
* testsuite/ld-mips-elf/rel32-n32.d,
* testsuite/ld-mips-elf/rel32-o32.d,
* testsuite/ld-mips-elf/rel64.d,
* testsuite/ld-powerpc/ambiguousv1.d,
* testsuite/ld-powerpc/ambiguousv1b.d,
* testsuite/ld-powerpc/ambiguousv2.d,
* testsuite/ld-powerpc/ambiguousv2b.d,
* testsuite/ld-powerpc/tlsexe.d,
* testsuite/ld-powerpc/tlsexe.r,
* testsuite/ld-powerpc/tlsexe32.d,
* testsuite/ld-powerpc/tlsexe32.g,
* testsuite/ld-powerpc/tlsexe32.r,
* testsuite/ld-powerpc/tlsexetoc.d,
* testsuite/ld-powerpc/tlsexetoc.r,
* testsuite/ld-powerpc/tlsso.d,
* testsuite/ld-powerpc/tlsso.r,
* testsuite/ld-powerpc/tlsso32.g,
* testsuite/ld-powerpc/tlsso32.r,
* testsuite/ld-powerpc/tlstocso.d,
* testsuite/ld-powerpc/tlstocso.g,
* testsuite/ld-powerpc/tlstocso.r,
* testsuite/ld-s390/gotreloc_31-1.dd,
* testsuite/ld-s390/tlsbin.dd,
* testsuite/ld-s390/tlsbin.rd,
* testsuite/ld-s390/tlsbin_64.dd,
* testsuite/ld-s390/tlsbin_64.rd,
* testsuite/ld-s390/tlspic.rd,
* testsuite/ld-s390/tlspic_64.rd,
* testsuite/ld-sh/tlsbin-2.d,
* testsuite/ld-sh/tlspic-2.d,
* testsuite/ld-sparc/gotop32.rd,
* testsuite/ld-sparc/gotop64.rd,
* testsuite/ld-sparc/tlssunbin32.rd,
* testsuite/ld-sparc/tlssunbin64.rd,
* testsuite/ld-sparc/tlssunnopic32.rd,
* testsuite/ld-sparc/tlssunnopic64.rd,
* testsuite/ld-sparc/tlssunpic32.rd,
* testsuite/ld-sparc/tlssunpic64.rd,
* testsuite/ld-x86-64/bnd-branch-1-now.d,
* testsuite/ld-x86-64/bnd-ifunc-1-now.d,
* testsuite/ld-x86-64/bnd-ifunc-2-now.d,
* testsuite/ld-x86-64/bnd-ifunc-2.d,
* testsuite/ld-x86-64/bnd-plt-1-now.d,
* testsuite/ld-x86-64/bnd-plt-1.d,
* testsuite/ld-x86-64/ibt-plt-1-x32.d,
* testsuite/ld-x86-64/ibt-plt-1.d,
* testsuite/ld-x86-64/ibt-plt-2a-x32.d,
* testsuite/ld-x86-64/ibt-plt-2a.d,
* testsuite/ld-x86-64/ibt-plt-2b-x32.d,
* testsuite/ld-x86-64/ibt-plt-2b.d,
* testsuite/ld-x86-64/ibt-plt-2c-x32.d,
* testsuite/ld-x86-64/ibt-plt-2c.d,
* testsuite/ld-x86-64/ibt-plt-2d-x32.d,
* testsuite/ld-x86-64/ibt-plt-2d.d,
* testsuite/ld-x86-64/ibt-plt-3a-x32.d,
* testsuite/ld-x86-64/ibt-plt-3a.d,
* testsuite/ld-x86-64/ibt-plt-3b-x32.d,
* testsuite/ld-x86-64/ibt-plt-3b.d,
* testsuite/ld-x86-64/ibt-plt-3c-x32.d,
* testsuite/ld-x86-64/ibt-plt-3c.d,
* testsuite/ld-x86-64/ibt-plt-3d-x32.d,
* testsuite/ld-x86-64/ibt-plt-3d.d,
* testsuite/ld-x86-64/ilp32-4-nacl.d,
* testsuite/ld-x86-64/ilp32-4.d,
* testsuite/ld-x86-64/load1c-nacl.d,
* testsuite/ld-x86-64/load1c.d,
* testsuite/ld-x86-64/load1d-nacl.d,
* testsuite/ld-x86-64/load1d.d,
* testsuite/ld-x86-64/mpx3n.dd,
* testsuite/ld-x86-64/mpx4.dd,
* testsuite/ld-x86-64/mpx4n.dd,
* testsuite/ld-x86-64/plt2.dd,
* testsuite/ld-x86-64/pr14207.d,
* testsuite/ld-x86-64/pr19162.d,
* testsuite/ld-x86-64/pr20253-1f.d,
* testsuite/ld-x86-64/pr20253-1l.d,
* testsuite/ld-x86-64/pr20830a-now.d,
* testsuite/ld-x86-64/pr20830a.d,
* testsuite/ld-x86-64/pr20830b-now.d,
* testsuite/ld-x86-64/pr20830b.d,
* testsuite/ld-x86-64/pr21038a-now.d,
* testsuite/ld-x86-64/pr21038a.d,
* testsuite/ld-x86-64/pr21038b-now.d,
* testsuite/ld-x86-64/pr21038b.d,
* testsuite/ld-x86-64/pr21038c-now.d,
* testsuite/ld-x86-64/pr21038c.d,
* testsuite/ld-x86-64/tlsbin-nacl.rd,
* testsuite/ld-x86-64/tlsbin.rd,
* testsuite/ld-x86-64/tlsbin2-nacl.rd,
* testsuite/ld-x86-64/tlsbin2.rd,
* testsuite/ld-x86-64/tlsbindesc-nacl.rd,
* testsuite/ld-x86-64/tlsbindesc.rd,
* testsuite/ld-x86-64/tlsdesc-nacl.rd,
* testsuite/ld-x86-64/tlsdesc.rd,
* testsuite/ld-x86-64/tlsgdesc-nacl.rd,
* testsuite/ld-x86-64/tlsgdesc.rd,
* testsuite/ld-x86-64/tlspic-nacl.rd,
* testsuite/ld-x86-64/tlspic.rd,
* testsuite/ld-x86-64/tlspic2-nacl.rd,
* testsuite/ld-x86-64/tlspic2.rd: Update.
Diffstat (limited to 'ld/testsuite/ld-frv')
-rw-r--r-- | ld/testsuite/ld-frv/fdpic-shared-1.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-frv/fdpic-shared-2.d | 14 | ||||
-rw-r--r-- | ld/testsuite/ld-frv/fdpic-shared-3.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-frv/fdpic-shared-4.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-frv/fdpic-shared-5.d | 8 | ||||
-rw-r--r-- | ld/testsuite/ld-frv/fdpic-shared-7.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-frv/fdpic-shared-8.d | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-frv/tls-dynamic-2.d | 18 |
8 files changed, 35 insertions, 35 deletions
diff --git a/ld/testsuite/ld-frv/fdpic-shared-1.d b/ld/testsuite/ld-frv/fdpic-shared-1.d index 4968deb..00374f5 100644 --- a/ld/testsuite/ld-frv/fdpic-shared-1.d +++ b/ld/testsuite/ld-frv/fdpic-shared-1.d @@ -23,9 +23,9 @@ Disassembly of section \.text: [0-9a-f ]+: 80 fc ff f8 setlos 0xf+ff8,gr0 [0-9a-f ]+: 80 f4 ff f8 setlo 0xfff8,gr0 [0-9a-f ]+: 80 f8 ff ff sethi 0xffff,gr0 -[0-9a-f ]+: 80 40 ff ec addi gr15,-20,gr0 -[0-9a-f ]+: 80 fc ff ec setlos 0xf+fec,gr0 -[0-9a-f ]+: 80 f4 ff ec setlo 0xffec,gr0 +[0-9a-f ]+: 80 40 ff (ec|f0) addi gr15,.*,gr0 +[0-9a-f ]+: 80 fc ff (ec|f0) setlos .*,gr0 +[0-9a-f ]+: 80 f4 ff (ec|f0) setlo .*,gr0 [0-9a-f ]+: 80 f8 ff ff sethi 0xffff,gr0 [0-9a-f ]+: 80 f4 00 14 setlo 0x14,gr0 [0-9a-f ]+: 80 f8 00 00 sethi hi\(0x0\),gr0 diff --git a/ld/testsuite/ld-frv/fdpic-shared-2.d b/ld/testsuite/ld-frv/fdpic-shared-2.d index 85ab28d..3eeb587 100644 --- a/ld/testsuite/ld-frv/fdpic-shared-2.d +++ b/ld/testsuite/ld-frv/fdpic-shared-2.d @@ -37,9 +37,9 @@ Disassembly of section \.text: [0-9a-f ]+: 80 fc ff e8 setlos 0xf*ffffffe8,gr0 [0-9a-f ]+: 80 f4 ff e0 setlo 0xffe0,gr0 [0-9a-f ]+: 80 f8 ff ff sethi 0xffff,gr0 -[0-9a-f ]+: 80 40 ff d8 addi gr15,-40,gr0 -[0-9a-f ]+: 80 fc ff d8 setlos 0xf+fd8,gr0 -[0-9a-f ]+: 80 f4 ff d8 setlo 0xffd8,gr0 +[0-9a-f ]+: 80 40 ff d4 addi gr15,-44,gr0 +[0-9a-f ]+: 80 fc ff d4 setlos 0xf+fd4,gr0 +[0-9a-f ]+: 80 f4 ff d4 setlo 0xffd4,gr0 [0-9a-f ]+: 80 f8 ff ff sethi 0xffff,gr0 [0-9a-f ]+: 80 f4 00 1c setlo 0x1c,gr0 [0-9a-f ]+: 80 f8 00 00 sethi hi\(0x0\),gr0 @@ -56,16 +56,16 @@ Disassembly of section \.dat[0-9a-f ]+: [0-9A-F ]+isassembly of section \.got: [0-9a-f ]+<.got>: -[0-9a-f ]+: 00 00 04 a4 .* +[0-9a-f ]+: 00 00 04 20 .* [0-9a-f ]+: R_FRV_FUNCDESC_VALUE GF9 [0-9a-f ]+: 00 00 00 00 .* -[0-9a-f ]+: 00 00 04 9c .* +[0-9a-f ]+: 00 00 04 18 .* [0-9a-f ]+: R_FRV_FUNCDESC_VALUE GF8 [0-9a-f ]+: 00 00 00 00 .* -[0-9a-f ]+: 00 00 04 ac .* +[0-9a-f ]+: 00 00 04 28 .* [0-9a-f ]+: R_FRV_FUNCDESC_VALUE GF7 [0-9a-f ]+: 00 00 00 00 .* -[0-9a-f ]+: 00 00 04 94 .* +[0-9a-f ]+: 00 00 04 10 .* [0-9a-f ]+: R_FRV_FUNCDESC_VALUE GF0 [0-9a-f ]+: 00 00 00 00 .* diff --git a/ld/testsuite/ld-frv/fdpic-shared-3.d b/ld/testsuite/ld-frv/fdpic-shared-3.d index fc59185..ef5090d 100644 --- a/ld/testsuite/ld-frv/fdpic-shared-3.d +++ b/ld/testsuite/ld-frv/fdpic-shared-3.d @@ -23,9 +23,9 @@ [0-9a-f ]+: 80 fc ff e8 setlos 0xf*ffffffe8,gr0 [0-9a-f ]+: 80 f4 ff d8 setlo 0xffd8,gr0 [0-9a-f ]+: 80 f8 ff ff sethi 0xffff,gr0 -[0-9a-f ]+: 80 40 ff bc addi gr15,-68,gr0 -[0-9a-f ]+: 80 fc ff bc setlos 0xf+fbc,gr0 -[0-9a-f ]+: 80 f4 ff bc setlo 0xffbc,gr0 +[0-9a-f ]+: 80 40 ff (bc|c0) addi gr15,.*,gr0 +[0-9a-f ]+: 80 fc ff (bc|c0) setlos .*,gr0 +[0-9a-f ]+: 80 f4 ff (bc|c0) setlo .*,gr0 [0-9a-f ]+: 80 f8 ff ff sethi 0xffff,gr0 [0-9a-f ]+: 80 f4 00 24 setlo 0x24,gr0 [0-9a-f ]+: 80 f8 00 00 sethi hi\(0x0\),gr0 diff --git a/ld/testsuite/ld-frv/fdpic-shared-4.d b/ld/testsuite/ld-frv/fdpic-shared-4.d index 298ae28..aebc0f1 100644 --- a/ld/testsuite/ld-frv/fdpic-shared-4.d +++ b/ld/testsuite/ld-frv/fdpic-shared-4.d @@ -23,9 +23,9 @@ Disassembly of section \.text: [0-9a-f ]+: 80 fc ff f0 setlos 0xf+ff0,gr0 [0-9a-f ]+: 80 f4 ff e8 setlo 0xffe8,gr0 [0-9a-f ]+: 80 f8 ff ff sethi 0xffff,gr0 -[0-9a-f ]+: 80 40 ff dc addi gr15,-36,gr0 -[0-9a-f ]+: 80 fc ff dc setlos 0xf+fdc,gr0 -[0-9a-f ]+: 80 f4 ff dc setlo 0xffdc,gr0 +[0-9a-f ]+: 80 40 ff (dc|e0) addi gr15,.*,gr0 +[0-9a-f ]+: 80 fc ff (dc|e0) setlos .*,gr0 +[0-9a-f ]+: 80 f4 ff (dc|e0) setlo .*,gr0 [0-9a-f ]+: 80 f8 ff ff sethi 0xffff,gr0 [0-9a-f ]+: 80 f4 00 14 setlo 0x14,gr0 [0-9a-f ]+: 80 f8 00 00 sethi hi\(0x0\),gr0 diff --git a/ld/testsuite/ld-frv/fdpic-shared-5.d b/ld/testsuite/ld-frv/fdpic-shared-5.d index 6ec516a..54d3a07 100644 --- a/ld/testsuite/ld-frv/fdpic-shared-5.d +++ b/ld/testsuite/ld-frv/fdpic-shared-5.d @@ -49,16 +49,16 @@ Disassembly of section \.dat[0-9a-f ]+: Disassembly of section \.got: [0-9a-f ]+<.got>: -[0-9a-f ]+: 00 00 04 7c .* +[0-9a-f ]+: 00 00 03 f8 .* [0-9a-f ]+: R_FRV_FUNCDESC_VALUE UF9 [0-9a-f ]+: 00 00 00 00 .* -[0-9a-f ]+: 00 00 04 64 .* +[0-9a-f ]+: 00 00 03 e0 .* [0-9a-f ]+: R_FRV_FUNCDESC_VALUE UF8 [0-9a-f ]+: 00 00 00 00 .* -[0-9a-f ]+: 00 00 04 74 .* +[0-9a-f ]+: 00 00 03 f0 .* [0-9a-f ]+: R_FRV_FUNCDESC_VALUE UF0 [0-9a-f ]+: 00 00 00 00 .* -[0-9a-f ]+: 00 00 04 6c .* +[0-9a-f ]+: 00 00 03 e8 .* [0-9a-f ]+: R_FRV_FUNCDESC_VALUE UF7 [0-9a-f ]+: 00 00 00 00 .* diff --git a/ld/testsuite/ld-frv/fdpic-shared-7.d b/ld/testsuite/ld-frv/fdpic-shared-7.d index 071dd8f..6de964a 100644 --- a/ld/testsuite/ld-frv/fdpic-shared-7.d +++ b/ld/testsuite/ld-frv/fdpic-shared-7.d @@ -23,9 +23,9 @@ Disassembly of section \.text: [0-9a-f ]+: 80 fc ff f8 setlos 0xf*fffffff8,gr0 [0-9a-f ]+: 80 f4 ff f8 setlo 0xfff8,gr0 [0-9a-f ]+: 80 f8 ff ff sethi 0xffff,gr0 -[0-9a-f ]+: 80 40 ff f0 addi gr15,-16,gr0 -[0-9a-f ]+: 80 fc ff f0 setlos 0xf+ff0,gr0 -[0-9a-f ]+: 80 f4 ff f0 setlo 0xfff0,gr0 +[0-9a-f ]+: 80 40 ff (f0|f4) addi gr15,.*,gr0 +[0-9a-f ]+: 80 fc ff (f0|f4) setlos .*,gr0 +[0-9a-f ]+: 80 f4 ff (f0|f4) setlo .*,gr0 [0-9a-f ]+: 80 f8 ff ff sethi 0xffff,gr0 [0-9a-f ]+: 80 f4 00 14 setlo 0x14,gr0 [0-9a-f ]+: 80 f8 00 00 sethi hi\(0x0\),gr0 diff --git a/ld/testsuite/ld-frv/fdpic-shared-8.d b/ld/testsuite/ld-frv/fdpic-shared-8.d index 30a9cfb..5938145 100644 --- a/ld/testsuite/ld-frv/fdpic-shared-8.d +++ b/ld/testsuite/ld-frv/fdpic-shared-8.d @@ -23,9 +23,9 @@ Disassembly of section \.text: [0-9a-f ]+: 80 fc ff f0 setlos 0xf+ff0,gr0 [0-9a-f ]+: 80 f4 ff c8 setlo 0xffc8,gr0 [0-9a-f ]+: 80 f8 ff ff sethi 0xffff,gr0 -[0-9a-f ]+: 80 40 ff c0 addi gr15,-64,gr0 -[0-9a-f ]+: 80 fc ff c0 setlos 0xf+fc0,gr0 -[0-9a-f ]+: 80 f4 ff c0 setlo 0xffc0,gr0 +[0-9a-f ]+: 80 40 ff c4 addi gr15,-60,gr0 +[0-9a-f ]+: 80 fc ff c4 setlos 0xf+fc4,gr0 +[0-9a-f ]+: 80 f4 ff c4 setlo 0xffc4,gr0 [0-9a-f ]+: 80 f8 ff ff sethi 0xffff,gr0 [0-9a-f ]+: 80 f4 00 20 setlo 0x20,gr0 [0-9a-f ]+: 80 f8 00 00 sethi hi\(0x0\),gr0 diff --git a/ld/testsuite/ld-frv/tls-dynamic-2.d b/ld/testsuite/ld-frv/tls-dynamic-2.d index be7e6c8..73fa938 100644 --- a/ld/testsuite/ld-frv/tls-dynamic-2.d +++ b/ld/testsuite/ld-frv/tls-dynamic-2.d @@ -156,32 +156,32 @@ Disassembly of section \.text: Disassembly of section \.got: [0-9a-f ]+<.*>: -[0-9a-f ]+: 00 01 02 c0 .* +[0-9a-f ]+: 00 01 02 38 .* [0-9a-f ]+: 00 00 08 21 .* -[0-9a-f ]+: 00 01 02 c0 .* +[0-9a-f ]+: 00 01 02 38 .* [0-9a-f ]+: 00 00 f8 21 .* -[0-9a-f ]+: 00 01 02 c0 .* +[0-9a-f ]+: 00 01 02 38 .* [0-9a-f ]+: 00 00 00 01 .* [0-9a-f ]+: 00 00 00 00 .* [0-9a-f ]+: R_FRV_TLSDESC_VALUE x [0-9a-f ]+: 00 00 00 01 .* -[0-9a-f ]+: 00 01 02 c0 .* +[0-9a-f ]+: 00 01 02 38 .* [0-9a-f ]+: ff ff f8 11 .* -[0-9a-f ]+: 00 01 02 c0 .* +[0-9a-f ]+: 00 01 02 38 .* [0-9a-f ]+: 00 00 10 01 .* [0-9a-f ]+: 00 00 00 00 .* [0-9a-f ]+: R_FRV_TLSDESC_VALUE x [0-9a-f ]+: 00 00 10 01 .* -[0-9a-f ]+: 00 01 02 c0 .* +[0-9a-f ]+: 00 01 02 38 .* [0-9a-f ]+: 00 00 08 11 .* -[0-9a-f ]+: 00 01 02 c0 .* +[0-9a-f ]+: 00 01 02 38 .* [0-9a-f ]+: 00 01 00 01 .* [0-9a-f ]+: 00 00 00 00 .* [0-9a-f ]+: R_FRV_TLSDESC_VALUE x [0-9a-f ]+: 00 01 00 01 .* -[0-9a-f ]+: 00 01 02 c0 .* +[0-9a-f ]+: 00 01 02 38 .* [0-9a-f ]+: 00 00 f8 11 .* -[0-9a-f ]+: 00 01 02 c0 .* +[0-9a-f ]+: 00 01 02 38 .* [0-9a-f ]+: ff ff f8 21 .* [0-9a-f ]+<_GLOBAL_OFFSET_TABLE_>: |