bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug gold/19163] arm64: zero out *reloc for bug compatibility with andro


From: shenhan at google dot com
Subject: [Bug gold/19163] arm64: zero out *reloc for bug compatibility with android linker
Date: Thu, 22 Oct 2015 23:23:18 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=19163

--- Comment #3 from Han Shen <shenhan at google dot com> ---
Hi Cary, "*reloc" in this context refers to the dynamic relocation spot which
shall be filled by android linker during binary loadup. Gold pre-fills "symbol
value" to this spot, while bfd zeros it out. 

Actually the value at this spot is always overwritten and should never be read
by dynamic linker (dynamic linker only needs information from '.rela.dyn'),
unfortunately, android bionic dynamic linker *wrongly* reads that value, thus
corrupted the gold-linked aarch64 image. The bug in android bionic dynamic
linker has been fixed. But Dimitry suggests we keep the same behavior as bfd.

I'll send out a patch tomorrow.

Thanks,
Han

-- 
You are receiving this mail because:
You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]