mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-24 09:18: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
|
/* FIXME: this was used for a special ELF section which then got called
|
||||||
* by DFU code and Application code, across flash partitions */
|
* by DFU code and Application code, across flash partitions */
|
||||||
#define __dfudata
|
#define __dfudata __attribute__ ((section (".dfudata")))
|
||||||
#define __dfufunc
|
#define __dfufunc
|
||||||
|
|
||||||
/// Standard device driver instance.
|
/// Standard device driver instance.
|
||||||
|
|||||||
@@ -109,6 +109,8 @@ SECTIONS
|
|||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_srelocate = .;
|
_srelocate = .;
|
||||||
|
/* we must make sure the .dfudata is linked to start of RAM */
|
||||||
|
*(.dfudata .dfudata.*);
|
||||||
*(.ramfunc .ramfunc.*);
|
*(.ramfunc .ramfunc.*);
|
||||||
*(.data .data.*);
|
*(.data .data.*);
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
|
|||||||
@@ -109,6 +109,8 @@ SECTIONS
|
|||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_srelocate = .;
|
_srelocate = .;
|
||||||
|
/* we must make sure the .dfudata is linked to start of RAM */
|
||||||
|
*(.dfudata .dfudata.*);
|
||||||
*(.ramfunc .ramfunc.*);
|
*(.ramfunc .ramfunc.*);
|
||||||
*(.data .data.*);
|
*(.data .data.*);
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
|
|||||||
@@ -109,6 +109,8 @@ SECTIONS
|
|||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_srelocate = .;
|
_srelocate = .;
|
||||||
|
/* we must make sure the .dfudata is linked to start of RAM */
|
||||||
|
*(.dfudata .dfudata.*);
|
||||||
*(.ramfunc .ramfunc.*);
|
*(.ramfunc .ramfunc.*);
|
||||||
*(.data .data.*);
|
*(.data .data.*);
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
|
|||||||
Reference in New Issue
Block a user