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

Re: AVM Fritz!Card PCI (v2.0) / Fritz!DSL



Hi Lennart,

Am Montag, 21. März 2005 15:40 schrieb Lennart Sorensen:

> > than I used "objcopy":
> > objcopy -v -O elf64-x86-64 fcpci-lib.o lib/fcpci-lib.o
> > copy from fcpci-lib.o(elf32-i386) to lib/fcpci-lib.o(elf64-x86-64)
>
> Interesting idea.  How does that change the size of points in the object
> code?
I think my idea was crazy;) because with the command I changed the table with 
the exports:
from:
objdump -x fcpci-lib.o.org | tail
00004c20 R_386_32          .rodata
00004c24 R_386_32          .rodata
00004c28 R_386_32          .rodata
00004c2c R_386_32          .rodata
00004c30 R_386_32          .rodata
00004c34 R_386_32          .rodata
00004c38 R_386_32          .rodata.str1.1
00004c3c R_386_32          .rodata.str1.1
to:
objdump -x lib/fcpci-lib.o | tail
0000000000004c20 R_X86_64_32       .rodata
0000000000004c24 R_X86_64_32       .rodata
0000000000004c28 R_X86_64_32       .rodata
0000000000004c2c R_X86_64_32       .rodata
0000000000004c30 R_X86_64_32       .rodata
0000000000004c34 R_X86_64_32       .rodata
0000000000004c38 R_X86_64_32       .rodata.str1.1
0000000000004c3c R_X86_64_32       .rodata.str1.1

but, I guess, the executed code stays 32-bit and the access to the memory 
wasn't changed to 64-bit access.

>
> >   LD [M]  /home/pavel/fritz/src/fcpci.o
> > ld: /home/pavel/fritz/src/fcpci.o: relocation size mismatch
> > in /var/lib/fritz/fcpci-lib.o section .text
> > ld: final link failed: Archive object file in wrong format
>
> Probably caused by 32bit code trying to get linked into 64bit code.

I guess the pointers are now 64-bit long and don't fit in the places in the 
32-bit executing code where before the converting were the 32-bit pointers.
>
> > Because I don't have any experience with the structure of obj-files could
> > anybody give me a hint what do I do wrong?
>
> If something involves a binary only chunk of code and it only comes in
> 32bit, then you aren't running it in a 64bit driver.
>
Is anywhere how-to for adapting the 32-bit code to 64-bit? Or anything 
regarding the theme?

> Len Sorensen
Thanks for the answer.

BTW: I've got the answer from AVM, that the driver for my card will be 
available in the Q3 2005.

Pavel



Reply to: