]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Update.
authorUlrich Drepper <drepper@redhat.com>
Tue, 31 Dec 2002 23:13:55 +0000 (23:13 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 31 Dec 2002 23:13:55 +0000 (23:13 +0000)
2002-12-31  Ulrich Drepper  <drepper@redhat.com>

* string/string-inlines.c: Define __memcpy_g and __strchr_g macros
to avoid using the exported symbols.  Define aliases with the
original names separately.

* include/time.h: Add libc_hidden_proto for __strftime_l.
* include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
* time/strftime.c: Always use libc_hidden_def if _LIBC.

* libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
* libio/fileops.c: Add libc_hidden_def for _IO_file_open.

* malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
tr_break.

* csu/Makefile (routines): Add dso_handle.
* csu/dso_handle.c: New file.

ChangeLog
csu/Makefile
include/time.h
include/wchar.h
libio/fileops.c
libio/libioP.h
malloc/mtrace.c
string/string-inlines.c
time/strftime.c

index 61c5b5fbd15821de30bf99ab8cdd8b6255a6da30..9026d1ef936e3cbab44d8422d583704101562fc9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,22 @@
+2002-12-31  Ulrich Drepper  <drepper@redhat.com>
+
+       * string/string-inlines.c: Define __memcpy_g and __strchr_g macros
+       to avoid using the exported symbols.  Define aliases with the
+       original names separately.
+
+       * include/time.h: Add libc_hidden_proto for __strftime_l.
+       * include/wchar.h: Add libc_hidden_proto for __wcsftime_l.
+       * time/strftime.c: Always use libc_hidden_def if _LIBC.
+
+       * libio/libioP.h: Add libc_hidden_proto for _IO_file_open.
+       * libio/fileops.c: Add libc_hidden_def for _IO_file_open.
+
+       * malloc/mtrace.c: Add libc_hidden_proto and libc_hidden_def for
+       tr_break.
+
+       * csu/Makefile (routines): Add dso_handle.
+       * csu/dso_handle.c: New file.
+
 2002-12-31  Roland McGrath  <roland@redhat.com>
 
        * Makerules (compile.S, COMPILE.S): Remove -DASSEMBLER here.
index 0829e0127804edeaa61b704a11c04eadbba56c2c..f4c162116a467f9c6fc1f1ce8ce9d4275140b771 100644 (file)
@@ -27,7 +27,7 @@
 subdir := csu
 
 routines = init-first libc-start $(libc-init) sysdep version check_fds \
-          libc-tls elf-init
+          libc-tls elf-init dso_handle
 aux     = errno
 elide-routines.os = libc-tls
 static-only-routines = elf-init
index 145f888c4329a16e7311758e729efe47241029ec..aedef2dd67249a10f9b3afdea28ec9f9934beb2b 100644 (file)
@@ -5,6 +5,7 @@
 # include <time/time.h>
 
 extern __typeof (strftime_l) __strftime_l;
+libc_hidden_proto (__strftime_l)
 extern __typeof (strptime_l) __strptime_l;
 
 libc_hidden_proto (time)
index e390f8104fc50e6d8606ac8225f196adac795176..a9cd440eec698fb7a23d671c0fbd1f9299947c7a 100644 (file)
@@ -15,6 +15,7 @@ extern __typeof (wcstod_l) __wcstod_l;
 extern __typeof (wcstof_l) __wcstof_l;
 extern __typeof (wcstold_l) __wcstold_l;
 extern __typeof (wcsftime_l) __wcsftime_l;
+libc_hidden_proto (__wcsftime_l)
 
 
 libc_hidden_proto (__wcstof_internal)
index 032f4a7269d5eb1fc4e0037b764b3049239314cf..c914e84ce0573cd60c5ffcbbe40c5cc9336906ab 100644 (file)
@@ -248,6 +248,7 @@ _IO_file_open (fp, filename, posix_mode, prot, read_write, is32not64)
   INTUSE(_IO_link_in) ((struct _IO_FILE_plus *) fp);
   return fp;
 }
+libc_hidden_def (_IO_file_open)
 
 _IO_FILE *
 _IO_new_file_fopen (fp, filename, mode, is32not64)
index dcc90776836b06bd98a9b9dfd8db5b6b6a3691e0..760bb1e702699113292a974bdb22e7ed21ea6e5f 100644 (file)
@@ -542,6 +542,7 @@ extern void _IO_file_init __P ((struct _IO_FILE_plus *));
 extern _IO_FILE* _IO_file_attach __P ((_IO_FILE *, int));
 extern _IO_FILE* _IO_file_open __P ((_IO_FILE *, const char *, int, int,
                                     int, int));
+libc_hidden_proto (_IO_file_open)
 extern _IO_FILE* _IO_file_fopen __P ((_IO_FILE *, const char *, const char *,
                                      int));
 extern _IO_ssize_t _IO_file_write __P ((_IO_FILE *, const void *,
index c369ab577c8eefd5a7bab7412b624cd62301801c..27bdb2da31900f239c5ef253032d7f056bb58556 100644 (file)
@@ -77,11 +77,13 @@ static __ptr_t (*tr_old_realloc_hook) __P ((__ptr_t ptr,
    set "mallwatch" to the address of interest, then put a breakpoint on
    tr_break.  */
 
-void tr_break __P ((void));
+extern void tr_break __P ((void));
+libc_hidden_proto (tr_break)
 void
 tr_break ()
 {
 }
+libc_hidden_def (tr_break)
 
 static void tr_where __P ((const __ptr_t)) internal_function;
 static void
index 3db5ab7d6ccd1ebaea0cce0fdc7a4c657c829f71..7c9776c419cac1495866ee0153cf9a436d638659 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1999, 2002 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
 #define _FORCE_INLINES
 #define __STRING_INLINE /* empty */
 
+/* This is to avoid PLT entries for the x86 version.  */
+#define __memcpy_g __memcpy_g_internal
+#define __strchr_g __strchr_g_internal
+
 #include <string.h>
+
+#ifdef __memcpy_c
+# undef __memcpy_g
+strong_alias (__memcpy_g_internal, __memcpy_g)
+# undef __strchr_g
+strong_alias (__strchr_g_internal, __strchr_g)
+#endif
index e5eabf9d1c4ab71d4e0208757603c56fd5f5375d..807bb5c4a0b021ee66e373c74bbcbb269be8ee23 100644 (file)
@@ -1419,7 +1419,7 @@ my_strftime (s, maxsize, format, tp ut_argument LOCALE_PARAM)
     *p = L_('\0');
   return i;
 }
-#if defined _LIBC && !defined USE_IN_EXTENDED_LOCALE_MODEL
+#ifdef _LIBC
 libc_hidden_def (my_strftime)
 #endif