[PATCH] D19190: [ELF] - Implemented PROVIDE linker script command.

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 19 08:05:42 PDT 2016


On 19 April 2016 at 10:48, George Rimar <grimar at accesssoftek.com> wrote:
>>If at all possible my preference would be:
>>
>>* Require PRODIVE to be in an unambiguous location: inside an
>>OutputSection definition.
>>* Produce DefinedSynthetic symbols for them so that the section is set
>>correctly.
>>
>>Cheers,
>>Rafael
>
> First will be incompatible with some existing bsd scripts, for example:
> https://svnweb.freebsd.org/base/head/sys/conf/ldscript.amd64?view=markup
> It has
> PROVIDE (start_ctors = .);
> ..
> PROVIDE (stop_ctors = .);
> declared outside output sections definition.
> Would it be acceptable to require that ?

It seems pretty easy to move them inside, so I guess yes.

Cheers,
Rafael


More information about the llvm-commits mailing list