From: Steven Johnson <sjohnson@sakuraindustries.com>
To: Frederic RISS <frederic.riss@st.com>
Cc: Daniel Jacobowitz <drow@false.org>,
Jim Blandy <jimb@codesourcery.com>,
gdb@sources.redhat.com
Subject: Re: Problems with startup code symbols (Copious warnings)
Date: Tue, 20 Jun 2006 20:17:00 -0000 [thread overview]
Message-ID: <449856E1.50308@sakuraindustries.com> (raw)
In-Reply-To: <1150808381.2480.85.camel@crx549.cro.st.com>
As I understand the approach suggested, there will be a scan through the
sections of the ELF (.text, .data, etc), looking for VMA's of zero. If
there is one, the test isn't performed and the debug info isn't discard.
Is it possible to to tell what section the debug info is for? If so,
could it only not discard the debug info if it is in the particular
section with the VMA of 0.
If this is possible, I think it would be better, because (at least in my
experience) when you are trying to control the link order of things, and
have your code which starts at zero always start there, its put into a
special section like, .boot or .vectors, or some such anyway. That
would be the only section with a VMA of 0. Other sections, like .text
wouldn't have a VMA of zero and debug info from them with a low_pc of 0
could surely be discarded.
Even if this requires a change for future embedded programs that are
effected by this to force them to have a unique section name for the
section which starts at zero and to ensure there are no features of the
language/link used which would put .linkonce sections in this "starting
at zero" section, this would, i think, be preferrable to the current
situation.
Steven J
Frederic RISS wrote:
>On Tue, 2006-06-20 at 08:37 -0400, Daniel Jacobowitz wrote:
>
>
>>>And I don't see much embedded bootcode needing linkonce
>>>sections.
>>>
>>>
>>... but not probably.
>>
>>Typical for a lot of embedded devices I've worked with is to have a
>>single massive ELF image, including boot code and the entire remainder
>>of the image, and to use C++ for most of it. I've definitely worked
>>with images where this wouldn't help.
>>
>>
>
>I said I must have missed something in my initial mail :-)
>
>
>
>>>>Is that an improvement? I guess so.
>>>>
>>>>
>>>It's certainly better than the current HAS_RELOCS check.
>>>
>>>
>>Yes, I think so. Want to do it, anybody?
>>
>>
>
>I'll give it a try, if nobody beats me at it. I won't have any time in
>the upcoming days though, so don't expect it too soon.
>
>
>
>
next prev parent reply other threads:[~2006-06-20 20:13 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-06-08 7:23 Steven Johnson
2006-06-08 9:06 ` Jim Blandy
2006-06-08 12:25 ` Steven Johnson
2006-06-08 23:10 ` Steven Johnson
2006-06-15 0:12 ` Jim Blandy
2006-06-15 7:33 ` Jim Blandy
2006-06-19 9:36 ` Frederic RISS
2006-06-20 12:23 ` Daniel Jacobowitz
2006-06-20 12:33 ` Frederic RISS
2006-06-20 12:56 ` Daniel Jacobowitz
2006-06-20 13:09 ` Frederic RISS
2006-06-20 20:17 ` Steven Johnson [this message]
2006-06-20 23:35 ` Daniel Jacobowitz
2006-06-21 8:54 ` Frederic RISS
2006-06-21 14:44 ` Steven Johnson
2006-06-21 15:28 ` Daniel Jacobowitz
2006-06-19 10:00 ` Steven Johnson
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=449856E1.50308@sakuraindustries.com \
--to=sjohnson@sakuraindustries.com \
--cc=drow@false.org \
--cc=frederic.riss@st.com \
--cc=gdb@sources.redhat.com \
--cc=jimb@codesourcery.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