[lld] r261838 - [ELF2] - Basic implementation of -r/--relocatable

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 1 08:47:00 PST 2016


>I was not very correct here.
>If we have:
>_start:
>        call __start_foo
>        call __start_foo111
>
>then gold output is
>Symbol table '.symtab' contains 4 entries:
>   Num:    Value          Size Type    Bind   Vis      Ndx Name
>..
>     1: 0000000000000000     0 NOTYPE  GLOBAL HIDDEN   UND __start_foo
>     2: 0000000000000000     0 NOTYPE  GLOBAL DEFAULT  UND __start_foo111
>
>So gold just sets the visibility to hidden here. It does not do that for other common undefined symbols.
>So it not generates the values for them. Not sure is it a bug or not, I think not. As it just knows that
>these symbols exist and can be used with that visibility.

And that above is also wrong, sorry. I just had visibility specified for some symbols at start of file:

.hidden __start_foo

So I will investigate that more.

George.


More information about the llvm-commits mailing list