commit | 992ca197465ec487895af0ebb9c86139402c8a97 | [log] [tgz] |
---|---|---|
author | Austin Foxley <afoxley@google.com> | Wed Mar 12 16:05:54 2025 -0700 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Wed Mar 12 16:05:54 2025 -0700 |
tree | be4184f29403145c716bea9bd25780e166821848 | |
parent | 4bb2686b713f6903686ffd5f774ffd921551ea3d [diff] |
pw_build: Add PW_MUST_NOT_PLACE As a complement for PW_MUST_PLACE, define a linker script macro to allow asserting that certain object files/sections have no contents when linked. This is useful to ensure that code that should have no variables continues to have none, so it can be known to be safe for running in a pre-memory initialized environment. It is expected that if variables need to be added to such code, the developer would switch the assertion to use PW_MUST_PLACE at that time. Change-Id: I3fc389aa87c9e7839cd4eaa6d7c32bb181c6cc36 Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/275012 Reviewed-by: Jonathon Reinhart <jrreinhart@google.com> Commit-Queue: Austin Foxley <afoxley@google.com> Tests-Not-Needed: Ted Pudlik <tpudlik@google.com> Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com> Reviewed-by: Ted Pudlik <tpudlik@google.com> Pigweed-Auto-Submit: Austin Foxley <afoxley@google.com> Commit-Queue: Auto-Submit <auto-submit@pigweed-service-accounts.iam.gserviceaccount.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.