This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug bootstrap/56128] [4.8 Regression] libsanitizer doesn't build with broken kernel headers


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.


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