[PATCH] D13501: [ELF2] Add -wrap switch

Igor Kudrin via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 9 08:13:20 PDT 2015



On 09.10.2015 20:45, Rui Ueyama wrote:
> On Thu, Oct 8, 2015 at 9:33 PM, Igor Kudrin <ikudrin.dev at gmail.com 
> <mailto:ikudrin.dev at gmail.com>> wrote:
>
>
>
>     On 09.10.2015 4:08, Rui Ueyama wrote:
>>     On Wed, Oct 7, 2015 at 10:55 PM, Igor Kudrin
>>     <ikudrin.dev at gmail.com <mailto:ikudrin.dev at gmail.com>> wrote:
>>
>>         I've added some examples to show the differences between your
>>         patch and GNU ld's behavior, see
>>         http://reviews.llvm.org/D13528. For me, it's not just the
>>         different way to implement the switch, but mostly change its
>>         meaning.
>>
>>
>>     It is indeed different from GNU, but I think our behavior makes
>>     sense and I don't think that's a bad difference. LLD's symbol
>>     handling is already pretty different in some area, particularly
>>     how we handle archive files and --start-group/--end-group. Just
>>     like that, this is something we don't want to aim the exact
>>     compatibility.
>
>     Any unnecessary difference may lead to unexpected problems for end
>     users. According to this, I don't feel like accepting your
>     approach, which, compared to ld's behavior, is different in almost
>     all aspects I can imagine, whereas my original patch follows ld's
>     and gold's conduct pretty well. Maybe it's better not implement
>     this switch at all.
>
>
> I'd agree. Maybe we want some implementation of --wrap in future, but 
> probably it's too early. We can do that later after getting better 
> idea what end users would say.

OK. Let's postpone it for a while.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151009/55b19dd3/attachment.html>


More information about the llvm-commits mailing list