summaryrefslogtreecommitdiff
path: root/package/pcc-libs/patches/patch-csu_linux_crtbegin_c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-04-12 08:44:23 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-04-12 08:46:34 +0200
commit990e47b680c06c8a090aa65f18a8bf2b24f857ae (patch)
treef24cf59d7e23d5ff3124f3b163035778d0e85d92 /package/pcc-libs/patches/patch-csu_linux_crtbegin_c
parent6f10dd583b2d136939adfcd42f01f9607d04ad7d (diff)
add cvs patches for binutils 2.21 compatibility
Diffstat (limited to 'package/pcc-libs/patches/patch-csu_linux_crtbegin_c')
-rw-r--r--package/pcc-libs/patches/patch-csu_linux_crtbegin_c35
1 files changed, 35 insertions, 0 deletions
diff --git a/package/pcc-libs/patches/patch-csu_linux_crtbegin_c b/package/pcc-libs/patches/patch-csu_linux_crtbegin_c
new file mode 100644
index 000000000..a4f9777b3
--- /dev/null
+++ b/package/pcc-libs/patches/patch-csu_linux_crtbegin_c
@@ -0,0 +1,35 @@
+--- pcc-libs-1.0.0.orig/csu/linux/crtbegin.c 2009-08-17 01:07:07.000000000 +0200
++++ pcc-libs-1.0.0/csu/linux/crtbegin.c 2011-04-12 08:36:48.951412645 +0200
+@@ -1,4 +1,4 @@
+-/* $Id: crtbegin.c,v 1.6 2009/08/16 23:07:07 gmcgarry Exp $ */
++/* $Id: crtbegin.c,v 1.7 2011/04/12 04:44:19 gmcgarry Exp $ */
+ /*-
+ * Copyright (c) 1998, 2001, 2002 The NetBSD Foundation, Inc.
+ * All rights reserved.
+@@ -40,16 +40,16 @@ void __do_global_dtors_aux(void);
+ extern void (*__CTOR_LIST__[1])(void);
+ extern void (*__DTOR_LIST__[1])(void);
+
+-asm( " .section .ctors\n"
+- " .align 2\n"
++asm( " .section .ctors,\"aw\",@progbits\n"
++ " .align 4\n"
+ "__CTOR_LIST__:\n"
+ #ifdef __x86_64__
+ " .quad -1\n"
+ #else
+ " .long -1\n"
+ #endif
+- " .section .dtors\n"
+- " .align 2\n"
++ " .section .dtors,\"aw\",@progbits\n"
++ " .align 4\n"
+ "__DTOR_LIST__:\n"
+ #ifdef __x86_64__
+ " .quad -1\n"
+@@ -120,4 +120,4 @@ void __call_##func(void) \
+ MD_CALL_STATIC_FUNCTION(.init, __do_global_ctors_aux)
+ MD_CALL_STATIC_FUNCTION(.fini, __do_global_dtors_aux)
+
+-IDENT("$Id: crtbegin.c,v 1.6 2009/08/16 23:07:07 gmcgarry Exp $");
++IDENT("$Id: crtbegin.c,v 1.7 2011/04/12 04:44:19 gmcgarry Exp $");