libdso-13.d 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. #source: dso-1.s
  2. #source: dsov32-3.s
  3. #as: --pic --no-underscore --march=v32 --em=criself
  4. #ld: --shared -m crislinux -z nocombreloc --enable-new-dtags --hash-style=sysv
  5. #readelf: -d -r
  6. #warning: relocation R_CRIS_32_PCREL should not be used in a shared object; recompile with -fPIC
  7. # Check that a TEXTREL reloc is correctly generated for PCREL
  8. # relocations against global symbols.
  9. # FIXME: Have a textrel-enabling(-disabling) linker option.
  10. # (Warning always generated unless [other option] warnings are
  11. # generally disabled.) Split out the expected readelf output
  12. # into a separate test using that option.
  13. Dynamic section at offset 0x[0-9a-f][0-9a-f][0-9a-f] contains 11 entries:
  14. Tag[ ]+Type[ ]+Name/Value
  15. 0x0+4 \(HASH\)[ ]+0x94
  16. 0x0+5 \(STRTAB\)[ ]+0x[0-9a-f][0-9a-f]
  17. 0x0+6 \(SYMTAB\)[ ]+0x[0-9a-f][0-9a-f]
  18. 0x0+a \(STRSZ\)[ ]+14 \(bytes\)
  19. 0x0+b \(SYMENT\)[ ]+16 \(bytes\)
  20. 0x0+7 \(RELA\)[ ]+0x[12][0-9a-f][0-9a-f]
  21. 0x0+8 \(RELASZ\)[ ]+12 \(bytes\)
  22. 0x0+9 \(RELAENT\)[ ]+12 \(bytes\)
  23. 0x0+16 \(TEXTREL\)[ ]+0x0
  24. 0x0+1e \(FLAGS\)[ ]+TEXTREL
  25. 0x0+ \(NULL\)[ ]+0x0
  26. Relocation section '\.rela\.text' at offset 0x[12][0-9a-f][0-9a-f] contains 1 entry:
  27. Offset[ ]+Info[ ]+Type[ ]+Sym\.Value Sym\. Name \+ Addend
  28. 0+[12][0-9a-f][0-9a-f] 0+[0-9a-f]06 R_CRIS_32_PCREL[ ]+0+[0-f]+[ ]+dsofn \+ 6