This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: x86-64 and large code model questions/bugs
On Tue, 2009-01-27 at 12:31 +0100, Andi Kleen wrote:
> Steve Ellcey <sje@cup.hp.com> writes:
>
> > because the crt files can't handle the large code model if they aren't
> > compiled with this option.
>
> My understanding is that this would likely break old linkers which
> didn't do all large model relocations correctly. Right now they
> work as long as you don't need the large model.
Are these old GNU linkers or old system/non-GNU linkers? We often
require a certain minimum version of binutils for GCC to work.
> BTW the standard way to work around large model issues if your
> code isn't really that large but you just want to move it is to move
> parts of the programs into a .so and compile -fPIC. large is only
> really needed if you really have gigantic programs (but then gcc
> tends to be also quite slow on them)
It's not really a gigantic program, it is a program where he wants to
put all his text in the upper address range (using the --section-start
option of the GNU linker).
Steve Ellcey
sje@cup.hp.com