mirror of
https://github.com/systemd/systemd
synced 2024-07-21 10:17:21 +00:00
boot: Add support for -ftrapv
This commit is contained in:
parent
48e1b2c250
commit
f64f82aa8d
|
@ -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',
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue