diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-02-12 23:17:03 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-02-12 23:17:03 +0000 |
commit | e38c954b3bebd37f7519202d918cf0f1edbdd182 (patch) | |
tree | 10448433c1c86e4af4417a5942eb0cb3a5847f6e /debug/chk_fail.c | |
parent | f85f3563dbe640fb1cdb2f8a98c1101e424cb5bc (diff) | |
download | glibc-e38c954b3bebd37f7519202d918cf0f1edbdd182.tar.gz |
* 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 (dlmain): If LD_TRACE_PRELINKING, clear l_relocated flag
before relocating ld.so again.
* elf/rtld.c (_dl_start): Set bootstrap_map.l_relocated even
for already prelinked ld.so.
Diffstat (limited to 'debug/chk_fail.c')
-rw-r--r-- | debug/chk_fail.c | 6 |
1 files changed, 4 insertions, 2 deletions
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) |