]> git.ipfire.org Git - thirdparty/grub.git/commit
gnulib: Provide abort() implementation for gnulib
authorDarren Kenny <darren.kenny@oracle.com>
Fri, 21 Oct 2022 13:32:59 +0000 (13:32 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 27 Oct 2022 14:14:14 +0000 (16:14 +0200)
commit8505f73003d21fba556215dc7e0f7173a9b67c02
treeb10c478f3f13847b238d022f7f8eadb550329098
parentc76a07e15f09e7d06bb3c30666caa35f13d8b3a7
gnulib: Provide abort() implementation for gnulib

The recent gnulib updates require an implementation of abort(), but the
current macro provided by changeset:

  cd37d3d3916c gnulib: Drop no-abort.patch

to config.h.in does not work with the clang compiler since it doesn't
provide a __builtin_trap() implementation, so this element of the
changeset needs to be reverted, and replaced.

After some discussion with Vladimir 'phcoder' Serbinenko and Daniel Kiper
it was suggested to bring back in the change from the changeset:

  db7337a3d353 * grub-core/gnulib/regcomp.c (regerror): ...

Which implements abort() as an inline call to grub_abort(), but since
that was made static by changeset:

  a8f15bceeafe * grub-core/kern/misc.c (grub_abort): Make static

it is also necessary to revert the specific part that makes it a static
function too.

Another implementation of abort() was found in grub-core/kern/compiler-rt.c
which needs to also be removed to be consistent.

Signed-off-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
config.h.in
grub-core/kern/compiler-rt.c
grub-core/kern/misc.c
grub-core/lib/posix_wrap/stdlib.h
include/grub/misc.h