libdso-2.d 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. #source: dso-1.s
  2. #source: dso-2.s
  3. #as: --pic --no-underscore --em=criself
  4. #ld: --shared -m crislinux --hash-style=sysv --version-script $srcdir/$subdir/hide1
  5. #readelf: -S -s -r
  6. # Use "dsofn" from dso-1 in a GOTPLT reloc, but hide it in a
  7. # version script. This will change the incoming GOTPLT reloc to
  8. # instead be a (local) GOT reloc. There are no other .rela.got
  9. # entries. This formerly SEGV:ed because .rela.got was created
  10. # too late to have it mapped to an output section.
  11. There are 13 section headers.*
  12. #...
  13. +\[ 1\] \.hash +HASH +.*
  14. +\[ 2\] \.dynsym +DYNSYM +.*
  15. +\[ 3\] \.dynstr +STRTAB +.*
  16. +\[ 4\] \.gnu\.version +VERSYM +.*
  17. +\[ 5\] \.gnu\.version_d +VERDEF +.*
  18. +\[ 6\] \.rela\.dyn +RELA +.*
  19. +\[ 7\] \.text +PROGBITS .*
  20. +\[ 8\] \.dynamic +DYNAMIC +.*
  21. +\[ 9\] \.got +PROGBITS .*
  22. +\[10\] \.symtab +SYMTAB +.*
  23. +\[11\] \.strtab +STRTAB +.*
  24. +\[12\] \.shstrtab +STRTAB +.*
  25. #...
  26. Relocation section '\.rela\.dyn' at offset 0x[0-9a-f]+ contains 1 entry:
  27. #...
  28. 00002[12][0-9a-f][048c] +0000000c R_CRIS_RELATIVE +150
  29. #...
  30. Symbol table '\.dynsym' contains 4 entries:
  31. +Num: +Value +Size +Type +Bind +Vis +Ndx +Name
  32. +0: 0+ +0 +NOTYPE +LOCAL +DEFAULT +UND
  33. +1: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +7.*
  34. +2: 0+ +0 +OBJECT +GLOBAL +DEFAULT +ABS TST1
  35. +3: 0+154 +0 +FUNC +GLOBAL +DEFAULT +7 export_1@@TST1
  36. Symbol table '\.symtab' contains 15 entries:
  37. +Num: +Value +Size +Type +Bind +Vis +Ndx +Name
  38. +0: 0+ +0 +NOTYPE +LOCAL +DEFAULT +UND
  39. +1: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +1.*
  40. +2: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +2.*
  41. +3: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +3.*
  42. +4: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +4.*
  43. +5: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +5.*
  44. +6: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +6.*
  45. +7: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +7.*
  46. +8: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +8.*
  47. +9: [0-9a-f]+ +0 +SECTION +LOCAL +DEFAULT +9.*
  48. +10: 0+2..[046c] +0 +OBJECT +LOCAL +DEFAULT +ABS _DYNAMIC
  49. +11: 0+2..[046c] +0 +OBJECT +LOCAL +DEFAULT +ABS _GLOBAL_OFFSET_TABLE_
  50. +12: 0+150 +2 +FUNC +LOCAL +DEFAULT +7 dsofn
  51. +13: 0+ +0 +OBJECT +GLOBAL +DEFAULT +ABS TST1
  52. +14: 0+154 +0 +FUNC +GLOBAL +DEFAULT +7 export_1