This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
can't resolve `_GLOBAL_OFFSET_TABLE_'
- From: Mudeem Iqbal <mudeem at Quartics dot com>
- To: "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Date: Fri, 18 Feb 2005 15:24:10 +0500
- Subject: can't resolve `_GLOBAL_OFFSET_TABLE_'
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