Skip to content

Commit 2880a75

Browse files
committed
Preserve .eh_frame and .eh_frame_hdr
1 parent 9f1892e commit 2880a75

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

riscv-rt/link.x

+2-5
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,8 @@ SECTIONS
111111
KEEP(*(.got .got.*));
112112
}
113113

114-
/* Discard .eh_frame, we are not doing unwind on panic so it is not needed */
115-
/DISCARD/ :
116-
{
117-
*(.eh_frame);
118-
}
114+
.eh_frame (INFO) : { KEEP(*(.eh_frame)) }
115+
.eh_frame_hdr (INFO) : { *(.eh_frame_hdr) }
119116
}
120117

121118
/* Do not exceed this mark in the error messages above | */

0 commit comments

Comments
 (0)