bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/14862] Assertion fault in binutils-2.23.51.0.5/bfd/elf-strtab.c:


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

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 ---
address@hidden pr14862]$ cat main.c
extern void bar () __attribute__((weak));

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

void
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) 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
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]