hiddef1.d 1.0 KB

12345678910111213141516171819202122232425262728
  1. #source: gotrel1.s
  2. #source: hiddef1.s
  3. #source: hidrefgotplt1.s
  4. #ld: -shared -m crislinux --hash-style=sysv
  5. #as: --pic --no-underscore -I$srcdir/$subdir --em=criself
  6. #readelf: -S -s -r
  7. # Regression test for mishandling of GOTPLT relocs against a
  8. # hidden symbol, where the reloc is found after the symbol
  9. # definition. There should be no PLT, just a single GOT entry
  10. # from a GOTPLT reloc moved to the .got section. It's hard to
  11. # check for absence of a .plt section, so we just check the
  12. # number of symbols and sections. When the number of symbols
  13. # and sections change, make sure that there's no .plt and that
  14. # dsofn is hidden (not exported as a dynamic symbol).
  15. There are 11 section headers, starting at offset 0x[0-9a-f]+:
  16. #...
  17. \[[ 0-9]+\] \.got PROGBITS [0-9a-f]+ [0-9a-f]+ 0+10 04 WA 0 0 4
  18. #...
  19. Relocation section '\.rela\.dyn' at offset 0x[0-9a-f]+ contains 1 entry:
  20. #...
  21. [0-9a-f]+ 0+c R_CRIS_RELATIVE +[0-9a-f]+
  22. #...
  23. Symbol table '\.dynsym' contains 3 entries:
  24. #...
  25. Symbol table '\.symtab' contains 15 entries:
  26. #pass