Skip to content
Snippets Groups Projects
  • Ed Schouten's avatar
    6944c5a9
    Enable PIE for CloudABI. · 6944c5a9
    Ed Schouten authored
    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.
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@265546 91177308-0d34-0410-b5e6-96231b3b80d8
    6944c5a9
    History
    Enable PIE for CloudABI.
    Ed Schouten authored
    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.
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@265546 91177308-0d34-0410-b5e6-96231b3b80d8
Code owners
Assign users and groups as approvers for specific file changes. Learn more.