[Top][All Lists]

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

[Bug ld/14862] Assertion fault in binutils-

From: hjl.tools at gmail dot com
Subject: [Bug ld/14862] Assertion fault in binutils-
Date: Tue, 20 Nov 2012 22:09:03 +0000


--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> 2012-11-20 22:09:03 
UTC ---
address@hidden pr14862]$ cat main.c
extern void bar () __attribute__((weak));

main ()
  if (bar)
    bar ();
  return 0;
address@hidden pr14862]$ cat bar.c
#include <stdio.h>

bar ()
  printf ("bar\n");
address@hidden pr14862]$ cat bar.map 
VERS_1 {
  global: bar;
  local: *;
address@hidden 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) assertion fail
collect2: error: ld returned 1 exit status
make: *** [main] Error 1
address@hidden 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.

reply via email to

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