[llvm-dev] Linker Option support for ELF

Rafael Avila de Espindola via llvm-dev llvm-dev at lists.llvm.org
Mon Jan 8 16:32:41 PST 2018

Saleem Abdulrasool <compnerd at compnerd.org> writes:

> On Wed, Jan 3, 2018 at 8:30 PM, Reid Kleckner <rnk at google.com> wrote:
>> We should do this. ELF is the odd duck out that lacks this capability.
> Exactly, and the amount of work that swift goes through to accommodate this
> is silly.
>> I agree with Rafael we should have a whitelist of flags that we support,
>> but I'd rather leave the syntax as more or less just a response file.
>> That's basically what's implemented for COFF.
> This is precisely what I have been proposing: we pass through everything as
> if it as a response file, and the linker can whitelist the flags.

As long as we are strict with the white list and clearly document each
allowed flag, that is fine with me.


More information about the llvm-dev mailing list