diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2009-09-24 15:56:52 +0000 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2009-09-24 15:56:52 +0000 |
commit | 935bd1e079100b6d6fa0fa7cfd7c20a7f588cfea (patch) | |
tree | 34a9f4aee3919efc35841a55229dfaa2ad7cb83b /ld/testsuite/ld-cris | |
parent | f4be36b3fb26d687944e39d46cef536fb1fa4de4 (diff) | |
download | gdb-935bd1e079100b6d6fa0fa7cfd7c20a7f588cfea.zip gdb-935bd1e079100b6d6fa0fa7cfd7c20a7f588cfea.tar.gz gdb-935bd1e079100b6d6fa0fa7cfd7c20a7f588cfea.tar.bz2 |
bfd/
2009-09-24 H.J. Lu <hongjiu.lu@intel.com>
PR ld/10630
* elflink.c (elf_link_output_extsym): Turn off visibility on
local symbol.
(bfd_elf_final_link): Turn off visibility on dynamic local
symbol.
ld/testsuite/
2009-09-24 H.J. Lu <hongjiu.lu@intel.com>
PR ld/10630
* ld-alpha/tlsbin.rd: Remove HIDDEN/.hidden on local symbols.
* ld-alpha/tlsbinr.rd: Likewise.
* ld-alpha/tlspic.rd: Likewise.
* ld-cris/libdso-2.d: Likewise.
* ld-cris/locref1.d: Likewise.
* ld-cris/locref2.d: Likewise.
* ld-cris/tls-e-20a.d: Likewise.
* ld-cris/tls-e-20.d: Likewise.
* ld-cris/tls-e-80.d: Likewise.
* ld-cris/tls-gc-68.d: Likewise.
* ld-cris/tls-gc-69.d: Likewise.
* ld-cris/tls-gc-70.d: Likewise.
* ld-cris/tls-gc-75.d: Likewise.
* ld-cris/tls-gc-76.d: Likewise.
* ld-cris/tls-gc-79.d: Likewise.
* ld-cris/tls-gd-1h.d: Likewise.
* ld-cris/tls-gd-2h.d: Likewise.
* ld-cris/tls-ld-4.d: Likewise.
* ld-cris/tls-ld-5.d: Likewise.
* ld-cris/tls-ld-6.d: Likewise.
* ld-cris/tls-ld-7.d: Likewise.
* ld-cris/tls-ldgd-14.d: Likewise.
* ld-cris/tls-ldgd-15.d: Likewise.
* ld-cris/tls-local-63.d: Likewise.
* ld-cris/tls-local-64.d: Likewise.
* ld-elf/pr9676.rd: Likewise.
* ld-elf/pr9679.rd: Likewise.
* ld-elfvsb/hidden2.d: Likewise.
* ld-i386/tlsbindesc.rd: Likewise.
* ld-i386/tlsbin.rd: Likewise.
* ld-i386/tlsdesc.rd: Likewise.
* ld-i386/tlsgdesc.rd: Likewise.
* ld-i386/tlsnopic.rd: Likewise.
* ld-i386/tlspic.rd: Likewise.
* ld-ia64/tlsbin.rd: Likewise.
* ld-ia64/tlspic.rd: Likewise.
* ld-powerpc/tlsexe32.r: Likewise.
* ld-powerpc/tlsexe.r: Likewise.
* ld-powerpc/tlsexetoc.r: Likewise.
* ld-powerpc/tlsso32.r: Likewise.
* ld-powerpc/tlsso.r: Likewise.
* ld-powerpc/tlstocso.r: Likewise.
* ld-s390/tlsbin_64.rd: Likewise.
* ld-s390/tlsbin.rd: Likewise.
* ld-s390/tlspic_64.rd: Likewise.
* ld-s390/tlspic.rd: Likewise.
* ld-sparc/gotop32.rd: Likewise.
* ld-sparc/gotop64.rd: Likewise.
* ld-sparc/tlssunbin32.rd: Likewise.
* ld-sparc/tlssunbin64.rd: Likewise.
* ld-sparc/tlssunnopic32.rd: Likewise.
* ld-sparc/tlssunnopic64.rd: Likewise.
* ld-sparc/tlssunpic32.rd: Likewise.
* ld-sparc/tlssunpic64.rd: Likewise.
* ld-x86-64/tlsbindesc.rd: Likewise.
* ld-x86-64/tlsbin.rd: Likewise.
* ld-x86-64/tlsdesc.rd: Likewise.
* ld-x86-64/tlsgdesc.rd: Likewise.
* ld-x86-64/tlspic.rd: Likewise.
* ld-xtensa/tlsbin.rd: Likewise.
* ld-xtensa/tlspic.rd: Likewise.
* ld-elf/local1.d: New.
* ld-elf/local1.map: Likewise.
* ld-elf/local1.s: Likewise.
* ld-ia64/local1.d: Likewise.
* ld-ia64/local1.map: Likewise.
* ld-ia64/local1.s: Likewise.
Diffstat (limited to 'ld/testsuite/ld-cris')
-rw-r--r-- | ld/testsuite/ld-cris/libdso-2.d | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/locref1.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/locref2.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/tls-e-20.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/tls-e-20a.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/tls-e-80.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/tls-gc-68.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/tls-gc-69.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/tls-gc-70.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/tls-gc-75.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/tls-gc-76.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/tls-gc-79.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/tls-gd-1h.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/tls-gd-2h.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/tls-ld-4.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/tls-ld-5.d | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/tls-ld-6.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/tls-ld-7.d | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/tls-ldgd-14.d | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/tls-ldgd-15.d | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/tls-local-63.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-cris/tls-local-64.d | 2 |
22 files changed, 27 insertions, 27 deletions
diff --git a/ld/testsuite/ld-cris/libdso-2.d b/ld/testsuite/ld-cris/libdso-2.d index ff1a4db..165e222 100644 --- a/ld/testsuite/ld-cris/libdso-2.d +++ b/ld/testsuite/ld-cris/libdso-2.d @@ -48,10 +48,10 @@ Symbol table '\.symtab' contains 18 entries: +7: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +7 +8: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +8 +9: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +9 - +10: 0+2..[046c] +0 +OBJECT +LOCAL +HIDDEN +ABS _DYNAMIC + +10: 0+2..[046c] +0 +OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC +11: 0+2..[046c] +0 +NOTYPE +LOCAL +DEFAULT +ABS __bss_start +12: 0+2..[046c] +0 +NOTYPE +LOCAL +DEFAULT +ABS _edata - +13: 0+2..[046c] +0 +OBJECT +LOCAL +HIDDEN +ABS _GLOBAL_OFFSET_TABLE_ + +13: 0+2..[046c] +0 +OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_ +14: 0+2..[046c] +0 +NOTYPE +LOCAL +DEFAULT +ABS _end +15: 0+150 +2 +FUNC +LOCAL +DEFAULT +7 dsofn +16: 0+ +0 +OBJECT +GLOBAL +DEFAULT +ABS TST1 diff --git a/ld/testsuite/ld-cris/locref1.d b/ld/testsuite/ld-cris/locref1.d index e38c642..ac26b28 100644 --- a/ld/testsuite/ld-cris/locref1.d +++ b/ld/testsuite/ld-cris/locref1.d @@ -11,7 +11,7 @@ SYMBOL TABLE: #... -0+82084 l O \.got 0+ \.hidden _GLOBAL_OFFSET_TABLE_ +0+82084 l O \.got 0+ _GLOBAL_OFFSET_TABLE_ 0+80076 g F \.text 0+2 expfn 0+82090 g O \.data 0+4 expobj #... diff --git a/ld/testsuite/ld-cris/locref2.d b/ld/testsuite/ld-cris/locref2.d index 8b51d45..735b10e 100644 --- a/ld/testsuite/ld-cris/locref2.d +++ b/ld/testsuite/ld-cris/locref2.d @@ -11,7 +11,7 @@ SYMBOL TABLE: #... -0+82088 l O \.got 0+ \.hidden _GLOBAL_OFFSET_TABLE_ +0+82088 l O \.got 0+ _GLOBAL_OFFSET_TABLE_ 0+ w \*UND\* 0+ expfn 0+ w \*UND\* 0+ expobj #... diff --git a/ld/testsuite/ld-cris/tls-e-20.d b/ld/testsuite/ld-cris/tls-e-20.d index d4fd8fc..0c723b0 100644 --- a/ld/testsuite/ld-cris/tls-e-20.d +++ b/ld/testsuite/ld-cris/tls-e-20.d @@ -35,7 +35,7 @@ SYMBOL TABLE: 0+80094 l d \.text 0+ \.text 0+820b0 l d \.tdata 0+ \.tdata 0+820bc l d \.got 0+ \.got -0+820bc l O \.got 0+ \.hidden _GLOBAL_OFFSET_TABLE_ +0+820bc l O \.got 0+ _GLOBAL_OFFSET_TABLE_ 0+ g \.tdata 0+4 \.hidden x 0+80098 g F \.text 0+6 tlsdsofn2 0+8 g \.tdata 0+4 \.hidden x2 diff --git a/ld/testsuite/ld-cris/tls-e-20a.d b/ld/testsuite/ld-cris/tls-e-20a.d index 2ea7d0d..201e0b1 100644 --- a/ld/testsuite/ld-cris/tls-e-20a.d +++ b/ld/testsuite/ld-cris/tls-e-20a.d @@ -41,7 +41,7 @@ SYMBOL TABLE: 0+82168 l d \.got 0+ \.got 0+821a4 l d \.data 0+ \.data 0+ l \.tdata 0+80 tls128 -0+82168 l O \.got 0+ \.hidden _GLOBAL_OFFSET_TABLE_ +0+82168 l O \.got 0+ _GLOBAL_OFFSET_TABLE_ 0+80 g \.tdata 0+4 \.hidden x 0+800c4 g F \.text 0+6 tlsdsofn2 0+821b4 g O \.data 0+4 got7var5 diff --git a/ld/testsuite/ld-cris/tls-e-80.d b/ld/testsuite/ld-cris/tls-e-80.d index 273ac1f..6d84e00 100644 --- a/ld/testsuite/ld-cris/tls-e-80.d +++ b/ld/testsuite/ld-cris/tls-e-80.d @@ -42,7 +42,7 @@ SYMBOL TABLE: 0+820c0 l d \.tdata 0+ \.tdata 0+820d0 l d \.tbss 0+ \.tbss 0+820d0 l d \.got 0+ \.got -0+820d0 l O \.got 0+ \.hidden _GLOBAL_OFFSET_TABLE_ +0+820d0 l O \.got 0+ _GLOBAL_OFFSET_TABLE_ 0+ g \.tdata 0+4 \.hidden x 0+800a0 g F \.text 0+6 tlsdsofn2 0+800a8 g F \.text 0+6 tlsfn12 diff --git a/ld/testsuite/ld-cris/tls-gc-68.d b/ld/testsuite/ld-cris/tls-gc-68.d index cfed0e5..60fcc3b 100644 --- a/ld/testsuite/ld-cris/tls-gc-68.d +++ b/ld/testsuite/ld-cris/tls-gc-68.d @@ -21,7 +21,7 @@ private flags = 0: SYMBOL TABLE: 0+80074 l d .text 0+ .text 0+82078 l d .got 0+ .got -0+82078 l O .got 0+ .hidden _GLOBAL_OFFSET_TABLE_ +0+82078 l O .got 0+ _GLOBAL_OFFSET_TABLE_ 0+80074 g .text 0+ _start 0+82084 g \*ABS\* 0+ __bss_start 0+82084 g \*ABS\* 0+ _edata diff --git a/ld/testsuite/ld-cris/tls-gc-69.d b/ld/testsuite/ld-cris/tls-gc-69.d index dd9b30a..e547ba4 100644 --- a/ld/testsuite/ld-cris/tls-gc-69.d +++ b/ld/testsuite/ld-cris/tls-gc-69.d @@ -22,7 +22,7 @@ private flags = 0: SYMBOL TABLE: 0+80074 l d .text 0+ .text 0+82078 l d .got 0+ .got -0+82078 l O .got 0+ .hidden _GLOBAL_OFFSET_TABLE_ +0+82078 l O .got 0+ _GLOBAL_OFFSET_TABLE_ 0+80074 g .text 0+ _start 0+82084 g \*ABS\* 0+ __bss_start 0+82084 g \*ABS\* 0+ _edata diff --git a/ld/testsuite/ld-cris/tls-gc-70.d b/ld/testsuite/ld-cris/tls-gc-70.d index 048b7e9..d8d5324 100644 --- a/ld/testsuite/ld-cris/tls-gc-70.d +++ b/ld/testsuite/ld-cris/tls-gc-70.d @@ -22,7 +22,7 @@ private flags = 0: SYMBOL TABLE: 0+80074 l d .text 0+ .text 0+82078 l d .got 0+ .got -0+82078 l O .got 0+ .hidden _GLOBAL_OFFSET_TABLE_ +0+82078 l O .got 0+ _GLOBAL_OFFSET_TABLE_ 0+80074 g .text 0+ _start 0+82084 g \*ABS\* 0+ __bss_start 0+82084 g \*ABS\* 0+ _edata diff --git a/ld/testsuite/ld-cris/tls-gc-75.d b/ld/testsuite/ld-cris/tls-gc-75.d index de387db..2f4257e 100644 --- a/ld/testsuite/ld-cris/tls-gc-75.d +++ b/ld/testsuite/ld-cris/tls-gc-75.d @@ -24,7 +24,7 @@ private flags = 0: SYMBOL TABLE: 0+80074 l d .text 0+ .text 0+82078 l d .got 0+ .got -0+82078 l O .got 0+ .hidden _GLOBAL_OFFSET_TABLE_ +0+82078 l O .got 0+ _GLOBAL_OFFSET_TABLE_ 0+80074 g .text 0+ _start 0+82084 g \*ABS\* 0+ __bss_start 0+82084 g \*ABS\* 0+ _edata diff --git a/ld/testsuite/ld-cris/tls-gc-76.d b/ld/testsuite/ld-cris/tls-gc-76.d index 49a2dda..f3c78df 100644 --- a/ld/testsuite/ld-cris/tls-gc-76.d +++ b/ld/testsuite/ld-cris/tls-gc-76.d @@ -23,7 +23,7 @@ SYMBOL TABLE: 0+82080 l d .got 0+ .got 0+82090 l d .data 0+ .data 0+82090 l O .data 0+4 gc76var -0+82080 l O .got 0+ .hidden _GLOBAL_OFFSET_TABLE_ +0+82080 l O .got 0+ _GLOBAL_OFFSET_TABLE_ 0+80074 g .text 0+ _start 0+82094 g \*ABS\* 0+ __bss_start 0+82094 g \*ABS\* 0+ _edata diff --git a/ld/testsuite/ld-cris/tls-gc-79.d b/ld/testsuite/ld-cris/tls-gc-79.d index 37e8fce..210f478 100644 --- a/ld/testsuite/ld-cris/tls-gc-79.d +++ b/ld/testsuite/ld-cris/tls-gc-79.d @@ -22,7 +22,7 @@ private flags = 0: SYMBOL TABLE: 0+80074 l d .text 0+ .text 0+82078 l d .got 0+ .got -0+82078 l O .got 0+ .hidden _GLOBAL_OFFSET_TABLE_ +0+82078 l O .got 0+ _GLOBAL_OFFSET_TABLE_ 0+80074 g .text 0+ _start 0+82084 g \*ABS\* 0+ __bss_start 0+82084 g \*ABS\* 0+ _edata diff --git a/ld/testsuite/ld-cris/tls-gd-1h.d b/ld/testsuite/ld-cris/tls-gd-1h.d index 9e8fab3..2e024bd 100644 --- a/ld/testsuite/ld-cris/tls-gd-1h.d +++ b/ld/testsuite/ld-cris/tls-gd-1h.d @@ -33,7 +33,7 @@ private flags = 0: SYMBOL TABLE: #... -0+80 l \.tdata 0+4 \.hidden x +0+80 l \.tdata 0+4 x #... DYNAMIC RELOCATION RECORDS diff --git a/ld/testsuite/ld-cris/tls-gd-2h.d b/ld/testsuite/ld-cris/tls-gd-2h.d index ed2803c..f63be5c 100644 --- a/ld/testsuite/ld-cris/tls-gd-2h.d +++ b/ld/testsuite/ld-cris/tls-gd-2h.d @@ -33,7 +33,7 @@ private flags = 0: SYMBOL TABLE: #... -0+80 l \.tdata 0+4 \.hidden x +0+80 l \.tdata 0+4 x #... DYNAMIC RELOCATION RECORDS diff --git a/ld/testsuite/ld-cris/tls-ld-4.d b/ld/testsuite/ld-cris/tls-ld-4.d index b87d1d4..2ac3d71 100644 --- a/ld/testsuite/ld-cris/tls-ld-4.d +++ b/ld/testsuite/ld-cris/tls-ld-4.d @@ -33,7 +33,7 @@ private flags = 0: SYMBOL TABLE: #... -0+80 l \.tdata 0+4 \.hidden x +0+80 l \.tdata 0+4 x #... DYNAMIC RELOCATION RECORDS diff --git a/ld/testsuite/ld-cris/tls-ld-5.d b/ld/testsuite/ld-cris/tls-ld-5.d index 756f1b0..c2ea111 100644 --- a/ld/testsuite/ld-cris/tls-ld-5.d +++ b/ld/testsuite/ld-cris/tls-ld-5.d @@ -33,8 +33,8 @@ private flags = 0: SYMBOL TABLE: #... -0+84 l \.tdata 0+4 \.hidden x2 -0+80 l \.tdata 0+4 \.hidden x1 +0+84 l \.tdata 0+4 x2 +0+80 l \.tdata 0+4 x1 #... DYNAMIC RELOCATION RECORDS diff --git a/ld/testsuite/ld-cris/tls-ld-6.d b/ld/testsuite/ld-cris/tls-ld-6.d index b178ad4..0b54114 100644 --- a/ld/testsuite/ld-cris/tls-ld-6.d +++ b/ld/testsuite/ld-cris/tls-ld-6.d @@ -33,7 +33,7 @@ private flags = 0: SYMBOL TABLE: #... -0+80 l \.tdata 0+4 \.hidden x +0+80 l \.tdata 0+4 x #... DYNAMIC RELOCATION RECORDS diff --git a/ld/testsuite/ld-cris/tls-ld-7.d b/ld/testsuite/ld-cris/tls-ld-7.d index 92fcb88..c537050 100644 --- a/ld/testsuite/ld-cris/tls-ld-7.d +++ b/ld/testsuite/ld-cris/tls-ld-7.d @@ -33,8 +33,8 @@ private flags = 0: SYMBOL TABLE: #... -0+84 l \.tdata 0+4 \.hidden x2 -0+80 l \.tdata 0+4 \.hidden x1 +0+84 l \.tdata 0+4 x2 +0+80 l \.tdata 0+4 x1 #... DYNAMIC RELOCATION RECORDS diff --git a/ld/testsuite/ld-cris/tls-ldgd-14.d b/ld/testsuite/ld-cris/tls-ldgd-14.d index 3b101ad..4634dd2 100644 --- a/ld/testsuite/ld-cris/tls-ldgd-14.d +++ b/ld/testsuite/ld-cris/tls-ldgd-14.d @@ -38,9 +38,9 @@ private flags = 0: SYMBOL TABLE: #... -0+8c l \.tdata 0+4 \.hidden x2 +0+8c l \.tdata 0+4 x2 #... -0+88 l \.tdata 0+4 \.hidden x1 +0+88 l \.tdata 0+4 x1 #... 0+80 g \.tdata 0+4 x #... diff --git a/ld/testsuite/ld-cris/tls-ldgd-15.d b/ld/testsuite/ld-cris/tls-ldgd-15.d index 84d033f..8583bd2 100644 --- a/ld/testsuite/ld-cris/tls-ldgd-15.d +++ b/ld/testsuite/ld-cris/tls-ldgd-15.d @@ -38,9 +38,9 @@ private flags = 0: SYMBOL TABLE: #... -0+8c l \.tdata 0+4 \.hidden x2 +0+8c l \.tdata 0+4 x2 #... -0+88 l \.tdata 0+4 \.hidden x1 +0+88 l \.tdata 0+4 x1 #... 0+80 g \.tdata 0+4 x #... diff --git a/ld/testsuite/ld-cris/tls-local-63.d b/ld/testsuite/ld-cris/tls-local-63.d index 3242833..f628097 100644 --- a/ld/testsuite/ld-cris/tls-local-63.d +++ b/ld/testsuite/ld-cris/tls-local-63.d @@ -19,7 +19,7 @@ Symbol table '.dynsym' contains 7 entries: #... Symbol table '.symtab' contains 16 entries: #... - .: 00000000 +4 +TLS +LOCAL +HIDDEN +6 x + .: 00000000 +4 +TLS +LOCAL +DEFAULT +6 x #... Hex dump of section '.text': 0x00000184 5fae0c00 .* diff --git a/ld/testsuite/ld-cris/tls-local-64.d b/ld/testsuite/ld-cris/tls-local-64.d index bc9aeab..f813858 100644 --- a/ld/testsuite/ld-cris/tls-local-64.d +++ b/ld/testsuite/ld-cris/tls-local-64.d @@ -21,7 +21,7 @@ Symbol table '.dynsym' contains 7 entries: #... Symbol table '.symtab' contains 17 entries: #... - ..: 00000080 +4 +TLS +LOCAL +HIDDEN +6 x + ..: 00000080 +4 +TLS +LOCAL +DEFAULT +6 x #... Hex dump of section '.text': 0x00000184 5fae0c00 .* |