[PATCH] Pad SEC_MERGE sections to entsize boundary in gas

Jakub Jelinek jakub@redhat.com
Sun Nov 24 15:28:00 GMT 2002


On Mon, Nov 25, 2002 at 09:54:18AM +1030, Alan Modra wrote:
> On Sun, Nov 24, 2002 at 10:41:59PM +0100, Jakub Jelinek wrote:
> > Ulrich found long double constants on IA-32 in .rodata.cst16 section
> > cause the section not to be multiple of sh_entsize.
> 
> This is presumably just due to lack of alignment padding after the
> last entry, right?  Otherwise the merge code would be rather
> confused...

Yeah. gcc emits something like:
        .section        .rodata.cst16,"aM",@progbits,16
        .align 16
.LC0:
        .long   0
        .long   -939524096
        .long   16389
for long double constants and doesn't put there another .align 16
after it (or another .long 0).

	Jakub



More information about the Binutils mailing list