Hi Jie Zhang, > From: Jie Zhang <[email protected]> > > If a structure in the data section attempts to force a larger alignment, > the FLAT loader will break this when working with shared flat libraries > by inserting a few words before the data section.
I had sent a patch to address the same problem generically to LKML on March 5th, please check it at http://patchwork.kernel.org/patch/10117 or at http://userweb.kernel.org/~akpm/mmotm/broken-out/flat-fix-data-sections-alignment.patch The alignment needed depends on the architecture, that's why we use ARCH_SLAB_MINALIGN instead of an arbitrary value like 0x20. Further, we fix the alignment for both data section, bss, and stack. The latter used to do some indirect alignment thru flat_stack_align, which caused ugly workarounds in alignment calculation (e.g. see arch/arm/include/asm/flat.h). Without the stack alignment fix, support for Xtensa noMMU is still broken. The patch has been reviewed now and I guess it will appear on Linus' kernel soon. Thanks, Oskar _______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
