From: Peter Tyser <ptyser@xes-inc.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:34:28 -0500 [thread overview]
Message-ID: <1276630468.32134.1498.camel@petert> (raw)
In-Reply-To: <4C17D278.70502@freescale.com>
On Tue, 2010-06-15 at 14:20 -0500, Timur Tabi wrote:
> Peter Tyser wrote:
> > Can you do a 'make clean', then recompile?
>
> That *was* with a 'make clean'.
Just to be sure, where did the output in your first email come from? It
looked like a successful compile, but libstubs wasn't recompiled (I
didn't see it in your pasted output). What changed between that 1st
email and the 2nd email?
For reference, this is the relevant part of the build I see on my end:
make[1]: Entering directory `/home/ptyser/u-boot/u-boot/examples/standalone'
powerpc-linux-gcc -g -Os -D__KERNEL__ -DTEXT_BASE=0xfff80000 -I/home/ptyser/u-boot/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/xes/devkit/ppc/eldk_gcc4.2.2-glibc20070515T2025/bin/../lib/gcc/powerpc-linux/4.2.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 hello_world.o hello_world.c -c
powerpc-linux-gcc -g -Os -D__KERNEL__ -DTEXT_BASE=0xfff80000 -I/home/ptyser/u-boot/u-boot/include -fno-builtin -ffreestanding -nostdinc -isystem /opt/xes/devkit/ppc/eldk_gcc4.2.2-glibc20070515T2025/bin/../lib/gcc/powerpc-linux/4.2.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 stubs.o stubs.c -c
powerpc-linux-ar crv libstubs.a stubs.o
a - stubs.o
powerpc-linux-ld -g -Ttext 0x40000 \
-o hello_world -e hello_world hello_world.o libstubs.a \
-L/opt/xes/devkit/ppc/eldk_gcc4.2.2-glibc20070515T2025/bin/../lib/gcc/powerpc-linux/4.2.2 -lgcc
....
ptyser at petert u-boot $ readelf -h examples/standalone/hello_world
ELF Header:
Magic: 7f 45 4c 46 01 02 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, big endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: PowerPC
Version: 0x1
Entry point address: 0x40000
Start of program headers: 52 (bytes into file)
Start of section headers: 265304 (bytes into file)
Flags: 0x0
Size of this header: 52 (bytes)
Size of program headers: 32 (bytes)
Number of program headers: 2
Size of section headers: 40 (bytes)
Number of section headers: 15
Section header string table index: 12
Could you paste similar output from what you're seeing?
Thanks,
Peter
next prev parent reply other threads:[~2010-06-15 19:34 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
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 [this message]
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=1276630468.32134.1498.camel@petert \
--to=ptyser@xes-inc.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