summaryrefslogtreecommitdiffstats
path: root/lld/ELF/LinkerScript.h
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/LinkerScript.h')
-rw-r--r--lld/ELF/LinkerScript.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/lld/ELF/LinkerScript.h b/lld/ELF/LinkerScript.h
index 38c89ec6e23..00e4f9ec96e 100644
--- a/lld/ELF/LinkerScript.h
+++ b/lld/ELF/LinkerScript.h
@@ -219,8 +219,6 @@ struct ScriptConfiguration {
llvm::DenseMap<llvm::StringRef, MemoryRegion> MemoryRegions;
};
-extern ScriptConfiguration *ScriptConfig;
-
class LinkerScript {
protected:
void assignSymbol(SymbolAssignment *Cmd, bool InSec = false);
@@ -243,9 +241,6 @@ protected:
OutputSection *Aether;
bool ErrorOnMissingSection = false;
- // "ScriptConfig" is a bit too long, so define a short name for it.
- ScriptConfiguration &Opt = *ScriptConfig;
-
uint64_t Dot;
uint64_t ThreadBssOffset = 0;
@@ -287,6 +282,9 @@ public:
void writeDataBytes(StringRef Name, uint8_t *Buf);
void addSymbol(SymbolAssignment *Cmd);
void processCommands(OutputSectionFactory &Factory);
+
+ // Parsed linker script configurations are set to this struct.
+ ScriptConfiguration Opt;
};
extern LinkerScript *Script;
OpenPOWER on IntegriCloud