[PATCH] D39392: Do not add weak undefined symbols to .dynsym unless -pic or -shared are given.

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 1 19:34:31 PST 2017


On Fri, Dec 1, 2017 at 7:21 PM, Rafael Avila de Espindola <
rafael.espindola at gmail.com> wrote:

> Rui Ueyama <ruiu at google.com> writes:
>
> > I'm not sure if you understand the problem I'm trying to resolve.
> >
> > IIUC, what https://bugs.llvm.org/show_bug.cgi?id=34301#c5 claims as a
> bug
> > is not a bug.
>
> No, sorry. It is a bug.
>
> The user found a difference in behavior that broke a feature they
> depended on. That worked on bfd and gold. They were kind enough to
> report the issue and we fixed it. We should not break it.
>
> > Weak external symbols that were not compiled with -fPIC are fundamentally
> > not representable when they are resolved to other DSOs.
>
> They were compiled with -fPIC. The comment says:
>
> clang -o dummy dummy.c -fPIC
>

Oh okay, if it doesn't work, it is a bug in my patch. I didn't intend to
break that functionality. But once again please read my comment. I believe
the direction of this patch is something that you can agree.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171201/39412c96/attachment.html>


More information about the llvm-commits mailing list