<div>Hello</div>
<div>&nbsp;</div>
<div>I am getting closer to getting the examples code to build.&nbsp; I have added a bunch of object files and library files to the link command in the examples Makefile.&nbsp; However,</div>
<div>I have gotten to the last bug and I don't know how to solve it.&nbsp; Below, it complains about __got2_entries.&nbsp; I found this defined in our board directories linker script.</div>
<div>&nbsp;</div>
<div>The current command line and results:</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>make[1]: Entering directory `/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/examples<span class="literal">'<br></span>ppc-linux-ld -g&nbsp; -Ttext 0x40000 \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -o hello_world -e hello_world hello_world.o libstubs.a
 \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/cpu/ppc4xx/start.o \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/board/fsp1/fsp1_pra.o \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/board/fsp1/eddr2.o \
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -L/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/common -lcommon&nbsp; \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -L/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/lib_generic -lgeneric&nbsp; \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -L/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/net -lnet \
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -L/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/rtc -lrtc \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -L/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/board/fsp1 -lfsp1 \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -L/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/cpu/ppc4xx -lppc4xx&nbsp; \
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -L/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/lib_ppc -lppc&nbsp; \<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -L/opt/fld_fakeroot/opt/mcp/ppc/bin/../lib/gcc-lib/ppc-linux/3.3.3 -lgcc<br>/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/cpu/ppc4xx/start.o(.text+0x25ae):/home/davis/cvs/mcp4/uboot/mine/u-
boot-1.1.2/cpu/ppc4xx/start.S:1374: undefined reference to `__got2_entries<span class="literal">'<br></span>ppc-linux-ld: BFD 2.15.90.0.1.1 20040303 (SuSE Linux) assertion fail ../../bfd/elf32-ppc.c:5645<br>make[1]: *** [hello_world] Segmentation fault
<br>make[1]: *** Deleting file `hello_world<span class="literal">'<br></span>make[1]: Leaving directory `/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/examples<span class="literal">'<br></span>make: *** [examples] Error 2<br>
[davis@dyn-9-152-249-44 u-boot-1.1.2]$&nbsp; </div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>The relevant portion of the linker script which defines the __got2_entries variable. </div>
<div>&nbsp;</div>
<div>board/fsp1/u-boot.lds:</div>
<div>&nbsp;</div>
<div>... stuff snipped</div>
<div>__got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) &gt;&gt;2;<br>... stuff snipped</div>
<div>&nbsp;</div>
<div>Any advice on how to apply this to my makefile is appreciated.</div>
<div>&nbsp;</div>
<div>JD</div>
<div>&nbsp;</div>