From dbbe430ec7c2188883f48990030c4ecb6575faa1 Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Wed, 18 Mar 2015 19:31:51 +0100 Subject: [PATCH] libmach: use #pragma pack to force 4 byte alignment of bootexec.h structures for amd64 --- sys/include/bootexec.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sys/include/bootexec.h b/sys/include/bootexec.h index b113deb1e..37f6503b4 100644 --- a/sys/include/bootexec.h +++ b/sys/include/bootexec.h @@ -1,3 +1,5 @@ +#pragma pack on + struct coffsect { char name[8]; @@ -135,3 +137,5 @@ struct i386exec struct coffsect ibsss; struct coffsect icomments; }; + +#pragma pack off