This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug sanitizer/68016] ASan doesn't catch overflow in globals when COPY relocation is involved.
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 20 Oct 2015 08:48:52 +0000
- Subject: [Bug sanitizer/68016] ASan doesn't catch overflow in globals when COPY relocation is involved.
- Auto-submitted: auto-generated
- References: <bug-68016-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68016
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Yeah, this is intentional design decision, trying to register something for an
object that might be living in completely different library and where the gap
might not be supplied is just wrong.
As the copy relocations are created by the linker, there is no way (except
perhaps some ELF extensions) to instruct the linker to also allocate the gap
around it, so that it could be registered in the executable or PIE.