[uCsimm] Re: m68k-pic-coff-gcc with 32 bit patch.

From: Erwin Authried (eauth@softsys.co.at)
Date: Tue Jun 27 2000 - 12:43:46 EDT


Sebastian Andersson[SMTP:sa@hogia.net] wrote:
> Hi there.
> I must have made some stupid misstake, but I can't figure out what.
>
> I unpacked gcc-2.7.2.3 into a directory,
> patched it with the gcc-2.7.2.3.pic-diff (version 060999) and then
> patched it with:
> patch -p3 < gcc-2.7.2.3-pic-32bit.diff
>
> patch didn't complain about anything but the change to
> the uClinux-pic.ld file.
>
> Then I configured gcc with:
> ./configure --prefix=/opt/uClinux --target=m68k-pic-coff
>
> did a make LANGUAGES=c
> and make LANGUAGES=c install
>
> after this old programs no longer compiles:
> m68k-pic-coff-gcc -O2 -fomit-frame-pointer -fpic -D__USE_BSD -o agetty agetty.o
> agetty.o(.text+0x194):agetty.c: relocation truncated to fit: DISP16 data
> agetty.o(.text+0x1a6):agetty.c: relocation truncated to fit: DISP16 data
> ..
>
> Compiling a new program with -fPIC doesn't work any better.
>
> Regards,
> /Sebastian
>
>

Hello Sebastian,

Jesus, its true! My last patch that should place constant data into the data section
doesn't work as expected. If string constants are used in the code, they are placed
in the data section, but the generated code adresses them in the text section,
leading to the errors that you described. I have restored the old version of the patch,
please download this version from http://www.home.at/~eauth/uclinux/. Thank
you very much for the hint.

Regards,

Erwin

This message resent by the ucsimm@uclinux.com list server http://www.uClinux.com/



This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:36 EST