build libc++ and co with -fno-omit-frame-pointer for hwasan
- Dominant language
- No language data
- Stars
- 2.3k
- Forks
- 310
- PR merge metrics
- No merged PRs in 30d
Description
@eugenis
https://developer.android.com/ndk/guides/hwasan#build
> Note: A shared library STL is required because implementations of the operators new and delete in the STL are usually built without frame pointers. HWASan brings its own implementation, but it can't be used if the STL is linked statically into the application.
Can we lift that restriction if we build libc++ (and libc++abi, etc) with `-fno-omit-frame-pointer`, or are HWASan's implementations still needed for other reasons?
Contributor guide
Research direction
Start with the linked Android HWASan build guidance, then inspect how libc++, libc++abi, and related NDK libraries are built and whether they use -fno-omit-frame-pointer. The work is complete when it is established whether that flag removes the shared-STL restriction or whether HWASan's implementations remain necessary, with the guidance updated accordingly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, cpp
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100