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 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. 17 18 .*: file format elf32-cris 19 20 Program Header: 21 LOAD off .* 22 filesz .* 23 LOAD off .* 24 filesz .* 25 private flags = 0: 26