[Bug target/89096] [8/9/10 regression] AIX 7 linker rejects _<filename>.ro_ sections by default
andrew at ishiboo dot com
gcc-bugzilla@gcc.gnu.org
Tue Mar 31 15:47:03 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89096
--- Comment #27 from Andrew Paprocki <andrew at ishiboo dot com> ---
60 second reproduction steps:
$ curl -O https://ftp.pcre.org/pub/pcre/pcre-8.42.tar.gz
$ tar zxvf pcre-8.42.tar.gz && cd pcre-8.42
$ CC="gcc-7" \
CXX="g++-7" \
CFLAGS="-maix32 -pthread" \
CXXFLAGS="-maix32 -pthread" \
LDFLAGS="-Wl,-bsvr4" \
./configure && make -j
It will fail:
ld: 0711-308 SEVERE ERROR: Object
pcre_stringpiece_unittest-pcre_stringpiece_unittest.o, csect
<_pcrestringpieceunittest.ro_>
The csect is part of the .text section.
ld: 0711-308 SEVERE ERROR: Object
pcre_scanner_unittest-pcre_scanner_unittest.o, csect <_pcrescannerunittest.ro_>
The csect is part of the .text section.
collect2: error: ld returned 12 exit status
collect2: error: ld returned 12 exit status
ld: 0711-308 SEVERE ERROR: Object pcrecpp_unittest-pcrecpp_unittest.o, csect
<_pcrecppunittest.ro_>
The csect is part of the .text section.
collect2: error: ld returned 12 exit status
More information about the Gcc-bugs
mailing list