diff options
author | Jakub Jelinek <jakub@redhat.com> | 2005-02-11 15:06:18 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2005-02-11 15:06:18 +0000 |
commit | e35b009a0e59a26b95b13e028333eb17e297d02c (patch) | |
tree | e495ad50bad33212dc4222d3d94546ef161c1c08 | |
parent | 88da3f5402868f2f90d12d7335ab41de6308ff8a (diff) | |
download | glibc-e35b009a0e59a26b95b13e028333eb17e297d02c.tar glibc-e35b009a0e59a26b95b13e028333eb17e297d02c.tar.gz glibc-e35b009a0e59a26b95b13e028333eb17e297d02c.tar.bz2 glibc-e35b009a0e59a26b95b13e028333eb17e297d02c.zip |
* debug/chk_fail.c (__chk_fail): Add a while (1) loop around
__libc_message to kill GCC warning about noreturn function returning.
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | debug/chk_fail.c | 6 |
2 files changed, 7 insertions, 2 deletions
@@ -1,5 +1,8 @@ 2005-02-11 Jakub Jelinek <jakub@redhat.com> + * debug/chk_fail.c (__chk_fail): Add a while (1) loop around + __libc_message to kill GCC warning about noreturn function returning. + * elf/rtld.c (_dl_start): Set bootstrap_map.l_relocated even for already prelinked ld.so. diff --git a/debug/chk_fail.c b/debug/chk_fail.c index 29df08b9ca..6921ca4686 100644 --- a/debug/chk_fail.c +++ b/debug/chk_fail.c @@ -26,7 +26,9 @@ void __attribute__ ((noreturn)) __chk_fail (void) { - __libc_message (1, "*** buffer overflow detected ***: %s terminated\n", - __libc_argv[0] ?: "<unknown>"); + /* The loop is added only to keep gcc happy. */ + while (1) + __libc_message (1, "*** buffer overflow detected ***: %s terminated\n", + __libc_argv[0] ?: "<unknown>"); } libc_hidden_def (__chk_fail) |