Skip to content

Commit 02e0d7f

Browse files
authored
Merge pull request #64 from arcnmx/lld-noload
lld NOLOAD fix
2 parents 5992729 + 2bb8c54 commit 02e0d7f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lld/ELF/ScriptParser.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -737,6 +737,7 @@ bool ScriptParser::readSectionDirective(OutputSection *cmd, StringRef tok1, Stri
737737
expect("(");
738738
if (consume("NOLOAD")) {
739739
cmd->noload = true;
740+
cmd->type = SHT_NOBITS;
740741
} else {
741742
skip(); // This is "COPY", "INFO" or "OVERLAY".
742743
cmd->nonAlloc = true;

0 commit comments

Comments
 (0)