]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Mark _wordcopy_XXX functions hidden
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 15 Oct 2015 21:01:35 +0000 (14:01 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 15 Oct 2015 21:01:48 +0000 (14:01 -0700)
Since _wordcopy_XXX functions are only used internally in ld.so and
libc.so, they can be made hidden.

[BZ #19122]
* sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
attribute_hidden.
(_wordcopy_fwd_dest_aligned): Likewise.
(_wordcopy_bwd_aligned): Likewise.
(_wordcopy_bwd_dest_aligned): Likewise.

ChangeLog
sysdeps/generic/memcopy.h

index 0edfbe5956141e047783b0ee3c1589872d1200b0..9e1d9f94792fd9925ac322cc49bda6937264536f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,12 @@
 2015-10-15  H.J. Lu  <hongjiu.lu@intel.com>
 
        [BZ #19122]
+       * sysdeps/generic/memcopy.h (_wordcopy_fwd_aligned): Add
+       attribute_hidden.
+       (_wordcopy_fwd_dest_aligned): Likewise.
+       (_wordcopy_bwd_aligned): Likewise.
+       (_wordcopy_bwd_dest_aligned): Likewise.
+
        * sysdeps/i386/dl-lookupcfg.h (_dl_unmap): Add attribute_hidden.
        * sysdeps/i386/dl-tlsdesc.h (_dl_make_tlsdesc_dynamic):
        Likewise.
index e6bc6e4758cd953629419b872bcc38ae74360141..af4f064b6fe88aa79b06f1df80e9bcadbd872362 100644 (file)
@@ -111,8 +111,10 @@ typedef unsigned char byte;
    the assumption that DST_BP is aligned on an OPSIZ multiple.  If
    not all bytes could be easily copied, store remaining number of bytes
    in NBYTES_LEFT, otherwise store 0.  */
-extern void _wordcopy_fwd_aligned (long int, long int, size_t) __THROW;
-extern void _wordcopy_fwd_dest_aligned (long int, long int, size_t) __THROW;
+extern void _wordcopy_fwd_aligned (long int, long int, size_t)
+  attribute_hidden __THROW;
+extern void _wordcopy_fwd_dest_aligned (long int, long int, size_t)
+  attribute_hidden __THROW;
 #define WORD_COPY_FWD(dst_bp, src_bp, nbytes_left, nbytes)                   \
   do                                                                         \
     {                                                                        \
@@ -131,8 +133,10 @@ extern void _wordcopy_fwd_dest_aligned (long int, long int, size_t) __THROW;
    DST_END_PTR is aligned on an OPSIZ multiple.  If not all bytes could be
    easily copied, store remaining number of bytes in NBYTES_REMAINING,
    otherwise store 0.  */
-extern void _wordcopy_bwd_aligned (long int, long int, size_t) __THROW;
-extern void _wordcopy_bwd_dest_aligned (long int, long int, size_t) __THROW;
+extern void _wordcopy_bwd_aligned (long int, long int, size_t)
+  attribute_hidden __THROW;
+extern void _wordcopy_bwd_dest_aligned (long int, long int, size_t)
+  attribute_hidden __THROW;
 #define WORD_COPY_BWD(dst_ep, src_ep, nbytes_left, nbytes)                   \
   do                                                                         \
     {                                                                        \