Answer to this is to add -fpic in mips_config.mk On Thu, Jun 6, 2013 at 8:02 PM, [email protected] <[email protected]> wrote: > I'm compiling the 8device uboot located here: > https://github.com/8devices/u-boot.git > Using the OpenWRT cross compiler. > > When I get to the end I can't link because of a missing > _GLOBAL_OFFSET_TABLE_ symbol. > > Googling around people say that adding -fno-pic may solve this but I > haven't had any success. > > UNDEF_SYM=`/home/apps/openwrt/staging_dir/toolchain-mipsel_dsp_gcc-4.7.2_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-objdump > -x lib_generic/libgeneric.a board/rt2880/librt2880.a > cpu/ralink_soc/libralink_soc.a lib_mips/libmips.a net/libnet.a > rtc/librtc.a drivers/libdrivers.a common/libcommon.a |sed -n -e > 's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\ > /home/apps/openwrt/staging_dir/toolchain-mipsel_dsp_gcc-4.7.2_uClibc-0.9.33.2/bin/mipsel-openwrt-linux-ld > -Bstatic -T /home/apps/8boot/board/rt2880/u-boot.lds -Ttext 0x80200000 > $UNDEF_SYM cpu/ralink_soc/start.o \ > --start-group lib_generic/libgeneric.a board/rt2880/librt2880.a > cpu/ralink_soc/libralink_soc.a lib_mips/libmips.a net/libnet.a > rtc/librtc.a drivers/libdrivers.a common/libcommon.a --end-group -L > /home/apps/openwrt/staging_dir/toolchain-mipsel_dsp_gcc-4.7.2_uClibc-0.9.33.2/lib/gcc/mipsel-openwrt-linux-uclibc/4.7.2 > \ > -Map u-boot.map -o u-boot > /bin/sh: line 0: [: : integer expression expected > cpu/ralink_soc/start.o: In function `reset': > (.text+0x6b8): undefined reference to `_GLOBAL_OFFSET_TABLE_' > make: *** [u-boot] Error 1 > > > -- > Jon Smirl > [email protected]
-- Jon Smirl [email protected] _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
