mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
935bd1e079
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.
72 lines
1.8 KiB
Makefile
72 lines
1.8 KiB
Makefile
#source: tls128g.s
|
|
#source: tls-ld-5.s
|
|
#source: tls-gd-1.s
|
|
#source: tls-ldgd-14.s
|
|
#source: tls-x.s
|
|
#source: tls-z.s
|
|
#source: tls-hx1x2.s
|
|
#as: --pic --no-underscore --em=criself
|
|
#ld: --shared -m crislinux
|
|
#objdump: -s -t -R -p -T
|
|
|
|
# Check that we have proper NPTL/TLS markings and GOT for two
|
|
# R_CRIS_16_GOT_GD and two R_CRIS_16_DTPRELs against different
|
|
# variables in a DSO.
|
|
|
|
.*: file format elf32-cris
|
|
|
|
Program Header:
|
|
LOAD off 0x0+ vaddr 0x0+ paddr 0x0+ align 2\*\*13
|
|
filesz 0x0+230 memsz 0x0+230 flags r-x
|
|
LOAD off 0x0+230 vaddr 0x0+2230 paddr 0x0+2230 align 2\*\*13
|
|
filesz 0x0+124 memsz 0x0+124 flags rw-
|
|
DYNAMIC off 0x0+2c0 vaddr 0x0+22c0 paddr 0x0+22c0 align 2\*\*2
|
|
filesz 0x0+70 memsz 0x0+70 flags rw-
|
|
TLS off 0x0+230 vaddr 0x0+2230 paddr 0x0+2230 align 2\*\*2
|
|
filesz 0x0+90 memsz 0x0+90 flags r--
|
|
|
|
Dynamic Section:
|
|
HASH 0x0+b4
|
|
STRTAB 0x0+1b8
|
|
SYMTAB 0x0+f8
|
|
STRSZ 0x0+42
|
|
SYMENT 0x0+10
|
|
RELA 0x0+1fc
|
|
RELASZ 0x0+24
|
|
RELAENT 0x0+c
|
|
private flags = 0:
|
|
|
|
SYMBOL TABLE:
|
|
#...
|
|
0+8c l \.tdata 0+4 x2
|
|
#...
|
|
0+88 l \.tdata 0+4 x1
|
|
#...
|
|
0+80 g \.tdata 0+4 x
|
|
#...
|
|
0+84 g \.tdata 0+4 z
|
|
#...
|
|
DYNAMIC SYMBOL TABLE:
|
|
#...
|
|
0+80 g D \.tdata 0+4 x
|
|
#...
|
|
0+84 g D \.tdata 0+4 z
|
|
#...
|
|
|
|
DYNAMIC RELOCATION RECORDS
|
|
OFFSET TYPE VALUE
|
|
0+233c R_CRIS_DTPMOD \*ABS\*
|
|
0+2344 R_CRIS_DTP x
|
|
0+234c R_CRIS_DTP z
|
|
|
|
Contents of section \.hash:
|
|
#...
|
|
Contents of section \.text:
|
|
0220 5fae8800 5fbe8c00 5fae1400 5fae1c00 .*
|
|
Contents of section .tdata:
|
|
#...
|
|
Contents of section \.got:
|
|
2330 c0220+ 0+ 0+ 0+ .*
|
|
2340 0+ 0+ 0+ 0+ .*
|
|
2350 0+ .*
|