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


>> Let me ask you this, though: when the error was pointed out, did you
>> feel like it was a simple mistake, easily fixed, or do you think
>> there's a rationale for having the definition in both files?
>
> 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.

-cary


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