summaryrefslogtreecommitdiffstats
path: root/lld/COFF/Config.h
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2019-05-24 12:42:36 +0000
committerRui Ueyama <ruiu@google.com>2019-05-24 12:42:36 +0000
commit74de6203efd12c5f57561a44b248051652a3de2c (patch)
tree3587e68ecbe26cbd842543eeddabe99b135f3f96 /lld/COFF/Config.h
parent8362cbe13b3226c7048b8c523e2cc8363ace47c5 (diff)
downloadbcm5719-llvm-74de6203efd12c5f57561a44b248051652a3de2c.tar.gz
bcm5719-llvm-74de6203efd12c5f57561a44b248051652a3de2c.zip
[LLD][COFF] Implement /filealign parameter
Patch by Stefan Schmidt. This adds the /filealign parameter to lld, which allows to specify the section alignment in the output file (as it does on Microsoft's link.exe). This is required to be able to load dynamically linked libraries on the original Xbox, where the debugger monitor expects the section alignment in the file to be the same as in memory. llvm-svn: 361634
Diffstat (limited to 'lld/COFF/Config.h')
-rw-r--r--lld/COFF/Config.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lld/COFF/Config.h b/lld/COFF/Config.h
index 3b2fe2769c6..ba2bbcdebaf 100644
--- a/lld/COFF/Config.h
+++ b/lld/COFF/Config.h
@@ -180,6 +180,7 @@ struct Configuration {
std::string MapFile;
uint64_t ImageBase = -1;
+ uint64_t FileAlign = 512;
uint64_t StackReserve = 1024 * 1024;
uint64_t StackCommit = 4096;
uint64_t HeapReserve = 1024 * 1024;
OpenPOWER on IntegriCloud