Tried and failed to use unwinding crate: shall do it myself tomorrow.

This commit is contained in:
2025-03-05 03:24:26 +00:00
parent 014ec5310c
commit af995d1d76
8 changed files with 177 additions and 92 deletions
+7 -2
View File
@@ -46,6 +46,12 @@ SECTIONS
*(.rodata .rodata.*)
} :rodata
/* Adds support for stack unwinding using the unwinding crate. */
. = ALIGN(8);
PROVIDE(__eh_frame = .);
.eh_frame : { KEEP (*(.eh_frame)) *(.eh_frame.*) }
/* Move to the next memory page for .data */
. = ALIGN(CONSTANT(MAXPAGESIZE));
@@ -62,9 +68,8 @@ SECTIONS
*(COMMON)
} :data
/* Discard .note.* and .eh_frame* since they may cause issues on some hosts. */
/* Discard .note.* and ~~.eh_frame*~~ since they may cause issues on some hosts. */
/DISCARD/ : {
*(.eh_frame*)
*(.note .note.*)
}
}