[patch ob] Disallow -pie and -static
Mike Frysinger
vapier@gentoo.org
Mon Feb 27 18:21:00 GMT 2012
More information about the Binutils mailing list
Mon Feb 27 18:21:00 GMT 2012
- Previous message (by thread): [patch ob] Disallow -pie and -static
- Next message (by thread): [patch ob] Disallow -pie and -static
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Monday 27 February 2012 12:41:22 Ian Lance Taylor wrote: > Mike Frysinger writes: > > On Tuesday 14 February 2012 19:48:43 Cary Coutant wrote: > >> I'm committing this patch under the trivial and obvious rule. If -pie > >> and -static are both given together, gold will currently issue an > >> internal error. > > > > shouldn't there be a bug to fix this then ? there's no technical reason > > for disallowing static pie's from the perspective of the linker ... > > On GNU/Linux a PIE is just an executable shared library. How would you > implement a statically linked PIE? from what perspective ? if i build all my code with -fPIE (including libc.a and friends), then link with -static -pie, i should have an ELF that doesn't need shared libraries nor runtime ldso and can be run from any address. conceptually, i don't see why static PIE is anything special from static non- PIE. maybe i'm missing something fundamental. -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. URL: <https://sourceware.org/pipermail/binutils/attachments/20120227/3c04fcf8/attachment.sig>
- Previous message (by thread): [patch ob] Disallow -pie and -static
- Next message (by thread): [patch ob] Disallow -pie and -static
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list