Skip to content

Commit

Permalink
Merge pull request #64 from arcnmx/lld-noload
Browse files Browse the repository at this point in the history
lld NOLOAD fix
  • Loading branch information
nikic authored Jun 5, 2020
2 parents 5992729 + 2bb8c54 commit 02e0d7f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lld/ELF/ScriptParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,7 @@ bool ScriptParser::readSectionDirective(OutputSection *cmd, StringRef tok1, Stri
expect("(");
if (consume("NOLOAD")) {
cmd->noload = true;
cmd->type = SHT_NOBITS;
} else {
skip(); // This is "COPY", "INFO" or "OVERLAY".
cmd->nonAlloc = true;
Expand Down

0 comments on commit 02e0d7f

Please sign in to comment.