arm-wince-pe-ld problem w/libgcj
Craig A. Vanderborgh
craigv@voxware.com
Thu May 29 20:37:00 GMT 2003
On Thu, 2003-05-29 at 11:32, Nick Clifton wrote:
> Hi Craig,
>
> > The trouble is when I try to link HelloWorld.o against libgcj. I
> > repeatedly see:
> >
> > Error: 24-bit reloc in dll
>
> It appears that the code in ld/pe-dll.c:generate_reloc() is not able
> to handle some of the relocs it is encountering in the input files.
>
>
> > when libgcj.a is processed by ld. This is pretty weird because I see
> > this for, e.g.
> >
> > arm-wince-pe-gcc -v -o HelloWorld HelloWorld.o -lgcj
> >
> > where there aren't even any dll's in the linker input.
>
> What about the C library ? Is this set up as dll ?
>
> > Any ideas would be appreciated.
>
> Do you have a small, reproducible example that demonstrates the
> problem ? Ideally a small object file or two and simple linker
> command line would be best.
>
I do now :^) Here is a tarball-let with a short script that will
demonstrate the problem on arm-wince-pe. In this example the object
that ld dislikes is misc.o, which if from the Boehm garbage collector
(directory boehm-gc of the gcc-3.3 hierarchy) The output from the link
command is thus:
zetar% arm-wince-pe-ld -v -M crt0.o HelloWorld.o misc.o |&more
Error: 24-bit reloc in dll
Error: 24-bit reloc in dll
Error: 24-bit reloc in dll
Error: 24-bit reloc in dll
Error: 24-bit reloc in dll
Error: 24-bit reloc in dll
Error: 24-bit reloc in dll
Error: 24-bit reloc in dll
Error: 24-bit reloc in dll
Error: 24-bit reloc in dll
Error: 24-bit reloc in dll
Error: 24-bit reloc in dll
Error: 24-bit reloc in dll
Error: 24-bit reloc in dll
Error: 24-bit reloc in dll
Error: 24-bit reloc in dll
Error: 24-bit reloc in dll
HelloWorld.o(.text+0x18): In function
`ZN10HelloWorld4mainEP6JArrayIPN4java4lang6StringEE':
/home/craigv/gcj/HelloWorld.java:2: undefined reference to
`_Jv_InitClass'
.
.
.
(lots of unresolved references..)
Nick, thanks a lot for thinking about this and replying. Please let me
know if I can provide further info/assistance.
craig
> Cheers
> Nick
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ldtest.tar.bz2
Type: application/x-bzip
Size: 18145 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20030529/26925ef9/attachment.bin>
More information about the Binutils
mailing list