浏览代码

add .text section directive to all crt_arch.h files missing it

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.
Rich Felker 9 年之前
父节点
当前提交
63caf1d207
共有 7 个文件被更改,包括 7 次插入0 次删除
  1. 1 0
      arch/aarch64/crt_arch.h
  2. 1 0
      arch/arm/crt_arch.h
  3. 1 0
      arch/microblaze/crt_arch.h
  4. 1 0
      arch/mips/crt_arch.h
  5. 1 0
      arch/or1k/crt_arch.h
  6. 1 0
      arch/powerpc/crt_arch.h
  7. 1 0
      arch/sh/crt_arch.h

+ 1 - 0
arch/aarch64/crt_arch.h

@@ -1,4 +1,5 @@
 __asm__(
+".text \n"
 ".global " START "\n"
 ".type " START ",%function\n"
 START ":\n"

+ 1 - 0
arch/arm/crt_arch.h

@@ -1,4 +1,5 @@
 __asm__(
+".text \n"
 ".global " START " \n"
 ".type " START ",%function \n"
 START ": \n"

+ 1 - 0
arch/microblaze/crt_arch.h

@@ -1,4 +1,5 @@
 __asm__(
+".text \n"
 ".global " START " \n"
 ".align  2 \n"
 START ": \n"

+ 1 - 0
arch/mips/crt_arch.h

@@ -1,6 +1,7 @@
 __asm__(
 ".set push\n"
 ".set noreorder\n"
+".text \n"
 ".global _" START "\n"
 ".global " START "\n"
 ".type   _" START ", @function\n"

+ 1 - 0
arch/or1k/crt_arch.h

@@ -1,4 +1,5 @@
 __asm__(
+".text \n"
 ".global " START " \n"
 ".align  4 \n"
 START ": \n"

+ 1 - 0
arch/powerpc/crt_arch.h

@@ -1,4 +1,5 @@
 __asm__(
+".text \n"
 ".global " START " \n"
 ".type   " START ", %function \n"
 START ": \n"

+ 1 - 0
arch/sh/crt_arch.h

@@ -1,4 +1,5 @@
 __asm__(
+".text \n"
 ".global " START " \n"
 START ": \n"
 "	mova 1f, r0 \n"