nfsim cmdline section alignment problems on x86_64
Hi Rusty,
I ran into some alignment problems with the cmdline section on x86_64 with gcc 3.3.5. Entries are aligned to 32-byte, which causes every entry to occupy 64 bytes. sizeof(struct cmdline_option) is 40 byte however, so using them or calculating their number fails.
[Nr] Name Type Address Offset
Size EntSize Flags Link Info Align
[18] cmdline PROGBITS 0000000000540e80 00040e80
0000000000000280 0000000000000000 WA 0 0 32My quick fix was to pad the structure to 64 bytes, hopefully you have a better idea :)
Regards
Patrick