e1741a1ed1
bfd/ * linker.c (fix_syms): Force symbols outside any section into bfd_abs_section_ptr. ld/testsuite/ * ld-elf/warn2.d: Expect ABS section for Foo. * ld-elf/zerosize1.d, zerosize1.s: New test.
17 lines
604 B
Makefile
17 lines
604 B
Makefile
#source: start.s
|
|
#source: symbol2ref.s
|
|
#source: symbol2w.s
|
|
#ld: -T group.ld
|
|
#warning: ^[^\\n]*\.[obj]+: warning: function 'Foo' used$
|
|
#readelf: -s
|
|
#notarget: "sparc64-*-solaris2*" "sparcv9-*-solaris2*"
|
|
#xfail: arc-*-* d30v-*-* dlx-*-* fr30-*-* frv-*-elf i860-*-* i960-*-*
|
|
#xfail: iq*-*-* mn10200-*-* moxie-*-* msp*-*-* mt-*-* or32-*-* pj*-*-*
|
|
# if not using elf32.em, you don't get fancy section handling
|
|
|
|
# Check that warnings are generated for the symbols in .gnu.warning
|
|
# construct and that the symbol still appears as expected.
|
|
|
|
#...
|
|
+[0-9]+: +[0-9a-f]+ +20 +OBJECT +GLOBAL +DEFAULT +ABS Foo
|
|
#pass
|