https://sourceware.org/bugzilla/show_bug.cgi?id=20258
Benjamin Peterson <benjamin at benjamin dot pe> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |benjamin at benjamin dot pe --- Comment #3 from Benjamin Peterson <benjamin at benjamin dot pe> --- This bug still seems to be present, though the assertion error is on a different line these days: $ gold --version GNU gold (GNU Binutils 2.32.51.20190530) 1.16 Copyright (C) 2019 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License version 3 or (at your option) a later version. This program has absolutely no warranty. $ cat > main.c #include <time.h> #include <stdio.h> int main() { printf("%s %s\n", tzname[0], tzname[1]); return 0; } $ gcc -o /dev/null -fuse-ld=gold -Wl,-znocopyreloc -no-pie -fno-PIE main.c gold: internal error in check_non_pic, at ../../binutils-gdb/gold/x86_64.cc:3480 collect2: error: ld returned 1 exit status One thing that has changed, though, is that GNU ld gives a nice error message, at least for my example: $ gcc -o /dev/null -fuse-ld=bfd -Wl,-znocopyreloc -no-pie -fno-PIE main.c /usr/bin/ld.bfd: /tmp/ccOxJ8M1.o: relocation R_X86_64_PC32 against symbol `tzname@@GLIBC_2.2.5' can not be used when making a PDE object; recompile with -fPIC /usr/bin/ld.bfd: final link failed: nonrepresentable section on output collect2: error: ld returned 1 exit status -- 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