aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-mips-elf
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2021-01-04 17:13:51 +1030
committerAlan Modra <amodra@gmail.com>2021-01-04 18:58:15 +1030
commit5b4293ba3c207ebdaea3631819b9459f0a10e761 (patch)
treee7f1bc6ae597de21c0a991644eb5a7887e8e7b68 /ld/testsuite/ld-mips-elf
parentdd933805d10b0035659dfec40630c30a0b33aa4c (diff)
downloadfsf-binutils-gdb-5b4293ba3c207ebdaea3631819b9459f0a10e761.zip
fsf-binutils-gdb-5b4293ba3c207ebdaea3631819b9459f0a10e761.tar.gz
fsf-binutils-gdb-5b4293ba3c207ebdaea3631819b9459f0a10e761.tar.bz2
PR26822, How to prevent a STT_FILE with absolute path in the linked image
bfd/ PR 26822 * elflink.c (elf_link_input_bfd): Use the file base name in linker generated STT_FILE symbols. ld/ PR 26822 * testsuite/ld-arm/non-contiguous-arm2.d: Adjust STT_FILE symbol match. * testsuite/ld-arm/non-contiguous-arm3.d: Likewise. * testsuite/ld-arm/non-contiguous-arm5.d: Likewise. * testsuite/ld-arm/non-contiguous-arm6.d: Likewise. * testsuite/ld-i386/tlsbin.rd: Likewise. * testsuite/ld-i386/tlsbin2.rd: Likewise. * testsuite/ld-i386/tlsbindesc.rd: Likewise. * testsuite/ld-i386/tlsdesc.rd: Likewise. * testsuite/ld-i386/tlsnopic.rd: Likewise. * testsuite/ld-i386/tlspic.rd: Likewise. * testsuite/ld-i386/tlspic2.rd: Likewise. * testsuite/ld-mips-elf/global-local-symtab-sort-n64.d: Likewise. * testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d: Likewise. * testsuite/ld-mips-elf/global-local-symtab-sort-o32.d: Likewise. * testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d: Likewise. * testsuite/ld-plugin/pr17973.d: Likewise. * testsuite/ld-tic6x/shlib-1.rd: Likewise. * testsuite/ld-tic6x/shlib-1b.rd: Likewise. * testsuite/ld-tic6x/shlib-1r.rd: Likewise. * testsuite/ld-tic6x/shlib-1rb.rd: Likewise. * testsuite/ld-tic6x/shlib-app-1.rd: Likewise. * testsuite/ld-tic6x/shlib-app-1b.rd: Likewise. * testsuite/ld-tic6x/shlib-app-1r.rd: Likewise. * testsuite/ld-tic6x/shlib-app-1rb.rd: Likewise. * testsuite/ld-tic6x/shlib-noindex.rd: Likewise. * testsuite/ld-tic6x/static-app-1.rd: Likewise. * testsuite/ld-tic6x/static-app-1b.rd: Likewise. * testsuite/ld-tic6x/static-app-1r.rd: Likewise. * testsuite/ld-tic6x/static-app-1rb.rd: Likewise. * testsuite/ld-x86-64/tlsbin.rd: Likewise. * testsuite/ld-x86-64/tlsbin2.rd: Likewise. * testsuite/ld-x86-64/tlsbindesc.rd: Likewise. * testsuite/ld-x86-64/tlsdesc.rd: Likewise. * testsuite/ld-x86-64/tlspic.rd: Likewise. * testsuite/ld-x86-64/tlspic2.rd: Likewise. * testsuite/ld-xtensa/tlsbin.rd: Likewise. * testsuite/ld-xtensa/tlspic.rd: Likewise.
Diffstat (limited to 'ld/testsuite/ld-mips-elf')
-rw-r--r--ld/testsuite/ld-mips-elf/global-local-symtab-sort-n64.d2
-rw-r--r--ld/testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d2
-rw-r--r--ld/testsuite/ld-mips-elf/global-local-symtab-sort-o32.d2
-rw-r--r--ld/testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d2
4 files changed, 4 insertions, 4 deletions
diff --git a/ld/testsuite/ld-mips-elf/global-local-symtab-sort-n64.d b/ld/testsuite/ld-mips-elf/global-local-symtab-sort-n64.d
index 6491bca..6abc540 100644
--- a/ld/testsuite/ld-mips-elf/global-local-symtab-sort-n64.d
+++ b/ld/testsuite/ld-mips-elf/global-local-symtab-sort-n64.d
@@ -8,6 +8,6 @@ Symbol table '\.symtab' contains 5 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
1: 0000000000000000 0 SECTION LOCAL DEFAULT 1 \.data
- 2: 0000000000000000 0 FILE LOCAL DEFAULT ABS tmpdir/global-local-symtab\.o
+ 2: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*global-local-symtab\.o
3: 0000000000000004 4 OBJECT LOCAL DEFAULT 1 bar
4: 0000000000000000 4 OBJECT GLOBAL DEFAULT 1 foo
diff --git a/ld/testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d b/ld/testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d
index 90d37ec2..911cc24 100644
--- a/ld/testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d
+++ b/ld/testsuite/ld-mips-elf/global-local-symtab-sort-n64t.d
@@ -8,6 +8,6 @@ Symbol table '\.symtab' contains 5 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 0000000000000000 0 NOTYPE LOCAL DEFAULT UND
1: 0000000000000000 0 SECTION LOCAL DEFAULT 1
- 2: 0000000000000000 0 FILE LOCAL DEFAULT ABS tmpdir/global-local-symtab\.o
+ 2: 0000000000000000 0 FILE LOCAL DEFAULT ABS .*global-local-symtab\.o
3: 0000000000000004 4 OBJECT LOCAL DEFAULT 1 bar
4: 0000000000000000 4 OBJECT GLOBAL DEFAULT 1 foo
diff --git a/ld/testsuite/ld-mips-elf/global-local-symtab-sort-o32.d b/ld/testsuite/ld-mips-elf/global-local-symtab-sort-o32.d
index 1e6ff20..7fec0a7 100644
--- a/ld/testsuite/ld-mips-elf/global-local-symtab-sort-o32.d
+++ b/ld/testsuite/ld-mips-elf/global-local-symtab-sort-o32.d
@@ -8,6 +8,6 @@ Symbol table '\.symtab' contains 5 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 00000000 0 NOTYPE LOCAL DEFAULT UND
1: 00000000 0 SECTION LOCAL DEFAULT 1 \.data
- 2: 00000000 0 FILE LOCAL DEFAULT ABS tmpdir/global-local-symtab\.o
+ 2: 00000000 0 FILE LOCAL DEFAULT ABS .*global-local-symtab\.o
3: 00000004 4 OBJECT LOCAL DEFAULT 1 bar
4: 00000000 4 OBJECT GLOBAL DEFAULT 1 foo
diff --git a/ld/testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d b/ld/testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d
index 9e7ceaa..047f290 100644
--- a/ld/testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d
+++ b/ld/testsuite/ld-mips-elf/global-local-symtab-sort-o32t.d
@@ -8,6 +8,6 @@ Symbol table '\.symtab' contains 5 entries:
Num: Value Size Type Bind Vis Ndx Name
0: 00000000 0 NOTYPE LOCAL DEFAULT UND
1: 00000000 0 SECTION LOCAL DEFAULT 1
- 2: 00000000 0 FILE LOCAL DEFAULT ABS tmpdir/global-local-symtab\.o
+ 2: 00000000 0 FILE LOCAL DEFAULT ABS .*global-local-symtab\.o
3: 00000004 4 OBJECT LOCAL DEFAULT 1 bar
4: 00000000 4 OBJECT GLOBAL DEFAULT 1 foo