Browse Source

fix problem 21 with shared library symbol exporting (failed e.g. unixodbc package)

master
parent
commit
f667217c83
  1. 44
      binutils/binutils.patch
  2. 2
      binutils/binutils.spec

44
binutils/binutils.patch

@ -1,6 +1,6 @@
Index: bfd/elf-eh-frame.c
--- bfd/elf-eh-frame.c.orig 2018-07-15 00:47:20.588121000 +0200
+++ bfd/elf-eh-frame.c 2018-07-15 00:48:14.104727000 +0200
--- bfd/elf-eh-frame.c.orig 2018-06-24 20:38:56.000000000 +0200
+++ bfd/elf-eh-frame.c 2018-08-10 20:38:12.270146000 +0200
@@ -1042,10 +1042,12 @@
goto success;
@ -16,7 +16,7 @@ Index: bfd/elf-eh-frame.c
free (sec_info);
Index: bfd/elf.c
--- bfd/elf.c.orig 2018-07-10 12:47:35.000000000 +0200
+++ bfd/elf.c 2018-07-15 00:47:20.589599000 +0200
+++ bfd/elf.c 2018-08-10 20:38:12.271312000 +0200
@@ -2462,6 +2462,11 @@
ret = _bfd_elf_make_section_from_shdr (abfd, hdr, name, shindex);
goto success;
@ -44,7 +44,7 @@ Index: bfd/elf.c
case bfd_arch_unknown:
Index: bfd/elfxx-sparc.c
--- bfd/elfxx-sparc.c.orig 2018-06-24 20:38:57.000000000 +0200
+++ bfd/elfxx-sparc.c 2018-07-15 00:47:20.591199000 +0200
+++ bfd/elfxx-sparc.c 2018-08-10 20:38:12.271862000 +0200
@@ -2897,12 +2897,14 @@
Elf_Internal_Rela *relend;
int num_relocs;
@ -71,7 +71,7 @@ Index: bfd/elfxx-sparc.c
outrel.r_info = SPARC_ELF_R_INFO (htab, rel, indx,
Index: gas/asintl.h
--- gas/asintl.h.orig 2018-06-24 20:38:57.000000000 +0200
+++ gas/asintl.h 2018-07-15 00:47:20.591325000 +0200
+++ gas/asintl.h 2018-08-10 20:38:12.271998000 +0200
@@ -20,6 +20,11 @@
Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
02110-1301, USA. */
@ -86,7 +86,7 @@ Index: gas/asintl.h
/* The Solaris version of locale.h always includes libintl.h. If we have
Index: include/elf/common.h
--- include/elf/common.h.orig 2018-06-24 20:38:57.000000000 +0200
+++ include/elf/common.h 2018-07-15 00:47:20.591540000 +0200
+++ include/elf/common.h 2018-08-10 20:38:12.272228000 +0200
@@ -514,6 +514,9 @@
#define SHT_SUNW_verdef 0x6ffffffd /* Versions defined by file */
#define SHT_SUNW_verneed 0x6ffffffe /* Versions needed by file */
@ -98,8 +98,8 @@ Index: include/elf/common.h
#define SHT_GNU_verdef SHT_SUNW_verdef
#define SHT_GNU_verneed SHT_SUNW_verneed
Index: ld/Makefile.in
--- ld/Makefile.in.orig 2018-07-14 19:57:58.000000000 +0200
+++ ld/Makefile.in 2018-07-15 00:47:20.591969000 +0200
--- ld/Makefile.in.orig 2018-07-18 09:46:21.000000000 +0200
+++ ld/Makefile.in 2018-08-10 20:38:12.272661000 +0200
@@ -563,7 +563,7 @@
# We put the scripts in the directory $(scriptdir)/ldscripts.
# We can't put the scripts in $(datadir) because the SEARCH_DIR
@ -111,7 +111,7 @@ Index: ld/Makefile.in
INCDIR = $(BASEDIR)/include
Index: ld/ld.h
--- ld/ld.h.orig 2018-06-24 20:38:57.000000000 +0200
+++ ld/ld.h 2018-07-15 00:47:20.592106000 +0200
+++ ld/ld.h 2018-08-10 20:38:12.272804000 +0200
@@ -21,6 +21,11 @@
#ifndef LD_H
#define LD_H
@ -124,9 +124,33 @@ Index: ld/ld.h
#ifdef HAVE_LOCALE_H
#endif
#ifndef SEEK_CUR
Index: ld/scripttempl/elf.sc
--- ld/scripttempl/elf.sc.orig 2018-07-11 17:43:55.000000000 +0200
+++ ld/scripttempl/elf.sc 2018-08-10 20:38:12.273155000 +0200
@@ -637,9 +637,9 @@
${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 @@
${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}
Index: libiberty/fibheap.c
--- libiberty/fibheap.c.orig 2018-06-24 20:38:58.000000000 +0200
+++ libiberty/fibheap.c 2018-07-15 00:47:20.592266000 +0200
+++ libiberty/fibheap.c 2018-08-10 20:38:12.272963000 +0200
@@ -34,8 +34,11 @@
#include "libiberty.h"
#include "fibheap.h"

2
binutils/binutils.spec

@ -36,7 +36,7 @@ Class: CORE
Group: Compiler
License: GPL
Version: %{V_opkg}
Release: 20180718
Release: 20180810
# list of sources
Source0: http://ftp.gnu.org/gnu/binutils/binutils-%{V_base}.tar.bz2

Loading…
Cancel
Save