]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Mark internal netlink functions with attribute_hidden [BZ #18822]
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 1 Oct 2017 22:56:04 +0000 (15:56 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 1 Oct 2017 22:56:27 +0000 (15:56 -0700)
Mark internal netlink functions with attribute_hidden to allow direct
access within libc.so and libc.a without using GOT nor PLT.

[BZ #18822]
* sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
attribute_hidden.
(__netlink_close): Likewise.
(__netlink_free_handle): Likewise.
(__netlink_request): Likewise.

ChangeLog
sysdeps/unix/sysv/linux/netlinkaccess.h

index 9ede6b7920da6ede3bd724cd9da17b0d7c782728..8117cc1b6aaa5d9ce9494e7ef46af6c689c2c67f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+       [BZ #18822]
+       * sysdeps/unix/sysv/linux/netlinkaccess.h (__netlink_open): Add
+       attribute_hidden.
+       (__netlink_close): Likewise.
+       (__netlink_free_handle): Likewise.
+       (__netlink_request): Likewise.
+
 2017-10-01  H.J. Lu  <hongjiu.lu@intel.com>
 
        [BZ #18822]
index 66bbbe61588feaf7ac49b92b5769aacc011b3547..f4973e2a04f64f28c31fec45d856fa92f9b4c20d 100644 (file)
@@ -44,10 +44,12 @@ struct netlink_handle
 };
 
 
-extern int __netlink_open (struct netlink_handle *h);
-extern void __netlink_close (struct netlink_handle *h);
-extern void __netlink_free_handle (struct netlink_handle *h);
-extern int __netlink_request (struct netlink_handle *h, int type);
+extern int __netlink_open (struct netlink_handle *h) attribute_hidden;
+extern void __netlink_close (struct netlink_handle *h) attribute_hidden;
+extern void __netlink_free_handle (struct netlink_handle *h)
+     attribute_hidden;
+extern int __netlink_request (struct netlink_handle *h, int type)
+     attribute_hidden;
 
 /* Terminate the process if RESULT is an invalid recvmsg result for
    the netlink socket FD.  */