Skip to content

[sanitizer_common][AIX] Avoid weak symbol __cxa_demangle #138556

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jakeegan
Copy link
Member

@jakeegan jakeegan commented May 5, 2025

On AIX, weak attribute without definition will cause linking time undefined symbol error, we use dlopen/dlsym to find the related symbol.

Issue: #138916

@jakeegan jakeegan changed the title demangling [sanitizer_common] Implement address sanitizer on AIX: demangling May 6, 2025
typedef char *__cxa_demangle_t(const char *mangled, char *buffer,
size_t *length, int *status);

char *__cxa_demangle(const char *mangled, char *buffer, size_t *length,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The sanitizer should not define a __cxa_demangle that could satisfy a link dependency from the user program.

@jakeegan jakeegan changed the title [sanitizer_common] Implement address sanitizer on AIX: demangling [sanitizer_common][AIX] Avoid weak symbol __cxa_demangle May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants