public inbox for sid@sourceware.org
 help / color / mirror / Atom feed
From: Ben Elliston <bje@redhat.com>
To: Cristiano Ligieri Pereira <cpereira@ics.uci.edu>
Cc: sid@sources.redhat.com
Subject: Re: Running the hello.c example
Date: Wed, 31 Oct 2001 15:31:00 -0000	[thread overview]
Message-ID: <15352.9885.608951.546968@scooby.brisbane.redhat.com> (raw)
In-Reply-To: <Pine.SOL.4.20.0111181056060.10134-100000@washoe.ics.uci.edu>

>>>>> "Cristiano" == Cristiano Ligieri Pereira <cpereira@ics.uci.edu> writes:

  Cristiano> % arm-elf-gcc -EL hello.c -o hello.x

  Cristiano> arm-elf-gcc: unrecognized option `-EL'
  Cristiano> /tools/H-i686-pc-linux-gnu/arm-elf/bin/ld: cannot open crt0.o: No such
  Cristiano> file or directory
  Cristiano> collect2: ld returned 1 exit status

I'm not sure why this is happening; are you sure that -EL is the
right command line option to build a little endian ARM binary?  I'm
not so sure.  You should check the documentation.

  Cristiano> % arm-elf-gcc -I/usr/include -E hello.c -o hello.x

  Cristiano> it works fine and generate the hello.x file, which is post-preprocessing
  Cristiano> version of the file hello.c (which I thought it was weird since as far as
  Cristiano> I understood I need the executatble version, isn't it?).

  Cristiano> Anyways, It turns out to does not work. When trying arm-elf-sid I get the
  Cristiano> following:

  Cristiano> % arm-elf-sid hello.x
  Cristiano> loader: error loading hello.x

This won't work -- you've emitted preprocessed source to hello.x.
hello.x needs to be a valid ELF object file (you can test this with
file(1) when you think you've got it right).

Ben

      parent reply	other threads:[~2001-11-18 22:42 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-16 15:18 Cristiano Ligieri Pereira
2001-10-17 11:07 ` Cristiano Ligieri Pereira
2001-11-10  7:38   ` Ben Elliston
2001-11-10 11:10     ` Cristiano Ligieri Pereira
2001-11-10 16:07       ` Ben Elliston
2001-11-12 19:29         ` Cristiano Ligieri Pereira
2001-11-18 17:22           ` Cristiano Ligieri Pereira
2001-11-12 20:03         ` Cristiano Ligieri Pereira
2001-11-13 11:30           ` J. Johnston
2001-11-13 13:12             ` Cristiano Ligieri Pereira
2001-11-19 13:17               ` Cristiano Ligieri Pereira
2001-11-19 10:58             ` J. Johnston
2001-11-18 19:11           ` Cristiano Ligieri Pereira
2001-10-31 15:31 ` Ben Elliston [this message]

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=15352.9885.608951.546968@scooby.brisbane.redhat.com \
    --to=bje@redhat.com \
    --cc=cpereira@ics.uci.edu \
    --cc=sid@sources.redhat.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).