From 39b1f6172a2f9ddc74a8f82d6e84dd13b22dbaf2 Mon Sep 17 00:00:00 2001 From: Peter Collingbourne Date: Wed, 15 May 2013 20:28:08 +0200 Subject: [PATCH] Move _obstack_compat out of common it is impossible to create an alias of a common symbol (as compat_symbol does), because common symbols do not have a section or an offset until linked. GNU as tolerates aliases of common symbols by simply creating another common symbol, but other assemblers (notably LLVM's integrated assembler) are less tolerant. 2013-05-15 Peter Collingbourne * malloc/obstack.c (_obstack_compat): Add initializer. - --- ChangeLog | 4 ++++ malloc/obstack.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 79faa943728..42b02ee2188 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2013-05-15 Peter Collingbourne + + * malloc/obstack.c (_obstack_compat): Add initializer. + 2013-05-15 Edjunior Machado * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove diff --git a/malloc/obstack.c b/malloc/obstack.c index 25a90514f78..c3c7db4a96b 100644 --- a/malloc/obstack.c +++ b/malloc/obstack.c @@ -115,7 +115,7 @@ int obstack_exit_failure = EXIT_FAILURE; /* A looong time ago (before 1994, anyway; we're not sure) this global variable was used by non-GNU-C macros to avoid multiple evaluation. The GNU C library still exports it because somebody might use it. */ -struct obstack *_obstack_compat; +struct obstack *_obstack_compat = 0; compat_symbol (libc, _obstack_compat, _obstack, GLIBC_2_0); # endif # endif -- 2.47.2