From: Patrick McHardy <kaber@trash.net>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: Netfilter Development Mailinglist <netfilter-devel@lists.netfilter.org>
Subject: nfsim cmdline section alignment problems on x86_64
Date: Thu, 06 Jan 2005 13:26:00 +0100 [thread overview]
Message-ID: <41DD2E58.9080800@trash.net> (raw)
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
reply other threads:[~2005-01-06 12:26 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=41DD2E58.9080800@trash.net \
--to=kaber@trash.net \
--cc=netfilter-devel@lists.netfilter.org \
--cc=rusty@rustcorp.com.au \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.