* nfsim cmdline section alignment problems on x86_64
@ 2005-01-06 12:26 Patrick McHardy
0 siblings, 0 replies; only message in thread
From: Patrick McHardy @ 2005-01-06 12:26 UTC (permalink / raw)
To: Rusty Russell; +Cc: Netfilter Development Mailinglist
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 32
My quick fix was to pad the structure to 64 bytes, hopefully you have a
better idea :)
Regards
Patrick
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-01-06 12:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-06 12:26 nfsim cmdline section alignment problems on x86_64 Patrick McHardy
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.