mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-24 22:10:13 +00:00
Mon Jul 8 00:11:15 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
* libc-symbols.h (symbol_set_declare): Use weak_extern instead of weak_symbol. * csu/initfini.c (_init): Likewise. * locale/setlocale.c (DEFINE_CATEGORY): Likewise. * misc/efgcvt_r.c: Likewise. * sysdeps/alpha/dl-machine.h (elf_machine_rela): Likewise. * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
This commit is contained in:
parent
467ab24791
commit
0676b5fdca
@ -70,8 +70,7 @@ _init (void)
|
||||
gcrt1.o to reference a symbol which would be defined by some library
|
||||
module which has a constructor; but then user code's constructors
|
||||
would come first, and not be profiled. */
|
||||
extern void __gmon_start__ (void) __attribute__ ((weak));
|
||||
weak_symbol (__gmon_start__)
|
||||
extern void __gmon_start__ (void); weak_extern (__gmon_start__)
|
||||
if (__gmon_start__)
|
||||
__gmon_start__ ();
|
||||
|
||||
|
@ -36,7 +36,7 @@ Boston, MA 02111-1307, USA. */
|
||||
#define DEFINE_CATEGORY(category, category_name, items, a, b, c, d) \
|
||||
extern const struct locale_data *_nl_current_##category; \
|
||||
extern const struct locale_data _nl_C_##category; \
|
||||
weak_symbol (_nl_current_##category) weak_symbol (_nl_C_##category)
|
||||
weak_extern (_nl_current_##category) weak_extern (_nl_C_##category)
|
||||
#include "categories.def"
|
||||
#undef DEFINE_CATEGORY
|
||||
|
||||
|
@ -60,7 +60,7 @@ fcvt_r (value, ndigit, decpt, sign, buf, len)
|
||||
return 0;
|
||||
}
|
||||
|
||||
weak_symbol (floor) weak_symbol (log10) weak_symbol (fabs)
|
||||
weak_extern (floor) weak_extern (log10) weak_extern (fabs)
|
||||
|
||||
int
|
||||
ecvt_r (value, ndigit, decpt, sign, buf, len)
|
||||
@ -70,7 +70,7 @@ ecvt_r (value, ndigit, decpt, sign, buf, len)
|
||||
size_t len;
|
||||
{
|
||||
double (*log10_function) (double) = &log10;
|
||||
|
||||
|
||||
if (log10_function)
|
||||
{
|
||||
/* Use the reasonable code if -lm is included. */
|
||||
|
@ -111,7 +111,7 @@ elf_machine_rel (struct link_map *map,
|
||||
RTLD_BOOTSTRAP) because rtld.c contains the common defn for
|
||||
_dl_rtld_map, which is incompatible with a weak decl in the same
|
||||
file. */
|
||||
weak_symbol (_dl_rtld_map);
|
||||
weak_extern (_dl_rtld_map);
|
||||
if (map == &_dl_rtld_map)
|
||||
/* Undo the relocation done here during bootstrapping. Now we will
|
||||
relocate it anew, possibly using a binding found in the user
|
||||
|
Loading…
Reference in New Issue
Block a user