mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-23 07:31:20 +02:00
* Add .note.GNU-stack section to .or files, so that executables do not get an executable stack, bug #16545
git-svn-id: trunk@16754 -
This commit is contained in:
parent
3a23a3ebe0
commit
a9b8343a7e
@ -487,6 +487,7 @@ begin
|
||||
fSections.Add('.text',SHT_PROGBITS,SHF_ALLOC or SHF_EXECINSTR,aStream.Position,0,4);
|
||||
fSections.Add('.data',SHT_PROGBITS,SHF_ALLOC or SHF_WRITE,aStream.Position,0,4);
|
||||
fSections.Add('.bss', SHT_NOBITS,SHF_ALLOC or SHF_WRITE,aStream.Position,0,4);
|
||||
fSections.Add('.note.GNU-stack', SHT_PROGBITS,0,aStream.Position,0,1);
|
||||
end;
|
||||
|
||||
procedure TAbstractElfSubWriter.WriteStrTab(aStream: TStream);
|
||||
|
Loading…
Reference in New Issue
Block a user