help-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

linker script for loading in lower 32 bit address space


From: dhamudeva
Subject: linker script for loading in lower 32 bit address space
Date: 19 Dec 2005 01:49:11 -0800
User-agent: G2/0.2

Hi all,

I am new to this linker scripts. I am trying to build a 64 bit program
on x86-64 arch. I would like to run the program in lower 32 bit address
space, whether it is statically linked or dynamically linked. The
loader should always load the program in lower 32 bit address space so
that I get all the pointer values in 32 bit. And my existing program
needs very minimal change if I am able do this.

I found that gcc on DEC Alpha provide an option which is equivalent to
-taso option of cxx compiler. But this option is not seem to be
available in gcc for x86-64. I also found that it is possible via
linker scripts. Can some one point to me the place or guide me on how
to write such linker script?

Or if there is any other way of doing this, pls do help me. Thanks in
advacne.

Regards,
-Dhamu-



reply via email to

[Prev in Thread] Current Thread [Next in Thread]