[dmd-internals] How to avoid 4-word padding for symbols?

Michel Fortin michel.fortin at michelf.com
Mon Nov 8 18:32:55 PST 2010


Le 2010-11-08 à 18:14, Walter Bright a écrit :

> Michel Fortin wrote:
>> L
>> I mean the alignment of the symbols in a specific segment. In this case I need symbols inside the __protocol segment of the __OBJC section to have a 4-byte alignment. I'd have expected the align parameter of mach_getsegment() to do that, but setting it to 2 doesn't do anything.
> 
> The segment alignment is for the whole segment, not for individual data items in it.

Indeed, that makes sense.

-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/





More information about the dmd-internals mailing list