PATCH: ld/2338: objdump -d -l doesn't work correctly

Alan Modra amodra@bigpond.net.au
Tue Feb 28 12:04:00 GMT 2006


On Mon, Feb 27, 2006 at 09:21:56PM -0800, H. J. Lu wrote:
> On Tue, Feb 28, 2006 at 03:13:41PM +1030, Alan Modra wrote:
> > On Mon, Feb 27, 2006 at 08:06:22PM -0800, H. J. Lu wrote:
> > > We should
> > > add 1 << sect->alignment_power so that if sect->alignment_power == 0
> > > there is still a gap.
> > 
> > I don't see that there is any need for a gap.
> 
> If there isn't a gap, "objump -d -l" may not work correctly for the
> output from "-ffunction-sections" on x86 and x86-64. That is why I
> added "1" in the first patch.

HJ, "may not work correctly" doesn't say anything about why you really
need a gap.  If you do need a gap, then there is a bug somewhere else.
That should be fixed.  Presumably the same problem, whatever it is,
could affect final linked executables with more than one text section.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list