can't resolve `_GLOBAL_OFFSET_TABLE_'
Mudeem Iqbal
mudeem@Quartics.com
Sun Feb 20 12:06:00 GMT 2005
hi,
I am trying to cross compile u-boot for mips. Toolchain comprises of the
following packages
binutils-2.15.94.0.2
gcc-3.4.3
glibc-2.3.3
During the cross compulation I get the following error
/home/mudeem/ubootPrj/u-boot-1.1.2/cpu/mips/start.S: Assembler messages:
/home/mudeem/ubootPrj/u-boot-1.1.2/cpu/mips/start.S:241: Error: can't
resolve `_GLOBAL_OFFSET_TABLE_'
{*UND* section} - `L1 1' {.text section}
make: *** [cpu/mips/start.o] Error 1
I have used -fPIC as compile option as well but had no affect. The line
which gives the error is
bal 1f
nop
.word _GLOBAL_OFFSET_TABLE -1f + 4
If I comment out "-1f + 4" compilation goes ok. Anyone has any idea about
it???
Thanks in advance
Mudeem
More information about the Gcc-help
mailing list