From 2680aabe068123d25cb1bc4b89dd734e81e84f6e Mon Sep 17 00:00:00 2001 From: "Markus F.X.J. Oberhumer" Date: Fri, 17 Mar 2006 14:57:20 +0000 Subject: [PATCH] Removed bogus __attribute_packed from struct udll. committer: mfx 1142607440 +0000 --- src/p_armpe.cpp | 5 +---- src/p_w32pe.cpp | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/p_armpe.cpp b/src/p_armpe.cpp index 64ccd0e6..a621c6a1 100644 --- a/src/p_armpe.cpp +++ b/src/p_armpe.cpp @@ -566,7 +566,6 @@ unsigned PackArmPe::processImports() // pass 1 LE32 *lookupt; unsigned npos; bool isk32; - unsigned _; // padding to 32 static int __acc_cdecl_qsort compare(const void *p1, const void *p2) { @@ -582,9 +581,7 @@ unsigned PackArmPe::processImports() // pass 1 if (!u2->shname) return -1; return strlen(u1->shname) - strlen(u2->shname); } - } - __attribute_packed; - COMPILE_TIME_ASSERT(sizeof(udll) == 32); + }; // +1 for dllnum=0 Array(struct udll, dlls, dllnum+1); diff --git a/src/p_w32pe.cpp b/src/p_w32pe.cpp index 10a828e7..9a32a602 100644 --- a/src/p_w32pe.cpp +++ b/src/p_w32pe.cpp @@ -575,7 +575,6 @@ unsigned PackW32Pe::processImports() // pass 1 LE32 *lookupt; unsigned npos; bool isk32; - unsigned _; // padding to 32 static int __acc_cdecl_qsort compare(const void *p1, const void *p2) { @@ -591,9 +590,7 @@ unsigned PackW32Pe::processImports() // pass 1 if (!u2->shname) return -1; return strlen(u1->shname) - strlen(u2->shname); } - } - __attribute_packed; - COMPILE_TIME_ASSERT(sizeof(udll) == 32); + }; // +1 for dllnum=0 Array(struct udll, dlls, dllnum+1);