From: Joel Sherrill <joel@OARcorp.com>
To: gas2@cygnus.com
Subject: Re: binutils-2.9 objcopy fails (fwd)
Date: Tue, 14 Apr 1998 13:18:00 -0000 [thread overview]
Message-ID: <Pine.BSF.3.96.980414151522.1247W-100000@vespucci.advicom.net> (raw)
I went ahead and asked the obvious questions on the m68k-rtems objcopy
failure. I hope it helps.
---------- Forwarded message ----------
Date: Tue, 14 Apr 98 14:09:46 -0600
From: Eric Norum <eric@skatter.usask.ca>
To: Joel Sherrill <joel@oarcorp.com>
Subject: Re: binutils-2.9 objcopy fails
You wrote:
> I have forwarded this to the binutils list. What version of
> binutils did you upgrade from?
Thanks. Perhaps you could forward this, too?
It's been so long since I had to make a 32-bit bootstrap prom that I
don't remember which version I used to use. :-(
>
> I have breakages in powerpc-rtems and mips64orion-rtems. There is
> some known shared library problem. Are you building with
> --enabled-shared?
I just built with whatever `bit' does.
I'm pretty sure that I'm not trying to build anything with shared
libraries.
Just for the heck of it, I tried running this under gdb. I found
that the text segment of prom.exe seems to be copied with no problem,
but the data segment fails:
Breakpoint 3, copy_section (ibfd=0xe61a0, isection=0xe6994,
obfdarg=0xe9220) at
../../src/binutils/../../src/binutils/objcopy.c:1287
1287 if (!bfd_set_section_size (obfd, osection, size))
(gdb) step
1288 nonfatal (bfd_get_filename (obfd));
(gdb) print size
$5 = 1900
The fact that this fails the second time through is not too
surprising, given the code at the beginning of
bfd_set_section_size........
boolean
bfd_set_section_size (abfd, ptr, val)
bfd *abfd;
sec_ptr ptr;
bfd_size_type val;
{
/* Once you've started writing to any section you cannot create or
change
the size of any others. */
if (abfd->output_has_begun)
{
bfd_set_error (bfd_error_invalid_operation);
return false;
}
---
Eric Norum eric@skatter.usask.ca
Saskatchewan Accelerator Laboratory Phone: (306) 966-6308
University of Saskatchewan FAX: (306) 966-6058
Saskatoon, Canada.
next reply other threads:[~1998-04-14 13:18 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-04-14 13:18 Joel Sherrill [this message]
-- strict thread matches above, loose matches on Subject: below --
1998-04-14 12:49 Joel Sherrill
1998-04-14 13:18 ` Ian Lance Taylor
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=Pine.BSF.3.96.980414151522.1247W-100000@vespucci.advicom.net \
--to=joel@oarcorp.com \
--cc=gas2@cygnus.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).