-
-
Notifications
You must be signed in to change notification settings - Fork 464
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ELF] Export undef symbols if both
-z defs
and `-warn-undefined-sym…
…bols` are given When we are creating a DSO, unresolved undefined symbols are promoted to dynamic symbols by default so that they will get another chance to be resolved at runtime. You can suppress this behavior by passing `-z defs`. If that option is given, remaining undefs are reported as errors instead of being silently promoted. It looks like `-warn-undefined-symbols` negates the effect of `-z defs`. So, if both options are given, remaining undefs are promoted to dynamic symbols. mold previously silently make such symbols absolute symbols with value 0. Fixed #152
- Loading branch information
Showing
2 changed files
with
39 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters