bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/23162] New: assertion fail binutils/bfd/elf32-i386.c:3953


From: hjl.tools at gmail dot com
Subject: [Bug ld/23162] New: assertion fail binutils/bfd/elf32-i386.c:3953
Date: Thu, 10 May 2018 19:18:49 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=23162

            Bug ID: 23162
           Summary: assertion fail binutils/bfd/elf32-i386.c:3953
           Product: binutils
           Version: 2.31 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: hjl.tools at gmail dot com
        Depends on: 23161
  Target Milestone: ---

address@hidden bss-1]$ cat x.c
char *heap_start;
extern char *__bss_start;

void my_init_stacktrace()
{
  heap_start = (char*) &__bss_start;
}

int
main ()
{
  my_init_stacktrace ();
  return 0;
}
address@hidden bss-1]$ cat foo.c
void
foo (void)
{
}
address@hidden bss-1]$ cat libfoo.map 
FOO {
  global:
    *;
};
address@hidden bss-1]$ make
gcc -m32 -fpie -O2    -c -o x.o x.c
gcc -m32 -fpie -O2  -fpic   -c -o foo.o foo.c
gcc -m32 -shared -o libfoo.so foo.o -Wl,--version-script,libfoo.map
gcc -m32 -pie -o x x.o libfoo.so -Wl,-R.
/usr/local/bin/ld: BFD (Linux/GNU Binutils) 2.30.51.0.1.20180507 assertion fail
/net/gnu-4/export/linux/src/binutils/binutils/bfd/elf32-i386.c:3953
collect2: error: ld returned 1 exit status
make: *** [Makefile:15: x] Error 1
address@hidden bss-1]$


Referenced Bugs:

https://sourceware.org/bugzilla/show_bug.cgi?id=23161
[Bug 23161] __bss_start, _end and _edata aren't marked as hidden
-- 
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]