public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [RFC] Remove default option -fpie for projects that use -T linker options
@ 2022-04-04 15:06 Carlos Bilbao
  2022-04-04 15:28 ` Koning, Paul
  0 siblings, 1 reply; 2+ messages in thread
From: Carlos Bilbao @ 2022-04-04 15:06 UTC (permalink / raw)
  To: gcc-patches

Projects that rely on a linker script usually specify a memory location 
where the executable should be placed. This directly contradicts the 
default option -fpie for position independent executables. In fact, using
PIE generates a GOT, which might be undesirable for developers that need
control over the generated sections.

Would it be positive to assume -fno-pie on these situations?

Signed-off-by: Carlos Bilbao <carlos.bilbao@amd.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [RFC] Remove default option -fpie for projects that use -T linker options
  2022-04-04 15:06 [RFC] Remove default option -fpie for projects that use -T linker options Carlos Bilbao
@ 2022-04-04 15:28 ` Koning, Paul
  0 siblings, 0 replies; 2+ messages in thread
From: Koning, Paul @ 2022-04-04 15:28 UTC (permalink / raw)
  To: Carlos Bilbao; +Cc: GCC Patches

I'm not sure if it is valid to assume that a linker script "usually" specifies a fixed memory location.  

	paul


> On Apr 4, 2022, at 11:06 AM, Carlos Bilbao via Gcc-patches <gcc-patches@gcc.gnu.org> wrote:
> 
> Projects that rely on a linker script usually specify a memory location 
> where the executable should be placed. This directly contradicts the 
> default option -fpie for position independent executables. In fact, using
> PIE generates a GOT, which might be undesirable for developers that need
> control over the generated sections.
> 
> Would it be positive to assume -fno-pie on these situations?
> 
> Signed-off-by: Carlos Bilbao <carlos.bilbao@amd.com>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-04 15:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-04 15:06 [RFC] Remove default option -fpie for projects that use -T linker options Carlos Bilbao
2022-04-04 15:28 ` Koning, Paul

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).