You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi team,
I am using address sanitizers and able to compile our recipe file which uses complier-rt-sanititizers across all platforms but its throwing the following errors for the aarch64.
relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `__hwasan_shadow_memory_dynamic_address' which may bind externally can not be used when making a shared object.
DWARF error: invalid or unhandled FORM value: 0x23.
I tried adding the -fPIC flags but still throwing different errors. Below is the full error. Pls help me with this. Thanks.
/tmp/work/cortexa78c-poky-linux/compiler-rt-sanitizers/14.0.6-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/aarch64-poky-linux-ld: projects/compiler-rt/lib/hwasan/CMakeFiles/RTHwasan_dynamic.aarch64.dir/hwasan.cpp.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol __hwasan_shadow_memory_dynamic_address' which may bind externally can not be used when making a shared object; recompile with -fPIC tmp/work/cortexa78c-poky-linux/compiler-rt-sanitizers/14.0.6-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/aarch64-poky-linux-ld: DWARF error: invalid or unhandled FORM value: 0x23 | projects/compiler-rt/lib/hwasan/CMakeFiles/RTHwasan_dynamic.aarch64.dir/hwasan.cpp.o: in function __hwasan_print_shadow: | hwasan.cpp:(.text+0xeec): dangerous relocation: unsupported relocation
@YaswanthDara thanks for the report, it seems you are on clang 14.x release. Are you able to repeoduce same error on master branch with Clang 19 as well ?
Hi team,
I am using address sanitizers and able to compile our recipe file which uses complier-rt-sanititizers across all platforms but its throwing the following errors for the aarch64.
I tried adding the -fPIC flags but still throwing different errors. Below is the full error. Pls help me with this. Thanks.
/tmp/work/cortexa78c-poky-linux/compiler-rt-sanitizers/14.0.6-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/aarch64-poky-linux-ld: projects/compiler-rt/lib/hwasan/CMakeFiles/RTHwasan_dynamic.aarch64.dir/hwasan.cpp.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol __hwasan_shadow_memory_dynamic_address' which may bind externally can not be used when making a shared object; recompile with -fPIC tmp/work/cortexa78c-poky-linux/compiler-rt-sanitizers/14.0.6-r0/recipe-sysroot-native/usr/bin/aarch64-poky-linux/aarch64-poky-linux-ld: DWARF error: invalid or unhandled FORM value: 0x23 | projects/compiler-rt/lib/hwasan/CMakeFiles/RTHwasan_dynamic.aarch64.dir/hwasan.cpp.o: in function __hwasan_print_shadow: | hwasan.cpp:(.text+0xeec): dangerous relocation: unsupported relocation
I also found that from table here https://github.com/google/sanitizers/wiki/AddressSanitizer that asan is not supported for arm64.
The text was updated successfully, but these errors were encountered: