http://sourceware.org/bugzilla/show_bug.cgi?id=14862
--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> 2012-11-20 22:09:03
UTC ---
[hjl@gnu-6 pr14862]$ cat main.c
extern void bar () __attribute__((weak));
int
main ()
{
if (bar)
bar ();
return 0;
}
[hjl@gnu-6 pr14862]$ cat bar.c
#include <stdio.h>
void
bar ()
{
printf ("bar\n");
}
[hjl@gnu-6 pr14862]$ cat bar.map
VERS_1 {
global: bar;
local: *;
};
[hjl@gnu-6 pr14862]$ make
gcc -B./ -O -c -o main.o main.c
gcc -B./ -O -fPIC -c -o bar.o bar.c
./ld -shared -o libbar.so bar.o --version-script=bar.map
gcc -B./ -o main -Wl,--as-needed main.o libbar.so -Wl,-R,.
./ld: BFD (GNU Binutils) 2.23.51.20121120 assertion fail
/export/gnu/import/git/binutils/bfd/elf-strtab.c:247
collect2: error: ld returned 1 exit status
make: *** [main] Error 1
[hjl@gnu-6 pr14862]$
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils