소스 검색

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"