https://sourceware.org/bugzilla/show_bug.cgi?id=31795

--- Comment #44 from mintsuki <mintsuki at protonmail dot com> ---
(In reply to H.J. Lu from comment #43)
> (In reply to mintsuki from comment #42)
> > (In reply to H.J. Lu from comment #40)
> > > -Ttext-segment=0x600000000000 should create a binary which is guaranteed 
> > > to
> > > be
> > > loaded at 0x600000000000.
> > 
> > ...as long as it's not a PIE.
> 
> Please read x86-64 psABI:
> 
> https://gitlab.com/x86-psABIs/x86-64-ABI
> 
> PIE is the only way to create a small mode executable loaded at
> 0x600000000000.

Can you not use -mcmodel=large? In any case even if that was the case, it
should be opt-in to make the ELF ET_EXEC, rather than automatic and not
explicitly mentioned in a warning or anything.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to