-
Notifications
You must be signed in to change notification settings - Fork 234
Description
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
I also found that from table here https://github.com/google/sanitizers/wiki/AddressSanitizer that asan is not supported for arm64.