[PATCH] Fix tst-array* on x86_64

Roland McGrath roland@redhat.com
Tue Dec 10 15:25:00 GMT 2002


> Why are the labels around wrong?  I would imagine that padding is added
> and that if two .preinit_array sections have to be concatenated there is
> garbage between them.  But still, the lables should be rights.

This padding is added by the compiler, inside the section.  
The labels are created by the linker.  i.e.: 

.globl preinit_array
	.section	.preinit_array,"a",@progbits
	.align 16
	.type	preinit_array, @object
	.size	preinit_array, 24
preinit_array:
	.quad ...

This doesn't explain exactly what I saw, which was the linker symbols and
the sections not starting at the same address.  But even if they matched,
the leading or trailing zeros bite.



More information about the Libc-hacker mailing list