File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -36,10 +36,16 @@ SECTIONS {
36
36
}
37
37
38
38
/*
39
- * The device description is usually in DevDscr section, but adding it to
40
- * PrgData in order to satisfy tools that need this section.
39
+ * Adding PrgData section in order to satisfy tools that need it.
41
40
*/
42
41
PrgData : {
42
+ KEEP(*(.PrgData))
43
+ KEEP(*(.PrgData.*))
44
+
45
+ . = ALIGN (4);
46
+ }
47
+
48
+ DevDscr : {
43
49
KEEP(*(.DevDscr))
44
50
KEEP(*(.DevDscr.*))
45
51
Original file line number Diff line number Diff line change @@ -78,6 +78,11 @@ pub struct FlashDevice {
78
78
pub sectors : [ u32 ; 4 ] ,
79
79
}
80
80
81
+ #[ cfg( feature = "device_description" ) ]
82
+ #[ no_mangle]
83
+ #[ link_section = ".PrgData" ]
84
+ pub static dummy: u32 = 0 ;
85
+
81
86
#[ cfg( feature = "device_description" ) ]
82
87
#[ no_mangle]
83
88
#[ link_section = ".DevDscr" ]
You can’t perform that action at this time.
0 commit comments