diff options
author | Kurt Miller <kurt@cvs.openbsd.org> | 2009-04-13 20:15:25 +0000 |
---|---|---|
committer | Kurt Miller <kurt@cvs.openbsd.org> | 2009-04-13 20:15:25 +0000 |
commit | 8f32ea5e353eb80520d057d7c6e4f5fd9589387e (patch) | |
tree | 7a11cb7685664636605ea29252caa6c9f74b6aff /lib/csu/crtend.c | |
parent | e98c3de60da7bd241646fb884f5eed85c772f8c5 (diff) |
Add gcj java class registration hooks for gcc3 elf archs. From NetBSD
with minor differences.
okay kettenis@ drahn@
Diffstat (limited to 'lib/csu/crtend.c')
-rw-r--r-- | lib/csu/crtend.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/csu/crtend.c b/lib/csu/crtend.c index 762b3c781bd..8c0d0726e84 100644 --- a/lib/csu/crtend.c +++ b/lib/csu/crtend.c @@ -1,4 +1,4 @@ -/* $OpenBSD: crtend.c,v 1.6 2004/10/10 18:29:15 kettenis Exp $ */ +/* $OpenBSD: crtend.c,v 1.7 2009/04/13 20:15:24 kurt Exp $ */ /* $NetBSD: crtend.c,v 1.1 1996/09/12 16:59:04 cgd Exp $ */ #include <sys/cdefs.h> @@ -13,5 +13,10 @@ static init_f __DTOR_LIST__[1] static const int __EH_FRAME_END__[] __attribute__((unused, mode(SI), section(".eh_frame"), aligned(4))) = { 0 }; +#if (__GNUC__ > 2) +static void * __JCR_END__[] +__attribute__((unused, section(".jcr"), aligned(sizeof(void*)))) = { 0 }; +#endif + MD_SECTION_EPILOGUE(".init"); MD_SECTION_EPILOGUE(".fini"); |