Re: [patch 1/7] Immediate Values - Architecture Independent Code

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Denys Vlasenko <vda.linux@...>
Cc: <akpm@...>, <linux-kernel@...>
Date: Tuesday, September 18, 2007 - 4:47 pm

* Denys Vlasenko (vda.linux@googlemail.com) wrote:

Alignment: I need the __start___immediate and __stop___immediate values
to be at the same alignment as the *(__immediate) content, or else we
end up thinking that padding is data.

. = ALIGN(4) works fine as long as the structure within the section is
not bigger or equal to 32 bytes: gcc has the habit to align 32 bytes
structure on 32 bytes multiples. The safest way I found to do it is to
declare the section as I do: it will cause no breakage if anybody append
data to the structure.

Mathieu

-- 
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F  BA06 3F25 A8FE 3BAE 9A68
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 1/7] Immediate Values - Architecture Independent Code, Mathieu Desnoyers, (Mon Sep 17, 2:42 pm)
Re: [patch 1/7] Immediate Values - Architecture Independent ..., Mathieu Desnoyers, (Tue Sep 18, 1:59 pm)
Re: [patch 1/7] Immediate Values - Architecture Independent ..., Mathieu Desnoyers, (Tue Sep 18, 4:47 pm)
Re: [patch 1/7] Immediate Values - Architecture Independent ..., Mathieu Desnoyers, (Wed Sep 19, 7:27 am)