This repository was archived by the owner on Jan 24, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
13
13
will go into Flash memory will be 4 byte aligned at the start and at the
14
14
end. Which seems to be required (?) by Cortex-M0 devices.
15
15
16
+ - .bss and .data are now padded so their sizes are multiple of 4 bytes. This
17
+ improves the output of ` objdump ` ; before, the output showed "Address
18
+ 0x20000004 is out of bounds".
19
+
16
20
## [ v0.3.3] - 2017-07-14
17
21
18
22
### Changed
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ PROVIDE(_stack_start = ORIGIN(RAM) + LENGTH(RAM));
9
9
10
10
SECTIONS
11
11
{
12
- .vector_table ORIGIN (FLASH) :
12
+ .vector_table ORIGIN (FLASH) : ALIGN (4)
13
13
{
14
14
/* Vector table */
15
15
_svector_table = .;
@@ -45,18 +45,19 @@ SECTIONS
45
45
{
46
46
_sbss = .;
47
47
*(.bss .bss.*);
48
- _ebss = ALIGN (4);
48
+ . = ALIGN (4);
49
+ _ebss = .;
49
50
} > RAM
50
51
51
52
.data : ALIGN (4)
52
53
{
54
+ _sidata = LOADADDR (.data);
53
55
_sdata = .;
54
56
*(.data .data.*);
55
- _edata = ALIGN (4);
57
+ . = ALIGN (4);
58
+ _edata = .;
56
59
} > RAM AT > FLASH
57
60
58
- _sidata = LOADADDR (.data);
59
-
60
61
/* The heap starts right after the .bss + .data section ends */
61
62
_sheap = _edata;
62
63
You can’t perform that action at this time.
0 commit comments