X-Git-Url: https://oss.titaniummirror.com/gitweb?p=msp430-binutils.git;a=blobdiff_plain;f=ld%2Ftestsuite%2Fld-cris%2Ftls-ldgd-15.d;fp=ld%2Ftestsuite%2Fld-cris%2Ftls-ldgd-15.d;h=84d033f7d4fe61cb458a66770e26d7abe8e36a0e;hp=0000000000000000000000000000000000000000;hb=d5da4f291af551c0b8b79e1d4a9b173d60e5c10e;hpb=7b5ea4fcdf2819e070665ab5610f8b48e3867c10 diff --git a/ld/testsuite/ld-cris/tls-ldgd-15.d b/ld/testsuite/ld-cris/tls-ldgd-15.d new file mode 100644 index 0000000..84d033f --- /dev/null +++ b/ld/testsuite/ld-cris/tls-ldgd-15.d @@ -0,0 +1,72 @@ +#source: tls128g.s +#source: tls-ld-7.s +#source: tls-gd-2.s +#source: tls-ldgd-15.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_32_GOT_GD and two R_CRIS_32_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+23c memsz 0x0+23c flags r-x + LOAD off 0x0+23c vaddr 0x0+223c paddr 0x0+223c align 2\*\*13 + filesz 0x0+124 memsz 0x0+124 flags rw- + DYNAMIC off 0x0+2cc vaddr 0x0+22cc paddr 0x0+22cc align 2\*\*2 + filesz 0x0+70 memsz 0x0+70 flags rw- + TLS off 0x0+23c vaddr 0x0+223c paddr 0x0+223c 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 \.hidden x2 +#... +0+88 l \.tdata 0+4 \.hidden 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+2348 R_CRIS_DTPMOD \*ABS\* +0+2350 R_CRIS_DTP x +0+2358 R_CRIS_DTP z + +Contents of section \.hash: +#... +Contents of section \.text: + 0220 6fae8800 00006fbe 8c000000 6fae1400 .* + 0230 0+ 6fae1c00 0+ .* +Contents of section .tdata: +#... +Contents of section \.got: + 233c cc220+ 0+ 0+ 0+ .* + 234c 0+ 0+ 0+ 0+ .* + 235c 0+ .*