aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-sh/shared-1.d
blob: 315cfec747a67bc274d9df0bd2d300174cd0541f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#source: ldr1.s
#source: ldr2.s
#as: -little
#ld: -shared -EL
#readelf: -r -x4 -x5
#target: sh*-*-elf

# Make sure relocations against global and local symbols with relative and
# absolute 32-bit relocs don't come out wrong after ld -r.  Remember that
# SH uses partial_inplace (sort-of REL within RELA) with related confusion
# about how, when, where and which addends to use.  A DSO must have the
# same value in the addend as in the data, so either can be used.

Relocation section '\.rela\.text' at offset 0x328 contains 1 entries:
 Offset     Info    Type            Symbol's Value  Symbol's Name          Addend
0000033c  000000a5 R_SH_RELATIVE                                          00000344

Hex dump of section '\.rela\.text':
  0x00000328          00000340 000000a5 0000033c .*

Hex dump of section '\.text':
  0x00000334          00000340 00090009 00090009 .*