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: [AArch64] Generate DT_TEXTREL when there is relocation against read-only section


Marcus Shawcroft writes:

> On 19 June 2015 at 10:05, Jiong Wang <jiong.wang@arm.com> wrote:
>>
>> This patch fix the SEGSEGV noticed on some scenarios when there is
>> relocation against read-only segment in the program.
>>
>> We need to generate DT_TEXTREL entry in .dynamic section to
>> notify dynamic linker that there are relocations against read-only
>> segment, that dynamic linker can invoke mprotect to change the segment
>> attribute into writable, and after relocation finished, change it back
>> to read-only.
>>
>> OK for trunk?
>
> OK, can you back port to 2.25 aswell please? /Marcus

Thanks. This atch applies cleanly on 2.25 branch, pushed to both.

trunk:  https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=c217058957a45a93481da35e1531ed120750d739
2.25 :  https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=commit;h=372832d02571c8a6e470cc601bd904c18f7bc374

--
Regards,
Jiong


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