diff mbox

[h8300] Add flags to .section directive

Message ID 4E35FE09.2050105@redhat.com
State New
Headers show

Commit Message

Richard Henderson Aug. 1, 2011, 1:14 a.m. UTC
Binutils head warns about bare .section foo.


r~
diff mbox

Patch

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index a35b0e8..8bb0898 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@ 
 2011-07-31  Richard Henderson  <rth@redhat.com>
 
+	* config/h8300/crti.asm: Add flags to .section directive.
+	* config/h8300/crtn.asm: Likewise.
+
+2011-07-31  Richard Henderson  <rth@redhat.com>
+
 	* stor-layout.c (initialize_sizetypes): Handle unsigned short.
 	* tree.c (build_common_tree_nodes): Likewise.
 
diff --git a/gcc/config/h8300/crti.asm b/gcc/config/h8300/crti.asm
index e457409..7ee3ae7 100644
--- a/gcc/config/h8300/crti.asm
+++ b/gcc/config/h8300/crti.asm
@@ -55,9 +55,9 @@  see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 #endif
 #endif
 
-	.section .init
+	.section .init, "ax", @progbits
         .global  __init
 __init:
-        .section .fini
+        .section .fini, "ax", @progbits
         .global  __fini
 __fini:
diff --git a/gcc/config/h8300/crtn.asm b/gcc/config/h8300/crtn.asm
index 3115fcb..173fde1 100644
--- a/gcc/config/h8300/crtn.asm
+++ b/gcc/config/h8300/crtn.asm
@@ -46,8 +46,8 @@  see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 	.h8300sx
 #endif
 #endif
-	.section .init
+	.section .init, "ax", @progbits
 	rts
 
-	.section .fini
+	.section .fini, "ax", @progbits
 	rts