Linking FreeBSD with lld: -dc option missing

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 16 10:16:06 PST 2016


On 16 November 2016 at 13:13, Ed Maste <emaste at freebsd.org> wrote:
> On 16 November 2016 at 17:05, Rafael EspĂ­ndola
> <rafael.espindola at gmail.com> wrote:
>>
>> And it doesn't know how to hide common symbols, so it depends on they
>> being pre allocated to .bss.
>
> Correct, although I looked into it in more detail after my mail and it
> seems crunchide does not actually change a symbol's binding or
> visibility, but merely "hides" it by prefixing it with "_$$hide$$
> <filename.o> ". Now I think I should just fix crunchide to apply the
> same change to STT_COMMON symbols.

Yes, if that is all that it is doing changing STT_COMMON too seems to
be the best option.

Cheers,
Rafael


More information about the llvm-commits mailing list