RFC: Remove empty output sections

H. J. Lu hjl@lucon.org
Mon Mar 14 16:11:00 GMT 2005


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.



More information about the Binutils mailing list