[PATCH] D33680: [ELF] - Resolve references properly when using .symver directive
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 14 05:00:39 PDT 2017
>> + for (Symbol *Sym : SymVector)
>> + if (Sym->body()->parseSymbolVersion())
>> + DefaultV.push_back(Sym);
>> +
>> + // <name>@@<version> means symbol has 'default' version. We should use it to
>> + // resolve references to <name>.
>> + for (Symbol *Sym : DefaultV) {
>> + SymbolBody *Body = find(Sym->body()->getName());
>> + if (!Body)
>> + continue;
>
>When is this returnig null?
Thats for verdef-defaultver.s. Otherwise we would export 2 b@@V2 symbols.
Will post an update in a minute.
George.
More information about the llvm-commits
mailing list