This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
GNU C Library master sources branch master updated. glibc-2.22-83-gcf42537
- From: vapier at sourceware dot org
- To: glibc-cvs at sourceware dot org
- Date: 18 Aug 2015 06:58:40 -0000
- Subject: GNU C Library master sources branch master updated. glibc-2.22-83-gcf42537
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via cf4253777412e9c8d5bfbc1c8b975f472e1e7d43 (commit)
via 352d0eafb669a688003471783ca43cf5a3e94cd2 (commit)
via 55b14dda4375b7b8f80f09a791bdf3cf7e0f3e08 (commit)
via 605021b6b9906b9b3f8c5c883ccb090bb1d140ad (commit)
via 4454e161cb3ba9236259b377eb5b59f171a5432d (commit)
via 44e01f06a019e131c8e6f3984a37bdc6a7811479 (commit)
via d5a77fcafdcd3494663387e7100e2fb2d180af5b (commit)
via c5bf7f84bf041e9c7c690d09baad4daf3e992805 (commit)
via 8584204806ffea6f33bc6e42a1f07d6bc5a35105 (commit)
via 43329fe1396080faf025118b31053fd19e029c12 (commit)
from 3fb4cfaf1f1e8d58312720c70d224e2050d469fc (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=cf4253777412e9c8d5bfbc1c8b975f472e1e7d43
commit cf4253777412e9c8d5bfbc1c8b975f472e1e7d43
Author: Alan Modra <amodra@gmail.com>
Date: Fri Aug 14 22:15:49 2015 -0400
hppa: start.S: rework references to fix PIE TEXTRELs [BZ #18421]
The startup code was not using PIC friendly references leading to TEXTRELs
in every PIE ELF.
diff --git a/ChangeLog b/ChangeLog
index 13fccc0..35cbc01 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2015-08-18 Alan Modra <amodra@gmail.com>
+
+ [BZ #18421]
+ * sysdeps/hppa/start.S [SHARED]: Use .section .data.rel.ro and define
+ .Lp__global.
+ (_start): Load %dp via .Lp__global.
+ [!SHARED]: Use .section .rodata.
+
2015-08-18 Mike Frysinger <vapier@gentoo.org>
* sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
diff --git a/sysdeps/hppa/start.S b/sysdeps/hppa/start.S
index 64d8c3e..cc4f243 100644
--- a/sysdeps/hppa/start.S
+++ b/sysdeps/hppa/start.S
@@ -42,7 +42,11 @@
/* Have the linker create plabel words so we get PLABEL32
relocs and not 21/14. The use of 21/14 relocs is only
supported in the latest dynamic linker. */
- .section .rodata
+#ifdef SHARED
+ .section .data.rel.ro,"aw",@progbits
+#else
+ .section .rodata,"a",@progbits
+#endif
.align 4
.Lpmain:
.word P%main
@@ -52,6 +56,10 @@
.word P%__libc_csu_fini
.Lp__libc_csu_init:
.word P%__libc_csu_init
+#ifdef SHARED
+.Lp__global:
+ .word $global$
+#endif
.text
.align 4
@@ -122,10 +130,14 @@ _start:
/* void *stack_end (7th argument) */
stw %sp, -60(%sp)
+#ifdef SHARED
+ addil LT'.Lp__global, %r19
+ ldw RT'.Lp__global(%r1), %dp
+#else
/* load global */
ldil L%$global$, %dp
ldo R%$global$(%dp), %dp
-
+#endif
bl __libc_start_main,%r2
nop
/* die horribly if it returned (it shouldn't) */
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=352d0eafb669a688003471783ca43cf5a3e94cd2
commit 352d0eafb669a688003471783ca43cf5a3e94cd2
Author: Mike Frysinger <vapier@gentoo.org>
Date: Fri Aug 14 22:14:28 2015 -0400
hppa: timerfd.h: move to common sys/timerfd.h
Use the common sys/timerfd.h to avoid duplication and move the
arch-specific settings into bits/timerfd.h.
diff --git a/ChangeLog b/ChangeLog
index 1212089..13fccc0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2015-08-18 Mike Frysinger <vapier@gentoo.org>
+ * sysdeps/unix/sysv/linux/hppa/bits/timerfd.h: New file.
+ * sysdeps/unix/sysv/linux/hppa/sys/timerfd.h: Delete.
+
+2015-08-18 Mike Frysinger <vapier@gentoo.org>
+
* sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
* sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
diff --git a/sysdeps/unix/sysv/linux/hppa/bits/timerfd.h b/sysdeps/unix/sysv/linux/hppa/bits/timerfd.h
new file mode 100644
index 0000000..aba0b32
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/hppa/bits/timerfd.h
@@ -0,0 +1,29 @@
+/* Copyright (C) 2008-2015 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ <http://www.gnu.org/licenses/>. */
+
+#ifndef _SYS_TIMERFD_H
+# error "Never use <bits/timerfd.h> directly; include <sys/timerfd.h> instead."
+#endif
+
+/* Bits to be set in the FLAGS parameter of `timerfd_create'. */
+enum
+ {
+ TFD_CLOEXEC = 010000000,
+#define TFD_CLOEXEC TFD_CLOEXEC
+ TFD_NONBLOCK = 000200004 /* HPUX has separate NDELAY & NONBLOCK */
+#define TFD_NONBLOCK TFD_NONBLOCK
+ };
diff --git a/sysdeps/unix/sysv/linux/hppa/sys/timerfd.h b/sysdeps/unix/sysv/linux/hppa/sys/timerfd.h
deleted file mode 100644
index aa59dcd..0000000
--- a/sysdeps/unix/sysv/linux/hppa/sys/timerfd.h
+++ /dev/null
@@ -1,59 +0,0 @@
-/* Copyright (C) 2008-2015 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_TIMERFD_H
-#define _SYS_TIMERFD_H 1
-
-#include <time.h>
-
-
-/* Bits to be set in the FLAGS parameter of `timerfd_create'. */
-enum
- {
- TFD_CLOEXEC = 010000000,
-#define TFD_CLOEXEC TFD_CLOEXEC
- TFD_NONBLOCK = 000200004 /* HPUX has separate NDELAY & NONBLOCK */
-#define TFD_NONBLOCK TFD_NONBLOCK
- };
-
-
-/* Bits to be set in the FLAGS parameter of `timerfd_settime'. */
-enum
- {
- TFD_TIMER_ABSTIME = 1 << 0
-#define TFD_TIMER_ABSTIME TFD_TIMER_ABSTIME
- };
-
-
-__BEGIN_DECLS
-
-/* Return file descriptor for new interval timer source. */
-extern int timerfd_create (clockid_t __clock_id, int __flags) __THROW;
-
-/* Set next expiration time of interval timer source UFD to UTMR. If
- FLAGS has the TFD_TIMER_ABSTIME flag set the timeout value is
- absolute. Optionally return the old expiration time in OTMR. */
-extern int timerfd_settime (int __ufd, int __flags,
- const struct itimerspec *__utmr,
- struct itimerspec *__otmr) __THROW;
-
-/* Return the next expiration time of UFD. */
-extern int timerfd_gettime (int __ufd, struct itimerspec *__otmr) __THROW;
-
-__END_DECLS
-
-#endif /* sys/timerfd.h */
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=55b14dda4375b7b8f80f09a791bdf3cf7e0f3e08
commit 55b14dda4375b7b8f80f09a791bdf3cf7e0f3e08
Author: Mike Frysinger <vapier@gentoo.org>
Date: Fri Aug 14 22:14:16 2015 -0400
hppa: signalfd.h: move to common sys/signalfd.h
Use the common sys/signalfd.h to avoid duplication and move the
arch-specific settings into bits/signalfd.h.
diff --git a/ChangeLog b/ChangeLog
index 915cae8..1212089 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2015-08-18 Mike Frysinger <vapier@gentoo.org>
+ * sysdeps/unix/sysv/linux/hppa/bits/signalfd.h: New file.
+ * sysdeps/unix/sysv/linux/hppa/sys/signalfd.h: Delete.
+
+2015-08-18 Mike Frysinger <vapier@gentoo.org>
+
* sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
* sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
diff --git a/sysdeps/unix/sysv/linux/hppa/bits/signalfd.h b/sysdeps/unix/sysv/linux/hppa/bits/signalfd.h
new file mode 100644
index 0000000..abb2a23
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/hppa/bits/signalfd.h
@@ -0,0 +1,29 @@
+/* Copyright (C) 2007-2015 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ <http://www.gnu.org/licenses/>. */
+
+#ifndef _SYS_SIGNALFD_H
+# error "Never use <bits/signalfd.h> directly; include <sys/signalfd.h> instead."
+#endif
+
+/* Flags for signalfd. */
+enum
+ {
+ SFD_CLOEXEC = 010000000,
+#define SFD_CLOEXEC SFD_CLOEXEC
+ SFD_NONBLOCK = 00200004 /* HPUX has separate NDELAY & NONBLOCK */
+#define SFD_NONBLOCK SFD_NONBLOCK
+ };
diff --git a/sysdeps/unix/sysv/linux/hppa/sys/signalfd.h b/sysdeps/unix/sysv/linux/hppa/sys/signalfd.h
deleted file mode 100644
index 1a4a197..0000000
--- a/sysdeps/unix/sysv/linux/hppa/sys/signalfd.h
+++ /dev/null
@@ -1,65 +0,0 @@
-/* Copyright (C) 2007-2015 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_SIGNALFD_H
-#define _SYS_SIGNALFD_H 1
-
-#define __need_sigset_t
-#include <signal.h>
-#include <stdint.h>
-
-
-struct signalfd_siginfo
-{
- uint32_t ssi_signo;
- int32_t ssi_errno;
- int32_t ssi_code;
- uint32_t ssi_pid;
- uint32_t ssi_uid;
- int32_t ssi_fd;
- uint32_t ssi_tid;
- uint32_t ssi_band;
- uint32_t ssi_overrun;
- uint32_t ssi_trapno;
- int32_t ssi_status;
- int32_t ssi_int;
- uint64_t ssi_ptr;
- uint64_t ssi_utime;
- uint64_t ssi_stime;
- uint64_t ssi_addr;
- uint8_t __pad[48];
-};
-
-/* Flags for signalfd. */
-enum
- {
- SFD_CLOEXEC = 010000000,
-#define SFD_CLOEXEC SFD_CLOEXEC
- SFD_NONBLOCK = 00200004 /* HPUX has separate NDELAY & NONBLOCK */
-#define SFD_NONBLOCK SFD_NONBLOCK
- };
-
-__BEGIN_DECLS
-
-/* Request notification for delivery of signals in MASK to be
- performed using descriptor FD.*/
-extern int signalfd (int __fd, const sigset_t *__mask, int __flags)
- __THROW __nonnull ((2));
-
-__END_DECLS
-
-#endif /* sys/signalfd.h */
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=605021b6b9906b9b3f8c5c883ccb090bb1d140ad
commit 605021b6b9906b9b3f8c5c883ccb090bb1d140ad
Author: Mike Frysinger <vapier@gentoo.org>
Date: Fri Aug 14 22:14:00 2015 -0400
hppa: inotify.h: move to common sys/inotify.h
Use the common sys/inotify.h to avoid duplication and move the
arch-specific settings into bits/inotify.h.
diff --git a/ChangeLog b/ChangeLog
index a48ee0e..915cae8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2015-08-18 Mike Frysinger <vapier@gentoo.org>
+ * sysdeps/unix/sysv/linux/hppa/bits/inotify.h: New file.
+ * sysdeps/unix/sysv/linux/hppa/sys/inotify.h: Delete.
+
+2015-08-18 Mike Frysinger <vapier@gentoo.org>
+
* sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
* sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
diff --git a/sysdeps/unix/sysv/linux/hppa/bits/inotify.h b/sysdeps/unix/sysv/linux/hppa/bits/inotify.h
new file mode 100644
index 0000000..fb1f056
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/hppa/bits/inotify.h
@@ -0,0 +1,29 @@
+/* Copyright (C) 2005-2015 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ <http://www.gnu.org/licenses/>. */
+
+#ifndef _SYS_INOTIFY_H
+# error "Never use <bits/inotify.h> directly; include <sys/inotify.h> instead."
+#endif
+
+/* Flags for the parameter of inotify_init1. */
+enum
+ {
+ IN_CLOEXEC = 010000000,
+#define IN_CLOEXEC IN_CLOEXEC
+ IN_NONBLOCK = 000200004 /* HPUX has separate NDELAY & NONBLOCK */
+#define IN_NONBLOCK IN_NONBLOCK
+ };
diff --git a/sysdeps/unix/sysv/linux/hppa/sys/inotify.h b/sysdeps/unix/sysv/linux/hppa/sys/inotify.h
deleted file mode 100644
index 34b99af..0000000
--- a/sysdeps/unix/sysv/linux/hppa/sys/inotify.h
+++ /dev/null
@@ -1,106 +0,0 @@
-/* Copyright (C) 2005-2015 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_INOTIFY_H
-#define _SYS_INOTIFY_H 1
-
-#include <stdint.h>
-
-
-/* Flags for the parameter of inotify_init1. */
-enum
- {
- IN_CLOEXEC = 010000000,
-#define IN_CLOEXEC IN_CLOEXEC
- IN_NONBLOCK = 000200004 /* HPUX has separate NDELAY & NONBLOCK */
-#define IN_NONBLOCK IN_NONBLOCK
- };
-
-
-/* Structure describing an inotify event. */
-struct inotify_event
-{
- int wd; /* Watch descriptor. */
- uint32_t mask; /* Watch mask. */
- uint32_t cookie; /* Cookie to synchronize two events. */
- uint32_t len; /* Length (including NULs) of name. */
- char name __flexarr; /* Name. */
-};
-
-
-/* Supported events suitable for MASK parameter of INOTIFY_ADD_WATCH. */
-#define IN_ACCESS 0x00000001 /* File was accessed. */
-#define IN_MODIFY 0x00000002 /* File was modified. */
-#define IN_ATTRIB 0x00000004 /* Metadata changed. */
-#define IN_CLOSE_WRITE 0x00000008 /* Writtable file was closed. */
-#define IN_CLOSE_NOWRITE 0x00000010 /* Unwrittable file closed. */
-#define IN_CLOSE (IN_CLOSE_WRITE | IN_CLOSE_NOWRITE) /* Close. */
-#define IN_OPEN 0x00000020 /* File was opened. */
-#define IN_MOVED_FROM 0x00000040 /* File was moved from X. */
-#define IN_MOVED_TO 0x00000080 /* File was moved to Y. */
-#define IN_MOVE (IN_MOVED_FROM | IN_MOVED_TO) /* Moves. */
-#define IN_CREATE 0x00000100 /* Subfile was created. */
-#define IN_DELETE 0x00000200 /* Subfile was deleted. */
-#define IN_DELETE_SELF 0x00000400 /* Self was deleted. */
-#define IN_MOVE_SELF 0x00000800 /* Self was moved. */
-
-/* Events sent by the kernel. */
-#define IN_UNMOUNT 0x00002000 /* Backing fs was unmounted. */
-#define IN_Q_OVERFLOW 0x00004000 /* Event queued overflowed. */
-#define IN_IGNORED 0x00008000 /* File was ignored. */
-
-/* Helper events. */
-#define IN_CLOSE (IN_CLOSE_WRITE | IN_CLOSE_NOWRITE) /* Close. */
-#define IN_MOVE (IN_MOVED_FROM | IN_MOVED_TO) /* Moves. */
-
-/* Special flags. */
-#define IN_ONLYDIR 0x01000000 /* Only watch the path if it is a
- directory. */
-#define IN_DONT_FOLLOW 0x02000000 /* Do not follow a sym link. */
-#define IN_EXCL_UNLINK 0x04000000 /* Exclude events on unlinked
- objects. */
-#define IN_MASK_ADD 0x20000000 /* Add to the mask of an already
- existing watch. */
-#define IN_ISDIR 0x40000000 /* Event occurred against dir. */
-#define IN_ONESHOT 0x80000000 /* Only send event once. */
-
-/* All events which a program can wait on. */
-#define IN_ALL_EVENTS (IN_ACCESS | IN_MODIFY | IN_ATTRIB | IN_CLOSE_WRITE \
- | IN_CLOSE_NOWRITE | IN_OPEN | IN_MOVED_FROM \
- | IN_MOVED_TO | IN_CREATE | IN_DELETE \
- | IN_DELETE_SELF | IN_MOVE_SELF)
-
-
-__BEGIN_DECLS
-
-/* Create and initialize inotify instance. */
-extern int inotify_init (void) __THROW;
-
-/* Create and initialize inotify instance. */
-extern int inotify_init1 (int __flags) __THROW;
-
-/* Add watch of object NAME to inotify instance FD. Notify about
- events specified by MASK. */
-extern int inotify_add_watch (int __fd, const char *__name, uint32_t __mask)
- __THROW;
-
-/* Remove the watch specified by WD from the inotify instance FD. */
-extern int inotify_rm_watch (int __fd, int __wd) __THROW;
-
-__END_DECLS
-
-#endif /* sys/inotify.h */
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=4454e161cb3ba9236259b377eb5b59f171a5432d
commit 4454e161cb3ba9236259b377eb5b59f171a5432d
Author: Mike Frysinger <vapier@gentoo.org>
Date: Fri Aug 14 22:13:37 2015 -0400
hppa: eventfd.h: move to common sys/eventfd.h
Use the common sys/eventfd.h to avoid duplication and move the
arch-specific settings into bits/eventfd.h.
diff --git a/ChangeLog b/ChangeLog
index 813c5a7..a48ee0e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2015-08-18 Mike Frysinger <vapier@gentoo.org>
+ * sysdeps/unix/sysv/linux/hppa/bits/eventfd.h: New file.
+ * sysdeps/unix/sysv/linux/hppa/sys/eventfd.h: Delete.
+
+2015-08-18 Mike Frysinger <vapier@gentoo.org>
+
* sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
* sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
diff --git a/sysdeps/unix/sysv/linux/hppa/sys/eventfd.h b/sysdeps/unix/sysv/linux/hppa/bits/eventfd.h
similarity index 62%
rename from sysdeps/unix/sysv/linux/hppa/sys/eventfd.h
rename to sysdeps/unix/sysv/linux/hppa/bits/eventfd.h
index c748b4f..95dc362 100644
--- a/sysdeps/unix/sysv/linux/hppa/sys/eventfd.h
+++ b/sysdeps/unix/sysv/linux/hppa/bits/eventfd.h
@@ -12,19 +12,14 @@
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
+ License along with the GNU C Library; if not, see
<http://www.gnu.org/licenses/>. */
#ifndef _SYS_EVENTFD_H
-#define _SYS_EVENTFD_H 1
+# error "Never use <bits/eventfd.h> directly; include <sys/eventfd.h> instead."
+#endif
-#include <stdint.h>
-
-
-/* Type for event counter. */
-typedef uint64_t eventfd_t;
-
-/* Flags for signalfd. */
+/* Flags for eventfd. */
enum
{
EFD_SEMAPHORE = 1,
@@ -34,20 +29,3 @@ enum
EFD_NONBLOCK = 00200004 /* HPUX has separate NDELAY & NONBLOCK */
#define EFD_NONBLOCK EFD_NONBLOCK
};
-
-
-__BEGIN_DECLS
-
-/* Return file descriptor for generic event channel. Set initial
- value to COUNT. */
-extern int eventfd (unsigned int __count, int __flags) __THROW;
-
-/* Read event counter and possibly wait for events. */
-extern int eventfd_read (int __fd, eventfd_t *__value);
-
-/* Increment event counter. */
-extern int eventfd_write (int __fd, eventfd_t __value);
-
-__END_DECLS
-
-#endif /* sys/eventfd.h */
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=44e01f06a019e131c8e6f3984a37bdc6a7811479
commit 44e01f06a019e131c8e6f3984a37bdc6a7811479
Author: Mike Frysinger <vapier@gentoo.org>
Date: Fri Aug 14 22:12:54 2015 -0400
hppa: epoll.h: move to common sys/epoll.h
Use the common sys/epoll.h to avoid duplication and move the arch-specific
settings into bits/epoll.h.
diff --git a/ChangeLog b/ChangeLog
index bf2e55a..813c5a7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2015-08-18 Mike Frysinger <vapier@gentoo.org>
+ * sysdeps/unix/sysv/linux/hppa/bits/epoll.h: New file.
+ * sysdeps/unix/sysv/linux/hppa/sys/epoll.h: Delete.
+
+2015-08-18 Mike Frysinger <vapier@gentoo.org>
+
* sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
diff --git a/sysdeps/unix/sysv/linux/hppa/bits/epoll.h b/sysdeps/unix/sysv/linux/hppa/bits/epoll.h
new file mode 100644
index 0000000..2f9e241
--- /dev/null
+++ b/sysdeps/unix/sysv/linux/hppa/bits/epoll.h
@@ -0,0 +1,27 @@
+/* Copyright (C) 2002-2015 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ <http://www.gnu.org/licenses/>. */
+
+#ifndef _SYS_EPOLL_H
+# error "Never use <bits/epoll.h> directly; include <sys/epoll.h> instead."
+#endif
+
+/* Flags to be passed to epoll_create1. */
+enum
+ {
+ EPOLL_CLOEXEC = 010000000
+#define EPOLL_CLOEXEC EPOLL_CLOEXEC
+ };
diff --git a/sysdeps/unix/sysv/linux/hppa/sys/epoll.h b/sysdeps/unix/sysv/linux/hppa/sys/epoll.h
deleted file mode 100644
index 004be55..0000000
--- a/sysdeps/unix/sysv/linux/hppa/sys/epoll.h
+++ /dev/null
@@ -1,143 +0,0 @@
-/* Copyright (C) 2002-2015 Free Software Foundation, Inc.
- This file is part of the GNU C Library.
-
- The GNU C Library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- The GNU C Library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with the GNU C Library. If not, see
- <http://www.gnu.org/licenses/>. */
-
-#ifndef _SYS_EPOLL_H
-#define _SYS_EPOLL_H 1
-
-#include <stdint.h>
-#include <sys/types.h>
-
-/* Get __sigset_t. */
-#include <bits/sigset.h>
-
-#ifndef __sigset_t_defined
-# define __sigset_t_defined
-typedef __sigset_t sigset_t;
-#endif
-
-
-/* Flags to be passed to epoll_create1. */
-enum
- {
- EPOLL_CLOEXEC = 010000000
-#define EPOLL_CLOEXEC EPOLL_CLOEXEC
- };
-
-
-enum EPOLL_EVENTS
- {
- EPOLLIN = 0x001,
-#define EPOLLIN EPOLLIN
- EPOLLPRI = 0x002,
-#define EPOLLPRI EPOLLPRI
- EPOLLOUT = 0x004,
-#define EPOLLOUT EPOLLOUT
- EPOLLRDNORM = 0x040,
-#define EPOLLRDNORM EPOLLRDNORM
- EPOLLRDBAND = 0x080,
-#define EPOLLRDBAND EPOLLRDBAND
- EPOLLWRNORM = 0x100,
-#define EPOLLWRNORM EPOLLWRNORM
- EPOLLWRBAND = 0x200,
-#define EPOLLWRBAND EPOLLWRBAND
- EPOLLMSG = 0x400,
-#define EPOLLMSG EPOLLMSG
- EPOLLERR = 0x008,
-#define EPOLLERR EPOLLERR
- EPOLLHUP = 0x010,
-#define EPOLLHUP EPOLLHUP
- EPOLLRDHUP = 0x2000,
-#define EPOLLRDHUP EPOLLRDHUP
- EPOLLWAKEUP = 1u << 29,
-#define EPOLLWAKEUP EPOLLWAKEUP
- EPOLLONESHOT = 1u << 30,
-#define EPOLLONESHOT EPOLLONESHOT
- EPOLLET = 1u << 31
-#define EPOLLET EPOLLET
- };
-
-
-/* Valid opcodes ( "op" parameter ) to issue to epoll_ctl(). */
-#define EPOLL_CTL_ADD 1 /* Add a file descriptor to the interface. */
-#define EPOLL_CTL_DEL 2 /* Remove a file descriptor from the interface. */
-#define EPOLL_CTL_MOD 3 /* Change file descriptor epoll_event structure. */
-
-
-typedef union epoll_data
-{
- void *ptr;
- int fd;
- uint32_t u32;
- uint64_t u64;
-} epoll_data_t;
-
-struct epoll_event
-{
- uint32_t events; /* Epoll events */
- epoll_data_t data; /* User data variable */
-};
-
-
-__BEGIN_DECLS
-
-/* Creates an epoll instance. Returns an fd for the new instance.
- The "size" parameter is a hint specifying the number of file
- descriptors to be associated with the new instance. The fd
- returned by epoll_create() should be closed with close(). */
-extern int epoll_create (int __size) __THROW;
-
-/* Same as epoll_create but with an FLAGS parameter. The unused SIZE
- parameter has been dropped. */
-extern int epoll_create1 (int __flags) __THROW;
-
-
-/* Manipulate an epoll instance "epfd". Returns 0 in case of success,
- -1 in case of error ( the "errno" variable will contain the
- specific error code ) The "op" parameter is one of the EPOLL_CTL_*
- constants defined above. The "fd" parameter is the target of the
- operation. The "event" parameter describes which events the caller
- is interested in and any associated user data. */
-extern int epoll_ctl (int __epfd, int __op, int __fd,
- struct epoll_event *__event) __THROW;
-
-
-/* Wait for events on an epoll instance "epfd". Returns the number of
- triggered events returned in "events" buffer. Or -1 in case of
- error with the "errno" variable set to the specific error code. The
- "events" parameter is a buffer that will contain triggered
- events. The "maxevents" is the maximum number of events to be
- returned ( usually size of "events" ). The "timeout" parameter
- specifies the maximum wait time in milliseconds (-1 == infinite).
-
- This function is a cancellation point and therefore not marked with
- __THROW. */
-extern int epoll_wait (int __epfd, struct epoll_event *__events,
- int __maxevents, int __timeout);
-
-
-/* Same as epoll_wait, but the thread's signal mask is temporarily
- and atomically replaced with the one provided as parameter.
-
- This function is a cancellation point and therefore not marked with
- __THROW. */
-extern int epoll_pwait (int __epfd, struct epoll_event *__events,
- int __maxevents, int __timeout,
- const __sigset_t *__ss);
-
-__END_DECLS
-
-#endif /* sys/epoll.h */
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=d5a77fcafdcd3494663387e7100e2fb2d180af5b
commit d5a77fcafdcd3494663387e7100e2fb2d180af5b
Author: Mike Frysinger <vapier@gentoo.org>
Date: Fri Aug 14 22:11:50 2015 -0400
hppa: sigaction.h: update define export based on __USE_XOPEN2K8
This brings hppa in line with other ports by exporting a few more defines
based on the __USE_XOPEN2K8 define and not just __USE_MISC.
diff --git a/ChangeLog b/ChangeLog
index 3b407f6..bf2e55a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2015-08-18 Mike Frysinger <vapier@gentoo.org>
+ * sysdeps/unix/sysv/linux/hppa/bits/sigaction.h (SA_RESETHAND,
+ SA_NODEFER, SA_RESTART): Define when __USE_XOPEN2K8 is defined.
+
+2015-08-18 Mike Frysinger <vapier@gentoo.org>
+
* sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
2015-08-18 Mike Frysinger <vapier@gentoo.org>
diff --git a/sysdeps/unix/sysv/linux/hppa/bits/sigaction.h b/sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
index ebe375f..2a12060 100644
--- a/sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
+++ b/sysdeps/unix/sysv/linux/hppa/bits/sigaction.h
@@ -59,6 +59,8 @@ struct sigaction
three arguments instead of one. */
#if defined __USE_UNIX98 || defined __USE_MISC
# define SA_ONSTACK 0x00000001 /* Use signal stack by using `sa_restorer'. */
+#endif
+#if defined __USE_UNIX98 || defined __USE_XOPEN2K8
# define SA_RESETHAND 0x00000004 /* Reset to SIG_DFL on entry to handler. */
# define SA_NODEFER 0x00000020 /* Don't automatically block the signal
when its handler is being executed. */
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=c5bf7f84bf041e9c7c690d09baad4daf3e992805
commit c5bf7f84bf041e9c7c690d09baad4daf3e992805
Author: Mike Frysinger <vapier@gentoo.org>
Date: Fri Aug 14 22:11:03 2015 -0400
hppa: shm.h: add SHM_EXEC
This brings hppa in line with all the other arches.
diff --git a/ChangeLog b/ChangeLog
index 18fe2b0..3b407f6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2015-08-18 Mike Frysinger <vapier@gentoo.org>
+ * sysdeps/unix/sysv/linux/hppa/bits/shm.h (SHM_EXEC): Define.
+
+2015-08-18 Mike Frysinger <vapier@gentoo.org>
+
* sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
kernel-features.h include. Delete __ASSUME_LWS_CAS checks.
* sysdeps/unix/sysv/linux/hppa/kernel-features.h
diff --git a/sysdeps/unix/sysv/linux/hppa/bits/shm.h b/sysdeps/unix/sysv/linux/hppa/bits/shm.h
index a6a86f7..8e24346 100644
--- a/sysdeps/unix/sysv/linux/hppa/bits/shm.h
+++ b/sysdeps/unix/sysv/linux/hppa/bits/shm.h
@@ -30,6 +30,7 @@
#define SHM_RDONLY 010000 /* attach read-only else read-write */
#define SHM_RND 020000 /* round attach address to SHMLBA */
#define SHM_REMAP 040000 /* take-over region on attach */
+#define SHM_EXEC 0100000 /* execution access */
/* Commands for `shmctl'. */
#define SHM_LOCK 11 /* lock segment (root only) */
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=8584204806ffea6f33bc6e42a1f07d6bc5a35105
commit 8584204806ffea6f33bc6e42a1f07d6bc5a35105
Author: Mike Frysinger <vapier@gentoo.org>
Date: Fri Aug 14 22:09:30 2015 -0400
hppa: drop __ASSUME_LWS_CAS define
We require recent enough kernels for this now, and we've been hardcoding
it to 1, so drop it entirely now.
diff --git a/ChangeLog b/ChangeLog
index 1ad9494..18fe2b0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
2015-08-18 Mike Frysinger <vapier@gentoo.org>
+ * sysdeps/unix/sysv/linux/hppa/bits/atomic.h: Delete
+ kernel-features.h include. Delete __ASSUME_LWS_CAS checks.
+ * sysdeps/unix/sysv/linux/hppa/kernel-features.h
+ (__ASSUME_LWS_CAS): Delete.
+
+2015-08-18 Mike Frysinger <vapier@gentoo.org>
+
* sysdeps/hppa/configure.ac: Delete binutils tls checks.
* sysdeps/hppa/configure: Regenerated.
* sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
diff --git a/sysdeps/unix/sysv/linux/hppa/bits/atomic.h b/sysdeps/unix/sysv/linux/hppa/bits/atomic.h
index 6e73504..26b66c5 100644
--- a/sysdeps/unix/sysv/linux/hppa/bits/atomic.h
+++ b/sysdeps/unix/sysv/linux/hppa/bits/atomic.h
@@ -18,7 +18,6 @@
#include <stdint.h> /* Required for type definitions e.g. uint8_t. */
#include <abort-instr.h> /* Required for ABORT_INSTRUCTIUON. */
-#include <kernel-features.h> /* Required for __ASSUME_LWS_CAS. */
/* We need EFAULT, ENONSYS */
#if !defined EFAULT && !defined ENOSYS
@@ -62,10 +61,9 @@ typedef uintmax_t uatomic_max_t;
/* String constant for -EDEADLOCK. */
#define _ASM_EDEADLOCK "-45"
-#if __ASSUME_LWS_CAS
/* The only basic operation needed is compare and exchange. The mem
pointer must be word aligned. */
-# define atomic_compare_and_exchange_val_acq(mem, newval, oldval) \
+#define atomic_compare_and_exchange_val_acq(mem, newval, oldval) \
({ \
register long lws_errno asm("r21"); \
register unsigned long lws_ret asm("r28"); \
@@ -93,17 +91,13 @@ typedef uintmax_t uatomic_max_t;
(__typeof (oldval)) lws_ret; \
})
-# define atomic_compare_and_exchange_bool_acq(mem, newval, oldval) \
+#define atomic_compare_and_exchange_bool_acq(mem, newval, oldval) \
({ \
__typeof__ (*mem) ret; \
ret = atomic_compare_and_exchange_val_acq(mem, newval, oldval); \
/* Return 1 if it was already acquired. */ \
(ret != oldval); \
})
-#else
-# error __ASSUME_LWS_CAS is required to build glibc.
-#endif
-/* __ASSUME_LWS_CAS */
#endif
/* _BITS_ATOMIC_H */
diff --git a/sysdeps/unix/sysv/linux/hppa/kernel-features.h b/sysdeps/unix/sysv/linux/hppa/kernel-features.h
index 61bb026..274345a 100644
--- a/sysdeps/unix/sysv/linux/hppa/kernel-features.h
+++ b/sysdeps/unix/sysv/linux/hppa/kernel-features.h
@@ -18,9 +18,6 @@
<http://www.gnu.org/licenses/>. */
-/* PA-RISC 2.6.9 kernels had the first LWS CAS support */
-#define __ASSUME_LWS_CAS 1
-
/* Support for the accept4 and recvmmsg syscalls was added in 2.6.34. */
#if __LINUX_KERNEL_VERSION >= 0x020622
# define __ASSUME_ACCEPT4_SYSCALL 1
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=43329fe1396080faf025118b31053fd19e029c12
commit 43329fe1396080faf025118b31053fd19e029c12
Author: Mike Frysinger <vapier@gentoo.org>
Date: Fri Aug 14 22:07:40 2015 -0400
hppa: assume TLS everywhere
This brings hppa inline with all the other arches and main code where we
require TLS support everywhere. That means dropping the defines USE_TLS
and USE___THREAD, and dropping the binutils check (since we already have
a version requirement that is new enough).
diff --git a/ChangeLog b/ChangeLog
index 7e4d400..1ad9494 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2015-08-18 Mike Frysinger <vapier@gentoo.org>
+
+ * sysdeps/hppa/configure.ac: Delete binutils tls checks.
+ * sysdeps/hppa/configure: Regenerated.
+ * sysdeps/hppa/dl-machine.h: Delete USE_TLS and USE___THREAD checks.
+ * sysdeps/hppa/libc-tls.c: Delete USE_TLS checks.
+ * sysdeps/hppa/nptl/tls.h: Likewise.
+
2015-08-17 Joseph Myers <joseph@codesourcery.com>
[BZ #18823]
diff --git a/sysdeps/hppa/configure b/sysdeps/hppa/configure
index d78e1bc..2cfe6cb 100644
--- a/sysdeps/hppa/configure
+++ b/sysdeps/hppa/configure
@@ -30,60 +30,3 @@ $as_echo "$libc_cv_asm_line_sep" >&6; }
cat >>confdefs.h <<_ACEOF
#define ASM_LINE_SEP $libc_cv_asm_line_sep
_ACEOF
-
-
-# Check for support of thread-local storage handling in assembler and
-# linker.
-{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for hppa TLS support" >&5
-$as_echo_n "checking for hppa TLS support... " >&6; }
-if ${libc_cv_hppa_tls+:} false; then :
- $as_echo_n "(cached) " >&6
-else
- cat > conftest.s <<\EOF
-; Setup tls data
-.section ".tdata","awT",@progbits
-foo: .data 32
- .text
-; Test general dyanmic relocations
-test0:
- addil LT'foo-$tls_gdidx$, %r19
- ldo RT'foo-$tls_gdidx$(%r1), %r26
- b __tls_get_addr
- nop
-; Test local dynamic relocations
-test1:
- addil LT'foo-$tls_ldidx$, %r19
- b __tls_get_addr
- ldo RT'foo-$tls_ldidx$(%r1), %r26
- ldo RR'foo-$tls_dtpoff$(%r1), %r25
- ; More variables can be loaded...
-; Test initial exec reloctiosn
-test2:
- mfctl %cr27, %r26
- addil LT'foo-$tls_ieoff$, %r19
- ldw RT'foo-$tls_ieoff$(%r1), %r25
- add %r26, %r25, %r24
-; Test local exec relocations
-test3:
- mfctl %cr27, %r26
- addil LR'foo-$tls_leoff$, %r26
- ldo RR'foo-$tls_leoff$(%r1), %r25
-; Done all the TLS tests.
-EOF
-if { ac_try='${CC-cc} -c $CFLAGS conftest.s 1>&5'
- { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
- (eval $ac_try) 2>&5
- ac_status=$?
- $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
- test $ac_status = 0; }; }; then
- libc_cv_hppa_tls=yes
-else
- libc_cv_hppa_tls=no
-fi
-rm -f conftest*
-fi
-{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_cv_hppa_tls" >&5
-$as_echo "$libc_cv_hppa_tls" >&6; }
-if test $libc_cv_hppa_tls = no; then
- as_fn_error $? "the assembler must support TLS" "$LINENO" 5
-fi
diff --git a/sysdeps/hppa/configure.ac b/sysdeps/hppa/configure.ac
index 40f3360..1ec417b 100644
--- a/sysdeps/hppa/configure.ac
+++ b/sysdeps/hppa/configure.ac
@@ -19,48 +19,3 @@ else
fi
rm -f conftest*])
AC_DEFINE_UNQUOTED(ASM_LINE_SEP, $libc_cv_asm_line_sep)
-
-# Check for support of thread-local storage handling in assembler and
-# linker.
-AC_CACHE_CHECK(for hppa TLS support, libc_cv_hppa_tls, [dnl
-cat > conftest.s <<\EOF
-; Setup tls data
-.section ".tdata","awT",@progbits
-foo: .data 32
- .text
-; Test general dyanmic relocations
-test0:
- addil LT'foo-$tls_gdidx$, %r19
- ldo RT'foo-$tls_gdidx$(%r1), %r26
- b __tls_get_addr
- nop
-; Test local dynamic relocations
-test1:
- addil LT'foo-$tls_ldidx$, %r19
- b __tls_get_addr
- ldo RT'foo-$tls_ldidx$(%r1), %r26
- ldo RR'foo-$tls_dtpoff$(%r1), %r25
- ; More variables can be loaded...
-; Test initial exec reloctiosn
-test2:
- mfctl %cr27, %r26
- addil LT'foo-$tls_ieoff$, %r19
- ldw RT'foo-$tls_ieoff$(%r1), %r25
- add %r26, %r25, %r24
-; Test local exec relocations
-test3:
- mfctl %cr27, %r26
- addil LR'foo-$tls_leoff$, %r26
- ldo RR'foo-$tls_leoff$(%r1), %r25
-; Done all the TLS tests.
-EOF
-dnl
-if AC_TRY_COMMAND(${CC-cc} -c $CFLAGS conftest.s 1>&AS_MESSAGE_LOG_FD); then
- libc_cv_hppa_tls=yes
-else
- libc_cv_hppa_tls=no
-fi
-rm -f conftest*])
-if test $libc_cv_hppa_tls = no; then
- AC_MSG_ERROR([the assembler must support TLS])
-fi
diff --git a/sysdeps/hppa/dl-machine.h b/sysdeps/hppa/dl-machine.h
index 5f8efd4..7d0cf2c 100644
--- a/sysdeps/hppa/dl-machine.h
+++ b/sysdeps/hppa/dl-machine.h
@@ -465,7 +465,7 @@ asm ( \
a TLS variable, so references should not be allowed to define the value.
ELF_RTYPE_CLASS_COPY iff TYPE should not be allowed to resolve to one
of the main executable's symbols, as for a COPY reloc. */
-#if defined USE_TLS && (!defined RTLD_BOOTSTRAP || USE___THREAD)
+#if !defined RTLD_BOOTSTRAP
# define elf_machine_type_class(type) \
((((type) == R_PARISC_IPLT \
|| (type) == R_PARISC_EPLT \
@@ -684,7 +684,7 @@ elf_machine_rela (struct link_map *map,
MIN (sym->st_size, refsym->st_size));
return;
-#if defined USE_TLS && (!defined RTLD_BOOTSTRAP)
+#if !defined RTLD_BOOTSTRAP
case R_PARISC_TLS_DTPMOD32:
value = sym_map->l_tls_modid;
break;
diff --git a/sysdeps/hppa/libc-tls.c b/sysdeps/hppa/libc-tls.c
index e7ec590..647992a 100644
--- a/sysdeps/hppa/libc-tls.c
+++ b/sysdeps/hppa/libc-tls.c
@@ -19,8 +19,6 @@
#include <csu/libc-tls.c>
#include <dl-tls.h>
-#if USE_TLS
-
/* On hppa, linker optimizations are not required, so __tls_get_addr
can be called even in statically linked binaries. In this case module
must be always 1 and PT_TLS segment exist in the binary, otherwise it
@@ -32,5 +30,3 @@ __tls_get_addr (tls_index *ti)
dtv_t *dtv = THREAD_DTV ();
return (char *) dtv[1].pointer.val + ti->ti_offset;
}
-
-#endif
diff --git a/sysdeps/hppa/nptl/tls.h b/sysdeps/hppa/nptl/tls.h
index ab271cf..88a0486 100644
--- a/sysdeps/hppa/nptl/tls.h
+++ b/sysdeps/hppa/nptl/tls.h
@@ -41,9 +41,6 @@ typedef union dtv
# include <tcb-offsets.h>
#endif /* __ASSEMBLER__ */
-/* Signal that TLS support is available. */
-#define USE_TLS 1
-
#ifndef __ASSEMBLER__
/* Get system call information. */
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 57 ++++++++++
sysdeps/hppa/configure | 57 ----------
sysdeps/hppa/configure.ac | 45 --------
sysdeps/hppa/dl-machine.h | 4 +-
sysdeps/hppa/libc-tls.c | 4 -
sysdeps/hppa/nptl/tls.h | 3 -
sysdeps/hppa/start.S | 16 +++-
sysdeps/unix/sysv/linux/hppa/bits/atomic.h | 10 +--
sysdeps/unix/sysv/linux/hppa/bits/epoll.h | 27 +++++
sysdeps/unix/sysv/linux/hppa/bits/eventfd.h | 31 +++++
sysdeps/unix/sysv/linux/hppa/bits/inotify.h | 29 +++++
sysdeps/unix/sysv/linux/hppa/bits/shm.h | 1 +
sysdeps/unix/sysv/linux/hppa/bits/sigaction.h | 2 +
sysdeps/unix/sysv/linux/hppa/bits/signalfd.h | 29 +++++
sysdeps/unix/sysv/linux/hppa/bits/timerfd.h | 29 +++++
sysdeps/unix/sysv/linux/hppa/kernel-features.h | 3 -
sysdeps/unix/sysv/linux/hppa/sys/epoll.h | 143 ------------------------
sysdeps/unix/sysv/linux/hppa/sys/eventfd.h | 53 ---------
sysdeps/unix/sysv/linux/hppa/sys/inotify.h | 106 ------------------
sysdeps/unix/sysv/linux/hppa/sys/signalfd.h | 65 -----------
sysdeps/unix/sysv/linux/hppa/sys/timerfd.h | 59 ----------
21 files changed, 223 insertions(+), 550 deletions(-)
create mode 100644 sysdeps/unix/sysv/linux/hppa/bits/epoll.h
create mode 100644 sysdeps/unix/sysv/linux/hppa/bits/eventfd.h
create mode 100644 sysdeps/unix/sysv/linux/hppa/bits/inotify.h
create mode 100644 sysdeps/unix/sysv/linux/hppa/bits/signalfd.h
create mode 100644 sysdeps/unix/sysv/linux/hppa/bits/timerfd.h
delete mode 100644 sysdeps/unix/sysv/linux/hppa/sys/epoll.h
delete mode 100644 sysdeps/unix/sysv/linux/hppa/sys/eventfd.h
delete mode 100644 sysdeps/unix/sysv/linux/hppa/sys/inotify.h
delete mode 100644 sysdeps/unix/sysv/linux/hppa/sys/signalfd.h
delete mode 100644 sysdeps/unix/sysv/linux/hppa/sys/timerfd.h
hooks/post-receive
--
GNU C Library master sources