This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]