SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
19
devel/llvm/patches/patch-lib_MC_MCELFStreamer_cpp
Normal file
19
devel/llvm/patches/patch-lib_MC_MCELFStreamer_cpp
Normal file
|
@ -0,0 +1,19 @@
|
|||
getNonexecutableStackSection() may return nullptr.
|
||||
|
||||
Index: lib/MC/MCELFStreamer.cpp
|
||||
--- lib/MC/MCELFStreamer.cpp.orig
|
||||
+++ lib/MC/MCELFStreamer.cpp
|
||||
@@ -93,8 +93,11 @@ void MCELFStreamer::InitSections(bool NoExecStack) {
|
||||
SwitchSection(Ctx.getObjectFileInfo()->getTextSection());
|
||||
emitCodeAlignment(4);
|
||||
|
||||
- if (NoExecStack)
|
||||
- SwitchSection(Ctx.getAsmInfo()->getNonexecutableStackSection(Ctx));
|
||||
+ if (NoExecStack) {
|
||||
+ MCSection *s = Ctx.getAsmInfo()->getNonexecutableStackSection(Ctx);
|
||||
+ if (s)
|
||||
+ SwitchSection(s);
|
||||
+ }
|
||||
}
|
||||
|
||||
void MCELFStreamer::emitLabel(MCSymbol *S, SMLoc Loc) {
|
Loading…
Add table
Add a link
Reference in a new issue