summaryrefslogtreecommitdiff
path: root/packages/glibc/2.14.1
diff options
context:
space:
mode:
authorAlexey Neyman <stilor@att.net>2017-08-25 22:14:00 (GMT)
committerAlexey Neyman <stilor@att.net>2017-08-25 22:14:00 (GMT)
commita840a08f447bca154cbe9338cbc7fc60991bed0a (patch)
treeb2a2c5a381708212cf44e5f48067c18724327fcd /packages/glibc/2.14.1
parent1b3ed29eb9add1b9bc9773fe2565cc5af09810a8 (diff)
Fix regressions after binutils 2.29
Binutils 2.29 are more picky about versioning of common symbols. Fix two offenders in glibc versions as applicable. Signed-off-by: Alexey Neyman <stilor@att.net>
Diffstat (limited to 'packages/glibc/2.14.1')
-rw-r--r--packages/glibc/2.14.1/998-obstack-common.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/packages/glibc/2.14.1/998-obstack-common.patch b/packages/glibc/2.14.1/998-obstack-common.patch
new file mode 100644
index 0000000..4b95f06
--- /dev/null
+++ b/packages/glibc/2.14.1/998-obstack-common.patch
@@ -0,0 +1,30 @@
+commit 39b1f6172a2f9ddc74a8f82d6e84dd13b22dbaf2
+Author: Peter Collingbourne <pcc@google.com>
+Date: Wed May 15 20:28:08 2013 +0200
+
+ 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 <pcc@google.com>
+
+ * malloc/obstack.c (_obstack_compat): Add initializer.
+ -
+
+diff --git a/malloc/obstack.c b/malloc/obstack.c
+index 25a90514f7..c3c7db4a96 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