diff options
author | Roland McGrath <roland@hack.frob.com> | 2014-10-20 14:54:12 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2014-10-20 14:54:12 -0700 |
commit | e436eb790f577218f9cea15e545500e952df80ae (patch) | |
tree | 97faeb52afe00d572504370517ac3a7b5301f0b4 /nptl | |
parent | 6af246cf8b6cac6e504aaf06c47b284a204335e0 (diff) | |
download | glibc-e436eb790f577218f9cea15e545500e952df80ae.tar.gz glibc-e436eb790f577218f9cea15e545500e952df80ae.tar.xz glibc-e436eb790f577218f9cea15e545500e952df80ae.zip |
NPTL: Clean up gratuitous Linuxism in libpthread.so entry point.
Diffstat (limited to 'nptl')
-rw-r--r-- | nptl/version.c | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/nptl/version.c b/nptl/version.c index 74d73ceb6d..b2095b41ad 100644 --- a/nptl/version.c +++ b/nptl/version.c @@ -1,4 +1,5 @@ -/* Copyright (C) 2002-2014 Free Software Foundation, Inc. +/* Entry point for libpthread DSO. + Copyright (C) 2002-2014 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@redhat.com>, 2002. @@ -22,7 +23,7 @@ static const char banner[] = #include "banner.h" -"Copyright (C) 2006 Free Software Foundation, Inc.\n\ +"Copyright (C) 2006-2014 Free Software Foundation, Inc.\n\ This is free software; see the source for copying conditions.\n\ There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A\n\ PARTICULAR PURPOSE.\n" @@ -32,13 +33,11 @@ PARTICULAR PURPOSE.\n" ; -extern void __nptl_main (void) __attribute__ ((noreturn)); +/* This is made the e_entry of libpthread.so by LDFLAGS-pthread.so. */ +__attribute__ ((noreturn)) void __nptl_main (void) { - INTERNAL_SYSCALL_DECL (err); - INTERNAL_SYSCALL (write, err, 3, STDOUT_FILENO, (const char *) banner, - sizeof banner - 1); - + __write (STDOUT_FILENO, (const char *) banner, sizeof banner - 1); _exit (0); } |