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