Browse Source
ld/ * emulparams/elf32lriscv-defs.sh (SDATA_START_SYMBOLS): Remove HIDDEN. Don't define __global_pointer$ when CREATE_SHLIB. * testsuite/ld-riscv-elf/gp-hidden-64.rd, * testsuite/ld-riscv-elf/gp-hidden-lib.rd, * testsuite/ld-riscv-elf/gp-hidden-lib.s, * testsuite/ld-riscv-elf/gp-hidden-ver-64.rd, * testsuite/ld-riscv-elf/gp-hidden-ver.rd, * testsuite/ld-riscv-elf/gp-hidden-ver.s, * testsuite/ld-riscv-elf/gp-hidden-ver.ver, * testsuite/ld-riscv-elf/gp-hidden.rd, * testsuite/ld-riscv-elf/gp-hidden.s, * testsuite/ld-riscv-elf/gp-hidden.sd: Delete. * testsuite/ld-riscv-elf/gp-test-lib.sd, * testsuite/ld-riscv-elf/gp-test.s, * testsuite/ld-riscv-elf/gp-test.sd: New. * testsuite/ld-riscv-elf/ld-riscv-elf.exp: Rewrite gp tests.gdb-8.1-branch
14 changed files with 43 additions and 68 deletions
@ -1,4 +0,0 @@ |
|||
|
|||
Relocation section '\.rela\.dyn' at offset .* contains 1 entry: |
|||
*Offset * Info * Type * Sym\. *Value * Sym\. *Name \+ Addend |
|||
[0-9a-f]+ * [0-9a-f]+02 * R_RISCV_64 * [0-9a-f]+ * foo \+ 0 |
|||
@ -1,5 +0,0 @@ |
|||
|
|||
Relocation section '\.rela\.dyn' at offset .* contains 1 entry: |
|||
*Offset * Info * Type * Sym\. *Value * Sym\. *Name \+ Addend |
|||
# This must be an absolute relocation, there must not be a _gp reference. |
|||
[0-9a-f]+ * 0+03 * R_RISCV_RELATIVE * [0-9a-f]+ |
|||
@ -1,6 +0,0 @@ |
|||
.data |
|||
.globl bar |
|||
.type bar, @object |
|||
bar: |
|||
.dc.a __global_pointer$ |
|||
.size bar, . - bar |
|||
@ -1,6 +0,0 @@ |
|||
|
|||
Relocation section '\.rela\.dyn' at offset .* contains 2 entries: |
|||
*Offset * Info * Type * Sym\. *Value * Sym\. *Name \+ Addend |
|||
# This must be an absolute relocation, there must not be a _gp reference. |
|||
[0-9a-f]+ * 0+03 * R_RISCV_RELATIVE * [0-9a-f]+ |
|||
[0-9a-f]+ * [0-9a-f]+02 * R_RISCV_64 * [0-9a-f]+ * bar \+ 0 |
|||
@ -1,6 +0,0 @@ |
|||
|
|||
Relocation section '\.rela\.dyn' at offset .* contains 2 entries: |
|||
*Offset * Info * Type * Sym\. *Value * Sym\. *Name \+ Addend |
|||
# This must be an absolute relocation, there must not be a _gp reference. |
|||
[0-9a-f]+ * 0+03 * R_RISCV_RELATIVE * [0-9a-f]+ |
|||
[0-9a-f]+ * [0-9a-f]+01 * R_RISCV_32 * [0-9a-f]+ * bar \+ 0 |
|||
@ -1,7 +0,0 @@ |
|||
.data |
|||
.globl foo |
|||
.type foo, @object |
|||
foo: |
|||
.dc.a bar |
|||
.dc.a __global_pointer$ |
|||
.size foo, . - foo |
|||
@ -1 +0,0 @@ |
|||
{ global: foo; local: *; }; |
|||
@ -1,4 +0,0 @@ |
|||
|
|||
Relocation section '\.rela\.dyn' at offset .* contains 1 entry: |
|||
*Offset * Info * Type * Sym\. *Value * Sym\. *Name \+ Addend |
|||
[0-9a-f]+ * [0-9a-f]+01 * R_RISCV_32 * [0-9a-f]+ * foo \+ 0 |
|||
@ -1,9 +1,9 @@ |
|||
|
|||
Symbol table '.dynsym' contains [0-9]+ entries: |
|||
* Num: * Value * Size * Type * Bind * Vis * Ndx * Name |
|||
#... |
|||
Symbol table '.symtab' contains [0-9]+ entries: |
|||
* Num: * Value * Size * Type * Bind * Vis * Ndx * Name |
|||
#failif |
|||
#... |
|||
* [0-9a-f]+: * [0-9a-f]+ * 0 * NOTYPE * GLOBAL * DEFAULT .* __global_pointer\$ |
|||
#... |
|||
* [0-9a-f]+: * [0-9a-f]+ * 0 * NOTYPE * LOCAL * DEFAULT .* __global_pointer\$ |
|||
#pass |
|||
@ -0,0 +1,5 @@ |
|||
Symbol table '.symtab' contains [0-9]+ entries: |
|||
* Num: * Value * Size * Type * Bind * Vis * Ndx * Name |
|||
#... |
|||
* [0-9a-f]+: * [0-9a-f]+ * 0 * NOTYPE * GLOBAL * DEFAULT .* __global_pointer\$ |
|||
#pass |
|||
Loading…
Reference in new issue