HomePhabricator

Enable PIE for CloudABI.

Authored by ed on Apr 6 2016, 8:37 AM.

Description

Enable PIE for CloudABI.

As we're currently working on making CloudABI executables easier to
emulate in userspace (e.g., on OS X and Windows), it makes a whole lot
of sense to build these using PIE. By using PIE, they can simply be
loaded into the existing process address space without clashes.

PIE support got added to CloudABI's C library and seems to work pretty
well. CloudABI does not make use of an ld.so, so the binary's _start()
has all the logic in it to do the relocations.

Now that all but one bug in LLD relating to PIE support have been
squashed (and a patch for that is already in code review), I'd like to
go ahead and force the use of PIE for Clang 3.9. When released, we'll
also switch over to using LLD exclusively.

llvm-svn: 265546

Details

Committed
edApr 6 2016, 8:37 AM
Parents
rG406094728964: clang-format: Support labels in brace-less ifs.
Branches
Unknown
Tags
Unknown