Skip to content

Unify linker scripts - #443

Merged
jessebraham merged 17 commits into
esp-rs:mainfrom
MabezDev:unify-linker-scripts
Mar 20, 2023
Merged

jessebraham merged 17 commits into
esp-rs:mainfrom
MabezDev:unify-linker-scripts

Conversation

@MabezDev

@MabezDev MabezDev commented Mar 20, 2023 •

Copy link
Copy Markdown
Member

This PR doesn't address MCUboot or direct boot, but @bjoernQ has some good ideas in #431 for that.

Adding H2 should hopefully be straight forward and require minimal fixups (just like the C6).

@MabezDev
MabezDev force-pushed the unify-linker-scripts branch from 7a6d131 to 8cd4e7f Compare March 20, 2023 13:49
@MabezDev
MabezDev force-pushed the unify-linker-scripts branch from 0b0432d to 2e3d056 Compare March 20, 2023 14:17
@MabezDev
MabezDev marked this pull request as ready for review March 20, 2023 15:07

@jessebraham jessebraham left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks for taking care of this!

@MabezDev

Copy link
Copy Markdown
Member Author

With the CI green this is ready for review! If/When we merge this could we please make sure we squash and merge, the commit history is messy, but might be somewhat useful when reviewing.

@jessebraham
jessebraham merged commit 9a5a546 into esp-rs:main Mar 20, 2023
MabezDev added a commit to MabezDev/esp-hal that referenced this pull request Mar 31, 2023
* esp32 & esp32s2 sharing scripts

* add wokwi files

* Add fixup section for esp32s2, fix ordering of sectino includes

* Remove debug asm file

* Use shared linker scripts for s3 with fixups

* Add external.x sections back

* Move ld scripts into esp-hal-common

* esp32c3 unified linker scripts

- rework original c3 script to use the xtensa named sections
  (e.g, _SECTIONNAME_start)
- Add fixups in esp32c3 specific linker
- Remove useless text section start and end (not required when using any
  form of bootloader)

* Add RTC alias'. Move some shared fixups to a file

* comment and cleanup

* unify c2 linker script

* unify c6 linker script

* remove debug configs

* use new esp-riscv-rt

* fmt

* align db symbol names

* fix s3 db
i404788 pushed a commit to i404788/esp-hal that referenced this pull request Jul 22, 2023
* esp32 & esp32s2 sharing scripts

* add wokwi files

* Add fixup section for esp32s2, fix ordering of sectino includes

* Remove debug asm file

* Use shared linker scripts for s3 with fixups

* Add external.x sections back

* Move ld scripts into esp-hal-common

* esp32c3 unified linker scripts

- rework original c3 script to use the xtensa named sections
  (e.g, _SECTIONNAME_start)
- Add fixups in esp32c3 specific linker
- Remove useless text section start and end (not required when using any
  form of bootloader)

* Add RTC alias'. Move some shared fixups to a file

* comment and cleanup

* unify c2 linker script

* unify c6 linker script

* remove debug configs

* use new esp-riscv-rt

* fmt

* align db symbol names

* fix s3 db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants