- Update to 2.23.90 prerelease, remove patches that
are upstream ( aarch64-biarch.patch, aarch64-dynamic-placement.patch,
aarch64-execstack.patch, aarch64-gc-section-support.patch,
aarch64-support-1796bf893c4729d5c523502318d72cae78495d6c.diff,
aarch64-support-f426901e1be0f58fe4e9386cada50ca57d0a4f36.diff,
binutils-2.22-objalloc.patch, binutils-2.23.2.tar.bz2,
binutils-2.23.52.0.1-64-bit-thin-archives.patch,
s390-machinemode.patch, warning-symbol-sections.patch).
OBS-URL: https://build.opensuse.org/package/show/devel:gcc/binutils?expand=0&rev=143
2013-09-20 17:57:46 +02:00
|
|
|
Index: bfd/elf32-s390.c
|
|
|
|
===================================================================
|
|
|
|
--- bfd/elf32-s390.c.orig 2013-09-20 16:04:50.000000000 +0200
|
|
|
|
+++ bfd/elf32-s390.c 2013-09-20 16:10:02.000000000 +0200
|
|
|
|
@@ -2707,15 +2707,36 @@ elf_s390_relocate_section (bfd *output_b
|
2013-04-03 15:09:27 +02:00
|
|
|
unresolved_reloc = FALSE;
|
|
|
|
break;
|
|
|
|
|
|
|
|
- case R_390_8:
|
|
|
|
- case R_390_16:
|
|
|
|
- case R_390_32:
|
|
|
|
case R_390_PC16:
|
- Update to 2.23.90 prerelease, remove patches that
are upstream ( aarch64-biarch.patch, aarch64-dynamic-placement.patch,
aarch64-execstack.patch, aarch64-gc-section-support.patch,
aarch64-support-1796bf893c4729d5c523502318d72cae78495d6c.diff,
aarch64-support-f426901e1be0f58fe4e9386cada50ca57d0a4f36.diff,
binutils-2.22-objalloc.patch, binutils-2.23.2.tar.bz2,
binutils-2.23.52.0.1-64-bit-thin-archives.patch,
s390-machinemode.patch, warning-symbol-sections.patch).
OBS-URL: https://build.opensuse.org/package/show/devel:gcc/binutils?expand=0&rev=143
2013-09-20 17:57:46 +02:00
|
|
|
case R_390_PC12DBL:
|
2013-04-03 15:09:27 +02:00
|
|
|
case R_390_PC16DBL:
|
- Update to 2.23.90 prerelease, remove patches that
are upstream ( aarch64-biarch.patch, aarch64-dynamic-placement.patch,
aarch64-execstack.patch, aarch64-gc-section-support.patch,
aarch64-support-1796bf893c4729d5c523502318d72cae78495d6c.diff,
aarch64-support-f426901e1be0f58fe4e9386cada50ca57d0a4f36.diff,
binutils-2.22-objalloc.patch, binutils-2.23.2.tar.bz2,
binutils-2.23.52.0.1-64-bit-thin-archives.patch,
s390-machinemode.patch, warning-symbol-sections.patch).
OBS-URL: https://build.opensuse.org/package/show/devel:gcc/binutils?expand=0&rev=143
2013-09-20 17:57:46 +02:00
|
|
|
case R_390_PC24DBL:
|
2013-04-03 15:09:27 +02:00
|
|
|
case R_390_PC32DBL:
|
|
|
|
case R_390_PC32:
|
|
|
|
+ /* This is strictly required only for PC32DBL, which
|
|
|
|
+ is not handled by ld.so, but let's be helpful to the user also
|
|
|
|
+ in the other cases. */
|
|
|
|
+ if (info->shared
|
|
|
|
+ && !SYMBOL_REFERENCES_LOCAL (info, h)
|
|
|
|
+ && (input_section->flags & SEC_ALLOC) != 0
|
|
|
|
+ && (input_section->flags & SEC_READONLY) != 0
|
|
|
|
+ && (!h->def_regular
|
|
|
|
+ || r_type != R_390_PC32DBL
|
|
|
|
+ || h->type != STT_FUNC
|
|
|
|
+ || ELF_ST_VISIBILITY (h->other) != STV_PROTECTED))
|
|
|
|
+ {
|
|
|
|
+ (*_bfd_error_handler)
|
|
|
|
+ (_("%B: relocation %s against `%s' can not be used when making a shared object; recompile with -fPIC"),
|
|
|
|
+ input_bfd, elf_howto_table[r_type].name,
|
|
|
|
+ h->root.root.string);
|
|
|
|
+ bfd_set_error (bfd_error_bad_value);
|
|
|
|
+ return FALSE;
|
|
|
|
+ }
|
|
|
|
+ /* Fall through. */
|
|
|
|
+
|
|
|
|
+ case R_390_8:
|
|
|
|
+ case R_390_16:
|
|
|
|
+ case R_390_32:
|
|
|
|
if (h != NULL
|
|
|
|
&& s390_is_ifunc_symbol_p (h)
|
|
|
|
&& h->def_regular)
|