1#source: tls-gdgotrelm.s --defsym r=8191
2#as: --no-underscore --em=criself --pic
3#ld: --shared -m crislinux
4#objdump: -s -j .got -R
5
6# Verify that the first and last R_CRIS_16_GOT_GD entries are ok just
7# below the limit, in a DSO.  Beware, the order here is quite random,
8# supposedly depending on symbol hashes.
9
10.*:     file format elf32-cris
11
12DYNAMIC RELOCATION RECORDS
13OFFSET   TYPE              VALUE
14000b3910 R_CRIS_DTP        x2814
15#...
16000b8350 R_CRIS_DTP        x8190
17#...
18000c1308 R_CRIS_DTP        x0
19#...
20000c3900 R_CRIS_DTP        x1345
21
22Contents of section .got:
23 b3904 94380b00 00000000 00000000 00000000  .*
24 b3914 00000000 00000000 00000000 00000000  .*
25#...
26 c38e4 00000000 00000000 00000000 00000000  .*
27 c38f4 00000000 00000000 00000000 00000000  .*
28 c3904 00000000                             .*
29#PASS
30