asneed1.d 837 B

12345678910111213141516171819202122232425
  1. #source: start1.s
  2. #source: dso-2.s
  3. #source: dso-1.s
  4. #as: --pic --no-underscore --em=criself
  5. #ld: -m crislinux --as-needed tmpdir/libdso-1.so
  6. #objdump: -p
  7. # Using --as-needed caused a elf_hash_table (info)->dynobj to be
  8. # registered before cris_elf_check_relocs was called, thereby
  9. # voiding an assumption that it was the sole setter of
  10. # htab->dynobj, trigging a SEGV due to a NULL dereference for
  11. # the variable holding the .got section.
  12. # The test-case would FAIL for the SEGV and we also check that
  13. # we don't get the DT_NEEDED tag (indeed no dynamic things at
  14. # all) because the library isn't needed and would have to move
  15. # to the end of the link-line to have effect if actually needed.
  16. .*: file format elf32-cris
  17. Program Header:
  18. LOAD off .*
  19. filesz .*
  20. LOAD off .*
  21. filesz .*
  22. private flags = 0: