This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gold linker: rejected multiple definitions with the same absolute value


>> In this case I think the duplication is intentional. Those symbols are
>> from the RAP plugin,
>>
>>   https://grsecurity.net/rap_faq.php
>>
>> which is designed to prevent code-reuse attacks by (among other things)
>> checking that a function's signature matches at its definition and call
>> sites. It does that, somehow, by emitting those "__rap_hash" symbols.
>> Presumably the fact that their two values are equal is a good thing.
>
> That actually sounds like a pretty good rationale. It reminds me of
> template meta-programming.

I've committed this patch:

   https://sourceware.org/ml/binutils/2017-11/msg00543.html

-cary


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]