From: Wolfgang Denk <wd@denx.de>
To: linuxppc-embedded@lists.linuxppc.org
Subject: Re: Cross compiling : problem linking
Date: Thu, 02 Oct 2003 15:35:24 +0200 [thread overview]
Message-ID: <20031002133529.305B6C59E4@atlas.denx.de> (raw)
In-Reply-To: Your message of "Thu, 02 Oct 2003 14:56:56 +0200." <1065099415.10206.5.camel@toni>
In message <1065099415.10206.5.camel@toni> you wrote:
>
> I try to cross compile a small test program for the EP505 board. I use
> ELDK as compiler set.
>
> When using this compile command:
>
> ppc_4xx-gcc -O -v -nostdlib -nostartfiles -mno-eabi -fno-exceptions \
> -fno-builtin -Wl,-Tscript.ld,-N -o rt_mod rt_mod.c
Well, I guess you know what you are douing here, i. e. what the
linker options mean?
I wonder where you got this command line from...
> I get after a while:
>
> /opt/eldk/usr/ppc-linux/bin/ld: cannot open linker script file \
> script.ld: Onbekend bestand of map
> collect2: ld returned 1 exit status
>
> I don't know what is wrong, but 'script.ld' isn't anywhere on my system.
Well, if you don't have such a linker script, why do you then tell
the linker to use it?
> PS: the program currently should make a square wave on EBC P1 D1
In which sort of environment? As standalone program? As Linux kernel
module? As Linux user-land application? Or what?
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
Uncertain fortune is thoroughly mastered by the equity of the calcu-
lation. - Blaise Pascal
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
next prev parent reply other threads:[~2003-10-02 13:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-02 12:56 Cross compiling : problem linking Toni Van Remortel
2003-10-02 13:26 ` Toni Van Remortel
2003-10-02 13:37 ` Wolfgang Denk
2003-10-02 13:35 ` Wolfgang Denk [this message]
[not found] <1065104646.13376.8.camel@toni>
2003-10-02 15:01 ` Wolfgang Denk
-- strict thread matches above, loose matches on Subject: below --
2003-10-02 16:34 Fillod Stephane
2003-10-02 21:26 ` Wolfgang Denk
2003-10-03 8:26 ` Toni Van Remortel
2003-10-06 13:09 Fillod Stephane
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=20031002133529.305B6C59E4@atlas.denx.de \
--to=wd@denx.de \
--cc=linuxppc-embedded@lists.linuxppc.org \
/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 NNTP newsgroup(s).