cpu/esp8266: fix region overflow with '*periph' directory in app path#19785
Merged
bors[bot] merged 1 commit intoRIOT-OS:masterfrom Jul 2, 2023
Merged
cpu/esp8266: fix region overflow with '*periph' directory in app path#19785bors[bot] merged 1 commit intoRIOT-OS:masterfrom
bors[bot] merged 1 commit intoRIOT-OS:masterfrom
Conversation
Contributor
Contributor
|
bors merge |
Contributor
|
🕐 Waiting for PR status (GitHub check) to be set, probably by CI. Bors will automatically try to run when all required PR statuses are set. |
Contributor
|
Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Contribution description
This pull request addresses an issue where a region overflow occurs during the generation of the
.elffile when the application path contains a directory named '*periph'. The problem arises due to an incorrect section mapping in theesp8266.riot-os.ldlinker script.The issue was causing the compilation of all tests which were moved to the
tests/periphdirectory by PR #19552 to fail on the ESP8266 architecture.To resolve the issue, the
esp8266.riot-os.ldscript has been modified. The section mapping for the*periphdirectory has been changed to*esp_common_periph, ensuring that the correct sections are included in the final binary.Testing procedure
To verify the effectiveness of this fix, the following testing procedure was performed:
masterbranch of the RIOT repositoryblinkyexample for theesp8266-esp-12xboard:blinky.elffile is generated.somethingperiphand copied theblinkyexample into it:blinkyexample in thesomethingperiphdirectory:blinkyexample in thesomethingperiphdirectory again:blinky.elffile is generated.blinky.elffile:blinky.elffile is similar to the size obtained in step 2, indicating a successful build. However, a slight difference in size was observed due to the linker script modification.blinkyexample in theexamplesdirectory again:blinky.elffile is similar to the size obtained in step 6.The tests confirm that this pull request resolves the region overflow issue when the application path contains a directory named '*periph'. Additionally, all relevant tests in the
tests/periphdirectory successfully compile again on the ESP8266 architecture:Issues/PRs references
Highlighted in #16727, appeared whith project tree as a side effect from #19552 but pre-existing.