mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
4153b6dbb0
PR ld/19803 * ldlang.c (lang_add_gc_name): New function. Adds the provided symbol name to the list of gc symbols. (lang_process): Call lang_add_gc_name with entry_symbol_default if entry_symbol.name is NULL. Use lang_add_gc_name to add the init and fini function names. * pe-dll.c (process_def_file_and_drectve): Add exported names to the gc symbol list. * testsuite/ld-pe/pr19803.s: Do not export _testval symbol. * testsuite/ld-pe/pr19803.d: Tweak expected output.
14 lines
369 B
Makefile
14 lines
369 B
Makefile
#ld: -shared --out-implib dx.dll.a --gc-sections
|
|
#objdump: --syms
|
|
#notarget: mcore-*
|
|
#
|
|
# The MCORE-PE target does not support -shared.
|
|
#
|
|
# Check that the target specific entry symbol *Startup is still
|
|
# a defined (sec > 0), public (scl == 2) symbol, even after garbage
|
|
# collection.
|
|
|
|
#...
|
|
.*\(sec 1\)\(fl 0x00\)\(ty 0\)\(scl 2\) \(nx 0\) 0x0+000 .*Startup.*
|
|
#pass
|