mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
1240be6b7d
PR 17287 bfd/ * elflink.c (on_needed_list): Only consider libraries that have been loaded. ld/ * ld.texinfo (--as-needed): Clarify that references from libraries must be from needed libraries. ld/testsuite/ * ld-plugin/needed3.c: New file. * ld-elf/shared.exp: Add needed3 test.
9 lines
63 B
C
9 lines
63 B
C
extern void foo (void);
|
|
|
|
int
|
|
main ()
|
|
{
|
|
foo ();
|
|
return 0;
|
|
}
|