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

This commit is contained in:
Pierre Muller 2023-07-17 10:50:29 +02:00
parent 79d1fcd40d
commit c249495e2d
4 changed files with 10 additions and 4 deletions

View File

@ -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

View File

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

View File

@ -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

View File

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