RFC: Remove empty output sections
H. J. Lu
hjl@lucon.org
Fri Mar 18 15:37:00 GMT 2005
On Fri, Mar 18, 2005 at 05:37:31PM +1030, Alan Modra wrote:
> On Thu, Mar 17, 2005 at 07:51:27PM -0800, H. J. Lu wrote:
> > On Fri, Mar 18, 2005 at 01:45:47PM +1030, Alan Modra wrote:
> > > On Thu, Mar 17, 2005 at 06:59:25PM -0800, H. J. Lu wrote:
> > > > * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Set
> > > > bfd_section to bfd_abs_section_ptr when removing unused empty
> > > > output sections for non-relocatable link.
> > >
> > > No. The map file output needs to use the sections actually linked,
> > > otherwise wrong values will be reported.
> >
> > Here it is.
>
> How have you tested this?
It works on x86-64 and your testcase.
H.J.
More information about the Binutils
mailing list