summaryrefslogtreecommitdiff
path: root/1_hello_world/_rom.ld
diff options
context:
space:
mode:
authorOxore <oxore@protonmail.com>2023-05-05 23:11:08 +0300
committerOxore <oxore@protonmail.com>2023-05-05 23:11:08 +0300
commit3cafce9623ec79738555c647b79afa65ccebb5a5 (patch)
tree878c7657906a8e057c790275ba6d4fcd31dc3f0d /1_hello_world/_rom.ld
parentd3905c1297bd042b5934c387a58dabcaaaa6bfd5 (diff)
Add true start and end ROM addresses
Diffstat (limited to '1_hello_world/_rom.ld')
-rw-r--r--1_hello_world/_rom.ld2
1 files changed, 2 insertions, 0 deletions
diff --git a/1_hello_world/_rom.ld b/1_hello_world/_rom.ld
index 55106be..916d9d9 100644
--- a/1_hello_world/_rom.ld
+++ b/1_hello_world/_rom.ld
@@ -1,4 +1,5 @@
SECTIONS {
+ __rom_start = ORIGIN(ROM);
. = ORIGIN(ROM);
.text : {
KEEP(*(.stack))
@@ -12,4 +13,5 @@ SECTIONS {
*(.rodata*)
. = ALIGN(4);
} >ROM
+ __rom_end = .;
}