[U-Boot-Users] maybe just one more bug left in building the examples directory in 1.1.2

John Davis davisjf at gmail.com
Tue Nov 15 11:52:35 CET 2005

 I am getting closer to getting the examples code to build. I have added a
bunch of object files and library files to the link command in the examples
Makefile. However,
I have gotten to the last bug and I don't know how to solve it. Below, it
complains about __got2_entries. I found this defined in our board
directories linker script.
 The current command line and results:
  make[1]: Entering directory `/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2
ppc-linux-ld -g -Ttext 0x40000 \
-o hello_world -e hello_world hello_world.o libstubs.a \
/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/cpu/ppc4xx/start.o \
/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/board/fsp1/fsp1_pra.o \
/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/board/fsp1/eddr2.o \
-L/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/common -lcommon \
-L/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/lib_generic -lgeneric \
-L/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/net -lnet \
-L/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/rtc -lrtc \
-L/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/board/fsp1 -lfsp1 \
-L/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/cpu/ppc4xx -lppc4xx \
-L/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/lib_ppc -lppc \
-L/opt/fld_fakeroot/opt/mcp/ppc/bin/../lib/gcc-lib/ppc-linux/3.3.3 -lgcc
boot-1.1.2/cpu/ppc4xx/start.S:1374: undefined reference to `__got2_entries'
ppc-linux-ld: BFD 20040303 (SuSE Linux) assertion fail
make[1]: *** [hello_world] Segmentation fault
make[1]: *** Deleting file `hello_world'
make[1]: Leaving directory `/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2
make: *** [examples] Error 2
[davis at dyn-9-152-249-44 u-boot-1.1.2]$
  The relevant portion of the linker script which defines the __got2_entries
 ... stuff snipped
__got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;
... stuff snipped
 Any advice on how to apply this to my makefile is appreciated.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.denx.de/pipermail/u-boot/attachments/20051115/cd9fb1c1/attachment.htm 

More information about the U-Boot mailing list