add .text section directive to all crt_arch.h files missing it
authorRich Felker <dalias@aerifal.cx>
Fri, 22 May 2015 05:50:05 +0000 (01:50 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 22 May 2015 05:50:05 +0000 (01:50 -0400)
i386 and x86_64 versions already had the .text directive; other archs
did not. normally, top-level (file scope) __asm__ starts in the .text
section anyway, but problems were reported with some versions of
clang, and it seems preferable to set it explicitly anyway, at least
for the sake of consistency between archs.

arch/aarch64/crt_arch.h
arch/arm/crt_arch.h
arch/microblaze/crt_arch.h
arch/mips/crt_arch.h
arch/or1k/crt_arch.h
arch/powerpc/crt_arch.h
arch/sh/crt_arch.h

index 3a4b321..b64fb3d 100644 (file)
@@ -1,4 +1,5 @@
 __asm__(
+".text \n"
 ".global " START "\n"
 ".type " START ",%function\n"
 START ":\n"
index fcf9527..99508b1 100644 (file)
@@ -1,4 +1,5 @@
 __asm__(
+".text \n"
 ".global " START " \n"
 ".type " START ",%function \n"
 START ": \n"
index ada98c8..bca78bf 100644 (file)
@@ -1,4 +1,5 @@
 __asm__(
+".text \n"
 ".global " START " \n"
 ".align  2 \n"
 START ": \n"
index 9a60be0..058de5c 100644 (file)
@@ -1,6 +1,7 @@
 __asm__(
 ".set push\n"
 ".set noreorder\n"
+".text \n"
 ".global _" START "\n"
 ".global " START "\n"
 ".type   _" START ", @function\n"
index 8441556..9e310ca 100644 (file)
@@ -1,4 +1,5 @@
 __asm__(
+".text \n"
 ".global " START " \n"
 ".align  4 \n"
 START ": \n"
index ec3cd29..9b65886 100644 (file)
@@ -1,4 +1,5 @@
 __asm__(
+".text \n"
 ".global " START " \n"
 ".type   " START ", %function \n"
 START ": \n"
index a873ffd..f890710 100644 (file)
@@ -1,4 +1,5 @@
 __asm__(
+".text \n"
 ".global " START " \n"
 START ": \n"
 "      mova 1f, r0 \n"