commit | 65a64c9c299a232c1082f16b59b43652ec0c0fcd | [log] [tgz] |
---|---|---|
author | Lang Hames <lhames@gmail.com> | Wed May 20 22:10:50 2015 +0000 |
committer | Lang Hames <lhames@gmail.com> | Wed May 20 22:10:50 2015 +0000 |
tree | e5ecf62f73aa9b042cf3c8795ee1ca7c4c0d1159 | |
parent | 267d31e13754fb747512c0d2a981b2ea5ae71e0f [diff] [blame] |
[LLD] Add support for the -stack_size option to Darwin ld. llvm-svn: 237841
diff --git a/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp b/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp index 5d85189..820959f 100644 --- a/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp +++ b/lld/lib/ReaderWriter/MachO/MachONormalizedFileBinaryWriter.cpp
@@ -829,7 +829,7 @@ ep->cmd = LC_MAIN; ep->cmdsize = sizeof(entry_point_command); ep->entryoff = _file.entryAddress - _seg1addr; - ep->stacksize = 0; + ep->stacksize = _file.stackSize; if (_swap) swapStruct(*ep); lc += sizeof(entry_point_command);