http://sourceware.org/bugzilla/show_bug.cgi?id=14170

--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> 2012-05-26 00:35:55 
UTC ---
A small testcase:

[hjl@gnu-6 pr14170]$ cat x.c
extern int foo;
extern int bar;

int
_start ()
{
  return foo + bar;
}
[hjl@gnu-6 pr14170]$ cat y.c
int foo __attribute ((visibility("hidden")));
int bar = 1;
[hjl@gnu-6 pr14170]$ cat foo.c
void foo () {}
[hjl@gnu-6 pr14170]$ make
cc    -c -o x.o x.c
cc -shared -o libfoo.so -fPIC foo.c
cc    -c -o y.o y.c
./ld -o x x.o libfoo.so y.o
./ld: BFD (GNU Binutils) 2.22.52.20120525 assertion fail
/export/gnu/import/git/binutils/bfd/linker.c:641
make: *** [x] Error 1
[hjl@gnu-6 pr14170]$

-- 
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
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to