From: Timur Tabi <timur@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] examples/standalone: Remove relocation compile flags for PowerPC
Date: Tue, 15 Jun 2010 14:02:07 -0500 [thread overview]
Message-ID: <4C17CE2F.9050208@freescale.com> (raw)
In-Reply-To: <1276572325-12642-1-git-send-email-ptyser@xes-inc.com>
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'
next prev parent reply other threads:[~2010-06-15 19:02 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-15 3:25 [U-Boot] [PATCH] examples/standalone: Remove relocation compile flags for PowerPC Peter Tyser
2010-06-15 19:02 ` Timur Tabi [this message]
2010-06-15 19:05 ` Timur Tabi
2010-06-15 19:08 ` Peter Tyser
2010-06-15 19:20 ` Timur Tabi
2010-06-15 19:34 ` Peter Tyser
2010-06-15 19:36 ` Peter Tyser
2010-06-15 19:45 ` Timur Tabi
2010-06-15 20:15 ` Peter Tyser
2010-06-15 20:28 ` Wolfgang Denk
2010-06-15 20:39 ` Peter Tyser
2010-06-15 20:51 ` Wolfgang Denk
2010-06-16 3:37 ` Peter Tyser
2010-06-16 14:02 ` Timur Tabi
2010-06-16 14:51 ` Wolfgang Denk
2010-09-10 19:49 ` Wolfgang Denk
2010-09-10 19:53 ` Timur Tabi
2010-09-10 20:07 ` Peter Tyser
2010-09-10 21:10 ` Wolfgang Denk
2010-09-12 22:38 ` [U-Boot] [PATCH] examples/standalone: Use gcc's -fno-toplevel-reorder Peter Tyser
2010-09-13 2:00 ` Andrew Dyer
2010-09-13 4:48 ` Peter Tyser
2010-09-16 11:49 ` Detlev Zundel
2010-10-12 20:47 ` Wolfgang Denk
2010-06-15 20:39 ` [U-Boot] [PATCH] examples/standalone: Remove relocation compile flags for PowerPC Timur Tabi
2010-06-15 20:54 ` Wolfgang Denk
2010-06-15 21:03 ` Timur Tabi
2010-06-15 22:56 ` Wolfgang Denk
2010-06-15 19:48 ` Wolfgang Denk
2010-06-29 20:29 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C17CE2F.9050208@freescale.com \
--to=timur@freescale.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox