2001-10-14 15:18:11 +00:00
|
|
|
#source: ldr1.s
|
|
|
|
#source: ldr2.s
|
|
|
|
#as: -little
|
2003-10-13 05:09:21 +00:00
|
|
|
#ld: -shared -EL -z nocombreloc
|
2001-10-14 15:18:11 +00:00
|
|
|
#readelf: -r -x4 -x5
|
2001-10-15 00:14:37 +00:00
|
|
|
#target: sh*-*-elf
|
2001-10-14 15:18:11 +00:00
|
|
|
|
|
|
|
# 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.
|
|
|
|
|
2002-02-24 16:44:45 +00:00
|
|
|
Relocation section '\.rela\.text' at offset 0x[0-9a-f]+ contains 1 entries:
|
|
|
|
.*
|
2003-10-13 05:09:21 +00:00
|
|
|
0000030c 000000a5 R_SH_RELATIVE +00000310
|
2001-10-14 15:18:11 +00:00
|
|
|
|
|
|
|
Hex dump of section '\.rela\.text':
|
2003-10-13 05:09:21 +00:00
|
|
|
0x000002f8 00000310 000000a5 0000030c .*
|
2001-10-14 15:18:11 +00:00
|
|
|
|
|
|
|
Hex dump of section '\.text':
|
2003-10-13 05:09:21 +00:00
|
|
|
0x00000304 00000310 00090009 00090009 .*
|