mac/lld: Disable PIE, and disable TLS for protoc (for plugin dylibs)
lld/MachO currently doesn't produce working TLS for position-independent code. Disable PIE, and for protoc disable TLS (since protoc loads dylibs for plugins at runtime). The produced Chromium Framework still uses TLS and PIC and is still broken, but with this (and https://chromium-review.googlesource.com/c/chromium/src/+/2591007) all host binaries that run during the build at least work. So with this, a build with use_lld=true on a macOS machine at least gets mostly through the build (...and far enough to find new interesting problems in lld). Bug: 1149587 Change-Id: I862308158f4aaa4419f0fb5e98c206294a2835cb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2590392 Commit-Queue: Nico Weber <thakis@chromium.org> Commit-Queue: Robert Sesek <rsesek@chromium.org> Reviewed-by:Robert Sesek <rsesek@chromium.org> Auto-Submit: Nico Weber <thakis@chromium.org> Cr-Commit-Position: refs/heads/master@{#836863}
Showing
Please register or sign in to comment