Skip to content

Commit

Permalink
Update section names for non-initialized variables
Browse files Browse the repository at this point in the history
- synchronize with latest CMSIS core
  • Loading branch information
RobertRostohar committed Nov 27, 2023
1 parent aec0406 commit 3ca717a
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 22 deletions.
10 changes: 6 additions & 4 deletions Documentation/Doxygen/src/event_recorder.md
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,8 @@ For the **Arm Compiler** toolchain add the following code snippet to the linker

```
RW_NOINIT <start_address> UNINIT 0x800 {
* (.bss.noinit*)
*(.noinit)
*(.noinit.*)
}
```

Expand All @@ -276,10 +277,11 @@ For the **GCC** toolchain add the following code snippet to the linker script (.
.noinit (NOLOAD) :
{
. = ALIGN(4);
PROVIDE (__noinit_start = .);
*(.noinit*)
__noinit_start = .;
*(.noinit)
*(.noinit.*)
. = ALIGN(4);
PROVIDE (__noinit_end = .);
__noinit_end = .;
} > RAM
```

Expand Down
10 changes: 6 additions & 4 deletions Documentation/Doxygen/src/fault.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ For the Arm Compiler toolchain add the following code snippet to the linker scri
```
RW_NOINIT <start_address> UNINIT 0x800 {
* (.bss.noinit*)
*(.noinit)
*(.noinit.*)
}
```
Expand All @@ -150,10 +151,11 @@ For the GCC toolchain add the following code snippet to the linker script (.ld f
.noinit (NOLOAD) :
{
. = ALIGN(4);
PROVIDE (__noinit_start = .);
*(.noinit*)
__noinit_start = .;
*(.noinit)
*(.noinit.*)
. = ALIGN(4);
PROVIDE (__noinit_end = .);
__noinit_end = .;
} > RAM
```
Expand Down
2 changes: 1 addition & 1 deletion EventRecorder/Source/EventRecorder.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

#if !defined(__NO_INIT)
//lint -esym(9071, __NO_INIT) "defined macro is reserved to the compiler"
#define __NO_INIT __attribute__ ((section (".bss.noinit")))
#define __NO_INIT __attribute__ ((section (".noinit")))
#endif

//lint -e(9026) "Function-like macro"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ LR_CODE S_CODE_START {
}

ER_DATA_NOINIT +0 ALIGN 64 UNINIT 0x00002000 {
*(.bss.noinit)
*(.noinit)
*(.noinit.*)
}

#if HEAP_SIZE > 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ SECTIONS
/* Uninitialized memory for Fault information (ARM_FaultInfo) */
.noinit.fault 0x200B0000 (NOLOAD) :
{
*(.bss.noinit.fault)
*(.noinit.fault)
} > RAM

/* This section contains data that is not initialised
Expand All @@ -287,7 +287,7 @@ SECTIONS
{
. = ALIGN(4);
PROVIDE (__noinit_start = .);
*(.bss.noinit)
*(.noinit)
. = ALIGN(4);
PROVIDE (__noinit_end = .);
} > RAM
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ LR_APP __LR_BASE __LR_SIZE { /* load reg
}

RW_NOINIT_FAULT 0x200B0000 UNINIT 0x100 { /* Uninitialized memory for Fault information (ARM_FaultInfo) */
*(.bss.noinit.fault)
*(.noinit.fault)
}

#if __NOINIT_SIZE > 0
RW_NOINIT __RW_NOINIT_BASE UNINIT __NOINIT_SIZE { /* no init data */
*(.bss.noinit)
*(.noinit)
}
#endif

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ SECTIONS
{
. = ALIGN(4);
PROVIDE (__noinit_start = .);
*(.bss.noinit)
*(.noinit)
. = ALIGN(4);
PROVIDE (__noinit_end = .);
} > RAM
Expand Down Expand Up @@ -345,6 +345,6 @@ SECTIONS
/* Uninitialized memory for Fault information (ARM_FaultInfo) */
.noinit.fault 0x200B0000 (NOLOAD) :
{
*(.bss.noinit.fault)
*(.noinit.fault)
} > RAM_NS
}
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ LR_APP __LR_BASE __LR_SIZE { /* load reg

#if __NOINIT_SIZE > 0
RW_NOINIT __RW_NOINIT_BASE UNINIT __NOINIT_SIZE { /* no init data */
*(.bss.noinit)
*(.noinit)
}
#endif

Expand All @@ -125,7 +125,7 @@ LR_APP __LR_BASE __LR_SIZE { /* load reg
}

RW_NS_NOINIT_FAULT 0x200B0000 UNINIT 0x100 { /* Uninitialized memory for Fault information (ARM_FaultInfo) */
*(.bss.noinit.fault)
*(.noinit.fault)
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ LR_ROM __RO_BASE __RO_SIZE { ; load region size_region

#if __NOINIT_SIZE > 0
RW_NOINIT __RW_NOINIT_BASE UNINIT __NOINIT_SIZE { ; no init data
*(.bss.noinit*)
*(.noinit)
*(.noinit.*)
}
#endif

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ SECTIONS
/*
* SG veneers:
* All SG veneers are placed in the special output section .gnu.sgstubs. Its start address
* must be set, either with the command line option --section-start or in a linker script,
* must be set, either with the command line option '--section-start' or in a linker script,
* to indicate where to place these veneers in memory.
*/
/*
Expand Down Expand Up @@ -269,7 +269,8 @@ SECTIONS
{
. = ALIGN(4);
PROVIDE (__noinit_start = .);
*(.bss.noinit*)
*(.noinit)
*(.noinit.*)
. = ALIGN(4);
PROVIDE (__noinit_end = .);
} > RAM
Expand Down
2 changes: 1 addition & 1 deletion Fault/Source/ARM_FaultStorage.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#endif
#if !defined(__NO_INIT_FAULT)
//lint -esym(9071, __NO_INIT_FAULT) "Suppress: defined macro is reserved to the compiler"
#define __NO_INIT_FAULT __attribute__ ((section (".bss.noinit.fault")))
#define __NO_INIT_FAULT __attribute__ ((section (".noinit.fault")))
#endif

#if (ARM_FAULT_FAULT_REGS_EXIST != 0)
Expand Down

0 comments on commit 3ca717a

Please sign in to comment.