ld-r-1.d 766 B

1234567891011121314151617181920212223
  1. #source: ldr1.s
  2. #source: ldr2.s
  3. #as: -little
  4. #ld: -r -EL
  5. #readelf: -r -x1 -x2
  6. #target: sh*-*-elf sh*-*-linux*
  7. # Make sure relocations against global and local symbols with relative and
  8. # absolute 32-bit relocs don't come out wrong after ld -r. Remember that
  9. # SH uses partial_inplace (sort-of REL within RELA) with its confusion
  10. # where and which addends to use and how. A file linked -r must have the
  11. # same layout as a plain assembly file: the addend is in the data only.
  12. Relocation section '\.rela\.text' at offset 0x[0-9a-f]+ contains 1 entry:
  13. .*
  14. 00000008 00000101 R_SH_DIR32 +00000000 +\.text +\+ 0
  15. Hex dump of section '\.text':
  16. .*
  17. 0x00000000 09000900 09000900 0c000000 .*
  18. Hex dump of section '\.rela\.text':
  19. 0x00000000 08000000 01010000 00000000 .*