--- Additional Comments From dev at sw dot ru 2010-05-05 13:21 ---
Created an attachment (id=4768)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4768&action=view)
test case
This is an extracted test case.
32bit code is built with nasm (see build script)
64bit is built using gcc.
--- Additional Comments From hjl dot tools at gmail dot com 2010-05-05
14:07 ---
(In reply to comment #3)
> Created an attachment (id=4768)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=4768&action=view)
> test case
>
> This is an extracted test case.
> 32bit code is built with
--- Additional Comments From dev at sw dot ru 2010-05-05 15:24 ---
> You have
>
> :
>0: a1 00 00 00 00 mov0x0,%eax 1: R_X86_64_32 var
>5: c3 ret
>
> Since you are building PIE, which can be loaded anywhere in
> 64bit addres
--- Additional Comments From hjl dot tools at gmail dot com 2010-05-05
15:39 ---
(In reply to comment #5)
> > You have
> >
> > :
> >0: a1 00 00 00 00 mov0x0,%eax 1: R_X86_64_32 var
> >5: c3 ret
> >
> > Since yo
--- Additional Comments From dev at sw dot ru 2010-05-05 15:44 ---
> You should checkout how other x86-64 low-level loaders deal with it.
They just don't have cross 32/64 bit relocations. In our case we badly need
them
:(
--
http://sourceware.org/bugzilla/show_bug.cgi?id=11549
-
--- Additional Comments From hjl dot tools at gmail dot com 2010-05-05
15:59 ---
(In reply to comment #7)
> > You should checkout how other x86-64 low-level loaders deal with it.
>
> They just don't have cross 32/64 bit relocations. In our case we badly need
> them
> :(
What you are