public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Re: MIPS LE build problems
Date: Thu, 18 Aug 2005 23:38:25 +0200	[thread overview]
Message-ID: <20050818213825.32DFB353CE9@atlas.denx.de> (raw)

In message <4304D3FD.7080107@smiths-aerospace.com> you wrote:
>
> As noted in other email in this thread, executing the above code won't 
> work.  What about simply compiling a file containing:
> 
> constant int data = 0x01234567;
> 
> objdumping the data section, and looking (grepping) to see if the data 
> section has 0x12345678 or 0x78563412?

Doesn't work as objdump will be user friendly and  always  print  the
"correct" value, i. e. 0x01234567.

But the idea is good.

The attached test script works with the tool chains available to  me.
Can others please test this, too?

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Many aligators will be slain, but the swamp will remain.

-------------- next part --------------
#!/bin/sh

set -e
# make sure CROSS_COMPILE is defined
[ "${CROSS_COMPILE}" ]

# create temp directory
TMPDIR=`mktemp -d`

# and make sure it gets removed automagically
trap 'rm -fr ${TMPDIR}' 0 1 2 3 15

>${TMPDIR}/foo.c
${CROSS_COMPILE}gcc -c ${TMPDIR}/foo.c -o ${TMPDIR}/foo.o
readelf -h ${TMPDIR}/foo.o | \
sed -n 's/.*Data:.* \([^ ][^ ]*\) endian/\1/p'

exit 0

             reply	other threads:[~2005-08-18 21:38 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-18 21:38 Wolfgang Denk [this message]
2005-08-18 23:11 ` [U-Boot-Users] Re: MIPS LE build problems Zachary Landau
2005-08-18 23:28   ` Wolfgang Denk
2005-08-20  7:51 ` Matej Kupljen
2005-08-22  8:53 ` Leif Lindholm
2005-08-22  8:59   ` Wolfgang Denk
2005-08-24  8:54 ` Matej Kupljen
  -- strict thread matches above, loose matches on Subject: below --
2005-08-08 21:13 [U-Boot-Users] " Wolfgang Denk
2005-08-09 16:59 ` [U-Boot-Users] " Thomas Lange
2005-08-09 19:47   ` Matej Kupljen
2005-08-09 20:56     ` Thomas Lange
2005-08-09 22:06     ` Thomas Lange
2005-08-09 23:23       ` Andrew Dyer
2005-08-10  6:06         ` Matej Kupljen
2005-08-10  6:52         ` Wolfgang Denk
2005-08-10  7:01           ` Matej Kupljen
2005-08-10  7:32             ` Wolfgang Denk
2005-08-10  7:43               ` Matej Kupljen
2005-08-10  8:45                 ` Wolfgang Denk
2005-08-10  9:13                   ` Matej Kupljen
2005-08-10 10:18                     ` Wolfgang Denk
2005-08-17  7:07               ` Matej Kupljen
2005-08-17  8:08                 ` Wolfgang Denk
2005-08-17  8:24                   ` Matej Kupljen
2005-08-17 13:44                     ` Wolfgang Denk
2005-08-18  6:31                       ` Matej Kupljen
2005-08-18  8:46                         ` Wolfgang Denk
2005-08-18  9:01                           ` Matej Kupljen
2005-08-18  8:42                   ` Matej Kupljen
2005-08-18  8:51                     ` Wolfgang Denk
2005-08-18  9:08                       ` Matej Kupljen
2005-08-18 19:54                         ` Udi Finkelstein
2005-08-18 20:56                           ` Wolfgang Denk
2005-08-19  8:59                             ` Udi Finkelstein
2005-08-18 20:46                         ` Wolfgang Denk
2005-08-19  4:55                           ` Matej Kupljen
2005-08-18 18:31                     ` Jerry Van Baren
2005-08-10  6:05       ` Matej Kupljen

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=20050818213825.32DFB353CE9@atlas.denx.de \
    --to=wd@denx.de \
    --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