aboutsummaryrefslogtreecommitdiffstats
path: root/ELF/LinkerScript.h
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-05-30 17:38:04 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-05-30 17:38:04 +0000
commitcbb560c9ba3c378189c7a438bed9977b482410fb (patch)
tree8ed3968b9cb86039eb38b3b8d66fd7c17a5aed0f /ELF/LinkerScript.h
parentbef2946c219dc621608bcc9e47f8b973e5ef5c70 (diff)
downloadsrc-cbb560c9ba3c378189c7a438bed9977b482410fb.tar.gz
src-cbb560c9ba3c378189c7a438bed9977b482410fb.zip
Vendor import of lld trunk r304222:vendor/lld/lld-trunk-r304222
Notes
Notes: svn path=/vendor/lld/dist/; revision=319238 svn path=/vendor/lld/lld-trunk-r304222/; revision=319239; tag=vendor/lld/lld-trunk-r304222
Diffstat (limited to 'ELF/LinkerScript.h')
-rw-r--r--ELF/LinkerScript.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/ELF/LinkerScript.h b/ELF/LinkerScript.h
index e56e569d4e72..08f60f4517a7 100644
--- a/ELF/LinkerScript.h
+++ b/ELF/LinkerScript.h
@@ -41,7 +41,12 @@ struct ExprValue {
SectionBase *Sec;
uint64_t Val;
bool ForceAbsolute;
+ uint64_t Alignment = 1;
+ ExprValue(SectionBase *Sec, bool ForceAbsolute, uint64_t Val,
+ uint64_t Alignment)
+ : Sec(Sec), Val(Val), ForceAbsolute(ForceAbsolute), Alignment(Alignment) {
+ }
ExprValue(SectionBase *Sec, bool ForceAbsolute, uint64_t Val)
: Sec(Sec), Val(Val), ForceAbsolute(ForceAbsolute) {}
ExprValue(SectionBase *Sec, uint64_t Val) : ExprValue(Sec, false, Val) {}