瀏覽代碼

Add .section .note.GNU-stack,,@progbits to all .as files for FreeBSD OS

Pierre Muller 2 月之前
父節點
當前提交
bab854df2f
共有 3 個文件被更改,包括 4 次插入0 次删除
  1. 2 0
      rtl/freebsd/i386/cprt0.as
  2. 1 0
      rtl/freebsd/i386/gprt0.as
  3. 1 0
      rtl/freebsd/x86_64/prt0.as

+ 2 - 0
rtl/freebsd/i386/cprt0.as

@@ -201,3 +201,5 @@ operatingsystem_parameters:
 
 
 //.section .threadvar,"aw",@nobits
 //.section .threadvar,"aw",@nobits
         .comm   ___fpc_threadvar_offset,4
         .comm   ___fpc_threadvar_offset,4
+.section .note.GNU-stack,"",@progbits
+

+ 1 - 0
rtl/freebsd/i386/gprt0.as

@@ -162,3 +162,4 @@ _haltproc:
         .comm operatingsystem_parameter_envp,4
         .comm operatingsystem_parameter_envp,4
         .comm operatingsystem_parameter_argc,4
         .comm operatingsystem_parameter_argc,4
         .comm operatingsystem_parameter_argv,4
         .comm operatingsystem_parameter_argv,4
+.section .note.GNU-stack,"",@progbits

+ 1 - 0
rtl/freebsd/x86_64/prt0.as

@@ -166,4 +166,5 @@ operatingsystem_parameters:
 	.p2align 3
 	.p2align 3
 .LEFDE1:
 .LEFDE1:
 	.ident	"GCC: (GNU) 3.3.3 [FreeBSD] 20031106"
 	.ident	"GCC: (GNU) 3.3.3 [FreeBSD] 20031106"
+.section .note.GNU-stack,"",@progbits