Skip to content

soc: esp32c3: add __text_region_start & __text_region_end #71363

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions soc/espressif/esp32c3/default.ld
Original file line number Diff line number Diff line change
Expand Up @@ -743,6 +743,7 @@ SECTIONS
{
_stext = .;
_instruction_reserved_start = ABSOLUTE(.);
__text_region_start = .;
_text_start = ABSOLUTE(.);
_instruction_reserved_start = ABSOLUTE(.);

Expand Down Expand Up @@ -774,6 +775,7 @@ SECTIONS

_instruction_reserved_end = ABSOLUTE(.);
_text_end = ABSOLUTE(.);
__text_region_end = .;
_instruction_reserved_end = ABSOLUTE(.);
_etext = .;

Expand Down
1 change: 1 addition & 0 deletions soc/espressif/esp32c3/mcuboot.ld
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ SECTIONS
. += 16;

_text_end = ABSOLUTE(.);
__text_region_end = .;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@marekmatej after #70505 (7ecc715), there's _text_end in the zephyr/soc/espressif/esp32c3/mcuboot.ld but the _text_start is now gone, could you please advise how to do this now? Cheers.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @ycsin, is the symbol needed to be in the mcuboot.ld at all?
I made a mistake by removing it from the default.ld. Please take a look at the fix #71388

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for that PR.

Hi @ycsin, is the symbol needed to be in the mcuboot.ld at all?

Looks like it is used in MCUBOOT image only, probably not required.

_etext = .;

/* Similar to _iram_start, this symbol goes here so it is
Expand Down