]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
x86-64/memset: Mark the debugger symbol as hidden
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 7 May 2018 18:01:38 +0000 (11:01 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 7 May 2018 18:01:48 +0000 (11:01 -0700)
When MEMSET_SYMBOL (__memset, erms) is provided for debugger, mark it
as hidden so that it will be local to the library.

* sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
(MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
hidden.

ChangeLog
sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S

index 6febbc00172c2011b903916c551a5716e153f72c..6347f386dc652a6bf8dc2fa47645423d6fee9de7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2018-05-07  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * sysdeps/x86_64/multiarch/memset-vec-unaligned-erms.S
+       (MEMSET_SYMBOL (__memset, erms)): Mark the debugger symbol as
+       hidden.
+
 2018-05-07  Siddhesh Poyarekar  <siddhesh@sourceware.org>
 
        * benchtests/bench-memcpy-walk.c (test_main): Move declaration
index 14d1aa5bebdaafc82dfbb2e4f3795299c535a4ab..0a827f3e47c00754ae2d14b276e144d0ba6c47a3 100644 (file)
@@ -129,7 +129,8 @@ END (__memset_chk_erms)
 /* Only used to measure performance of REP STOSB.  */
 ENTRY (__memset_erms)
 # else
-/* Provide a symbol to debugger.  */
+/* Provide a hidden symbol to debugger.  */
+       .hidden MEMSET_SYMBOL (__memset, erms)
 ENTRY (MEMSET_SYMBOL (__memset, erms))
 # endif
 L(stosb):