-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pw_kvs: Move inline variable definition to .cc file
no_inline_ is defined as an inline variable. pw::Vector has a non-default constructor, which causes Clang to use the SHF_GNU_RETAIN section flag (at least when compiling for RP2). Since SHF_GNU_RETAIN is a GNU extension, Clang sets the ELF's EI_OSABI field to ELFOSABI_GNU, instead of the default ELFOSABI_NONE. Picotool only accepts ELFs with an EI_OSABI of ELFOSABI_NONE, even if the binary is actually compatible. To avoid this issue, do not use an inline variable. Bug: b/357162923 Change-Id: I396a59dad714c89957235c8e77c7ee2019ea37f5 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/228514 Pigweed-Auto-Submit: Wyatt Hepler <[email protected]> Commit-Queue: Auto-Submit <[email protected]> Reviewed-by: Armando Montanez <[email protected]> Lint: Lint 🤖 <[email protected]> Presubmit-Verified: CQ Bot Account <[email protected]>
- Loading branch information
Showing
3 changed files
with
3 additions
and
21 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