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: --- [hjl@gnu-skx-1 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; } [hjl@gnu-skx-1 bss-1]$ cat foo.c void foo (void) { } [hjl@gnu-skx-1 bss-1]$ cat libfoo.map FOO { global: *; }; [hjl@gnu-skx-1 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 [hjl@gnu-skx-1 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. _______________________________________________ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils