Skip to content

Commit

Permalink
Merge pull request #526 from twilfredo/wilfred/update-linker-upstream
Browse files Browse the repository at this point in the history
build_scripts/layout.ld: add a relro section
  • Loading branch information
jrvanwhy authored Jan 3, 2024
2 parents 4b94b4c + c6abe2a commit 2ede4c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build_scripts/libtock_layout.ld
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ SECTIONS {
/* Read-only data section. Contains strings and other global constants. */
.rodata ALIGN(4) : {
*(.rodata.*)

/* Generated by GCC in libraries for variables that still have relocations but are constant
* at runtime. See https://www.airs.com/blog/archives/189 for background.
*/
*(.data.rel.ro.*)
} > FLASH

/* Sections located in RAM at runtime.
Expand Down

0 comments on commit 2ede4c9

Please sign in to comment.