<div>Hello</div>
<div> </div>
<div>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,</div>
<div>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.</div>
<div> </div>
<div>The current command line and results:</div>
<div> </div>
<div> </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 -Ttext 0x40000 \<br> -o hello_world -e hello_world hello_world.o libstubs.a
\<br> /home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/cpu/ppc4xx/start.o \<br> /home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/board/fsp1/fsp1_pra.o \<br> /home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/board/fsp1/eddr2.o \
<br> -L/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/common -lcommon \<br> -L/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/lib_generic -lgeneric \<br> -L/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/net -lnet \
<br> -L/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/rtc -lrtc \<br> -L/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/board/fsp1 -lfsp1 \<br> -L/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/cpu/ppc4xx -lppc4xx \
<br> -L/home/davis/cvs/mcp4/uboot/mine/u-boot-1.1.2/lib_ppc -lppc \<br> -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]$ </div>
<div> </div>
<div> </div>
<div>The relevant portion of the linker script which defines the __got2_entries variable. </div>
<div> </div>
<div>board/fsp1/u-boot.lds:</div>
<div> </div>
<div>... stuff snipped</div>
<div>__got2_entries = (_FIXUP_TABLE_ - _GOT2_TABLE_) >>2;<br>... stuff snipped</div>
<div> </div>
<div>Any advice on how to apply this to my makefile is appreciated.</div>
<div> </div>
<div>JD</div>
<div> </div>