[packages/binutils] - rel 3; add workaround from FC for _end: invalid version 21 (max 0), error adding symbols: bad valu

arekm arekm at pld-linux.org
Mon Jul 16 14:39:40 CEST 2018


commit 9f749c9b73fb534a4d1e3fc6a3c2aa1328481a20
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Mon Jul 16 14:39:33 2018 +0200

    - rel 3; add workaround from FC for _end: invalid version 21 (max 0), error adding symbols: bad value

 ...ils-do-not-provide-shared-section-symbols.patch | 25 ++++++++++++++++++++++
 binutils.spec                                      |  5 ++++-
 2 files changed, 29 insertions(+), 1 deletion(-)
---
diff --git a/binutils.spec b/binutils.spec
index 65d655a..3b1d98b 100644
--- a/binutils.spec
+++ b/binutils.spec
@@ -24,7 +24,7 @@ Summary(tr.UTF-8):	GNU geliştirme araçları
 Summary(uk.UTF-8):	Набір інструментів GNU для побудови виконуваних програм
 Name:		binutils
 Version:	2.31
-Release:	2
+Release:	3
 Epoch:		4
 License:	GPL v3+
 Group:		Development/Tools
@@ -43,6 +43,8 @@ Patch7:		%{name}-libtool-m.patch
 Patch8:		%{name}-build-id.patch
 Patch9:		%{name}-tooldir.patch
 Patch10:	%{name}-sanity-check.patch
+# https://bugzilla.redhat.com/show_bug.cgi?id=1599521
+Patch11:	binutils-do-not-provide-shared-section-symbols.patch
 URL:		http://sources.redhat.com/binutils/
 BuildRequires:	autoconf >= 2.64
 BuildRequires:	automake >= 1:1.11
@@ -171,6 +173,7 @@ niektórych pakietów.
 %patch8 -p1
 %patch9 -p1
 %patch10 -p1
+%patch11 -p1
 
 # file contains hacks for ac 2.59 only
 %{__rm} config/override.m4
diff --git a/binutils-do-not-provide-shared-section-symbols.patch b/binutils-do-not-provide-shared-section-symbols.patch
new file mode 100644
index 0000000..02a7350
--- /dev/null
+++ b/binutils-do-not-provide-shared-section-symbols.patch
@@ -0,0 +1,25 @@
+diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc
+index 444aef2942..8a3858d32b 100644
+--- a/ld/scripttempl/elf.sc
++++ b/ld/scripttempl/elf.sc
+@@ -637,9 +637,9 @@ cat <<EOF
+   ${SDATA_GOT+${OTHER_GOT_SECTIONS}}
+   ${DATA_SDATA-${SDATA}}
+   ${DATA_SDATA-${OTHER_SDATA_SECTIONS}}
+-  ${RELOCATING+${DATA_END_SYMBOLS-${CREATE_SHLIB+PROVIDE (}${USER_LABEL_PREFIX}_edata = .${CREATE_SHLIB+)}; PROVIDE (${USER_LABEL_PREFIX}edata = .);}}
++  ${RELOCATING+${DATA_END_SYMBOLS-${USER_LABEL_PREFIX}_edata = .; PROVIDE (${USER_LABEL_PREFIX}edata = .);}}
+   ${RELOCATING+. = .;}
+-  ${RELOCATING+${CREATE_SHLIB+PROVIDE (}${USER_LABEL_PREFIX}__bss_start = .${CREATE_SHLIB+)};}
++  ${RELOCATING+${USER_LABEL_PREFIX}__bss_start = .;}
+   ${RELOCATING+${OTHER_BSS_SYMBOLS}}
+   ${DATA_SDATA-${SBSS}}
+   ${BSS_PLT+${PLT}}
+@@ -672,7 +672,7 @@ cat <<EOF
+   ${LARGE_BSS_AFTER_BSS-${LARGE_BSS}}
+   ${RELOCATING+. = ALIGN(${ALIGNMENT});}
+   ${RELOCATING+${OTHER_END_SYMBOLS}}
+-  ${RELOCATING+${END_SYMBOLS-${CREATE_SHLIB+PROVIDE (}${USER_LABEL_PREFIX}_end = .${CREATE_SHLIB+)}; PROVIDE (${USER_LABEL_PREFIX}end = .);}}
++  ${RELOCATING+${END_SYMBOLS-${USER_LABEL_PREFIX}_end = .; PROVIDE (${USER_LABEL_PREFIX}end = .);}}
+   ${RELOCATING+${DATA_SEGMENT_END}}
+   ${TINY_DATA_SECTION}
+   ${TINY_BSS_SECTION}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/binutils.git/commitdiff/9f749c9b73fb534a4d1e3fc6a3c2aa1328481a20



More information about the pld-cvs-commit mailing list