X-Git-Url: https://oss.titaniummirror.com/gitweb?p=msp430-binutils.git;a=blobdiff_plain;f=ld%2Ftestsuite%2Fld-cris%2Ftls-ok-34.d;fp=ld%2Ftestsuite%2Fld-cris%2Ftls-ok-34.d;h=f534c993d2fd25ef7f9c42b16850974ca6bdfd5b;hp=0000000000000000000000000000000000000000;hb=88750007d7869f178f0ba528f41efd3b74c424cf;hpb=6df9443a374e2b81278c61b8afc0a1eef7db280b diff --git a/ld/testsuite/ld-cris/tls-ok-34.d b/ld/testsuite/ld-cris/tls-ok-34.d new file mode 100644 index 0000000..f534c993 --- /dev/null +++ b/ld/testsuite/ld-cris/tls-ok-34.d @@ -0,0 +1,28 @@ +#source: tls-gottprelm.s --defsym r=8189 +#as: --no-underscore --em=criself --pic +#ld: --shared -m crislinux +#objdump: -s -j .got -R + +# Check that a R_CRIS_16_DTPREL just below the theoretical limit +# works. Verify that the first and last R_CRIS_16_GOT_TPREL entries +# are ok, in a DSO. Beware, the order here is quite random, +# supposedly depending on symbol hashes. + +.*: file format elf32-cris + +DYNAMIC RELOCATION RECORDS +OFFSET TYPE VALUE +000b3870 R_CRIS_32_TPREL x2814 +#... +000b485c R_CRIS_32_TPREL x8188 +#... +000ba564 R_CRIS_32_TPREL x0 +#... +000bb860 R_CRIS_32_TPREL x1345 + +Contents of section .got: + b3864 ec370b00 00000000 00000000 00000000 .* + b3874 00000000 00000000 00000000 00000000 .* +#... + bb844 00000000 00000000 00000000 00000000 .* + bb854 00000000 00000000 00000000 00000000 .*