mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-12-02 18:37:18 +01:00
Add '%note' to .note.openbsd.ident section
This commit is contained in:
parent
79d1fcd40d
commit
c249495e2d
@ -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,4 +1,4 @@
|
||||
.section ".note.openbsd.ident", "a"
|
||||
.section ".note.openbsd.ident", "a", @note
|
||||
.p2align 2
|
||||
.long 8
|
||||
.long 4
|
||||
|
||||
@ -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,4 +1,4 @@
|
||||
.section ".note.openbsd.ident", "a"
|
||||
.section ".note.openbsd.ident", "a", @note
|
||||
.p2align 2
|
||||
.long 8
|
||||
.long 4
|
||||
|
||||
Loading…
Reference in New Issue
Block a user