binutils: fix default
[openadk.git] / package / pcc-libs / patches / patch-csu_linux_crtbegin_c
bloba4f9777b3388bb22d92811e3b3beca94d4dd916e
1 --- pcc-libs-1.0.0.orig/csu/linux/crtbegin.c    2009-08-17 01:07:07.000000000 +0200
2 +++ pcc-libs-1.0.0/csu/linux/crtbegin.c 2011-04-12 08:36:48.951412645 +0200
3 @@ -1,4 +1,4 @@
4 -/*     $Id: crtbegin.c,v 1.6 2009/08/16 23:07:07 gmcgarry Exp $        */
5 +/*     $Id: crtbegin.c,v 1.7 2011/04/12 04:44:19 gmcgarry Exp $        */
6  /*-
7   * Copyright (c) 1998, 2001, 2002 The NetBSD Foundation, Inc.
8   * All rights reserved.
9 @@ -40,16 +40,16 @@ void __do_global_dtors_aux(void);
10  extern void (*__CTOR_LIST__[1])(void);
11  extern void (*__DTOR_LIST__[1])(void);
13 -asm(   "       .section .ctors\n"
14 -       "       .align 2\n"
15 +asm(   "       .section .ctors,\"aw\",@progbits\n"
16 +       "       .align 4\n"
17         "__CTOR_LIST__:\n"
18  #ifdef __x86_64__
19         "       .quad -1\n"
20  #else
21         "       .long -1\n"
22  #endif
23 -       "       .section .dtors\n"
24 -       "       .align 2\n"
25 +       "       .section .dtors,\"aw\",@progbits\n"
26 +       "       .align 4\n"
27         "__DTOR_LIST__:\n"
28  #ifdef __x86_64__
29         "       .quad -1\n"
30 @@ -120,4 +120,4 @@ void __call_##func(void)                                            \
31  MD_CALL_STATIC_FUNCTION(.init, __do_global_ctors_aux)
32  MD_CALL_STATIC_FUNCTION(.fini, __do_global_dtors_aux)
34 -IDENT("$Id: crtbegin.c,v 1.6 2009/08/16 23:07:07 gmcgarry Exp $");
35 +IDENT("$Id: crtbegin.c,v 1.7 2011/04/12 04:44:19 gmcgarry Exp $");