bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/14170] ld: assertion fail /export/gnu/import/git/binutils/bfd/li


From: hjl.tools at gmail dot com
Subject: [Bug ld/14170] ld: assertion fail /export/gnu/import/git/binutils/bfd/linker.c:641
Date: Sat, 26 May 2012 00:35:55 +0000

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:

address@hidden pr14170]$ cat x.c
extern int foo;
extern int bar;

int
_start ()
{
  return foo + bar;
}
address@hidden pr14170]$ cat y.c
int foo __attribute ((visibility("hidden")));
int bar = 1;
address@hidden pr14170]$ cat foo.c
void foo () {}
address@hidden 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
address@hidden 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]