summaryrefslogtreecommitdiff
path: root/package/pcc-libs/patches/patch-csu_linux_crtend_c
blob: 257f7138ff0e61166a0e94d91492ffce1d665b63 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- pcc-libs-1.0.0.orig/csu/linux/crtend.c	2009-08-17 01:07:07.000000000 +0200
+++ pcc-libs-1.0.0/csu/linux/crtend.c	2011-04-12 08:36:48.951412645 +0200
@@ -1,4 +1,4 @@
-/*      $Id: crtend.c,v 1.3 2009/08/16 23:07:07 gmcgarry Exp $	*/
+/*      $Id: crtend.c,v 1.4 2011/04/12 04:44:19 gmcgarry Exp $	*/
 /*-
  * Copyright (c) 2008 Gregory McGarry <g.mcgarry@ieee.org>
  *
@@ -17,7 +17,7 @@
 
 #include "common.h"
 
-asm(	"	.section .ctors\n"
+asm(	"	.section .ctors,\"aw\",@progbits\n"
 #ifdef __x86_64__
 	"	.quad 0\n"
 #else
@@ -25,7 +25,7 @@ asm(	"	.section .ctors\n"
 #endif
 );
 
-asm(	"	.section .dtors\n"
+asm(	"	.section .dtors,\"aw\",@progbits\n"
 #ifdef __x86_64__
 	"	.quad 0\n"
 #else
@@ -33,4 +33,4 @@ asm(	"	.section .dtors\n"
 #endif
 );
 
-IDENT("$Id: crtend.c,v 1.3 2009/08/16 23:07:07 gmcgarry Exp $");
+IDENT("$Id: crtend.c,v 1.4 2011/04/12 04:44:19 gmcgarry Exp $");