Skip to content

Commit b1939e9

Browse files
psiddhclaude
andcommitted
Fix linker section pattern to match pte_to_header.py output
pte_to_header.py generates __attribute__((section("network_model_sec"))) (no leading dot), but the linker snippet used *(.network_model_sec) which doesn't match. The model ended up in MODEL_DDR anyway because the linker placed the orphan into the identically-named output section, but this produced a warning. Drop the leading dots so the pattern matches directly. Co-authored-by: Claude <noreply@anthropic.com>
1 parent 39d3f7d commit b1939e9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

zephyr/samples/mv2-ethosu/model_section.ld.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
SECTION_DATA_PROLOGUE(@ET_PTE_SECTION@,,)
99
{
1010
. = ALIGN(16);
11-
*(.@ET_PTE_SECTION@)
12-
*(.@ET_PTE_SECTION@.*)
11+
*(@ET_PTE_SECTION@)
12+
*(@ET_PTE_SECTION@.*)
1313
} GROUP_DATA_LINK_IN(MODEL_DDR, MODEL_DDR)

0 commit comments

Comments
 (0)