mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
ensure g_dfu is linked to start of RAM when building DFU loader
This commit is contained in:
@@ -35,7 +35,7 @@
|
||||
|
||||
/* FIXME: this was used for a special ELF section which then got called
|
||||
* by DFU code and Application code, across flash partitions */
|
||||
#define __dfudata
|
||||
#define __dfudata __attribute__ ((section (".dfudata")))
|
||||
#define __dfufunc
|
||||
|
||||
/// Standard device driver instance.
|
||||
|
||||
@@ -109,6 +109,8 @@ SECTIONS
|
||||
{
|
||||
. = ALIGN(4);
|
||||
_srelocate = .;
|
||||
/* we must make sure the .dfudata is linked to start of RAM */
|
||||
*(.dfudata .dfudata.*);
|
||||
*(.ramfunc .ramfunc.*);
|
||||
*(.data .data.*);
|
||||
. = ALIGN(4);
|
||||
|
||||
@@ -109,6 +109,8 @@ SECTIONS
|
||||
{
|
||||
. = ALIGN(4);
|
||||
_srelocate = .;
|
||||
/* we must make sure the .dfudata is linked to start of RAM */
|
||||
*(.dfudata .dfudata.*);
|
||||
*(.ramfunc .ramfunc.*);
|
||||
*(.data .data.*);
|
||||
. = ALIGN(4);
|
||||
|
||||
@@ -109,6 +109,8 @@ SECTIONS
|
||||
{
|
||||
. = ALIGN(4);
|
||||
_srelocate = .;
|
||||
/* we must make sure the .dfudata is linked to start of RAM */
|
||||
*(.dfudata .dfudata.*);
|
||||
*(.ramfunc .ramfunc.*);
|
||||
*(.data .data.*);
|
||||
. = ALIGN(4);
|
||||
|
||||
Reference in New Issue
Block a user