Skip to content

Commit 26490e1

Browse files
committed
[linkerscript] Fix missing .build_id section
1 parent 37b66db commit 26490e1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/modm/platform/core/cortex/linker.macros

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,10 @@ MAIN_STACK_SIZE = {{ options[":platform:cortex-m:main_stack_size"] }};
217217
KEEP(*(.assertion))
218218
. = ALIGN(4);
219219
__assertion_table_end = .;
220+
} >{{memory}}
220221

222+
.build_id :
223+
{
221224
__build_id = .;
222225
KEEP(*(.note.gnu.build-id))
223226
} >{{memory}}

tools/modm_tools/size.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,8 @@ def is_in_memory(name):
109109

110110
if is_in_memory("rom"):
111111
totals["rom"] += s["size"]
112-
sections["rom"].append(s["name"])
112+
if not ".build_id" in s["name"]:
113+
sections["rom"].append(s["name"])
113114
if is_in_memory("ram"):
114115
totals["static"] += s["size"]
115116
sections["static"].append(s["name"])

0 commit comments

Comments
 (0)