We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d1cf60 commit d86829aCopy full SHA for d86829a
cortex-m-rt/link.x
@@ -35,6 +35,17 @@ SECTIONS
35
36
_sidata = LOADADDR(.data);
37
38
+ /* Due to an unfortunate combination of legacy concerns,
39
+ toolchain drawbacks, and insufficient attention to detail,
40
+ rustc has no choice but to mark .debug_gdb_scripts as allocatable.
41
+ We really do not want to upload it to our target, so we
42
+ remove the allocatable bit. Unfortunately, it appears
43
+ that the only way to do this in a linker script is
44
+ the extremely obscure "INFO" output section type specifier. */
45
+ .debug_gdb_scripts 0 (INFO) : {
46
+ KEEP(*(.debug_gdb_scripts))
47
+ }
48
+
49
/DISCARD/ :
50
{
51
/* Unused unwinding stuff */
0 commit comments