HA: [PATCH] D14382: [ELF2] - Basic implementation of -r/--relocatable

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 5 10:32:29 PST 2015


On Thu, Nov 5, 2015 at 10:30 AM, Rafael EspĂ­ndola <
rafael.espindola at gmail.com> wrote:

>
> On Nov 5, 2015 1:22 PM, "George Rimar" <grimar at accesssoftek.com> wrote:
> >
> > >Really? Then what's the point of  -r from the users' perspective
> compared to ar?
> >
> > Just as a guess - if we have huge amount of files then probably ar will
> work slower.
>
> If so that is a bug in AR :-)
>
> The only semantics difference I can think of is that ld -r is equivalent
> to using --whole-archive.
>
> I will check if gold or bfd resolve relocations. It would be a cool
> optimization one way or the other, but we should probably delay it a bit if
> they don't.
>
I guess my point is that, if -r offers no real value to users, we may not
want to support that and instead recommend users use ar.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151105/c75ba1b7/attachment.html>


More information about the llvm-commits mailing list