On Tue, Apr 5, 2011 at 11:27 AM, Valery Reznic wrote:
>
> Create programs using gcc -m32 is fine.
> But I use ld command not to create the program, but to create object file
>
> While both
> ld -m elf_i386 file1.o file2.o -o output.o
> and
> gcc -m32 file1.o file2.o -o output.o
>
> create EXECUTAB
--- On Tue, 4/5/11, Ehud Karni wrote:
> From: Ehud Karni
> Subject: Re: Relocatable linking on x86-64 for i386
> To: valery_rez...@yahoo.com
> Cc: g...@minantech.com, shac...@shemesh.biz, linux-il@cs.huji.ac.il
> Date: Tuesday, April 5, 2011, 10:58 AM
> On Mon, 4 Apr 2
On Mon, 4 Apr 2011 23:19:43 -0700, Valery Reznic wrote:
>
> --- On Mon, 4/4/11, Ehud Karni 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 th
--- On Mon, 4/4/11, Ehud Karni wrote:
> From: Ehud Karni
> Subject: Re: Relocatable linking on x86-64 for i386
> To: g...@minantech.com
> Cc: valery_rez...@yahoo.com, shac...@shemesh.biz, linux-il@cs.huji.ac.il
> Date: Monday, April 4, 2011, 5:21 PM
> On Mon, 4 Apr
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
> > > > ld --output-format elf32-i386 -r file1.o
> file2.o -o
> > > output.o
> > > > ld: Relocatable linking with relocations
> from format
> > > elf32-i386 (file1.o) to format elf32-i386
> (output.o) is not
> > > supported
> > > >
>
> ld -m elf_i386 -r file1.o file2.o -o output.o
Thanks, it wo
On Mon, Apr 04, 2011 at 02:06:18AM -0700, Valery Reznic wrote:
>
>
> --- On Mon, 4/4/11, Shachar Shemesh wrote:
>
> > From: Shachar Shemesh
> > Subject: Re: Relocatable linking on x86-64 for i386
> > To: "Valery Reznic"
> > Cc: linux-il@cs.huji.a
On Mon, Apr 4, 2011 at 10:15 AM, Valery Reznic wrote:
> Hello. I am trying to make relocatable linking on x86-64 box for objects in
> format i386
>
> Naive
>
> ld -r file1.o file2.o -o output.o
>
> produce
> ld: Relocatable linking with relocations from format elf32-i386 (file1.o)
> to format elf6
--- On Mon, 4/4/11, Shachar Shemesh wrote:
> From: Shachar Shemesh
> Subject: Re: Relocatable linking on x86-64 for i386
> To: "Valery Reznic"
> Cc: linux-il@cs.huji.ac.il
> Date: Monday, April 4, 2011, 11:13 AM
> On 04/04/11 10:15, Valery Reznic
> 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
Naive
ld -r file1.o file2.o -o output.o
produce
ld: Relocatable linking with relocations from format elf32-i386 (file1.o) to
format elf64-x86-64 (output.o) is not s
Hello. I am trying to make relocatable linking on x86-64 box for objects in
format i386
Naive
ld -r file1.o file2.o -o output.o
produce
ld: Relocatable linking with relocations from format elf32-i386 (file1.o) to
format elf64-x86-64 (output.o) is not supported
But even when I add --oformat si
11 matches
Mail list logo