From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timur Tabi Date: Tue, 15 Jun 2010 14:02:07 -0500 Subject: [U-Boot] [PATCH] examples/standalone: Remove relocation compile flags for PowerPC In-Reply-To: <1276572325-12642-1-git-send-email-ptyser@xes-inc.com> References: <1276572325-12642-1-git-send-email-ptyser@xes-inc.com> Message-ID: <4C17CE2F.9050208@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Peter Tyser wrote: > Previously, standalone applications were compiled with gcc flags that > produced relocatable executables on the PowerPC architecture (eg with the > -mrelocatable and -fPIC flags). There's no reason for these applications > to be fully relocatable at this time since no relocation fixups are > performed on standalone applications. This didn't work for me. The entry point for my application in 401b4. Here's the build output: make[1]: Entering directory `/home/b04825/git/u-boot.4737/examples/standalone' powerpc-linux-gnu-gcc -g -Os -mrelocatable -fPIC -ffixed-r14 -meabi -D__KERNEL__ -DTEXT_BASE=0xeff80000 -DRESET_VECTOR_ADDRESS=0xeffffffc -I/home/b04825/git/u-boot.4737/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/freescale/usr/local/gcc-4.3.74-eglibc-2.8.74-6/powerpc-linux-gnu/bin/../lib/gcc/powerpc-linux-gnu/4.3.2/include -pipe -DCONFIG_PPC -D__powerpc__ -ffixed-r2 -Wa,-me500 -msoft-float -mno-string -mspe=yes -mno-spe -Wall -Wstrict-prototypes -fno-stack-protector -o flash_wp.o flash_wp.c -c powerpc-linux-gnu-ar crv libstubs.a ppc_longjmp.o ppc_setjmp.o stubs.o r - ppc_longjmp.o r - ppc_setjmp.o r - stubs.o powerpc-linux-gnu-ld -g -Ttext 0x40000 \ -o hello_world -e hello_world hello_world.o libstubs.a \ -L/opt/freescale/usr/local/gcc-4.3.74-eglibc-2.8.74-6/powerpc-linux-gnu/bin/../lib/gcc/powerpc-linux-gnu/4.3.2 -lgcc powerpc-linux-gnu-objcopy -O srec hello_world hello_world.srec 2>/dev/null powerpc-linux-gnu-ld -g -Ttext 0x40000 \ -o flash_wp -e flash_wp flash_wp.o libstubs.a \ -L/opt/freescale/usr/local/gcc-4.3.74-eglibc-2.8.74-6/powerpc-linux-gnu/bin/../lib/gcc/powerpc-linux-gnu/4.3.2 -lgcc powerpc-linux-gnu-objcopy -O srec flash_wp flash_wp.srec 2>/dev/null powerpc-linux-gnu-ld -g -Ttext 0x40000 \ -o sched -e sched sched.o libstubs.a \ -L/opt/freescale/usr/local/gcc-4.3.74-eglibc-2.8.74-6/powerpc-linux-gnu/bin/../lib/gcc/powerpc-linux-gnu/4.3.2 -lgcc powerpc-linux-gnu-objcopy -O srec sched sched.srec 2>/dev/null powerpc-linux-gnu-objcopy -O binary hello_world hello_world.bin 2>/dev/null powerpc-linux-gnu-objcopy -O binary flash_wp flash_wp.bin 2>/dev/null powerpc-linux-gnu-objcopy -O binary sched sched.bin 2>/dev/null make[1]: Leaving directory `/home/b04825/git/u-boot.4737/examples/standalone'