Module Name: src Committed By: matt Date: Wed Dec 11 06:55:25 UTC 2013
Modified Files: src/lib/csu/common: crtbegin.c Log Message: Make sure the __CTOR_LIST__ is just aligned to a pointer boundary. By default, mips N32 will aligned to a 64-bit boundary not 32-bit which causes an extra NULL entry to be added. To generate a diff of this commit: cvs rdiff -u -r1.6 -r1.7 src/lib/csu/common/crtbegin.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/csu/common/crtbegin.c diff -u src/lib/csu/common/crtbegin.c:1.6 src/lib/csu/common/crtbegin.c:1.7 --- src/lib/csu/common/crtbegin.c:1.6 Fri Nov 29 23:00:48 2013 +++ src/lib/csu/common/crtbegin.c Wed Dec 11 06:55:24 2013 @@ -27,7 +27,7 @@ * POSSIBILITY OF SUCH DAMAGE. */ #include <sys/cdefs.h> -__RCSID("$NetBSD: crtbegin.c,v 1.6 2013/11/29 23:00:48 joerg Exp $"); +__RCSID("$NetBSD: crtbegin.c,v 1.7 2013/12/11 06:55:24 matt Exp $"); #include "crtbegin.h" @@ -39,7 +39,7 @@ __weakref_visible void Jv_RegisterClasse __weak_reference(_Jv_RegisterClasses); #if !defined(HAVE_INITFINI_ARRAY) -__dso_hidden const fptr_t __CTOR_LIST__[] __section(".ctors") = { +__dso_hidden const fptr_t __aligned(sizeof(void *)) __CTOR_LIST__[] __section(".ctors") = { (fptr_t) -1, }; __dso_hidden extern const fptr_t __CTOR_LIST_END__[];