[PATCH] D19490: ELF: Teach section GC to also GC shared symbols.

Peter Collingbourne via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 25 19:19:50 PDT 2016


On Mon, Apr 25, 2016 at 7:13 PM, Rafael EspĂ­ndola <
rafael.espindola at gmail.com> wrote:

> > The whole point of this change is to make sure we don't have references
> in
> > the dynsym to symbols in unneeded DSOs. This is to avoid the scenario I
> > mentioned in D19464 where we were emitting version requirements for DSOs
> > that weren't in the needed list.
> >
> > Filtering the dynsym seemed like the best solution to this problem, as it
> > means we don't end up with unnecessary DSO references in the executable
> that
> > were created by unneeded sections.
>
> Would the attached patch have the desired effect? With it we consider
> more DSOs needed, but the result should be consistent.
>

That's not enough to avoid that scenario. If I add --as-needed the DSO is
removed from the needed list, but its symbols are still in the dynsym.

Thanks,
-- 
-- 
Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160425/5cefc052/attachment.html>


More information about the llvm-commits mailing list