public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
From: Jonathan Larmour <jlarmour@redhat.com>
To: Richard Shih-Ping Chan <cshihpin@dso.org.sg>
Cc: binutils@sources.redhat.com, ecos-discuss@sources.redhat.com
Subject: Re: [ECOS] [Linux Binutils] 2.11.90.0.27 fails to link eCos program
Date: Wed, 22 Aug 2001 02:14:00 -0000	[thread overview]
Message-ID: <3B8377EF.A8E24B82@redhat.com> (raw)
In-Reply-To: <20010822170426.B11707@cshihpin.dso.org.sg>

Richard Shih-Ping Chan wrote:
> gcc -g -nostdlib -Wl,--gc-sections -Wl,-static -L/d2/home/cshihpin/build/ecos-linux/install/lib -Ttarget.ld -o
> /d2/home/cshihpin/build/ecos-linux/install/tests/hal/common/current/tests/cache tests/cache.o
> /usr/bin/ld: warning: no memory region specified for section `.rel.data.cyg_io_serial_devio'
> /usr/bin/ld: warning: no memory region specified for section `.rel.data.tty_devio'

It's trying to generate relocations for dynamic linking despite the use of
-Wl,-static. Hmm...

> /usr/bin/ld: address 0x0 of /d2/home/cshihpin/build/ecos-linux/install/tests/hal/common/current/tests/cache section .fixup
> is not within region rom
> /usr/bin/ld: address 0x0 of /d2/home/cshihpin/build/ecos-linux/install/tests/hal/common/current/tests/cache section .gcc_except_table is not within region rom

Try putting a ". = .;" in the contents of .fixup and .gcc_except_table in
the linker script. Ld can get very stroppy about completely empty sections.

Jifl
-- 
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine

      reply	other threads:[~2001-08-22  2:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-22  2:01 Richard Shih-Ping Chan
2001-08-22  2:14 ` Jonathan Larmour [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=3B8377EF.A8E24B82@redhat.com \
    --to=jlarmour@redhat.com \
    --cc=binutils@sources.redhat.com \
    --cc=cshihpin@dso.org.sg \
    --cc=ecos-discuss@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).