[lld] r322572 - Set dso_local in lld.

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 16 17:22:37 PST 2018


Rui Ueyama <ruiu at google.com> writes:

> I'm not familiar with this part of code and wondering what this code is for.

dso_local is a newish addition to the llvm ir. It lets llvm know that a
given GV is local to the library/executable.

In this particular patch one improvement is when we have a mixed elf/llvm
link. An undefined reference in llvm that is found in a elf .o can be
marked dso_local if it is not preemptible.

Cheers,
Rafael


More information about the llvm-commits mailing list