[lld] r267314 - ELF: Always include undefined DSO symbols in the symbol table.

Rafael EspĂ­ndola via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 25 09:57:01 PDT 2016


> If I append these lines to the test case:
>
>  .text
> call foo at PLT
> call bar at PLT
>
> I see the same behaviour in bfd and gold. It seems that gold will only
> include the symbols if the object file contains an appropriate relocation
> for them.
>
>> Please add a note to the test saying that. Please also open a bug. At
>> some point we should explicitly decide which behaviour is preferred.
>
>
> I'll add a note to the test, but do we care much about object files
> containing an undefined symbol with no relocations? I wouldn't have expected
> that to happen much outside of tests.

Thanks for checking. Given the explanation I actually prefer our (and
bfd's) behaviour. It is really nice to be able to make decisions about
the symbol table by looking only at the symbols.

Thanks,
Rafael


More information about the llvm-commits mailing list