6 #target: sh*-*-elf sh*-*-linux*
8 # Make sure relocations against global and local symbols with relative and
9 # absolute 32-bit relocs don't come out wrong after ld -r. Remember that
10 # SH uses partial_inplace (sort-of REL within RELA) with its confusion
11 # where and which addends to use and how. A file linked -r must have the
12 # same layout as a plain assembly file: the addend is in the data only.
14 Relocation section '\.rela\.text' at offset 0x1b4 contains 1 entries:
15 Offset Info Type Symbol's Value Symbol's Name Addend
16 00000008 00000101 R_SH_DIR32 00000000 \.text \+ 0
18 Hex dump of section '\.text':
19 0x00000000 0000000c 00090009 00090009 .*
21 Hex dump of section '\.rela\.text':
22 0x00000000 00000000 00000101 00000008 .*