This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] ELF: make .struct interact with .previous
- From: "Jan Beulich" <JBeulich at novell dot com>
- To: <hjl at lucon dot org>
- Cc: <amodra at bigpond dot net dot au>,<nickc at redhat dot com>,<binutils at sources dot redhat dot com>, <wilson at specifixinc dot com>
- Date: Mon, 18 Apr 2005 16:13:42 +0200
- Subject: Re: [PATCH] ELF: make .struct interact with .previous
>You are assuming .short will be aligned at 2. The example in document
>has
>
> .struct 0
> field1:
> .struct field1 + 4
> field2:
> .struct field2 + 4
> field3:
This usage seems ill to me anyway (and it kills what the test tests for - the use of .previous). Yes, I assume .short is (at most) 2-byte aligned; if that's too little, it could be further bumped.
Jan