* debug/chk_fail.c (__chk_fail): Add a while (1) loop around

__libc_message to kill GCC warning about noreturn function returning.
This commit is contained in:
Jakub Jelinek 2005-02-11 15:06:18 +00:00
parent 88da3f5402
commit e35b009a0e
2 changed files with 7 additions and 2 deletions

View File

@ -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.

View File

@ -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)