Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Duet3D/RepRapFirmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Crocker <dcrocker@eschertech.com>2021-08-07 12:07:43 +0300
committerDavid Crocker <dcrocker@eschertech.com>2021-08-07 12:07:43 +0300
commit6b5b59329023d98f6653f2211c8d49be9bd7dbdc (patch)
treedf6883ffbe6c15a12057650b06503e5c260f1937 /src/Hardware
parent28502071fbeea324d1b0f7236029b682ea83a571 (diff)
Added _firmware_end to linker scripts
Diffstat (limited to 'src/Hardware')
-rw-r--r--src/Hardware/SAM4E/sam4e8e_flash.ld3
-rw-r--r--src/Hardware/SAM4S/sam4s8c_flash.ld3
-rw-r--r--src/Hardware/SAME5x/same54p20a_flash.ld3
-rw-r--r--src/Hardware/SAME5x/same54p20a_flash_16k_bootloader.ld3
-rw-r--r--src/Hardware/SAME70/same70q20b_flash.ld3
5 files changed, 10 insertions, 5 deletions
diff --git a/src/Hardware/SAM4E/sam4e8e_flash.ld b/src/Hardware/SAM4E/sam4e8e_flash.ld
index fcb4cfc0..e7fc0113 100644
--- a/src/Hardware/SAM4E/sam4e8e_flash.ld
+++ b/src/Hardware/SAM4E/sam4e8e_flash.ld
@@ -117,7 +117,8 @@ SECTIONS
_erelocate = .;
} > ram
- _firmware_crc = _etext + (_erelocate - _srelocate); /* We append the CRC32 to the binary file. This is its offset in memory. */
+ _firmware_end = _etext + (_erelocate - _srelocate); /* Embedded files start here */
+ _firmware_crc = _firmware_end; /* We append the CRC32 to the binary file. This is its offset in memory if we don't append embedded files */
/* .bss section which is used for uninitialized data */
.bss ALIGN(4) (NOLOAD) :
diff --git a/src/Hardware/SAM4S/sam4s8c_flash.ld b/src/Hardware/SAM4S/sam4s8c_flash.ld
index 0ab61146..e8d92fb5 100644
--- a/src/Hardware/SAM4S/sam4s8c_flash.ld
+++ b/src/Hardware/SAM4S/sam4s8c_flash.ld
@@ -117,7 +117,8 @@ SECTIONS
_erelocate = .;
} > ram
- _firmware_crc = _etext + (_erelocate - _srelocate); /* We append the CRC32 to the binary file. This is its offset in memory. */
+ _firmware_end = _etext + (_erelocate - _srelocate); /* Embedded files start here */
+ _firmware_crc = _firmware_end; /* We append the CRC32 to the binary file. This is its offset in memory if we don't append embedded files */
/* .bss section which is used for uninitialized data */
.bss ALIGN(4) (NOLOAD) :
diff --git a/src/Hardware/SAME5x/same54p20a_flash.ld b/src/Hardware/SAME5x/same54p20a_flash.ld
index 25c4db85..a03fe851 100644
--- a/src/Hardware/SAME5x/same54p20a_flash.ld
+++ b/src/Hardware/SAME5x/same54p20a_flash.ld
@@ -128,7 +128,8 @@ SECTIONS
_erelocate = .;
} > ram
- _firmware_crc = _etext + (_erelocate - _srelocate); /* We append the CRC32 to the binary file. This is its offset in memory. */
+ _firmware_end = _etext + (_erelocate - _srelocate); /* Embedded files start here */
+ _firmware_crc = _firmware_end; /* We append the CRC32 to the binary file. This is its offset in memory if we don't append embedded files */
/* .bss section which is used for uninitialized data */
.bss ALIGN(16) (NOLOAD) :
diff --git a/src/Hardware/SAME5x/same54p20a_flash_16k_bootloader.ld b/src/Hardware/SAME5x/same54p20a_flash_16k_bootloader.ld
index dd412574..2996ee5e 100644
--- a/src/Hardware/SAME5x/same54p20a_flash_16k_bootloader.ld
+++ b/src/Hardware/SAME5x/same54p20a_flash_16k_bootloader.ld
@@ -128,7 +128,8 @@ SECTIONS
_erelocate = .;
} > ram
- _firmware_crc = _etext + (_erelocate - _srelocate); /* We append the CRC32 to the binary file. This is its offset in memory. */
+ _firmware_end = _etext + (_erelocate - _srelocate); /* Embedded files start here */
+ _firmware_crc = _firmware_end; /* We append the CRC32 to the binary file. This is its offset in memory if we don't append embedded files */
/* .bss section which is used for uninitialized data */
.bss ALIGN(16) (NOLOAD) :
diff --git a/src/Hardware/SAME70/same70q20b_flash.ld b/src/Hardware/SAME70/same70q20b_flash.ld
index 5cfabe2f..8287c78a 100644
--- a/src/Hardware/SAME70/same70q20b_flash.ld
+++ b/src/Hardware/SAME70/same70q20b_flash.ld
@@ -145,7 +145,8 @@ SECTIONS
_erelocate = .;
} > ram
- _firmware_crc = _etext + (_erelocate - _srelocate); /* We append the CRC32 to the binary file. This is its offset in memory. */
+ _firmware_end = _etext + (_erelocate - _srelocate); /* Embedded files start here */
+ _firmware_crc = _firmware_end; /* We append the CRC32 to the binary file. This is its offset in memory if we don't append embedded files */
/* .bss section which is used for uninitialized data */
.bss ALIGN(4) (NOLOAD) :