Back to index

cell-binutils  2.17cvs20070401
ld-r-1.d
Go to the documentation of this file.
00001 #source: ldr1.s
00002 #source: ldr2.s
00003 #as: -little
00004 #ld: -r -EL
00005 #readelf: -r -x1 -x2
00006 #target: sh*-*-elf sh*-*-linux*
00007 #notarget: sh64*-*-linux*
00008 
00009 # Make sure relocations against global and local symbols with relative and
00010 # absolute 32-bit relocs don't come out wrong after ld -r.  Remember that
00011 # SH uses partial_inplace (sort-of REL within RELA) with its confusion
00012 # where and which addends to use and how.  A file linked -r must have the
00013 # same layout as a plain assembly file: the addend is in the data only.
00014 
00015 Relocation section '\.rela\.text' at offset 0x[0-9a-f]+ contains 1 entries:
00016 .*
00017 00000008  00000101 R_SH_DIR32 +00000000 +\.text +\+ 0
00018 
00019 Hex dump of section '\.text':
00020 .*
00021   0x00000000 09000900 09000900 0c000000 .*
00022 
00023 Hex dump of section '\.rela\.text':
00024   0x00000000 08000000 01010000 00000000 .*