2001-10-14 17:18:11 +02:00
|
|
|
#source: ldr1.s
|
|
|
|
#source: ldr2.s
|
|
|
|
#as: -little
|
2003-10-13 07:09:21 +02:00
|
|
|
#ld: -shared -EL -z nocombreloc
|
2001-10-14 17:18:11 +02:00
|
|
|
#readelf: -r -x4 -x5
|
2001-10-15 02:14:37 +02:00
|
|
|
#target: sh*-*-elf
|
2001-10-14 17:18:11 +02: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 17:44:45 +01:00
|
|
|
Relocation section '\.rela\.text' at offset 0x[0-9a-f]+ contains 1 entries:
|
|
|
|
.*
|
2006-10-17 15:41:49 +02:00
|
|
|
0000019c +[0-9a-f]+ R_SH_RELATIVE +000001a0
|
2001-10-14 17:18:11 +02:00
|
|
|
|
|
|
|
Hex dump of section '\.rela\.text':
|
2007-03-23 01:00:23 +01:00
|
|
|
0x00000188 9c010000 a5000000 a0010000 .*
|
2001-10-14 17:18:11 +02:00
|
|
|
|
|
|
|
Hex dump of section '\.text':
|
2007-03-23 01:00:23 +01:00
|
|
|
.*
|
|
|
|
0x00000194 09000900 09000900 a0010000 .*
|