From: Chris Friesen <chris.friesen@genband.com>
To: Segher Boessenkool <segher@kernel.crashing.org>
Cc: Paul Mackerras <paulus@samba.org>, linuxppc-dev@lists.ozlabs.org
Subject: Re: weird elf header issues, is it binutils or my linker script?
Date: Thu, 04 Apr 2013 16:24:07 -0600 [thread overview]
Message-ID: <515DFD87.7050303@genband.com> (raw)
In-Reply-To: <BFFF4F77-FA45-40B6-8836-EFF3A23A9480@kernel.crashing.org>
On 04/02/2013 09:07 AM, Segher Boessenkool wrote:
>> What I don't understand is where the "/lib/ld.so.1" string is coming
>> from and how the length gets set to the invalid value.
>
> It comes from the .interp input sections, i.e. the .interp sections in
> the .o files you linked together. Perhaps you have more than one of
> those?
It turns out that the problem was in the linker script. The linker
script was originally written for an older binutils. With the newly
compiled object files there were some sections that were not explicitly
specified in the linker script so they were added automatically to the
interpreter section, bumping up the length.
A new linker script with explicit mention of those sections made the
interpreter section look as expected.
Chris
prev parent reply other threads:[~2013-04-04 22:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-28 15:04 weird elf header issues, is it binutils or my linker script? Chris Friesen
2013-03-29 12:01 ` Segher Boessenkool
2013-04-01 15:02 ` Chris Friesen
2013-04-02 15:07 ` Segher Boessenkool
2013-04-04 22:24 ` Chris Friesen [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=515DFD87.7050303@genband.com \
--to=chris.friesen@genband.com \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=paulus@samba.org \
--cc=segher@kernel.crashing.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.