[objcopy]: zero to three bytes of padding in .gnu_debuglink section

T Majchrowski bugtracker@majchrowski.co.uk
Wed Apr 6 15:55:00 GMT 2011


2011/4/6 Alan Modra <amodra@gmail.com>
>
> On Mon, Apr 04, 2011 at 10:31:41AM -0700, Majcher wrote:
> > I found that .gnu_debuglink. section contains zero to three bytes of padding
> > just after filename. I recognized that this padding may be different
> > depending on which host is used to add gnu_debuglink via objcopy
> > --add-gnu-debuglink. Is there any way to provide always a fixed value of
> > that padding?
>
> No.
>
I checked sources, it seems so that it would quite easy to achieve
just by changing

FROM: contents = malloc (debuglink_size );
TO:      contents = calloc (debuglink_size,sizeof(char) );

in bfd/opncls.c

regards, Majcher.



More information about the Binutils mailing list