Skip to content

Commit

Permalink
Mon Apr 10 14:53:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
Browse files Browse the repository at this point in the history
	* stdlib/strtod.c (STRTOF): Use extra macro to make STRTOF's #defn
 	a weak symbol instead of literal "STRTOF".

	* locale/setlocale.c: Work around ld bug: don't weakify refs to
 	_nl_{current,C}_*.
  • Loading branch information
Roland McGrath committed Apr 10, 1995
1 parent 8c0dc19 commit 217d85b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
8 changes: 8 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
Mon Apr 10 14:53:15 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>

* stdlib/strtod.c (STRTOF): Use extra macro to make STRTOF's #defn
a weak symbol instead of literal "STRTOF".

* locale/setlocale.c: Work around ld bug: don't weakify refs to
_nl_{current,C}_*.

Sun Apr 9 01:24:33 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>

* Makerules (+depfiles): Translate %.so to %.o in $(extra-objs).
Expand Down
3 changes: 2 additions & 1 deletion locale/setlocale.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ Cambridge, MA 02139, 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)
/* XXX The linker is broken so we cannot do the weak symbols right just now. */
/* weak_symbol (_nl_current_##category) weak_symbol (_nl_C_##category) */
#include "categories.def"
#undef DEFINE_CATEGORY

Expand Down
3 changes: 2 additions & 1 deletion stdlib/strtod.c
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,8 @@ INTERNAL (STRTOF) (nptr, endptr, group)

/* External user entry point. */

weak_symbol (STRTOF)
#define weak_this(x) weak_symbol(x)
weak_this (STRTOF)

FLOAT
STRTOF (nptr, endptr)
Expand Down

0 comments on commit 217d85b

Please sign in to comment.