public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* PR26822, How to prevent a STT_FILE with absolute path in the linked image
@ 2021-01-04 10:26 Alan Modra
  0 siblings, 0 replies; only message in thread
From: Alan Modra @ 2021-01-04 10:26 UTC (permalink / raw)
  To: binutils

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.

diff --git a/bfd/elflink.c b/bfd/elflink.c
index 1dfed2fdd1..448989a282 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -10952,16 +10952,18 @@ elf_link_input_bfd (struct elf_final_link_info *flinfo, bfd *input_bfd)
 	     files lack such, so that their symbols won't be
 	     associated with a previous input file.  It's not the
 	     source file, but the best we can do.  */
+	  const char *filename;
 	  have_file_sym = TRUE;
 	  flinfo->filesym_count += 1;
 	  memset (&osym, 0, sizeof (osym));
 	  osym.st_info = ELF_ST_INFO (STB_LOCAL, STT_FILE);
 	  osym.st_shndx = SHN_ABS;
-	  if (!elf_link_output_symstrtab (flinfo,
-					  (input_bfd->lto_output ? NULL
-					   : bfd_get_filename (input_bfd)),
-					  &osym, bfd_abs_section_ptr,
-					  NULL))
+	  if (input_bfd->lto_output)
+	    filename = NULL;
+	  else
+	    filename = lbasename (bfd_get_filename (input_bfd));
+	  if (!elf_link_output_symstrtab (flinfo, filename, &osym,
+					  bfd_abs_section_ptr, NULL))
 	    return FALSE;
 	}
 
diff --git a/ld/testsuite/ld-arm/non-contiguous-arm2.d b/ld/testsuite/ld-arm/non-contiguous-arm2.d
index af40e840e0..14aca4c7b2 100644
--- a/ld/testsuite/ld-arm/non-contiguous-arm2.d
+++ b/ld/testsuite/ld-arm/non-contiguous-arm2.d
@@ -21,7 +21,7 @@ SYMBOL TABLE:
 20000000 l    d  .ramu	00000000 .ramu
 20040000 l    d  .ramz	00000000 .ramz
 00000000 l    d  .ARM.attributes	00000000 .ARM.attributes
-00000000 l    df \*ABS\*	00000000 .*/non-contiguous-arm.o
+00000000 l    df \*ABS\*	00000000 .*non-contiguous-arm.o
 1fff0018 g       .raml	00000000 _raml_end
 20000000 g       .ramu	00000000 _ramu_start
 1fff000c g     F .raml	00000000 code2
diff --git a/ld/testsuite/ld-arm/non-contiguous-arm3.d b/ld/testsuite/ld-arm/non-contiguous-arm3.d
index 6373922ea1..c500a29e46 100644
--- a/ld/testsuite/ld-arm/non-contiguous-arm3.d
+++ b/ld/testsuite/ld-arm/non-contiguous-arm3.d
@@ -22,7 +22,7 @@ SYMBOL TABLE:
 20000000 l    d  .ramu	00000000 .ramu
 30040000 l    d  .ramz	00000000 .ramz
 00000000 l    d  .ARM.attributes	00000000 .ARM.attributes
-00000000 l    df \*ABS\*	00000000 .*/non-contiguous-arm.o
+00000000 l    df \*ABS\*	00000000 .*non-contiguous-arm.o
 20000008 l     F .ramu	00000008 __code4_veneer
 1fff0018 g       .raml	00000000 _raml_end
 20000000 g       .ramu	00000000 _ramu_start
diff --git a/ld/testsuite/ld-arm/non-contiguous-arm5.d b/ld/testsuite/ld-arm/non-contiguous-arm5.d
index dc85d1eaba..60b6f56157 100644
--- a/ld/testsuite/ld-arm/non-contiguous-arm5.d
+++ b/ld/testsuite/ld-arm/non-contiguous-arm5.d
@@ -21,7 +21,7 @@ SYMBOL TABLE:
 20000000 l    d  .ramu	00000000 .ramu
 20040000 l    d  .ramz	00000000 .ramz
 00000000 l    d  .ARM.attributes	00000000 .ARM.attributes
-00000000 l    df \*ABS\*	00000000 .*/non-contiguous-arm.o
+00000000 l    df \*ABS\*	00000000 .*non-contiguous-arm.o
 1fff000c g       .raml	00000000 _raml_end
 20000000 g       .ramu	00000000 _ramu_start
 20000000 g     F .ramu	00000000 code2
diff --git a/ld/testsuite/ld-arm/non-contiguous-arm6.d b/ld/testsuite/ld-arm/non-contiguous-arm6.d
index 605d846cfa..da69f6b7c1 100644
--- a/ld/testsuite/ld-arm/non-contiguous-arm6.d
+++ b/ld/testsuite/ld-arm/non-contiguous-arm6.d
@@ -19,7 +19,7 @@ SYMBOL TABLE:
 1fff0000 l    d  .raml	00000000 .raml
 40040000 l    d  .ramz	00000000 .ramz
 00000000 l    d  .ARM.attributes	00000000 .ARM.attributes
-00000000 l    df \*ABS\*	00000000 .*/non-contiguous-arm.o
+00000000 l    df \*ABS\*	00000000 .*non-contiguous-arm.o
 1fff0020 l     F .raml	00000008 __code4_veneer
 1fff0028 g       .raml	00000000 _raml_end
 30000000 g       .raml	00000000 _ramu_start
diff --git a/ld/testsuite/ld-i386/tlsbin.rd b/ld/testsuite/ld-i386/tlsbin.rd
index ee272f631e..20e4c5ed36 100644
--- a/ld/testsuite/ld-i386/tlsbin.rd
+++ b/ld/testsuite/ld-i386/tlsbin.rd
@@ -97,7 +97,7 @@ Symbol table '\.symtab' contains [0-9]+ entries:
  +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +11 *
  +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +12 *
  +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +13 *
-.* FILE +LOCAL +DEFAULT +ABS tmpdir/tlsbinpic.o
+.* FILE +LOCAL +DEFAULT +ABS .*tlsbinpic.o
  +[0-9]+: 00000020 +0 +TLS +LOCAL +DEFAULT +9 sl1
  +[0-9]+: 00000024 +0 +TLS +LOCAL +DEFAULT +9 sl2
  +[0-9]+: 00000028 +0 +TLS +LOCAL +DEFAULT +9 sl3
@@ -106,7 +106,7 @@ Symbol table '\.symtab' contains [0-9]+ entries:
  +[0-9]+: 00000034 +0 +TLS +LOCAL +DEFAULT +9 sl6
  +[0-9]+: 00000038 +0 +TLS +LOCAL +DEFAULT +9 sl7
  +[0-9]+: 0000003c +0 +TLS +LOCAL +DEFAULT +9 sl8
-.* FILE +LOCAL +DEFAULT +ABS tmpdir/tlsbin.o
+.* FILE +LOCAL +DEFAULT +ABS .*tlsbin.o
  +[0-9]+: 00000080 +0 +TLS +LOCAL +DEFAULT +10 bl1
  +[0-9]+: 00000084 +0 +TLS +LOCAL +DEFAULT +10 bl2
  +[0-9]+: 00000088 +0 +TLS +LOCAL +DEFAULT +10 bl3
diff --git a/ld/testsuite/ld-i386/tlsbin2.rd b/ld/testsuite/ld-i386/tlsbin2.rd
index 5abf9ea665..5177f4d30d 100644
--- a/ld/testsuite/ld-i386/tlsbin2.rd
+++ b/ld/testsuite/ld-i386/tlsbin2.rd
@@ -90,7 +90,7 @@ Symbol table '\.symtab' contains [0-9]+ entries:
  +[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/tlsbinpic2.o
+.* FILE +LOCAL +DEFAULT +ABS .*tlsbinpic2.o
  +[0-9]+: 00000020 +0 +TLS +LOCAL +DEFAULT +7 sl1
  +[0-9]+: 00000024 +0 +TLS +LOCAL +DEFAULT +7 sl2
  +[0-9]+: 00000028 +0 +TLS +LOCAL +DEFAULT +7 sl3
@@ -99,7 +99,7 @@ Symbol table '\.symtab' contains [0-9]+ entries:
  +[0-9]+: 00000034 +0 +TLS +LOCAL +DEFAULT +7 sl6
  +[0-9]+: 00000038 +0 +TLS +LOCAL +DEFAULT +7 sl7
  +[0-9]+: 0000003c +0 +TLS +LOCAL +DEFAULT +7 sl8
-.* FILE +LOCAL +DEFAULT +ABS tmpdir/tlsbin.o
+.* FILE +LOCAL +DEFAULT +ABS .*tlsbin.o
  +[0-9]+: 00000080 +0 +TLS +LOCAL +DEFAULT +8 bl1
  +[0-9]+: 00000084 +0 +TLS +LOCAL +DEFAULT +8 bl2
  +[0-9]+: 00000088 +0 +TLS +LOCAL +DEFAULT +8 bl3
diff --git a/ld/testsuite/ld-i386/tlsbindesc.rd b/ld/testsuite/ld-i386/tlsbindesc.rd
index cd3c06e202..1c9c4f2cb2 100644
--- a/ld/testsuite/ld-i386/tlsbindesc.rd
+++ b/ld/testsuite/ld-i386/tlsbindesc.rd
@@ -88,7 +88,7 @@ Symbol table '\.symtab' contains [0-9]+ entries:
  +[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
+.* FILE +LOCAL +DEFAULT +ABS .*tlsbindesc.o
  +[0-9]+: 00000020 +0 +TLS +LOCAL +DEFAULT +7 sl1
  +[0-9]+: 00000024 +0 +TLS +LOCAL +DEFAULT +7 sl2
  +[0-9]+: 00000028 +0 +TLS +LOCAL +DEFAULT +7 sl3
@@ -97,7 +97,7 @@ Symbol table '\.symtab' contains [0-9]+ entries:
  +[0-9]+: 00000034 +0 +TLS +LOCAL +DEFAULT +7 sl6
  +[0-9]+: 00000038 +0 +TLS +LOCAL +DEFAULT +7 sl7
  +[0-9]+: 0000003c +0 +TLS +LOCAL +DEFAULT +7 sl8
-.* FILE +LOCAL +DEFAULT +ABS tmpdir/tlsbin.o
+.* FILE +LOCAL +DEFAULT +ABS .*tlsbin.o
  +[0-9]+: 00000080 +0 +TLS +LOCAL +DEFAULT +8 bl1
  +[0-9]+: 00000084 +0 +TLS +LOCAL +DEFAULT +8 bl2
  +[0-9]+: 00000088 +0 +TLS +LOCAL +DEFAULT +8 bl3
diff --git a/ld/testsuite/ld-i386/tlsdesc.rd b/ld/testsuite/ld-i386/tlsdesc.rd
index d47d2e94f2..a5b4fb83c0 100644
--- a/ld/testsuite/ld-i386/tlsdesc.rd
+++ b/ld/testsuite/ld-i386/tlsdesc.rd
@@ -103,7 +103,7 @@ Symbol table '\.symtab' contains [0-9]+ entries:
  +[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/tlsdesc.o
+.* FILE +LOCAL +DEFAULT +ABS .*tlsdesc.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
diff --git a/ld/testsuite/ld-i386/tlsnopic.rd b/ld/testsuite/ld-i386/tlsnopic.rd
index 4856c64f70..661f1c46c6 100644
--- a/ld/testsuite/ld-i386/tlsnopic.rd
+++ b/ld/testsuite/ld-i386/tlsnopic.rd
@@ -89,7 +89,7 @@ Symbol table '\.symtab' contains [0-9]+ entries:
  +[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 *
-.* FILE +LOCAL +DEFAULT +ABS tmpdir/tlsnopic1.o
+.* FILE +LOCAL +DEFAULT +ABS .*tlsnopic1.o
  +[0-9]+: 0+00 +0 +TLS +LOCAL +DEFAULT +6 bl1
  +[0-9]+: 0+04 +0 +TLS +LOCAL +DEFAULT +6 bl2
  +[0-9]+: 0+08 +0 +TLS +LOCAL +DEFAULT +6 bl3
diff --git a/ld/testsuite/ld-i386/tlspic.rd b/ld/testsuite/ld-i386/tlspic.rd
index ae920583a4..3425c951bd 100644
--- a/ld/testsuite/ld-i386/tlspic.rd
+++ b/ld/testsuite/ld-i386/tlspic.rd
@@ -108,7 +108,7 @@ Symbol table '\.symtab' contains [0-9]+ entries:
  +[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/tlspic1.o
+.* FILE +LOCAL +DEFAULT +ABS .*tlspic1.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
diff --git a/ld/testsuite/ld-i386/tlspic2.rd b/ld/testsuite/ld-i386/tlspic2.rd
index 59f1cdd187..274445db84 100644
--- a/ld/testsuite/ld-i386/tlspic2.rd
+++ b/ld/testsuite/ld-i386/tlspic2.rd
@@ -101,7 +101,7 @@ Symbol table '\.symtab' contains [0-9]+ entries:
  +[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 *
-.* FILE +LOCAL +DEFAULT +ABS tmpdir/tlspic3.o
+.* FILE +LOCAL +DEFAULT +ABS .*tlspic3.o
  +[0-9]+: 0+20 +0 +TLS +LOCAL +DEFAULT +6 sl1
  +[0-9]+: 0+24 +0 +TLS +LOCAL +DEFAULT +6 sl2
  +[0-9]+: 0+28 +0 +TLS +LOCAL +DEFAULT +6 sl3
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 6491bca3b4..6abc5402ce 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 90d37ec2c6..911cc24252 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 1e6ff20c03..7fec0a7c67 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 9e7ceaa76e..047f290a27 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
diff --git a/ld/testsuite/ld-plugin/pr17973.d b/ld/testsuite/ld-plugin/pr17973.d
index 85c849a595..2bc0ac1b1a 100644
--- a/ld/testsuite/ld-plugin/pr17973.d
+++ b/ld/testsuite/ld-plugin/pr17973.d
@@ -1,4 +1,4 @@
 #failif
 #...
-.*0+ +FILE +LOCAL +DEFAULT +ABS tmpdir/pr17973.o
+.*0+ +FILE +LOCAL +DEFAULT +ABS .*pr17973.o
 #...
diff --git a/ld/testsuite/ld-tic6x/shlib-1.rd b/ld/testsuite/ld-tic6x/shlib-1.rd
index af3815c16c..a038baf622 100644
--- a/ld/testsuite/ld-tic6x/shlib-1.rd
+++ b/ld/testsuite/ld-tic6x/shlib-1.rd
@@ -17,8 +17,8 @@ Section Headers:
   \[12\] \.bss              NOBITS          10000130 002130 000004 00  WA  0   0  4
   \[13\] \.c6xabi\.attributes C6000_ATTRIBUTES 00000000 002130 000019 00      0   0  1
   \[14\] \.symtab           SYMTAB          00000000 00214c 0001b0 10     15  21  4
-  \[15\] \.strtab           STRTAB          00000000 0022fc 00005c 00      0   0  1
-  \[16\] \.shstrtab         STRTAB          00000000 002358 00007b 00      0   0  1
+  \[15\] \.strtab           STRTAB .*
+  \[16\] \.shstrtab         STRTAB .*
 Key to Flags:
 #...
 
@@ -106,7 +106,7 @@ Symbol table '\.symtab' contains 27 entries:
     11: 10000128     0 SECTION LOCAL  DEFAULT   11 
     12: 10000130     0 SECTION LOCAL  DEFAULT   12 
     13: 00000000     0 SECTION LOCAL  DEFAULT   13 
-    14: 00000000     0 FILE    LOCAL  DEFAULT  ABS tmpdir/shlib-1\.o
+    14: 00000000     0 FILE    LOCAL  DEFAULT  ABS .*shlib-1\.o
     15: 10000080     0 FUNC    LOCAL  HIDDEN     9 sub1
     16: 00000000     0 FILE    LOCAL  DEFAULT  ABS 
     17: 00008154     0 OBJECT  LOCAL  DEFAULT  ABS _DYNAMIC
diff --git a/ld/testsuite/ld-tic6x/shlib-1b.rd b/ld/testsuite/ld-tic6x/shlib-1b.rd
index af3815c16c..a038baf622 100644
--- a/ld/testsuite/ld-tic6x/shlib-1b.rd
+++ b/ld/testsuite/ld-tic6x/shlib-1b.rd
@@ -17,8 +17,8 @@ Section Headers:
   \[12\] \.bss              NOBITS          10000130 002130 000004 00  WA  0   0  4
   \[13\] \.c6xabi\.attributes C6000_ATTRIBUTES 00000000 002130 000019 00      0   0  1
   \[14\] \.symtab           SYMTAB          00000000 00214c 0001b0 10     15  21  4
-  \[15\] \.strtab           STRTAB          00000000 0022fc 00005c 00      0   0  1
-  \[16\] \.shstrtab         STRTAB          00000000 002358 00007b 00      0   0  1
+  \[15\] \.strtab           STRTAB .*
+  \[16\] \.shstrtab         STRTAB .*
 Key to Flags:
 #...
 
@@ -106,7 +106,7 @@ Symbol table '\.symtab' contains 27 entries:
     11: 10000128     0 SECTION LOCAL  DEFAULT   11 
     12: 10000130     0 SECTION LOCAL  DEFAULT   12 
     13: 00000000     0 SECTION LOCAL  DEFAULT   13 
-    14: 00000000     0 FILE    LOCAL  DEFAULT  ABS tmpdir/shlib-1\.o
+    14: 00000000     0 FILE    LOCAL  DEFAULT  ABS .*shlib-1\.o
     15: 10000080     0 FUNC    LOCAL  HIDDEN     9 sub1
     16: 00000000     0 FILE    LOCAL  DEFAULT  ABS 
     17: 00008154     0 OBJECT  LOCAL  DEFAULT  ABS _DYNAMIC
diff --git a/ld/testsuite/ld-tic6x/shlib-1r.rd b/ld/testsuite/ld-tic6x/shlib-1r.rd
index af3815c16c..a038baf622 100644
--- a/ld/testsuite/ld-tic6x/shlib-1r.rd
+++ b/ld/testsuite/ld-tic6x/shlib-1r.rd
@@ -17,8 +17,8 @@ Section Headers:
   \[12\] \.bss              NOBITS          10000130 002130 000004 00  WA  0   0  4
   \[13\] \.c6xabi\.attributes C6000_ATTRIBUTES 00000000 002130 000019 00      0   0  1
   \[14\] \.symtab           SYMTAB          00000000 00214c 0001b0 10     15  21  4
-  \[15\] \.strtab           STRTAB          00000000 0022fc 00005c 00      0   0  1
-  \[16\] \.shstrtab         STRTAB          00000000 002358 00007b 00      0   0  1
+  \[15\] \.strtab           STRTAB .*
+  \[16\] \.shstrtab         STRTAB .*
 Key to Flags:
 #...
 
@@ -106,7 +106,7 @@ Symbol table '\.symtab' contains 27 entries:
     11: 10000128     0 SECTION LOCAL  DEFAULT   11 
     12: 10000130     0 SECTION LOCAL  DEFAULT   12 
     13: 00000000     0 SECTION LOCAL  DEFAULT   13 
-    14: 00000000     0 FILE    LOCAL  DEFAULT  ABS tmpdir/shlib-1\.o
+    14: 00000000     0 FILE    LOCAL  DEFAULT  ABS .*shlib-1\.o
     15: 10000080     0 FUNC    LOCAL  HIDDEN     9 sub1
     16: 00000000     0 FILE    LOCAL  DEFAULT  ABS 
     17: 00008154     0 OBJECT  LOCAL  DEFAULT  ABS _DYNAMIC
diff --git a/ld/testsuite/ld-tic6x/shlib-1rb.rd b/ld/testsuite/ld-tic6x/shlib-1rb.rd
index af3815c16c..a038baf622 100644
--- a/ld/testsuite/ld-tic6x/shlib-1rb.rd
+++ b/ld/testsuite/ld-tic6x/shlib-1rb.rd
@@ -17,8 +17,8 @@ Section Headers:
   \[12\] \.bss              NOBITS          10000130 002130 000004 00  WA  0   0  4
   \[13\] \.c6xabi\.attributes C6000_ATTRIBUTES 00000000 002130 000019 00      0   0  1
   \[14\] \.symtab           SYMTAB          00000000 00214c 0001b0 10     15  21  4
-  \[15\] \.strtab           STRTAB          00000000 0022fc 00005c 00      0   0  1
-  \[16\] \.shstrtab         STRTAB          00000000 002358 00007b 00      0   0  1
+  \[15\] \.strtab           STRTAB .*
+  \[16\] \.shstrtab         STRTAB .*
 Key to Flags:
 #...
 
@@ -106,7 +106,7 @@ Symbol table '\.symtab' contains 27 entries:
     11: 10000128     0 SECTION LOCAL  DEFAULT   11 
     12: 10000130     0 SECTION LOCAL  DEFAULT   12 
     13: 00000000     0 SECTION LOCAL  DEFAULT   13 
-    14: 00000000     0 FILE    LOCAL  DEFAULT  ABS tmpdir/shlib-1\.o
+    14: 00000000     0 FILE    LOCAL  DEFAULT  ABS .*shlib-1\.o
     15: 10000080     0 FUNC    LOCAL  HIDDEN     9 sub1
     16: 00000000     0 FILE    LOCAL  DEFAULT  ABS 
     17: 00008154     0 OBJECT  LOCAL  DEFAULT  ABS _DYNAMIC
diff --git a/ld/testsuite/ld-tic6x/shlib-app-1.rd b/ld/testsuite/ld-tic6x/shlib-app-1.rd
index 4725356d09..bf783a975c 100644
--- a/ld/testsuite/ld-tic6x/shlib-app-1.rd
+++ b/ld/testsuite/ld-tic6x/shlib-app-1.rd
@@ -18,8 +18,8 @@ Section Headers:
   \[13\] \.bss              NOBITS          100000cc 0020cc 000004 00  WA  0   0  4
   \[14\] \.c6xabi\.attributes C6000_ATTRIBUTES 00000000 0020cc 000019 00      0   0  1
   \[15\] \.symtab           SYMTAB          00000000 0020e8 0001b0 10     16  22  4
-  \[16\] \.strtab           STRTAB          00000000 002298 00005e 00      0   0  1
-  \[17\] \.shstrtab         STRTAB          00000000 0022f6 000080 00      0   0  1
+  \[16\] \.strtab           STRTAB .*
+  \[17\] \.shstrtab         STRTAB .*
 Key to Flags:
 #...
 
@@ -111,7 +111,7 @@ Symbol table '\.symtab' contains 27 entries:
     12: 100000c0     0 SECTION LOCAL  DEFAULT   12 
     13: 100000cc     0 SECTION LOCAL  DEFAULT   13 
     14: 00000000     0 SECTION LOCAL  DEFAULT   14 
-    15: 00000000     0 FILE    LOCAL  DEFAULT  ABS tmpdir/shlib-app-1\.o
+    15: 00000000     0 FILE    LOCAL  DEFAULT  ABS .*shlib-app-1\.o
     16: 10000060     0 NOTYPE  LOCAL  DEFAULT   10 fish
     17: 100000c4     8 OBJECT  LOCAL  DEFAULT   12 w
     18: 00000000     0 FILE    LOCAL  DEFAULT  ABS 
diff --git a/ld/testsuite/ld-tic6x/shlib-app-1b.rd b/ld/testsuite/ld-tic6x/shlib-app-1b.rd
index 4564ffeecb..771ad21805 100644
--- a/ld/testsuite/ld-tic6x/shlib-app-1b.rd
+++ b/ld/testsuite/ld-tic6x/shlib-app-1b.rd
@@ -18,8 +18,8 @@ Section Headers:
   \[13\] \.bss              NOBITS          100000cc 0020cc 000004 00  WA  0   0  4
   \[14\] \.c6xabi\.attributes C6000_ATTRIBUTES 00000000 0020cc 000019 00      0   0  1
   \[15\] \.symtab           SYMTAB          00000000 0020e8 0001b0 10     16  22  4
-  \[16\] \.strtab           STRTAB          00000000 002298 00005e 00      0   0  1
-  \[17\] \.shstrtab         STRTAB          00000000 0022f6 000080 00      0   0  1
+  \[16\] \.strtab           STRTAB .*
+  \[17\] \.shstrtab         STRTAB .*
 Key to Flags:
 #...
 
@@ -111,7 +111,7 @@ Symbol table '\.symtab' contains 27 entries:
     12: 100000c0     0 SECTION LOCAL  DEFAULT   12 
     13: 100000cc     0 SECTION LOCAL  DEFAULT   13 
     14: 00000000     0 SECTION LOCAL  DEFAULT   14 
-    15: 00000000     0 FILE    LOCAL  DEFAULT  ABS tmpdir/shlib-app-1\.o
+    15: 00000000     0 FILE    LOCAL  DEFAULT  ABS .*shlib-app-1\.o
     16: 10000060     0 NOTYPE  LOCAL  DEFAULT   10 fish
     17: 100000c4     8 OBJECT  LOCAL  DEFAULT   12 w
     18: 00000000     0 FILE    LOCAL  DEFAULT  ABS 
diff --git a/ld/testsuite/ld-tic6x/shlib-app-1r.rd b/ld/testsuite/ld-tic6x/shlib-app-1r.rd
index 797b8aad1c..a98c752a0d 100644
--- a/ld/testsuite/ld-tic6x/shlib-app-1r.rd
+++ b/ld/testsuite/ld-tic6x/shlib-app-1r.rd
@@ -17,8 +17,8 @@ Section Headers:
   \[12\] \.bss              NOBITS          100000c4 0020c4 000004 00  WA  0   0  4
   \[13\] \.c6xabi\.attributes C6000_ATTRIBUTES 00000000 0020c4 000019 00      0   0  1
   \[14\] \.symtab           SYMTAB          00000000 0020e0 000170 10     15  20  4
-  \[15\] \.strtab           STRTAB          00000000 002250 000057 00      0   0  1
-  \[16\] \.shstrtab         STRTAB          00000000 0022a7 00007b 00      0   0  1
+  \[15\] \.strtab           STRTAB .*
+  \[16\] \.shstrtab         STRTAB .*
 Key to Flags:
 #...
 
@@ -102,7 +102,7 @@ Symbol table '\.symtab' contains 23 entries:
     11: 100000c0     0 SECTION LOCAL  DEFAULT   11 
     12: 100000c4     0 SECTION LOCAL  DEFAULT   12 
     13: 00000000     0 SECTION LOCAL  DEFAULT   13 
-    14: 00000000     0 FILE    LOCAL  DEFAULT  ABS tmpdir/shlib-app-1r\.o
+    14: 00000000     0 FILE    LOCAL  DEFAULT  ABS .*shlib-app-1r\.o
     15: 10000060     0 NOTYPE  LOCAL  DEFAULT    9 fish
     16: 00000000     0 FILE    LOCAL  DEFAULT  ABS 
     17: 0000810c     0 OBJECT  LOCAL  DEFAULT    6 _DYNAMIC
diff --git a/ld/testsuite/ld-tic6x/shlib-app-1rb.rd b/ld/testsuite/ld-tic6x/shlib-app-1rb.rd
index d23eb2aa28..6e795ffe64 100644
--- a/ld/testsuite/ld-tic6x/shlib-app-1rb.rd
+++ b/ld/testsuite/ld-tic6x/shlib-app-1rb.rd
@@ -17,8 +17,8 @@ Section Headers:
   \[12\] \.bss              NOBITS          100000c4 0020c4 000004 00  WA  0   0  4
   \[13\] \.c6xabi\.attributes C6000_ATTRIBUTES 00000000 0020c4 000019 00      0   0  1
   \[14\] \.symtab           SYMTAB          00000000 0020e0 000170 10     15  20  4
-  \[15\] \.strtab           STRTAB          00000000 002250 000057 00      0   0  1
-  \[16\] \.shstrtab         STRTAB          00000000 0022a7 00007b 00      0   0  1
+  \[15\] \.strtab           STRTAB .*
+  \[16\] \.shstrtab         STRTAB .*
 Key to Flags:
 #...
 
@@ -102,7 +102,7 @@ Symbol table '\.symtab' contains 23 entries:
     11: 100000c0     0 SECTION LOCAL  DEFAULT   11 
     12: 100000c4     0 SECTION LOCAL  DEFAULT   12 
     13: 00000000     0 SECTION LOCAL  DEFAULT   13 
-    14: 00000000     0 FILE    LOCAL  DEFAULT  ABS tmpdir/shlib-app-1r\.o
+    14: 00000000     0 FILE    LOCAL  DEFAULT  ABS .*shlib-app-1r\.o
     15: 10000060     0 NOTYPE  LOCAL  DEFAULT    9 fish
     16: 00000000     0 FILE    LOCAL  DEFAULT  ABS 
     17: 0000810c     0 OBJECT  LOCAL  DEFAULT    6 _DYNAMIC
diff --git a/ld/testsuite/ld-tic6x/shlib-noindex.rd b/ld/testsuite/ld-tic6x/shlib-noindex.rd
index bca8810fa5..c9e60040c9 100644
--- a/ld/testsuite/ld-tic6x/shlib-noindex.rd
+++ b/ld/testsuite/ld-tic6x/shlib-noindex.rd
@@ -18,8 +18,8 @@ Section Headers:
   \[13\] \.bss              NOBITS          10000130 002130 000004 00  WA  0   0  4
   \[14\] \.c6xabi\.attributes C6000_ATTRIBUTES 00000000 002130 000019 00      0   0  1
   \[15\] \.symtab           SYMTAB          00000000 00214c 0001c0 10     16  22  4
-  \[16\] \.strtab           STRTAB          00000000 00230c 00005c 00      0   0  1
-  \[17\] \.shstrtab         STRTAB          00000000 002368 000080 00      0   0  1
+  \[16\] \.strtab           STRTAB .*
+  \[17\] \.shstrtab         STRTAB .*
 Key to Flags:
 #...
 
@@ -113,7 +113,7 @@ Symbol table '\.symtab' contains 28 entries:
     12: 10000128     0 SECTION LOCAL  DEFAULT   12 
     13: 10000130     0 SECTION LOCAL  DEFAULT   13 
     14: 00000000     0 SECTION LOCAL  DEFAULT   14 
-    15: 00000000     0 FILE    LOCAL  DEFAULT  ABS tmpdir/shlib-1\.o
+    15: 00000000     0 FILE    LOCAL  DEFAULT  ABS .*shlib-1\.o
     16: 10000080     0 FUNC    LOCAL  HIDDEN    10 sub1
     17: 00000000     0 FILE    LOCAL  DEFAULT  ABS 
     18: 00008160     0 OBJECT  LOCAL  DEFAULT  ABS _DYNAMIC
diff --git a/ld/testsuite/ld-tic6x/static-app-1.rd b/ld/testsuite/ld-tic6x/static-app-1.rd
index ba0006512e..82e65b9497 100644
--- a/ld/testsuite/ld-tic6x/static-app-1.rd
+++ b/ld/testsuite/ld-tic6x/static-app-1.rd
@@ -15,8 +15,8 @@ Section Headers:
   \[10\] \.bss              NOBITS          100000f4 0020f4 000004 00  WA  0   0  4
   \[11\] \.c6xabi\.attributes C6000_ATTRIBUTES 00000000 0020f4 000019 00      0   0  1
   \[12\] \.symtab           SYMTAB          00000000 002110 0001c0 10     13  22  4
-  \[13\] \.strtab           STRTAB          00000000 0022d0 000078 00      0   0  1
-  \[14\] \.shstrtab         STRTAB          00000000 002348 000071 00      0   0  1
+  \[13\] \.strtab           STRTAB .*
+  \[14\] \.shstrtab         STRTAB .*
 Key to Flags:
 #...
 
@@ -93,9 +93,9 @@ Symbol table '\.symtab' contains 28 entries:
      9: 100000e0     0 SECTION LOCAL  DEFAULT    9 
     10: 100000f4     0 SECTION LOCAL  DEFAULT   10 
     11: 00000000     0 SECTION LOCAL  DEFAULT   11 
-    12: 00000000     0 FILE    LOCAL  DEFAULT  ABS tmpdir/shlib-1\.o
+    12: 00000000     0 FILE    LOCAL  DEFAULT  ABS .*shlib-1\.o
     13: 10000000     0 FUNC    LOCAL  HIDDEN     7 sub1
-    14: 00000000     0 FILE    LOCAL  DEFAULT  ABS tmpdir/shlib-app-1\.o
+    14: 00000000     0 FILE    LOCAL  DEFAULT  ABS .*shlib-app-1\.o
     15: 10000080     0 NOTYPE  LOCAL  DEFAULT    7 fish
     16: 100000ec     8 OBJECT  LOCAL  DEFAULT    9 w
     17: 00000000     0 FILE    LOCAL  DEFAULT  ABS 
diff --git a/ld/testsuite/ld-tic6x/static-app-1b.rd b/ld/testsuite/ld-tic6x/static-app-1b.rd
index ba0006512e..82e65b9497 100644
--- a/ld/testsuite/ld-tic6x/static-app-1b.rd
+++ b/ld/testsuite/ld-tic6x/static-app-1b.rd
@@ -15,8 +15,8 @@ Section Headers:
   \[10\] \.bss              NOBITS          100000f4 0020f4 000004 00  WA  0   0  4
   \[11\] \.c6xabi\.attributes C6000_ATTRIBUTES 00000000 0020f4 000019 00      0   0  1
   \[12\] \.symtab           SYMTAB          00000000 002110 0001c0 10     13  22  4
-  \[13\] \.strtab           STRTAB          00000000 0022d0 000078 00      0   0  1
-  \[14\] \.shstrtab         STRTAB          00000000 002348 000071 00      0   0  1
+  \[13\] \.strtab           STRTAB .*
+  \[14\] \.shstrtab         STRTAB .*
 Key to Flags:
 #...
 
@@ -93,9 +93,9 @@ Symbol table '\.symtab' contains 28 entries:
      9: 100000e0     0 SECTION LOCAL  DEFAULT    9 
     10: 100000f4     0 SECTION LOCAL  DEFAULT   10 
     11: 00000000     0 SECTION LOCAL  DEFAULT   11 
-    12: 00000000     0 FILE    LOCAL  DEFAULT  ABS tmpdir/shlib-1\.o
+    12: 00000000     0 FILE    LOCAL  DEFAULT  ABS .*shlib-1\.o
     13: 10000000     0 FUNC    LOCAL  HIDDEN     7 sub1
-    14: 00000000     0 FILE    LOCAL  DEFAULT  ABS tmpdir/shlib-app-1\.o
+    14: 00000000     0 FILE    LOCAL  DEFAULT  ABS .*shlib-app-1\.o
     15: 10000080     0 NOTYPE  LOCAL  DEFAULT    7 fish
     16: 100000ec     8 OBJECT  LOCAL  DEFAULT    9 w
     17: 00000000     0 FILE    LOCAL  DEFAULT  ABS 
diff --git a/ld/testsuite/ld-tic6x/static-app-1r.rd b/ld/testsuite/ld-tic6x/static-app-1r.rd
index c0f934b987..0d2fde8742 100644
--- a/ld/testsuite/ld-tic6x/static-app-1r.rd
+++ b/ld/testsuite/ld-tic6x/static-app-1r.rd
@@ -15,8 +15,8 @@ Section Headers:
   \[10\] \.bss              NOBITS          100000ec 0020ec 000004 00  WA  0   0  4
   \[11\] \.c6xabi\.attributes C6000_ATTRIBUTES 00000000 0020ec 000019 00      0   0  1
   \[12\] \.symtab           SYMTAB          00000000 002108 0001b0 10     13  21  4
-  \[13\] \.strtab           STRTAB          00000000 0022b8 000077 00      0   0  1
-  \[14\] \.shstrtab         STRTAB          00000000 00232f 000071 00      0   0  1
+  \[13\] \.strtab           STRTAB .*
+  \[14\] \.shstrtab         STRTAB .*
 Key to Flags:
 #...
 
@@ -91,9 +91,9 @@ Symbol table '\.symtab' contains 27 entries:
      9: 100000e0     0 SECTION LOCAL  DEFAULT    9 
     10: 100000ec     0 SECTION LOCAL  DEFAULT   10 
     11: 00000000     0 SECTION LOCAL  DEFAULT   11 
-    12: 00000000     0 FILE    LOCAL  DEFAULT  ABS tmpdir/shlib-1\.o
+    12: 00000000     0 FILE    LOCAL  DEFAULT  ABS .*shlib-1\.o
     13: 10000000     0 FUNC    LOCAL  HIDDEN     7 sub1
-    14: 00000000     0 FILE    LOCAL  DEFAULT  ABS tmpdir/shlib-app-1r\.o
+    14: 00000000     0 FILE    LOCAL  DEFAULT  ABS .*shlib-app-1r\.o
     15: 10000080     0 NOTYPE  LOCAL  DEFAULT    7 fish
     16: 00000000     0 FILE    LOCAL  DEFAULT  ABS 
     17: 00008110     0 OBJECT  LOCAL  DEFAULT    6 _DYNAMIC
diff --git a/ld/testsuite/ld-tic6x/static-app-1rb.rd b/ld/testsuite/ld-tic6x/static-app-1rb.rd
index c0f934b987..0d2fde8742 100644
--- a/ld/testsuite/ld-tic6x/static-app-1rb.rd
+++ b/ld/testsuite/ld-tic6x/static-app-1rb.rd
@@ -15,8 +15,8 @@ Section Headers:
   \[10\] \.bss              NOBITS          100000ec 0020ec 000004 00  WA  0   0  4
   \[11\] \.c6xabi\.attributes C6000_ATTRIBUTES 00000000 0020ec 000019 00      0   0  1
   \[12\] \.symtab           SYMTAB          00000000 002108 0001b0 10     13  21  4
-  \[13\] \.strtab           STRTAB          00000000 0022b8 000077 00      0   0  1
-  \[14\] \.shstrtab         STRTAB          00000000 00232f 000071 00      0   0  1
+  \[13\] \.strtab           STRTAB .*
+  \[14\] \.shstrtab         STRTAB .*
 Key to Flags:
 #...
 
@@ -91,9 +91,9 @@ Symbol table '\.symtab' contains 27 entries:
      9: 100000e0     0 SECTION LOCAL  DEFAULT    9 
     10: 100000ec     0 SECTION LOCAL  DEFAULT   10 
     11: 00000000     0 SECTION LOCAL  DEFAULT   11 
-    12: 00000000     0 FILE    LOCAL  DEFAULT  ABS tmpdir/shlib-1\.o
+    12: 00000000     0 FILE    LOCAL  DEFAULT  ABS .*shlib-1\.o
     13: 10000000     0 FUNC    LOCAL  HIDDEN     7 sub1
-    14: 00000000     0 FILE    LOCAL  DEFAULT  ABS tmpdir/shlib-app-1r\.o
+    14: 00000000     0 FILE    LOCAL  DEFAULT  ABS .*shlib-app-1r\.o
     15: 10000080     0 NOTYPE  LOCAL  DEFAULT    7 fish
     16: 00000000     0 FILE    LOCAL  DEFAULT  ABS 
     17: 00008110     0 OBJECT  LOCAL  DEFAULT    6 _DYNAMIC
diff --git a/ld/testsuite/ld-x86-64/tlsbin.rd b/ld/testsuite/ld-x86-64/tlsbin.rd
index 02b05d98a0..c535732b75 100644
--- a/ld/testsuite/ld-x86-64/tlsbin.rd
+++ b/ld/testsuite/ld-x86-64/tlsbin.rd
@@ -88,7 +88,7 @@ Symbol table '\.symtab' contains [0-9]+ entries:
 .* SECTION +LOCAL +DEFAULT +11 *
 .* SECTION +LOCAL +DEFAULT +12 *
 .* SECTION +LOCAL +DEFAULT +13 *
-.* FILE +LOCAL +DEFAULT +ABS tmpdir/tlsbinpic.o
+.* FILE +LOCAL +DEFAULT +ABS .*tlsbinpic.o
 .* TLS +LOCAL +DEFAULT +9 sl1
 .* TLS +LOCAL +DEFAULT +9 sl2
 .* TLS +LOCAL +DEFAULT +9 sl3
@@ -97,7 +97,7 @@ Symbol table '\.symtab' contains [0-9]+ entries:
 .* TLS +LOCAL +DEFAULT +9 sl6
 .* TLS +LOCAL +DEFAULT +9 sl7
 .* TLS +LOCAL +DEFAULT +9 sl8
-.* FILE +LOCAL +DEFAULT +ABS tmpdir/tlsbin.o
+.* FILE +LOCAL +DEFAULT +ABS .*tlsbin.o
 .* TLS +LOCAL +DEFAULT +10 bl1
 .* TLS +LOCAL +DEFAULT +10 bl2
 .* TLS +LOCAL +DEFAULT +10 bl3
diff --git a/ld/testsuite/ld-x86-64/tlsbin2.rd b/ld/testsuite/ld-x86-64/tlsbin2.rd
index 26cce6aa7f..b1205fe49a 100644
--- a/ld/testsuite/ld-x86-64/tlsbin2.rd
+++ b/ld/testsuite/ld-x86-64/tlsbin2.rd
@@ -81,7 +81,7 @@ Symbol table '\.symtab' contains [0-9]+ entries:
 .* SECTION +LOCAL +DEFAULT +9 *
 .* SECTION +LOCAL +DEFAULT +10 *
 .* SECTION +LOCAL +DEFAULT +11 *
-.* FILE +LOCAL +DEFAULT +ABS tmpdir/tlsbinpic2.o
+.* FILE +LOCAL +DEFAULT +ABS .*tlsbinpic2.o
 .* TLS +LOCAL +DEFAULT +7 sl1
 .* TLS +LOCAL +DEFAULT +7 sl2
 .* TLS +LOCAL +DEFAULT +7 sl3
@@ -90,7 +90,7 @@ Symbol table '\.symtab' contains [0-9]+ entries:
 .* TLS +LOCAL +DEFAULT +7 sl6
 .* TLS +LOCAL +DEFAULT +7 sl7
 .* TLS +LOCAL +DEFAULT +7 sl8
-.* FILE +LOCAL +DEFAULT +ABS tmpdir/tlsbin.o
+.* FILE +LOCAL +DEFAULT +ABS .*tlsbin.o
 .* TLS +LOCAL +DEFAULT +8 bl1
 .* TLS +LOCAL +DEFAULT +8 bl2
 .* TLS +LOCAL +DEFAULT +8 bl3
diff --git a/ld/testsuite/ld-x86-64/tlsbindesc.rd b/ld/testsuite/ld-x86-64/tlsbindesc.rd
index 13978b7b67..9e46ca1d0f 100644
--- a/ld/testsuite/ld-x86-64/tlsbindesc.rd
+++ b/ld/testsuite/ld-x86-64/tlsbindesc.rd
@@ -79,7 +79,7 @@ Symbol table '\.symtab' contains [0-9]+ entries:
  +[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
+.* FILE +LOCAL +DEFAULT +ABS .*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
@@ -88,7 +88,7 @@ Symbol table '\.symtab' contains [0-9]+ entries:
  +[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
+.* FILE +LOCAL +DEFAULT +ABS .*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
diff --git a/ld/testsuite/ld-x86-64/tlsdesc.rd b/ld/testsuite/ld-x86-64/tlsdesc.rd
index 4fcd8826ae..a15c6e0f22 100644
--- a/ld/testsuite/ld-x86-64/tlsdesc.rd
+++ b/ld/testsuite/ld-x86-64/tlsdesc.rd
@@ -112,7 +112,7 @@ Symbol table '\.symtab' contains [0-9]+ entries:
  +[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
+.* FILE +LOCAL +DEFAULT +ABS .*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
diff --git a/ld/testsuite/ld-x86-64/tlspic.rd b/ld/testsuite/ld-x86-64/tlspic.rd
index b3547eb945..024e124e51 100644
--- a/ld/testsuite/ld-x86-64/tlspic.rd
+++ b/ld/testsuite/ld-x86-64/tlspic.rd
@@ -96,7 +96,7 @@ Symbol table '\.symtab' contains [0-9]+ entries:
 .* SECTION +LOCAL +DEFAULT +10 *
 .* SECTION +LOCAL +DEFAULT +11 *
 .* SECTION +LOCAL +DEFAULT +12 *
-.* FILE +LOCAL +DEFAULT +ABS tmpdir/tlspic1.o
+.* FILE +LOCAL +DEFAULT +ABS .*tlspic1.o
 .* TLS +LOCAL +DEFAULT +8 sl1
 .* TLS +LOCAL +DEFAULT +8 sl2
 .* TLS +LOCAL +DEFAULT +8 sl3
diff --git a/ld/testsuite/ld-x86-64/tlspic2.rd b/ld/testsuite/ld-x86-64/tlspic2.rd
index e02c33a6ae..a39a8fe0d0 100644
--- a/ld/testsuite/ld-x86-64/tlspic2.rd
+++ b/ld/testsuite/ld-x86-64/tlspic2.rd
@@ -93,7 +93,7 @@ Symbol table '\.symtab' contains [0-9]+ entries:
 .* SECTION +LOCAL +DEFAULT +10 *
 .* SECTION +LOCAL +DEFAULT +11 *
 .* SECTION +LOCAL +DEFAULT +12 *
-.* FILE +LOCAL +DEFAULT +ABS tmpdir/tlspic3.o
+.* FILE +LOCAL +DEFAULT +ABS .*tlspic3.o
 .* TLS +LOCAL +DEFAULT +8 sl1
 .* TLS +LOCAL +DEFAULT +8 sl2
 .* TLS +LOCAL +DEFAULT +8 sl3
diff --git a/ld/testsuite/ld-xtensa/tlsbin.rd b/ld/testsuite/ld-xtensa/tlsbin.rd
index dcd2b04bcf..09c6b21569 100644
--- a/ld/testsuite/ld-xtensa/tlsbin.rd
+++ b/ld/testsuite/ld-xtensa/tlsbin.rd
@@ -82,7 +82,7 @@ Symbol table '\.symtab' contains [0-9]+ entries:
  +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +11 *
  +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +12 *
  +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +13 *
- +[0-9]+: [0-9a-f]+ +0 +FILE +LOCAL +DEFAULT +ABS +tmpdir/tlsbin.o
+ +[0-9]+: [0-9a-f]+ +0 +FILE +LOCAL +DEFAULT +ABS .*tlsbin.o
  +[0-9]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sl1
  +[0-9]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sl2
  +[0-9]+: [0-9a-f]+ +0 +TLS +LOCAL +DEFAULT +8 sl3
diff --git a/ld/testsuite/ld-xtensa/tlspic.rd b/ld/testsuite/ld-xtensa/tlspic.rd
index b6f7067f4c..70d8ef43d4 100644
--- a/ld/testsuite/ld-xtensa/tlspic.rd
+++ b/ld/testsuite/ld-xtensa/tlspic.rd
@@ -100,7 +100,7 @@ Symbol table '\.symtab' contains [0-9]+ entries:
  +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +11 *
  +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +12 *
  +[0-9]+: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +13 *
- +[0-9]+: [0-9a-f]+ +0 +FILE +LOCAL +DEFAULT +ABS +tmpdir/tlspic1.o
+ +[0-9]+: [0-9a-f]+ +0 +FILE +LOCAL +DEFAULT +ABS .*tlspic1.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

-- 
Alan Modra
Australia Development Lab, IBM

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-04 10:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-04 10:26 PR26822, How to prevent a STT_FILE with absolute path in the linked image Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).