mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-09 04:21:49 +08:00
d023c380db
bfd/ 2010-01-07 H.J. Lu <hongjiu.lu@intel.com> PR ld/11138 * elflink.c (elf_link_check_versioned_symbol): Don't abort if a symbol referenced by DSO is is defined in a non-shared object and forced local. ld/testsuite/ 2010-01-07 H.J. Lu <hongjiu.lu@intel.com> PR ld/11138 * ld-elf/pr11138-1.c: New. * ld-elf/pr11138-1.map: Likewise. * ld-elf/pr11138-2.c: Likewise. * ld-elf/pr11138-2.map: Likewise. * ld-elf/pr11138.out: Likewise. * ld-elf/shared.exp (build_tests): Add libpr11138-1.so and libpr11138-2.o. (run_tests): Add 2 tests for PR ld/11138.
18 lines
143 B
C
18 lines
143 B
C
#include <stdio.h>
|
|
|
|
extern void foo (void);
|
|
|
|
void
|
|
bar (void)
|
|
{
|
|
printf ("MAIN bar\n");
|
|
}
|
|
|
|
int
|
|
main (void)
|
|
{
|
|
bar ();
|
|
foo ();
|
|
return 0;
|
|
}
|