This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug bootstrap/56128] [4.8 Regression] libsanitizer doesn't build with broken kernel headers
- 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: Mon, 11 Feb 2013 15:54:17 +0000
- Subject: [Bug bootstrap/56128] [4.8 Regression] libsanitizer doesn't build with broken kernel headers
- Auto-submitted: auto-generated
- References: <bug-56128-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56128
--- Comment #13 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-02-11 15:54:17 UTC ---
Perhaps instead of global vars defined outside of libasan (which e.g. requires
GOT accesses to those vars in libasan), it might be better to have the scale
and offset as arguments of __asan_init? Then you could easily test at runtime,
whether all compilation units agree on the same offset/scale, and complain if
they don't. Then __asan_mapping_offset and __asan_mapping_scale or how are the
vars called could be hidden attribute, used with PC relative addressing and
avoid one extra indirection, and more importantly have better runtime checking
of mismatches.