mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
boot: Add support for -ftrapv
This commit is contained in:
@@ -81,6 +81,12 @@ void __stack_chk_fail_local(void) {
|
||||
__stack_chk_fail();
|
||||
}
|
||||
|
||||
/* Called by libgcc for some fatal errors like integer overflow with -ftrapv. */
|
||||
_used_ _noreturn_ void abort(void);
|
||||
void abort(void) {
|
||||
panic(u"systemd-boot: Unknown error, halting.");
|
||||
}
|
||||
|
||||
#if defined(__ARM_EABI__)
|
||||
/* These override the (weak) div0 handlers from libgcc as they would otherwise call raise() instead. */
|
||||
|
||||
|
||||
@@ -179,7 +179,6 @@ efi_disabled_c_args = cc.get_supported_arguments(
|
||||
'-fcf-protection=none',
|
||||
'-fno-asynchronous-unwind-tables',
|
||||
'-fno-exceptions',
|
||||
'-fno-trapv',
|
||||
'-fno-sanitize=all',
|
||||
'-fno-unwind-tables',
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user