This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: x86-64 medium memory model
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Leif Ekblad <leif at rdos dot net>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Wed, 12 Dec 2012 12:59:19 -0800
- Subject: Re: x86-64 medium memory model
- References: <CAAkRFZLMofkNZs9NUkfUDnMzVd5YsVhbx0xsb8jZuXy_eqEj6w@mail.gmail.com> <20121212163722.GA21037@atrey.karlin.mff.cuni.cz> <CAAkRFZKBa3GtEh=mmWiAmy-oGffYFxrmWetpaz+pKYSG1zSvSw@mail.gmail.com> <20121212183036.GB5303@atrey.karlin.mff.cuni.cz> <m2ehivdslr.fsf@firstfloor.org> <25AF4112D5BA47A390D31A2264A7D11A@AMDP6>
On Wed, Dec 12, 2012 at 12:56 PM, Leif Ekblad <leif@rdos.net> wrote:
> I'm working on OS-adaptations for an OS that would use x86-64 applications
> that are located above 4G, but not in the upper area. Binutils provide a
> function to be able to set the start of text to above 4G, but there are
> problems with GCC when using this memory model.
>
Have you tried PIE with small model? You can place your
binaries above 4G with better performance.
--
H.J.