-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Read fips scope marker addresses using adrp instead of adr to increas…
…e reach (#1332) When including the new Ed25519 implementations in the FIPS build the follow error occurred: bcm.c:47662: Error: pc-relative address offset out of range The reason is that we get the address of e.g. BORINGSSL_bcm_text_end using adr like this: adr x4, BORINGSSL_bcm_text_end But since the size of the fips module has slowly increased the last few years the amount of memory we attempt to jump with adr runs over the reach of the instruction (about 1MB or so). The solution is to no longer consider BORINGSSL_bcm_text_[end,start] for special and use a redirector function to resolve their addresses.
- Loading branch information
1 parent
bc9b35c
commit 43164b7
Showing
3 changed files
with
84 additions
and
9 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