Re: [gentoo-user] gcc 6 PIE use flag

2017-05-14 Thread Adam Carter
> > 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 >> >>

Re: [gentoo-user] gcc 6 PIE use flag

2017-05-10 Thread Adam Carter
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 > >

Re: [gentoo-user] gcc 6 PIE use flag

2017-05-10 Thread Adam Carter
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.

Re: [gentoo-user] gcc 6 PIE use flag

2017-05-09 Thread Walter Dnes
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

Re: [gentoo-user] gcc 6 PIE use flag

2017-05-09 Thread Andrew Savchenko
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

Re: [gentoo-user] gcc 6 PIE use flag

2017-05-08 Thread Adam Carter
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

Re: [gentoo-user] gcc 6 PIE use flag

2017-05-08 Thread Andrew Savchenko
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'

[gentoo-user] gcc 6 PIE use flag

2017-05-07 Thread Adam Carter
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