[PATCH] D118724: [lld-macho] Add -pagezero_size
Jared Irwin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 1 17:27:00 PST 2022
Link1J added inline comments.
================
Comment at: lld/MachO/Target.h:38-39
magic = LP::magic;
pageZeroSize = LP::pageZeroSize;
+ pageZeroSize = config->pagezeroSize.getValueOr(pageZeroSize);
headerSize = sizeof(typename LP::mach_header);
----------------
oontvoo wrote:
>
I know that is how it should be, but it doesn't seem to build correctly on Linux.
Here is the error message that appears
```
ld.lld: error: undefined symbol: lld::macho::ILP32::pageZeroSize
>>> referenced by Optional.h:0 (/var/lib/buildkite-agent/builds/llvm-project/llvm/include/llvm/ADT/Optional.h:0)
>>> ARM.cpp.o:(lld::macho::createARMTargetInfo(unsigned int)) in archive lib/liblldMachO.a
>>> referenced by Optional.h:0 (/var/lib/buildkite-agent/builds/llvm-project/llvm/include/llvm/ADT/Optional.h:0)
>>> ARM64_32.cpp.o:(lld::macho::createARM64_32TargetInfo()) in archive lib/liblldMachO.a
ld.lld: error: undefined symbol: lld::macho::LP64::pageZeroSize
>>> referenced by Optional.h:0 (/var/lib/buildkite-agent/builds/llvm-project/llvm/include/llvm/ADT/Optional.h:0)
>>> ARM64.cpp.o:(lld::macho::createARM64TargetInfo()) in archive lib/liblldMachO.a
>>> referenced by Optional.h:0 (/var/lib/buildkite-agent/builds/llvm-project/llvm/include/llvm/ADT/Optional.h:0)
>>> X86_64.cpp.o:(lld::macho::createX86_64TargetInfo()) in archive lib/liblldMachO.a
```
Gotten from https://buildkite.com/llvm-project/premerge-checks/builds/76612#af4b783f-6fe5-4a09-a98e-9b180f113190/467-3299
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D118724/new/
https://reviews.llvm.org/D118724
More information about the llvm-commits
mailing list