Sebastian Andersson[SMTP:email@example.com] wrote:
> Hi there.
> I must have made some stupid misstake, but I can't figure out what.
> I unpacked gcc-188.8.131.52 into a directory,
> patched it with the gcc-184.108.40.206.pic-diff (version 060999) and then
> patched it with:
> patch -p3 < gcc-220.127.116.11-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.
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.
This message resent by the firstname.lastname@example.org list server http://www.uClinux.com/
This archive was generated by hypermail 2b30 : Sun Apr 07 2002 - 00:01:36 EST