mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-11-29 07:24:13 +01:00
link: Use alternate declaration of pios_board_info_blob
Make use of a shorter notation to allow the linker to provide the correct address for pios_board_info_blob.
This commit is contained in:
parent
6e406c0232
commit
2d47427b05
@ -1,14 +1,10 @@
|
|||||||
|
PROVIDE(pios_board_info_blob = ORIGIN(BD_INFO));
|
||||||
|
|
||||||
_estack = 0x20004FF0;
|
_estack = 0x20004FF0;
|
||||||
|
|
||||||
/* Section Definitions */
|
/* Section Definitions */
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
.boardinfo :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
PROVIDE(pios_board_info_blob = .);
|
|
||||||
} > BD_INFO
|
|
||||||
|
|
||||||
.text :
|
.text :
|
||||||
{
|
{
|
||||||
PROVIDE (pios_isr_vector_table_base = .);
|
PROVIDE (pios_isr_vector_table_base = .);
|
||||||
|
@ -3,17 +3,13 @@ PROVIDE ( vPortSVCHandler = 0 ) ;
|
|||||||
PROVIDE ( xPortPendSVHandler = 0 ) ;
|
PROVIDE ( xPortPendSVHandler = 0 ) ;
|
||||||
PROVIDE ( xPortSysTickHandler = 0 ) ;
|
PROVIDE ( xPortSysTickHandler = 0 ) ;
|
||||||
|
|
||||||
|
PROVIDE(pios_board_info_blob = ORIGIN(BD_INFO));
|
||||||
|
|
||||||
_estack = 0x20004FF0;
|
_estack = 0x20004FF0;
|
||||||
|
|
||||||
/* Section Definitions */
|
/* Section Definitions */
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
.boardinfo :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
PROVIDE(pios_board_info_blob = .);
|
|
||||||
} > BD_INFO
|
|
||||||
|
|
||||||
.text :
|
.text :
|
||||||
{
|
{
|
||||||
PROVIDE (pios_isr_vector_table_base = .);
|
PROVIDE (pios_isr_vector_table_base = .);
|
||||||
|
@ -3,17 +3,13 @@ PROVIDE ( vPortSVCHandler = 0 ) ;
|
|||||||
PROVIDE ( xPortPendSVHandler = 0 ) ;
|
PROVIDE ( xPortPendSVHandler = 0 ) ;
|
||||||
PROVIDE ( xPortSysTickHandler = 0 ) ;
|
PROVIDE ( xPortSysTickHandler = 0 ) ;
|
||||||
|
|
||||||
|
PROVIDE(pios_board_info_blob = ORIGIN(BD_INFO));
|
||||||
|
|
||||||
_estack = 0x20004FF0;
|
_estack = 0x20004FF0;
|
||||||
|
|
||||||
/* Section Definitions */
|
/* Section Definitions */
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
.boardinfo :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
PROVIDE(pios_board_info_blob = .);
|
|
||||||
} > BD_INFO
|
|
||||||
|
|
||||||
.text :
|
.text :
|
||||||
{
|
{
|
||||||
PROVIDE (pios_isr_vector_table_base = .);
|
PROVIDE (pios_isr_vector_table_base = .);
|
||||||
|
@ -184,17 +184,12 @@ PROVIDE ( SysTick = (SCS_BASE + 0x0010) ) ;
|
|||||||
PROVIDE ( NVIC = (SCS_BASE + 0x0100) ) ;
|
PROVIDE ( NVIC = (SCS_BASE + 0x0100) ) ;
|
||||||
PROVIDE ( SCB = (SCS_BASE + 0x0D00) ) ;
|
PROVIDE ( SCB = (SCS_BASE + 0x0D00) ) ;
|
||||||
|
|
||||||
|
PROVIDE(pios_board_info_blob = ORIGIN(BD_INFO));
|
||||||
|
|
||||||
/* Sections Definitions */
|
/* Sections Definitions */
|
||||||
|
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
.boardinfo :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
PROVIDE(pios_board_info_blob = .);
|
|
||||||
} > BD_INFO
|
|
||||||
|
|
||||||
/* for Cortex devices, the beginning of the startup code is stored in the .isr_vector section, which goes to FLASH */
|
/* for Cortex devices, the beginning of the startup code is stored in the .isr_vector section, which goes to FLASH */
|
||||||
.isr_vector :
|
.isr_vector :
|
||||||
{
|
{
|
||||||
|
@ -158,17 +158,12 @@ PROVIDE ( SysTick = (SCS_BASE + 0x0010) ) ;
|
|||||||
PROVIDE ( NVIC = (SCS_BASE + 0x0100) ) ;
|
PROVIDE ( NVIC = (SCS_BASE + 0x0100) ) ;
|
||||||
PROVIDE ( SCB = (SCS_BASE + 0x0D00) ) ;
|
PROVIDE ( SCB = (SCS_BASE + 0x0D00) ) ;
|
||||||
|
|
||||||
|
PROVIDE(pios_board_info_blob = ORIGIN(BD_INFO));
|
||||||
|
|
||||||
/* Sections Definitions */
|
/* Sections Definitions */
|
||||||
|
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
.boardinfo :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
PROVIDE(pios_board_info_blob = .);
|
|
||||||
} > BD_INFO
|
|
||||||
|
|
||||||
/* for Cortex devices, the beginning of the startup code is stored in the .isr_vector section, which goes to FLASH */
|
/* for Cortex devices, the beginning of the startup code is stored in the .isr_vector section, which goes to FLASH */
|
||||||
.isr_vector :
|
.isr_vector :
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user