[v3] use -Wl,-z,relro if possible
Benjamin Kosnik
bkoz@redhat.com
Fri Jan 13 19:08:00 GMT 2006
> On x86-linux, stock binutils 2.16.1, today I'm seeing a bunch of new
> failures in 21_string:
[snip]
> which I suspect could be related to the recent ld changes: sorry, I
> don't know at the moment which one. For instance, for char/6.cc:
>
> /usr/bin/ld:
> testsuite_abi.o(.text._ZNSs12_S_constructIPcEES0_T_S1_RKSaIcESt20forward_iterator_tag[char*
> std::basic_string<char, std::char_traits<char>, std::allocator<char>
> >::_S_construct<char*>(char*, char*, std::allocator<char> const&,
> std::forward_iterator_tag)]+0x8b): unresolvable relocation against
> symbol `std::__throw_logic_error(char const*)@@GLIBCXX_3.4'
> /usr/bin/ld: final link failed: Nonrepresentable section on output
> collect2: ld returned 1 exit status
> compiler exited with status 1
>
> Can you have a look?
Sure.
I tested with:
GNU ld version 2.15.92.0 20040927
GNU ld version 2.15.94.0.2.2 20041220
GNU ld version 060113 20060113
GNU ld version 2.16.1
Cannot reproduce... I don't see any new fails on gcc-testresults.
Can you double check? If there's something wrong, I'd like to do
something more sane then the following to disable...
best,
benjamin
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: p.20060113-1
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20060113/19d6e17b/attachment.ksh>
More information about the Libstdc++
mailing list