This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [David Mosberger <davidm@hpl.hp.com>] problem with unwind info for .init/.fini sections
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Richard Henderson <rth at redhat dot com>
- Cc: davidm at hpl dot hp dot com, "H . J . Lu" <hjl at lucon dot org>, Ulrich Drepper <drepper at redhat dot com>, GNU libc hacker <libc-hacker at sources dot redhat dot com>, binutils at sources dot redhat dot com
- Date: Sat, 2 Mar 2002 16:04:33 +1030
- Subject: Re: [David Mosberger <davidm@hpl.hp.com>] problem with unwind info for .init/.fini sections
- References: <15486.55079.333535.999190@napali.hpl.hp.com> <20020228173311.A26728@lucon.org> <15486.56491.696020.742674@napali.hpl.hp.com> <20020228175426.A30756@redhat.com> <15487.8879.719511.86715@napali.hpl.hp.com> <20020228225757.A30933@redhat.com> <15487.51034.573513.390031@napali.hpl.hp.com> <20020301164725.C31581@redhat.com> <15488.8807.791615.352587@napali.hpl.hp.com> <20020301170010.A31610@redhat.com>
On Fri, Mar 01, 2002 at 05:00:10PM -0800, Richard Henderson wrote:
> On Fri, Mar 01, 2002 at 04:52:55PM -0800, David Mosberger wrote:
> > The reason I moved the labels outside is because
> > otherwise the linker seems to insist on creating the sections, even if
> > they're empty. Is there another way to avoid this?
>
> Not that I'm aware of. I suppose you could put
>
> ${RELOCATING+. = ALIGN(${ALIGNMENT})}
>
> before the first label, which should have the same effect.
Except when someone puts an .align <bignumber> in the segment in
question. I might have a go at fixing PROVIDE one of these days.
It's a bit poor that PROVIDE (foo = something); inside a section
makes the section appear in the output when foo isn't referenced.
PROVIDE (foo = ABSOLUTE (something)); should similarly not cause
a section to be output by itself, even when foo _is_ referenced.
--
Alan Modra
IBM OzLabs - Linux Technology Centre