glibc/assert
Florian Weimer 9001cb1102 assert: Do not use stderr in libc-internal assert
Redirect internal assertion failures to __libc_assert_fail, based on
based on __libc_message, which writes directly to STDERR_FILENO
and calls abort.  Also disable message translation and reword the
error message slightly (adjusting stdlib/tst-bz20544 accordingly).

As a result of these changes, malloc no longer needs its own
redefinition of __assert_fail.

__libc_assert_fail needs to be stubbed out during rtld dependency
analysis because the rtld rebuilds turn __libc_assert_fail into
__assert_fail, which is unconditionally provided by elf/dl-minimal.c.

This change is not possible for the public assert macro and its
__assert_fail function because POSIX requires that the diagnostic
is written to stderr.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2022-08-03 11:43:04 +02:00
..
Depend Update. 2000-07-01 05:19:18 +00:00
Makefile assert: Do not use stderr in libc-internal assert 2022-08-03 11:43:04 +02:00
Versions Update. 2000-08-02 00:09:25 +00:00
__assert.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
__libc_assert_fail.c assert: Do not use stderr in libc-internal assert 2022-08-03 11:43:04 +02:00
assert-perr.c Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
assert.c assert: Do not use stderr in libc-internal assert 2022-08-03 11:43:04 +02:00
assert.h Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
test-assert-perr.c Update. 2000-12-05 08:17:58 +00:00
test-assert.c Update. 2000-12-05 08:17:58 +00:00
tst-assert-c++.cc Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00
tst-assert-g++.cc Update copyright dates with scripts/update-copyrights 2022-01-01 11:40:24 -08:00