-
Notifications
You must be signed in to change notification settings - Fork 13.7k
[asan] Implement address sanitizer on AIX: build configuration #139583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,115 @@ | ||
#! . | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Myabe have name with aix in it if this is AIX specific file? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Would moving it to a AIX-specific subdirectory in the source tree address this? I think it should be okay to have the file named as-is in the install tree (since it would only be present for AIX). Full disclosure: This file should ideally be automatically generated with the same set of symbols as what the shared library build would export. Currently, there is some issue with the visibility of symbols in the build. |
||
__asan_report_load_n | ||
__asan_loadN | ||
__asan_report_load1 | ||
__asan_load1 | ||
__asan_report_load2 | ||
__asan_load2 | ||
__asan_report_load4 | ||
__asan_load4 | ||
__asan_report_load8 | ||
__asan_load8 | ||
__asan_report_load16 | ||
__asan_load16 | ||
__asan_report_store_n | ||
__asan_storeN | ||
__asan_report_store1 | ||
__asan_store1 | ||
__asan_report_store2 | ||
__asan_store2 | ||
__asan_report_store4 | ||
__asan_store4 | ||
__asan_report_store8 | ||
__asan_store8 | ||
__asan_report_store16 | ||
__asan_store16 | ||
__asan_report_exp_load_n | ||
__asan_exp_loadN | ||
__asan_report_exp_load1 | ||
__asan_exp_load1 | ||
__asan_report_exp_load2 | ||
__asan_exp_load2 | ||
__asan_report_exp_load4 | ||
__asan_exp_load4 | ||
__asan_report_exp_load8 | ||
__asan_exp_load8 | ||
__asan_report_exp_load16 | ||
__asan_exp_load16 | ||
__asan_report_exp_store_n | ||
__asan_exp_storeN | ||
__asan_report_exp_store1 | ||
__asan_exp_store1 | ||
__asan_report_exp_store2 | ||
__asan_exp_store2 | ||
__asan_report_exp_store4 | ||
__asan_exp_store4 | ||
__asan_report_exp_store8 | ||
__asan_exp_store8 | ||
__asan_report_exp_store16 | ||
__asan_exp_store16 | ||
__asan_memmove | ||
__asan_memcpy | ||
__asan_memset | ||
__asan_handle_no_return | ||
__sanitizer_ptr_cmp | ||
__sanitizer_ptr_sub | ||
__asan_before_dynamic_init | ||
__asan_after_dynamic_init | ||
__asan_register_globals | ||
__asan_unregister_globals | ||
__asan_register_image_globals | ||
__asan_unregister_image_globals | ||
__asan_register_elf_globals | ||
__asan_unregister_elf_globals | ||
__asan_init | ||
__asan_version_mismatch_check_v8 | ||
__asan_stack_malloc_0 | ||
__asan_stack_malloc_1 | ||
__asan_stack_malloc_2 | ||
__asan_stack_malloc_3 | ||
__asan_stack_malloc_4 | ||
__asan_stack_malloc_5 | ||
__asan_stack_malloc_6 | ||
__asan_stack_malloc_7 | ||
__asan_stack_malloc_8 | ||
__asan_stack_malloc_9 | ||
__asan_stack_malloc_10 | ||
__asan_stack_malloc_always_0 | ||
__asan_stack_malloc_always_1 | ||
__asan_stack_malloc_always_2 | ||
__asan_stack_malloc_always_3 | ||
__asan_stack_malloc_always_4 | ||
__asan_stack_malloc_always_5 | ||
__asan_stack_malloc_always_6 | ||
__asan_stack_malloc_always_7 | ||
__asan_stack_malloc_always_8 | ||
__asan_stack_malloc_always_9 | ||
__asan_stack_malloc_always_10 | ||
__asan_stack_free_0 | ||
__asan_stack_free_1 | ||
__asan_stack_free_2 | ||
__asan_stack_free_3 | ||
__asan_stack_free_4 | ||
__asan_stack_free_5 | ||
__asan_stack_free_6 | ||
__asan_stack_free_7 | ||
__asan_stack_free_8 | ||
__asan_stack_free_9 | ||
__asan_stack_free_10 | ||
__asan_set_shadow_00 | ||
__asan_set_shadow_01 | ||
__asan_set_shadow_02 | ||
__asan_set_shadow_03 | ||
__asan_set_shadow_04 | ||
__asan_set_shadow_05 | ||
__asan_set_shadow_06 | ||
__asan_set_shadow_07 | ||
__asan_set_shadow_f1 | ||
__asan_set_shadow_f2 | ||
__asan_set_shadow_f3 | ||
__asan_set_shadow_f5 | ||
__asan_set_shadow_f8 | ||
__asan_poison_stack_memory | ||
__asan_unpoison_stack_memory | ||
__asan_option_detect_stack_use_after_return | ||
__asan_shadow_memory_dynamic_address |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#! . | ||
_ZdaPv | ||
_ZdaPvRKSt9nothrow_t | ||
_ZdaPvSt11align_val_t | ||
_ZdaPvSt11align_val_tRKSt9nothrow_t | ||
_ZdaPvm | ||
_ZdaPvmSt11align_val_t | ||
_ZdlPv | ||
_ZdlPvRKSt9nothrow_t | ||
_ZdlPvSt11align_val_t | ||
_ZdlPvSt11align_val_tRKSt9nothrow_t | ||
_ZdlPvm | ||
_ZdlPvmSt11align_val_t | ||
_Znam | ||
_ZnamRKSt9nothrow_t | ||
_ZnamSt11align_val_t | ||
_ZnamSt11align_val_tRKSt9nothrow_t | ||
_Znwm | ||
_ZnwmRKSt9nothrow_t | ||
_ZnwmSt11align_val_t | ||
_ZnwmSt11align_val_tRKSt9nothrow_t |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand that the overall usability (and what steps may be needed to use) the shared libraries is in question, but I am not sure that it means we should suppress them here in the build (as opposed to avoiding their usage in the Clang driver).
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I realized if I allow the shared libraries to be built, I get a cmake error because both shared and static libraries have the same name
libclang_rt.asan.a
. So this would take additional work to support building shared libraries that won't be used at the moment. I think it makes sense to not build them for now.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a general issue with the runtimes on AIX (C++, flang_rt, etc.). For now we've been doing exactly this and disallowing you to build both at the same time.