mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 22:23:10 +00:00
Move getNonexecutableStackSection up to the base ELF class.
The .note.GNU-stack section is not SystemZ/X86 specific. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219796 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -25,9 +25,3 @@ SystemZMCAsmInfo::SystemZMCAsmInfo(StringRef TT) {
|
||||
SupportsDebugInformation = true;
|
||||
ExceptionsType = ExceptionHandling::DwarfCFI;
|
||||
}
|
||||
|
||||
const MCSection *
|
||||
SystemZMCAsmInfo::getNonexecutableStackSection(MCContext &Ctx) const {
|
||||
return Ctx.getELFSection(".note.GNU-stack", ELF::SHT_PROGBITS,
|
||||
0, SectionKind::getMetadata());
|
||||
}
|
||||
|
||||
@@ -19,9 +19,6 @@ class StringRef;
|
||||
class SystemZMCAsmInfo : public MCAsmInfoELF {
|
||||
public:
|
||||
explicit SystemZMCAsmInfo(StringRef TT);
|
||||
|
||||
// Override MCAsmInfo;
|
||||
const MCSection *getNonexecutableStackSection(MCContext &Ctx) const override;
|
||||
};
|
||||
|
||||
} // end namespace llvm
|
||||
|
||||
Reference in New Issue
Block a user