소스 검색

Add '%note' to .note.openbsd.ident section

Pierre Muller 2 년 전
부모
커밋
c249495e2d
4개의 변경된 파일10개의 추가작업 그리고 4개의 파일을 삭제
  1. 4 1
      rtl/openbsd/i386/openbsd_ident.inc
  2. 1 1
      rtl/openbsd/i386/prt0.as
  3. 4 1
      rtl/openbsd/x86_64/openbsd_ident.inc
  4. 1 1
      rtl/openbsd/x86_64/prt0.as

+ 4 - 1
rtl/openbsd/i386/openbsd_ident.inc

@@ -1,8 +1,11 @@
 {$asmmode att}
+{$if FPC_FULLVERSION>30300}
+  {$define USE_NOTE}
+{$endif}
 
 procedure OpenBSDIdentTag;nostackframe;assembler;
   asm
-    .section ".note.openbsd.ident", "a"
+    .section ".note.openbsd.ident", "a"{$ifdef USE_NOTE}, @note {$endif}
     .p2align 2
     .long    8
     .long    4

+ 1 - 1
rtl/openbsd/i386/prt0.as

@@ -1,4 +1,4 @@
-	.section ".note.openbsd.ident", "a"
+	.section ".note.openbsd.ident", "a", @note
 	.p2align 2
 	.long	8
 	.long	4

+ 4 - 1
rtl/openbsd/x86_64/openbsd_ident.inc

@@ -1,8 +1,11 @@
 {$asmmode gas}
+{$if FPC_FULLVERSION>30300}
+  {$define USE_NOTE}
+{$endif}
 
 procedure OpenBSDIdentTag;nostackframe;assembler;
   asm
-    .section ".note.openbsd.ident", "a"
+    .section ".note.openbsd.ident", "a"{$ifdef USE_NOTE}, @note {$endif}
     .p2align 2
     .long    8
     .long    4

+ 1 - 1
rtl/openbsd/x86_64/prt0.as

@@ -1,4 +1,4 @@
-	.section ".note.openbsd.ident", "a"
+	.section ".note.openbsd.ident", "a", @note
 	.p2align 2
 	.long	8
 	.long	4