Relocatable linking on x86-64 for i386
Ehud Karni
ehud at unix.mvs.co.il
Tue Apr 5 10:58:49 IDT 2011
On Mon, 4 Apr 2011 23:19:43 -0700, Valery Reznic wrote:
>
> --- On Mon, 4/4/11, Ehud Karni <ehud at unix.mvs.co.il> wrote:
>
> > In fact you can do: gcc -m32 file1.o file2.o -o output.o
>
> I vaguely remember that I tried to use gcc instead of ld long time ago, but gcc gave me some trouble - may be link failed after that, may be run-time problems.
Just to state the facts. I use `gcc -m32' regularly to create 32 bit
programs on 64 bit systems. I checked the ld replacement command
specifically, and it worked without any problems.
Ehud.
--
Ehud Karni Tel: +972-3-7966-561 /"\
Mivtach - Simon Fax: +972-3-7976-561 \ / ASCII Ribbon Campaign
Insurance agencies (USA) voice mail and X Against HTML Mail
http://www.mvs.co.il FAX: 1-815-5509341 / \
GnuPG: 98EA398D <http://www.keyserver.net/> Better Safe Than Sorry
More information about the Linux-il
mailing list