2016-02-11 21:17:59 +00:00
|
|
|
//===- LinkerScript.h -------------------------------------------*- C++ -*-===//
|
|
|
|
//
|
|
|
|
// The LLVM Linker
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef LLD_ELF_LINKER_SCRIPT_H
|
|
|
|
#define LLD_ELF_LINKER_SCRIPT_H
|
|
|
|
|
2016-09-16 20:21:55 +00:00
|
|
|
#include "Config.h"
|
2016-09-02 21:17:20 +00:00
|
|
|
#include "Strings.h"
|
2016-07-19 09:25:43 +00:00
|
|
|
#include "Writer.h"
|
2016-02-11 21:17:59 +00:00
|
|
|
#include "lld/Core/LLVM.h"
|
2016-11-05 01:00:56 +00:00
|
|
|
#include "llvm/ADT/ArrayRef.h"
|
2017-01-24 02:34:00 +00:00
|
|
|
#include "llvm/ADT/DenseMap.h"
|
2016-09-16 15:10:23 +00:00
|
|
|
#include "llvm/ADT/DenseSet.h"
|
2016-11-05 01:00:56 +00:00
|
|
|
#include "llvm/ADT/StringRef.h"
|
2016-02-11 21:38:55 +00:00
|
|
|
#include "llvm/Support/MemoryBuffer.h"
|
2016-11-05 01:00:56 +00:00
|
|
|
#include <cstddef>
|
|
|
|
#include <cstdint>
|
2016-11-05 22:37:59 +00:00
|
|
|
#include <functional>
|
2016-11-05 01:00:56 +00:00
|
|
|
#include <memory>
|
|
|
|
#include <vector>
|
2016-02-11 21:17:59 +00:00
|
|
|
|
|
|
|
namespace lld {
|
2016-02-28 00:25:54 +00:00
|
|
|
namespace elf {
|
2016-11-05 01:00:56 +00:00
|
|
|
|
2016-08-31 13:28:33 +00:00
|
|
|
class DefinedCommon;
|
2016-08-18 13:00:49 +00:00
|
|
|
class ScriptParser;
|
2016-07-29 05:48:39 +00:00
|
|
|
class SymbolBody;
|
2017-02-23 02:28:28 +00:00
|
|
|
class InputSectionBase;
|
2017-02-23 16:49:07 +00:00
|
|
|
class InputSection;
|
2017-02-24 15:07:30 +00:00
|
|
|
class OutputSection;
|
2017-02-27 02:31:48 +00:00
|
|
|
class OutputSectionFactory;
|
2017-02-23 02:32:18 +00:00
|
|
|
class InputSectionBase;
|
2017-03-10 00:47:33 +00:00
|
|
|
class SectionBase;
|
2016-02-11 21:17:59 +00:00
|
|
|
|
2017-03-17 13:05:04 +00:00
|
|
|
struct ExprValue {
|
|
|
|
SectionBase *Sec;
|
|
|
|
uint64_t Val;
|
|
|
|
bool ForceAbsolute;
|
|
|
|
|
|
|
|
ExprValue(SectionBase *Sec, bool ForceAbsolute, uint64_t Val)
|
|
|
|
: Sec(Sec), Val(Val), ForceAbsolute(ForceAbsolute) {}
|
|
|
|
ExprValue(SectionBase *Sec, uint64_t Val) : ExprValue(Sec, false, Val) {}
|
|
|
|
ExprValue(uint64_t Val) : ExprValue(nullptr, Val) {}
|
|
|
|
bool isAbsolute() const { return ForceAbsolute || Sec == nullptr; }
|
|
|
|
uint64_t getValue() const;
|
2017-03-17 14:55:36 +00:00
|
|
|
uint64_t getSecAddr() const;
|
2017-03-17 13:05:04 +00:00
|
|
|
};
|
|
|
|
|
2016-10-13 23:08:33 +00:00
|
|
|
// This represents an expression in the linker script.
|
|
|
|
// ScriptParser::readExpr reads an expression and returns an Expr.
|
2017-03-17 13:05:04 +00:00
|
|
|
// Later, we evaluate the expression by calling the function.
|
|
|
|
typedef std::function<ExprValue()> Expr;
|
Make readExpr return an Expr object instead of a vector of tokens.
Previously, we handled an expression as a vector of tokens. In other
words, an expression was a vector of uncooked raw StringRefs.
When we need a value of an expression, we used ExprParser to run
the expression.
The separation was needed essentially because parse time is too
early to evaluate an expression. In order to evaluate an expression,
we need to finalize section sizes. Because linker script parsing
is done at very early stage of the linking process, we can't
evaluate expressions while parsing.
The above mechanism worked fairly well, but there were a few
drawbacks.
One thing is that we sometimes have to parse the same expression
more than once in order to find the end of the expression.
In some contexts, linker script expressions have no clear end marker.
So, we needed to recognize balanced expressions and ternary operators.
The other is poor error reporting. Since expressions are parsed
basically twice, and some information that is available at the first
stage is lost in the second stage, it was hard to print out
apprpriate error messages.
This patch fixes the issues with a new approach.
Now the expression parsing is integrated into ScriptParser.
ExprParser class is removed. Expressions are represented as lambdas
instead of vectors of tokens. Lambdas captures information they
need to run themselves when they are created.
In this way, ends of expressions are naturally detected, and
errors are handled in the usual way. This patch also reduces
the amount of code.
Differential Revision: https://reviews.llvm.org/D22728
llvm-svn: 276574
2016-07-24 18:19:40 +00:00
|
|
|
|
2016-04-20 20:13:41 +00:00
|
|
|
// Parses a linker script. Calling this function updates
|
|
|
|
// Config and ScriptConfig.
|
|
|
|
void readLinkerScript(MemoryBufferRef MB);
|
|
|
|
|
2016-10-13 23:08:33 +00:00
|
|
|
// Parses a version script.
|
2016-08-31 09:08:26 +00:00
|
|
|
void readVersionScript(MemoryBufferRef MB);
|
|
|
|
|
2016-12-08 17:54:26 +00:00
|
|
|
void readDynamicList(MemoryBufferRef MB);
|
|
|
|
|
2016-07-21 14:26:59 +00:00
|
|
|
// This enum is used to implement linker script SECTIONS command.
|
|
|
|
// https://sourceware.org/binutils/docs/ld/SECTIONS.html#SECTIONS
|
|
|
|
enum SectionsCommandKind {
|
2016-09-26 19:22:50 +00:00
|
|
|
AssignmentKind, // . = expr or <sym> = expr
|
2016-07-21 14:26:59 +00:00
|
|
|
OutputSectionKind,
|
2016-08-04 09:29:31 +00:00
|
|
|
InputSectionKind,
|
2016-09-26 19:22:50 +00:00
|
|
|
AssertKind, // ASSERT(expr)
|
|
|
|
BytesDataKind // BYTE(expr), SHORT(expr), LONG(expr) or QUAD(expr)
|
2016-02-12 21:47:28 +00:00
|
|
|
};
|
|
|
|
|
2016-07-21 06:43:01 +00:00
|
|
|
struct BaseCommand {
|
|
|
|
BaseCommand(int K) : Kind(K) {}
|
2016-11-05 01:00:56 +00:00
|
|
|
|
|
|
|
virtual ~BaseCommand() = default;
|
|
|
|
|
2016-07-21 06:43:01 +00:00
|
|
|
int Kind;
|
|
|
|
};
|
2016-04-16 10:10:32 +00:00
|
|
|
|
2016-10-13 23:08:33 +00:00
|
|
|
// This represents ". = <expr>" or "<symbol> = <expr>".
|
2016-07-21 06:43:01 +00:00
|
|
|
struct SymbolAssignment : BaseCommand {
|
2017-02-22 09:13:04 +00:00
|
|
|
SymbolAssignment(StringRef Name, Expr E, std::string Loc)
|
|
|
|
: BaseCommand(AssignmentKind), Name(Name), Expression(E), Location(Loc) {}
|
2016-11-05 01:00:56 +00:00
|
|
|
|
2016-07-21 06:43:01 +00:00
|
|
|
static bool classof(const BaseCommand *C);
|
2016-07-29 05:52:33 +00:00
|
|
|
|
|
|
|
// The LHS of an expression. Name is either a symbol name or ".".
|
2016-07-21 06:43:01 +00:00
|
|
|
StringRef Name;
|
2016-07-29 05:52:33 +00:00
|
|
|
SymbolBody *Sym = nullptr;
|
|
|
|
|
|
|
|
// The RHS of an expression.
|
Make readExpr return an Expr object instead of a vector of tokens.
Previously, we handled an expression as a vector of tokens. In other
words, an expression was a vector of uncooked raw StringRefs.
When we need a value of an expression, we used ExprParser to run
the expression.
The separation was needed essentially because parse time is too
early to evaluate an expression. In order to evaluate an expression,
we need to finalize section sizes. Because linker script parsing
is done at very early stage of the linking process, we can't
evaluate expressions while parsing.
The above mechanism worked fairly well, but there were a few
drawbacks.
One thing is that we sometimes have to parse the same expression
more than once in order to find the end of the expression.
In some contexts, linker script expressions have no clear end marker.
So, we needed to recognize balanced expressions and ternary operators.
The other is poor error reporting. Since expressions are parsed
basically twice, and some information that is available at the first
stage is lost in the second stage, it was hard to print out
apprpriate error messages.
This patch fixes the issues with a new approach.
Now the expression parsing is integrated into ScriptParser.
ExprParser class is removed. Expressions are represented as lambdas
instead of vectors of tokens. Lambdas captures information they
need to run themselves when they are created.
In this way, ends of expressions are naturally detected, and
errors are handled in the usual way. This patch also reduces
the amount of code.
Differential Revision: https://reviews.llvm.org/D22728
llvm-svn: 276574
2016-07-24 18:19:40 +00:00
|
|
|
Expr Expression;
|
2016-07-29 05:52:33 +00:00
|
|
|
|
|
|
|
// Command attributes for PROVIDE, HIDDEN and PROVIDE_HIDDEN.
|
2016-07-22 07:38:40 +00:00
|
|
|
bool Provide = false;
|
|
|
|
bool Hidden = false;
|
2017-02-21 14:50:38 +00:00
|
|
|
|
2017-02-22 09:13:04 +00:00
|
|
|
// Holds file name and line number for error reporting.
|
2017-02-21 14:50:38 +00:00
|
|
|
std::string Location;
|
2016-07-21 06:43:01 +00:00
|
|
|
};
|
|
|
|
|
2016-07-22 03:36:24 +00:00
|
|
|
// Linker scripts allow additional constraints to be put on ouput sections.
|
2016-10-13 23:08:33 +00:00
|
|
|
// If an output section is marked as ONLY_IF_RO, the section is created
|
|
|
|
// only if its input sections are read-only. Likewise, an output section
|
|
|
|
// with ONLY_IF_RW is created if all input sections are RW.
|
2016-07-25 22:00:10 +00:00
|
|
|
enum class ConstraintKind { NoConstraint, ReadOnly, ReadWrite };
|
2016-07-22 03:36:24 +00:00
|
|
|
|
2016-07-21 06:43:01 +00:00
|
|
|
struct OutputSectionCommand : BaseCommand {
|
|
|
|
OutputSectionCommand(StringRef Name)
|
|
|
|
: BaseCommand(OutputSectionKind), Name(Name) {}
|
2016-11-05 01:00:56 +00:00
|
|
|
|
2016-07-21 06:43:01 +00:00
|
|
|
static bool classof(const BaseCommand *C);
|
2016-11-05 01:00:56 +00:00
|
|
|
|
2016-07-12 06:39:48 +00:00
|
|
|
StringRef Name;
|
2016-07-25 08:29:46 +00:00
|
|
|
Expr AddrExpr;
|
2016-07-26 18:06:29 +00:00
|
|
|
Expr AlignExpr;
|
2016-10-06 09:39:28 +00:00
|
|
|
Expr LMAExpr;
|
2016-08-19 15:18:23 +00:00
|
|
|
Expr SubalignExpr;
|
2016-07-21 14:26:59 +00:00
|
|
|
std::vector<std::unique_ptr<BaseCommand>> Commands;
|
2016-07-19 09:25:43 +00:00
|
|
|
std::vector<StringRef> Phdrs;
|
2016-11-19 18:05:56 +00:00
|
|
|
uint32_t Filler = 0;
|
2016-07-25 22:00:10 +00:00
|
|
|
ConstraintKind Constraint = ConstraintKind::NoConstraint;
|
2016-12-05 16:38:32 +00:00
|
|
|
std::string Location;
|
2017-01-24 02:34:00 +00:00
|
|
|
std::string MemoryRegionName;
|
2016-07-19 09:25:43 +00:00
|
|
|
};
|
|
|
|
|
2016-09-17 07:31:49 +00:00
|
|
|
// This struct represents one section match pattern in SECTIONS() command.
|
2016-09-17 02:23:40 +00:00
|
|
|
// It can optionally have negative match pattern for EXCLUDED_FILE command.
|
2016-09-21 15:56:44 +00:00
|
|
|
// Also it may be surrounded with SORT() command, so contains sorting rules.
|
2016-09-17 02:23:40 +00:00
|
|
|
struct SectionPattern {
|
2016-11-03 17:57:38 +00:00
|
|
|
SectionPattern(StringMatcher &&Pat1, StringMatcher &&Pat2)
|
|
|
|
: ExcludedFilePat(Pat1), SectionPat(Pat2) {}
|
|
|
|
|
|
|
|
StringMatcher ExcludedFilePat;
|
|
|
|
StringMatcher SectionPat;
|
2016-09-21 15:56:44 +00:00
|
|
|
SortSectionPolicy SortOuter;
|
|
|
|
SortSectionPolicy SortInner;
|
2016-09-17 02:23:40 +00:00
|
|
|
};
|
|
|
|
|
2016-07-21 14:26:59 +00:00
|
|
|
struct InputSectionDescription : BaseCommand {
|
2016-09-02 21:17:20 +00:00
|
|
|
InputSectionDescription(StringRef FilePattern)
|
2016-12-21 02:27:14 +00:00
|
|
|
: BaseCommand(InputSectionKind), FilePat(FilePattern) {}
|
2016-11-05 01:00:56 +00:00
|
|
|
|
2016-07-21 14:26:59 +00:00
|
|
|
static bool classof(const BaseCommand *C);
|
2016-11-05 01:00:56 +00:00
|
|
|
|
2016-11-03 17:57:38 +00:00
|
|
|
StringMatcher FilePat;
|
2016-09-17 02:23:40 +00:00
|
|
|
|
2016-09-17 07:31:49 +00:00
|
|
|
// Input sections that matches at least one of SectionPatterns
|
2016-09-17 02:34:50 +00:00
|
|
|
// will be associated with this InputSectionDescription.
|
2016-09-20 00:02:06 +00:00
|
|
|
std::vector<SectionPattern> SectionPatterns;
|
2016-09-17 02:23:40 +00:00
|
|
|
|
2017-02-23 02:32:18 +00:00
|
|
|
std::vector<InputSectionBase *> Sections;
|
2016-07-21 14:26:59 +00:00
|
|
|
};
|
|
|
|
|
2016-10-13 23:08:33 +00:00
|
|
|
// Represents an ASSERT().
|
2016-08-04 09:29:31 +00:00
|
|
|
struct AssertCommand : BaseCommand {
|
|
|
|
AssertCommand(Expr E) : BaseCommand(AssertKind), Expression(E) {}
|
2016-11-05 01:00:56 +00:00
|
|
|
|
2016-08-04 09:29:31 +00:00
|
|
|
static bool classof(const BaseCommand *C);
|
2016-11-05 01:00:56 +00:00
|
|
|
|
2016-08-04 09:29:31 +00:00
|
|
|
Expr Expression;
|
|
|
|
};
|
|
|
|
|
2016-10-13 23:08:33 +00:00
|
|
|
// Represents BYTE(), SHORT(), LONG(), or QUAD().
|
2016-09-26 19:22:50 +00:00
|
|
|
struct BytesDataCommand : BaseCommand {
|
2016-12-08 23:21:30 +00:00
|
|
|
BytesDataCommand(Expr E, unsigned Size)
|
|
|
|
: BaseCommand(BytesDataKind), Expression(E), Size(Size) {}
|
2016-11-05 01:00:56 +00:00
|
|
|
|
2016-09-26 19:22:50 +00:00
|
|
|
static bool classof(const BaseCommand *C);
|
2016-11-05 01:00:56 +00:00
|
|
|
|
2016-12-08 23:21:30 +00:00
|
|
|
Expr Expression;
|
2016-09-26 19:22:50 +00:00
|
|
|
unsigned Offset;
|
|
|
|
unsigned Size;
|
|
|
|
};
|
|
|
|
|
2016-07-19 09:25:43 +00:00
|
|
|
struct PhdrsCommand {
|
|
|
|
StringRef Name;
|
|
|
|
unsigned Type;
|
|
|
|
bool HasFilehdr;
|
|
|
|
bool HasPhdrs;
|
2016-07-21 10:43:25 +00:00
|
|
|
unsigned Flags;
|
2016-09-09 09:46:16 +00:00
|
|
|
Expr LMAExpr;
|
2016-04-16 10:10:32 +00:00
|
|
|
};
|
|
|
|
|
2017-01-24 02:34:00 +00:00
|
|
|
// This struct is used to represent the location and size of regions of
|
|
|
|
// target memory. Instances of the struct are created by parsing the
|
|
|
|
// MEMORY command.
|
|
|
|
struct MemoryRegion {
|
|
|
|
std::string Name;
|
|
|
|
uint64_t Origin;
|
|
|
|
uint64_t Length;
|
|
|
|
uint64_t Offset;
|
|
|
|
uint32_t Flags;
|
2017-01-26 02:58:59 +00:00
|
|
|
uint32_t NegFlags;
|
2017-01-24 02:34:00 +00:00
|
|
|
};
|
|
|
|
|
2016-04-20 20:13:41 +00:00
|
|
|
// ScriptConfiguration holds linker script parse results.
|
|
|
|
struct ScriptConfiguration {
|
2016-04-16 10:10:32 +00:00
|
|
|
// Used to assign addresses to sections.
|
2016-07-21 06:43:01 +00:00
|
|
|
std::vector<std::unique_ptr<BaseCommand>> Commands;
|
2016-04-16 10:10:32 +00:00
|
|
|
|
2016-07-19 09:25:43 +00:00
|
|
|
// Used to assign sections to headers.
|
2016-07-20 15:09:10 +00:00
|
|
|
std::vector<PhdrsCommand> PhdrsCommands;
|
|
|
|
|
2016-09-14 08:32:36 +00:00
|
|
|
bool HasSections = false;
|
2016-04-20 20:13:41 +00:00
|
|
|
|
2016-04-21 22:00:51 +00:00
|
|
|
// List of section patterns specified with KEEP commands. They will
|
|
|
|
// be kept even if they are unused and --gc-sections is specified.
|
2016-10-05 09:36:59 +00:00
|
|
|
std::vector<InputSectionDescription *> KeptSections;
|
2017-01-24 02:34:00 +00:00
|
|
|
|
|
|
|
// A map from memory region name to a memory region descriptor.
|
|
|
|
llvm::DenseMap<llvm::StringRef, MemoryRegion> MemoryRegions;
|
2016-02-11 21:17:59 +00:00
|
|
|
};
|
|
|
|
|
2016-04-20 20:13:41 +00:00
|
|
|
extern ScriptConfiguration *ScriptConfig;
|
|
|
|
|
2017-03-21 23:02:51 +00:00
|
|
|
class LinkerScript {
|
2017-03-14 09:03:53 +00:00
|
|
|
protected:
|
2017-03-14 12:03:34 +00:00
|
|
|
void assignSymbol(SymbolAssignment *Cmd, bool InSec = false);
|
|
|
|
void computeInputSections(InputSectionDescription *);
|
|
|
|
void setDot(Expr E, const Twine &Loc, bool InSec = false);
|
|
|
|
|
|
|
|
std::vector<InputSectionBase *>
|
|
|
|
createInputSectionList(OutputSectionCommand &Cmd);
|
|
|
|
|
|
|
|
std::vector<size_t> getPhdrIndices(StringRef SectionName);
|
|
|
|
size_t getPhdrIndex(const Twine &Loc, StringRef PhdrName);
|
|
|
|
|
|
|
|
MemoryRegion *findMemoryRegion(OutputSectionCommand *Cmd, OutputSection *Sec);
|
|
|
|
|
|
|
|
void switchTo(OutputSection *Sec);
|
|
|
|
void flush();
|
|
|
|
void output(InputSection *Sec);
|
|
|
|
void process(BaseCommand &Base);
|
|
|
|
|
2017-03-14 09:03:53 +00:00
|
|
|
OutputSection *Aether;
|
2017-03-17 13:05:04 +00:00
|
|
|
bool ErrorOnMissingSection = false;
|
2017-03-14 09:03:53 +00:00
|
|
|
|
|
|
|
// "ScriptConfig" is a bit too long, so define a short name for it.
|
|
|
|
ScriptConfiguration &Opt = *ScriptConfig;
|
|
|
|
|
2017-03-16 21:50:30 +00:00
|
|
|
uint64_t Dot;
|
2017-03-14 10:00:19 +00:00
|
|
|
uint64_t ThreadBssOffset = 0;
|
|
|
|
|
2017-03-14 12:03:34 +00:00
|
|
|
std::function<uint64_t()> LMAOffset;
|
|
|
|
OutputSection *CurOutSec = nullptr;
|
|
|
|
MemoryRegion *CurMemRegion = nullptr;
|
|
|
|
|
|
|
|
llvm::DenseSet<OutputSection *> AlreadyOutputOS;
|
|
|
|
llvm::DenseSet<InputSectionBase *> AlreadyOutputIS;
|
|
|
|
|
2017-03-14 09:03:53 +00:00
|
|
|
public:
|
|
|
|
bool hasPhdrsCommands() { return !Opt.PhdrsCommands.empty(); }
|
2017-03-16 21:50:30 +00:00
|
|
|
uint64_t getDot() { return Dot; }
|
2017-03-14 10:15:53 +00:00
|
|
|
OutputSection *getOutputSection(const Twine &Loc, StringRef S);
|
2017-03-14 10:24:47 +00:00
|
|
|
uint64_t getOutputSectionSize(StringRef S);
|
2017-03-15 15:42:44 +00:00
|
|
|
void discard(ArrayRef<InputSectionBase *> V);
|
2017-03-14 09:03:53 +00:00
|
|
|
|
2017-03-20 10:09:58 +00:00
|
|
|
ExprValue getSymbolValue(const Twine &Loc, StringRef S);
|
|
|
|
bool isDefined(StringRef S);
|
2017-03-14 10:15:53 +00:00
|
|
|
|
2017-03-16 21:50:30 +00:00
|
|
|
std::vector<OutputSection *> *OutputSections;
|
2017-02-27 02:31:48 +00:00
|
|
|
void addOrphanSections(OutputSectionFactory &Factory);
|
2016-11-14 14:23:35 +00:00
|
|
|
void removeEmptyCommands();
|
2016-09-22 14:40:50 +00:00
|
|
|
void adjustSectionsBeforeSorting();
|
2016-11-14 15:39:38 +00:00
|
|
|
void adjustSectionsAfterSorting();
|
2016-07-20 17:19:03 +00:00
|
|
|
|
2016-12-19 17:01:01 +00:00
|
|
|
std::vector<PhdrEntry> createPhdrs();
|
2016-08-16 06:40:58 +00:00
|
|
|
bool ignoreInterpSection();
|
2016-07-23 14:18:48 +00:00
|
|
|
|
2016-11-19 18:05:56 +00:00
|
|
|
uint32_t getFiller(StringRef Name);
|
2016-10-06 09:39:28 +00:00
|
|
|
bool hasLMA(StringRef Name);
|
2017-02-23 02:28:28 +00:00
|
|
|
bool shouldKeep(InputSectionBase *S);
|
2016-09-16 15:10:23 +00:00
|
|
|
void assignOffsets(OutputSectionCommand *Cmd);
|
2016-11-14 14:13:32 +00:00
|
|
|
void placeOrphanSections();
|
2017-03-15 03:33:23 +00:00
|
|
|
void processNonSectionCommands();
|
2016-12-19 17:01:01 +00:00
|
|
|
void assignAddresses(std::vector<PhdrEntry> &Phdrs);
|
2016-09-20 22:43:15 +00:00
|
|
|
int getSectionIndex(StringRef Name);
|
2016-07-25 22:51:07 +00:00
|
|
|
|
2017-03-14 12:03:34 +00:00
|
|
|
void writeDataBytes(StringRef Name, uint8_t *Buf);
|
|
|
|
void addSymbol(SymbolAssignment *Cmd);
|
|
|
|
void processCommands(OutputSectionFactory &Factory);
|
2016-04-20 20:13:41 +00:00
|
|
|
};
|
|
|
|
|
2017-03-21 23:02:51 +00:00
|
|
|
extern LinkerScript *Script;
|
2016-09-08 08:19:13 +00:00
|
|
|
|
2016-11-05 01:00:56 +00:00
|
|
|
} // end namespace elf
|
|
|
|
} // end namespace lld
|
2016-02-11 21:17:59 +00:00
|
|
|
|
2016-11-05 01:00:56 +00:00
|
|
|
#endif // LLD_ELF_LINKER_SCRIPT_H
|