diff mbox series

[hurd,commited] hurd: Avoid PLTs for _hurd_port_locked_get/set

Message ID 20180613222842.2253-1-samuel.thibault@ens-lyon.org
State New
Headers show
Series [hurd,commited] hurd: Avoid PLTs for _hurd_port_locked_get/set | expand

Commit Message

Samuel Thibault June 13, 2018, 10:28 p.m. UTC
* sysdeps/hurd/include/hurd/port.h: New file.
---
 ChangeLog                        | 1 +
 sysdeps/hurd/include/hurd/port.h | 9 +++++++++
 2 files changed, 10 insertions(+)
 create mode 100644 sysdeps/hurd/include/hurd/port.h
diff mbox series

Patch

diff --git a/ChangeLog b/ChangeLog
index 61e7c1758f..7089241ffd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@ 
 	test-xfail-check-abi-libmachuser): Add.
 	* sysdeps/mach/hurd/localplt.data (ld.so): Add __open64, rename
 	__libc_read and __libc_write to __read and __write.
+	* sysdeps/hurd/include/hurd/port.h: New file.
 
 2018-06-13  Joseph Myers  <joseph@codesourcery.com>
 
diff --git a/sysdeps/hurd/include/hurd/port.h b/sysdeps/hurd/include/hurd/port.h
new file mode 100644
index 0000000000..84582f6d02
--- /dev/null
+++ b/sysdeps/hurd/include/hurd/port.h
@@ -0,0 +1,9 @@ 
+#ifndef	_HURD_PORT_H
+#include_next <hurd/port.h>
+libc_hidden_proto (_hurd_port_locked_get)
+libc_hidden_proto (_hurd_port_locked_set)
+#ifdef _HURD_PORT_H_HIDDEN_DEF
+libc_hidden_def (_hurd_port_locked_get)
+libc_hidden_def (_hurd_port_locked_set)
+#endif
+#endif