Relocatable linking on x86-64 for i386
Ehud Karni
ehud at unix.mvs.co.il
Mon Apr 4 17:21:38 IDT 2011
On Mon, 4 Apr 2011 13:15:39 Gleb Natapov wrote:
>
> > > On 04/04/11 10:15, Valery Reznic wrote:
> > > > Hello. I am trying to make relocatable linking on
> > > x86-64 box for objects in format i386
>
> ld -m elf_i386 -r file1.o file2.o -o output.o
If you use gcc for compiling you can do gcc -m32 <arguments>
to compile and link.
In fact you can do: gcc -m32 file1.o file2.o -o output.o
instead of calling ld directly.
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