Skip to content

Commit

Permalink
[EraVM] Disable generation of .note.GNU-stack
Browse files Browse the repository at this point in the history
This section is not used, so disable generation of it.

Signed-off-by: Vladimir Radosavljevic <vr@matterlabs.dev>
  • Loading branch information
vladimirradosavljevic committed Aug 9, 2024
1 parent 4e4c2ba commit 1658250
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 0 additions & 2 deletions llvm/lib/Target/EraVM/MCTargetDesc/EraVMMCAsmInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@

using namespace llvm;

void EraVMMCAsmInfo::anchor() {}

EraVMMCAsmInfo::EraVMMCAsmInfo(const Triple &TheTriple) {
IsLittleEndian = false;
HasFunctionAlignment = false;
Expand Down
9 changes: 5 additions & 4 deletions llvm/lib/Target/EraVM/MCTargetDesc/EraVMMCAsmInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,20 @@
#ifndef LLVM_LIB_TARGET_ERAVM_MCTARGETDESC_ERAVMMCASMINFO_H
#define LLVM_LIB_TARGET_ERAVM_MCTARGETDESC_ERAVMMCASMINFO_H

#include "llvm/MC/MCAsmInfo.h"
#include "llvm/MC/MCAsmInfoCOFF.h"
#include "llvm/MC/MCAsmInfoDarwin.h"
#include "llvm/MC/MCAsmInfoELF.h"

namespace llvm {
class Triple;

class EraVMMCAsmInfo : public MCAsmInfoELF {
void anchor() override;

class EraVMMCAsmInfo : public MCAsmInfo {
public:
explicit EraVMMCAsmInfo(const Triple &TheTriple);
bool shouldOmitSectionDirective(StringRef) const override { return true; }
MCSection *getNonexecutableStackSection(MCContext &Ctx) const override {
return nullptr;
}
};

} // namespace llvm
Expand Down

0 comments on commit 1658250

Please sign in to comment.