From: "Ken Yee" <kenkyee@excite.com>
To: ecos-discuss@ecos.sourceware.org
Subject: [ECOS] possible bug in configtool or whatever is generating "target.ld" file
Date: Thu, 27 Sep 2012 03:46:00 -0000 [thread overview]
Message-ID: <20120926234606.868@web002.roc2.bluetie.com> (raw)
When you link your app, the symptom is you see this when you link your application:
/home/ecos/gnutools/arm-eabi/bin/../lib/gcc/arm-eabi/4.6.2/../../../../arm-eabi/bin/ld:target.ld:17: syntax error
collect2: ld returned 1 exit status
It's a bit of a cryptic error because target.ld is not in the path indicated.
It's actually in your your ecos_install/lib directory.
If you open the target.ld file, you'll see this:
==============
...
SECTIONS
{
.debug_aranges 0 : { *(.debug_aranges) } .debug_pubnames 0 : { *(.debug_pubnames) } .debug_info 0 : { *(.debug_info) } .debug_abbrev 0 : { *(.debug_abbrev) } .debug_line 0 : { *(.debug_line) } .debug_frame 0 : { *(.debug_frame) } .debug_str 0 : { *(.debug_str) } .debug_loc 0 : { *(.debug_loc) } .debug_macinfo 0 : { *(.debug_macinfo) } .note.arm.ident 0 : { KEEP (*(.note.arm.ident)) } /DISCARD/ 0 : { *(.fini_array*) }
.fixed_vectors 0x20 : { . = .; KEEP (*(.fixed_vectors)) } > sram
SECTION_sram_code (sram, ALIGN (0x4), )
.rom_vectors 0x02008000 : { __rom_vectors_vma = ABSOLUTE(.); . = .; KEEP (*(.vectors)) } > ram __rom_vectors_lma = LOADADDR(.rom_vectors);
...
================
The offending line 17 is the one that starts with SECTION_sram_code; delete this line to fix the link error.
That looks like the syntax for the .ldi file instead of the target.ld file.
Anyways, thought I'd mention how to find/fix this so the mailing list search engine can find it. I found a few cases where other people hit the same quirky linker error and didn't know what to do to fix it...
p.s., I can supply the ecos.ecc file if that would help anyone reproduce/fix the bug...
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
next reply other threads:[~2012-09-27 3:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-27 3:46 Ken Yee [this message]
2012-09-27 7:28 ` [ECOS] " John Dallaway
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=20120926234606.868@web002.roc2.bluetie.com \
--to=kenkyee@excite.com \
--cc=ecos-discuss@ecos.sourceware.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 read-only IMAP folder(s) and NNTP newsgroup(s).