mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
2fdd743f6d
* options.cc (General_options::parse_exclude_libs). Fix a comment. (General_options::check_excluded_libs): Strip off directories in archive name before matching like GNU ld does. * testsuite/Makefile.am (MOSTLYCLEANFILES, exclude_libs_test_DEPENDENCIES): Add alt/libexclude_libs_test_3.a (exclude_libs_test_LDFLAGS): Add linker option -Wl,--exclude-libs,libexclude_libs_test_3 (exclude_libs_test_LADD): Add alt/libexclude_libs_test_3.a as an explicit archive without using -l. (alt/libexclude_libs_test_3.a): New make rule. * testsuite/Makefile.in: Regenerate. * testsuite/exclude_libs_test.c : Declare lib3_default(). (main): Call it. * exclude_libs_test.sh: Add tests for alt/exclude_libs_test_3.a. * exclude_libs_test_3.c: New file.
15 lines
263 B
C
15 lines
263 B
C
extern void lib1_default (void);
|
|
extern void lib2_default (void);
|
|
extern void lib3_default (void);
|
|
|
|
int
|
|
main (int argc __attribute__ ((unused)),
|
|
char** argv __attribute__ ((unused)))
|
|
{
|
|
lib1_default ();
|
|
lib2_default ();
|
|
lib3_default ();
|
|
return 0;
|
|
}
|
|
|