This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: RFC: Remove empty output sections
On Mon, Mar 14, 2005 at 07:05:15PM +1030, Alan Modra wrote:
> On Sun, Mar 13, 2005 at 10:31:41PM -0800, H. J. Lu wrote:
> > @@ -4883,7 +4893,7 @@ lang_process (void)
> > lang_check_section_addresses ();
> >
> > /* Final stuffs. */
> > -
> > + lang_mark_used_section ();
> > ldemul_finish ();
> > lang_finish ();
> > }
>
> Isn't this too late to strip sections? What happens if one of the
> sections stripped has a dynamic section symbol?
An empty section has a dynamic section symbol. Do you have a testcase
for that?
H.J.