android / android/ndk

[FR] use `-Bsymbolic-non-weak-functions` by default if it lands?

Open
#1,552 3 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
No language data
Stars
2.3k
Forks
310
PR merge metrics
No merged PRs in 30d

Description

https://reviews.llvm.org/D102570

This sounds like our ideal behavior:

* C++ specified behavior for new/delete are preserved because they're weak
* Smaller code size thanks to fewer relocations
* No interposition by default, opt-in per symbol by making the symbol weak

If and when that lands we should probably make that the default for Android.

Contributor guide

Open the contributing guide

Research direction

Start with the linked LLVM review D102570 and confirm whether `-Bsymbolic-non-weak-functions` has landed. Then locate where Android NDK linker defaults are configured; done means the flag is enabled by default for Android while weak new/delete behavior remains preserved.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, cpp
Domain
build-system, mobile-dev
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.