RFC: Remove empty output sections

Alan Modra amodra@bigpond.net.au
Mon Mar 14 08:35:00 GMT 2005


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?

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list