Tried and failed to use unwinding crate: shall do it myself tomorrow.
This commit is contained in:
+7
-2
@@ -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.*)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user