mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-03 04:12:10 +08:00
54ac0771d7
2009-01-02 H.J. Lu <hongjiu.lu@intel.com> PR ld/9679 * elflink.c (elf_merge_st_other): New. (_bfd_elf_merge_symbol): Use it on skipped weak definitions and hide them if needed. (elf_link_add_object_symbols): Updated. ld/testsuite/ 2009-01-02 H.J. Lu <hongjiu.lu@intel.com> PR ld/9679 * ld-elf/pr9679-1.c: New. * ld-elf/pr9679-2.c: Likewise. * ld-elf/pr9679.rd: Likewise. * ld-elf/shared.exp (build_tests): Add test for libpr9679.so.
14 lines
140 B
C
14 lines
140 B
C
extern int foo (void) __attribute__((weak,__visibility__ ("hidden")));
|
|
|
|
int
|
|
foo (void)
|
|
{
|
|
return 1;
|
|
}
|
|
|
|
int
|
|
bar (void)
|
|
{
|
|
return foo ();
|
|
}
|