[lld-macho] Support -dyld_env
authorVy Nguyen <vyng@google.com>
Fri, 16 Sep 2022 17:38:20 +0000 (13:38 -0400)
committerVy Nguyen <vyng@google.com>
Tue, 20 Sep 2022 14:16:45 +0000 (10:16 -0400)
commit016c2f5e3233e67f48c2a511962101876ef0b94c
treee3bb461bd18e04988e11ac9537d49423ebc13d0d
parent1a18fe65d321cb47d43682bd515afb140caccd47
[lld-macho] Support -dyld_env

This arg is undocumented but from looking at the code + experiment, it's used to add additional DYLD_ENVIRONMENT load commands to the output.

Differential Revision: https://reviews.llvm.org/D134058
lld/MachO/Config.h
lld/MachO/Driver.cpp
lld/MachO/Options.td
lld/MachO/Writer.cpp
lld/test/MachO/dyld-env.s [new file with mode: 0644]
llvm/include/llvm/BinaryFormat/MachO.h