https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65780

--- Comment #5 from H.J. Lu <hjl.tools at gmail dot com> ---
I can reproduce it with binutils 2.24 on x86-64:

[hjl@gnu-tools-1 gcc]$ ./xgcc -B./ -fPIE -pie /tmp/a.c 
/export/build/gnu/binutils/release/usr/local/bin/ld: /tmp/ccazj1RF.o:
relocation R_X86_64_PC32 against undefined symbol `optopt@@GLIBC_2.2.5' can not
be used when making a shared object; recompile with -fPIC
/export/build/gnu/binutils/release/usr/local/bin/ld: final link failed: Bad
value
collect2: error: ld returned 1 exit status
[hjl@gnu-tools-1 gcc]$

Reply via email to