-
Notifications
You must be signed in to change notification settings - Fork 788
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
delocate: remove the need to demangle local variables
We need to demangle because the backing storage for a delocated BSS symbol is declared static. The compiler seems to be always give it a C++-mangled name. But we relied on those names to infer the names of the bss_get functions that the rest of the code wanted. Instead, if we make the backing storage non-static, we get the name we want. Ideally we would avoid having to extract those names (see https://boringssl-review.googlesource.com/c/boringssl/+/70849), but faking the linker script behavior in delocate seemed tricky, so I opted to do this and then we can finish up the linker script version later. While I'm here, prefix the underlying names with 'bcm_' so we're not squatting as much of the namespace. Change-Id: I1ce9a189e620c872511dbce09d23e655f1593d34 Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/76847 Reviewed-by: Adam Langley <agl@google.com> Commit-Queue: Adam Langley <agl@google.com> Auto-Submit: David Benjamin <davidben@google.com>
- Loading branch information
Showing
4 changed files
with
52 additions
and
47 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
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