]> sourceware.org Git - glibc.git/commitdiff
Move _obstack_compat out of common
authorPeter Collingbourne <pcc@google.com>
Wed, 15 May 2013 18:28:08 +0000 (20:28 +0200)
committerAndreas Jaeger <aj@suse.de>
Wed, 15 May 2013 18:29:20 +0000 (20:29 +0200)
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  <pcc@google.com>

* malloc/obstack.c (_obstack_compat): Add initializer.
-

ChangeLog
malloc/obstack.c

index 79faa943728acd0b8a385aeb6933485932a2de65..42b02ee21884cf7b92483c579a0dd0e5aec4f09d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2013-05-15  Peter Collingbourne  <pcc@google.com>
+
+       * malloc/obstack.c (_obstack_compat): Add initializer.
+
 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
 
        * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
index 25a90514f781d3c218c136d13c9c183c1f8f060f..c3c7db4a96b7e82a3beb007cc1dbf95301ceb0ab 100644 (file)
@@ -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
This page took 0.107875 seconds and 5 git commands to generate.