can't resolve `_GLOBAL_OFFSET_TABLE_'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux