>
> the Gentoo dev list. I'd normally just link to a mail archive, but it's
>> too new to have been archived yet. Here's a copy of the proposed news
>> item. Note the example error message about relocation against .rodata
>>
>>
It's a feature, not a bug. There's a news item being worked on in
> the Gentoo dev list. I'd normally just link to a mail archive, but it's
> too new to have been archived yet. Here's a copy of the proposed news
> item. Note the example error message about relocation against .rodata
>
>
I'm not so sure. Whether -fPIC is required or not depends on too
> many factors and adding it when not needed will bring harm.
>
> Are you using hardened?
>
Yes, its on. I haven't hit the error again so it doesnt appear to be too
much of an issue.
On Mon, May 08, 2017 at 08:46:54AM +1000, Adam Carter wrote
> Since an update to the default USE flags on gcc 6 turned on PIE and SSP,
> i'm getting these errors;
>
> /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:
> atof-generic.o: relocation R_X86_64_32 against `.r
On Tue, 9 May 2017 14:36:09 +1000 Adam Carter wrote:
> Shared objects often need -fPIC for proper relocations when
>
> > linking, just add it when you're told to. It allows COW strategy
> > for DLOs but at the cost of extra CPU register and some slowdown.
> >
> >
> Shouldn't this be in the ebuilds
Shared objects often need -fPIC for proper relocations when
> linking, just add it when you're told to. It allows COW strategy
> for DLOs but at the cost of extra CPU register and some slowdown.
>
>
Shouldn't this be in the ebuilds? eg.
if gcc:6[pie];
then CFLAGS=${CFLAGS} -fPIC
On Mon, 8 May 2017 08:46:54 +1000 Adam Carter wrote:
> Since an update to the default USE flags on gcc 6 turned on PIE and SSP,
> i'm getting these errors;
>
> /usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:
> atof-generic.o: relocation R_X86_64_32 against `.rodata'
Since an update to the default USE flags on gcc 6 turned on PIE and SSP,
i'm getting these errors;
/usr/lib/gcc/x86_64-pc-linux-gnu/6.3.0/../../../../x86_64-pc-linux-gnu/bin/ld:
atof-generic.o: relocation R_X86_64_32 against `.rodata' can not be used
when making a shared object; recompile with -fP
8 matches
Mail list logo