• Peter Collingbourne's avatar
    Add assembly support for -fsanitize=hwaddress tagged globals. · 9bcb1cb6
    Peter Collingbourne authored
    As of LLVM r368102, Clang will set a pointer tag in bits 56-63 of the
    address of a global when compiling with -fsanitize=hwaddress. This requires
    an adjustment to assembly code that takes the address of such globals: the
    code cannot use the regular R_AARCH64_ADR_PREL_PG_HI21 relocation to refer
    to the global, since the tag would take the address out of range. Instead,
    the code must use the non-checking (_NC) variant of the relocation (the
    link-time check is substituted by a runtime check).
    
    This change makes the necessary adjustment in the movrel macro, where it is
    needed when compiling with -fsanitize=hwaddress.
    Signed-off-by: 's avatarPeter Collingbourne <pcc@google.com>
    Reviewed-by: Martin Storsjö
    Reviewed-by: Janne Grunau
    9bcb1cb6
Name
Last commit
Last update
compat Loading commit data...
doc Loading commit data...
ffbuild Loading commit data...
fftools Loading commit data...
libavcodec Loading commit data...
libavdevice Loading commit data...
libavfilter Loading commit data...
libavformat Loading commit data...
libavresample Loading commit data...
libavutil Loading commit data...
libpostproc Loading commit data...
libswresample Loading commit data...
libswscale Loading commit data...
presets Loading commit data...
tests Loading commit data...
tools Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
CONTRIBUTING.md Loading commit data...
COPYING.GPLv2 Loading commit data...
COPYING.GPLv3 Loading commit data...
COPYING.LGPLv2.1 Loading commit data...
COPYING.LGPLv3 Loading commit data...
CREDITS Loading commit data...
Changelog Loading commit data...
INSTALL.md Loading commit data...
LICENSE.md Loading commit data...
MAINTAINERS Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
RELEASE Loading commit data...
configure Loading commit data...