fixed bash/dash/sh issue (Ubuntu)
[zpugcc/jano.git] / toolchain / binutils / ld / testsuite / ld-sh / shared-1.d
blob82198aeb4f9c15790ec14361a003cb7c7739187f
1 #source: ldr1.s
2 #source: ldr2.s
3 #as: -little
4 #ld: -shared -EL -z nocombreloc
5 #readelf: -r -x4 -x5
6 #target: sh*-*-elf
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 related confusion
11 # about how, when, where and which addends to use. A DSO must have the
12 # same value in the addend as in the data, so either can be used.
14 Relocation section '\.rela\.text' at offset 0x[0-9a-f]+ contains 1 entries:
16 0000030c 000000a5 R_SH_RELATIVE +00000310
18 Hex dump of section '\.rela\.text':
19 0x000002f8 00000310 000000a5 0000030c .*
21 Hex dump of section '\.text':
22 0x00000304 00000310 00090009 00090009 .*