forked from pool/binutils
- Re-instantiate patch to warn about non-PIC code in shared objects
on s390x. OBS-URL: https://build.opensuse.org/package/show/devel:gcc/binutils?expand=0&rev=126
This commit is contained in:
parent
a28f0e14c7
commit
1b21a4661a
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 3 13:08:47 UTC 2013 - rguenther@suse.com
|
||||
|
||||
- Re-instantiate patch to warn about non-PIC code in shared objects
|
||||
on s390x.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 28 12:46:09 UTC 2013 - rguenther@suse.com
|
||||
|
||||
|
@ -91,6 +91,7 @@ Patch8: ld-relro.diff
|
||||
Patch9: testsuite.diff
|
||||
Patch10: enable-targets-gold.diff
|
||||
Patch11: use-hashtype-both-by-default.diff
|
||||
Patch12: s390-pic-dso.diff
|
||||
Patch14: binutils-build-as-needed.diff
|
||||
Patch18: gold-depend-on-opcodes.diff
|
||||
Patch21: binutils-2.22-objalloc.patch
|
||||
@ -160,6 +161,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
||||
%patch9
|
||||
%patch10
|
||||
%patch11
|
||||
%patch12
|
||||
%patch14
|
||||
%patch18
|
||||
%patch21
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 3 13:08:47 UTC 2013 - rguenther@suse.com
|
||||
|
||||
- Re-instantiate patch to warn about non-PIC code in shared objects
|
||||
on s390x.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 28 12:46:09 UTC 2013 - rguenther@suse.com
|
||||
|
||||
|
@ -94,6 +94,7 @@ Patch8: ld-relro.diff
|
||||
Patch9: testsuite.diff
|
||||
Patch10: enable-targets-gold.diff
|
||||
Patch11: use-hashtype-both-by-default.diff
|
||||
Patch12: s390-pic-dso.diff
|
||||
Patch14: binutils-build-as-needed.diff
|
||||
Patch18: gold-depend-on-opcodes.diff
|
||||
Patch21: binutils-2.22-objalloc.patch
|
||||
@ -163,6 +164,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
||||
%patch9
|
||||
%patch10
|
||||
%patch11
|
||||
%patch12
|
||||
%patch14
|
||||
%patch18
|
||||
%patch21
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 3 13:08:47 UTC 2013 - rguenther@suse.com
|
||||
|
||||
- Re-instantiate patch to warn about non-PIC code in shared objects
|
||||
on s390x.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 28 12:46:09 UTC 2013 - rguenther@suse.com
|
||||
|
||||
|
@ -94,6 +94,7 @@ Patch8: ld-relro.diff
|
||||
Patch9: testsuite.diff
|
||||
Patch10: enable-targets-gold.diff
|
||||
Patch11: use-hashtype-both-by-default.diff
|
||||
Patch12: s390-pic-dso.diff
|
||||
Patch14: binutils-build-as-needed.diff
|
||||
Patch18: gold-depend-on-opcodes.diff
|
||||
Patch21: binutils-2.22-objalloc.patch
|
||||
@ -163,6 +164,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
||||
%patch9
|
||||
%patch10
|
||||
%patch11
|
||||
%patch12
|
||||
%patch14
|
||||
%patch18
|
||||
%patch21
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 3 13:08:47 UTC 2013 - rguenther@suse.com
|
||||
|
||||
- Re-instantiate patch to warn about non-PIC code in shared objects
|
||||
on s390x.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 28 12:46:09 UTC 2013 - rguenther@suse.com
|
||||
|
||||
|
@ -94,6 +94,7 @@ Patch8: ld-relro.diff
|
||||
Patch9: testsuite.diff
|
||||
Patch10: enable-targets-gold.diff
|
||||
Patch11: use-hashtype-both-by-default.diff
|
||||
Patch12: s390-pic-dso.diff
|
||||
Patch14: binutils-build-as-needed.diff
|
||||
Patch18: gold-depend-on-opcodes.diff
|
||||
Patch21: binutils-2.22-objalloc.patch
|
||||
@ -163,6 +164,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
||||
%patch9
|
||||
%patch10
|
||||
%patch11
|
||||
%patch12
|
||||
%patch14
|
||||
%patch18
|
||||
%patch21
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 3 13:08:47 UTC 2013 - rguenther@suse.com
|
||||
|
||||
- Re-instantiate patch to warn about non-PIC code in shared objects
|
||||
on s390x.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 28 12:46:09 UTC 2013 - rguenther@suse.com
|
||||
|
||||
|
@ -94,6 +94,7 @@ Patch8: ld-relro.diff
|
||||
Patch9: testsuite.diff
|
||||
Patch10: enable-targets-gold.diff
|
||||
Patch11: use-hashtype-both-by-default.diff
|
||||
Patch12: s390-pic-dso.diff
|
||||
Patch14: binutils-build-as-needed.diff
|
||||
Patch18: gold-depend-on-opcodes.diff
|
||||
Patch21: binutils-2.22-objalloc.patch
|
||||
@ -163,6 +164,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
||||
%patch9
|
||||
%patch10
|
||||
%patch11
|
||||
%patch12
|
||||
%patch14
|
||||
%patch18
|
||||
%patch21
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 3 13:08:47 UTC 2013 - rguenther@suse.com
|
||||
|
||||
- Re-instantiate patch to warn about non-PIC code in shared objects
|
||||
on s390x.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 28 12:46:09 UTC 2013 - rguenther@suse.com
|
||||
|
||||
|
@ -94,6 +94,7 @@ Patch8: ld-relro.diff
|
||||
Patch9: testsuite.diff
|
||||
Patch10: enable-targets-gold.diff
|
||||
Patch11: use-hashtype-both-by-default.diff
|
||||
Patch12: s390-pic-dso.diff
|
||||
Patch14: binutils-build-as-needed.diff
|
||||
Patch18: gold-depend-on-opcodes.diff
|
||||
Patch21: binutils-2.22-objalloc.patch
|
||||
@ -163,6 +164,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
||||
%patch9
|
||||
%patch10
|
||||
%patch11
|
||||
%patch12
|
||||
%patch14
|
||||
%patch18
|
||||
%patch21
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 3 13:08:47 UTC 2013 - rguenther@suse.com
|
||||
|
||||
- Re-instantiate patch to warn about non-PIC code in shared objects
|
||||
on s390x.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 28 12:46:09 UTC 2013 - rguenther@suse.com
|
||||
|
||||
|
@ -94,6 +94,7 @@ Patch8: ld-relro.diff
|
||||
Patch9: testsuite.diff
|
||||
Patch10: enable-targets-gold.diff
|
||||
Patch11: use-hashtype-both-by-default.diff
|
||||
Patch12: s390-pic-dso.diff
|
||||
Patch14: binutils-build-as-needed.diff
|
||||
Patch18: gold-depend-on-opcodes.diff
|
||||
Patch21: binutils-2.22-objalloc.patch
|
||||
@ -163,6 +164,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
||||
%patch9
|
||||
%patch10
|
||||
%patch11
|
||||
%patch12
|
||||
%patch14
|
||||
%patch18
|
||||
%patch21
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 3 13:08:47 UTC 2013 - rguenther@suse.com
|
||||
|
||||
- Re-instantiate patch to warn about non-PIC code in shared objects
|
||||
on s390x.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 28 12:46:09 UTC 2013 - rguenther@suse.com
|
||||
|
||||
|
@ -94,6 +94,7 @@ Patch8: ld-relro.diff
|
||||
Patch9: testsuite.diff
|
||||
Patch10: enable-targets-gold.diff
|
||||
Patch11: use-hashtype-both-by-default.diff
|
||||
Patch12: s390-pic-dso.diff
|
||||
Patch14: binutils-build-as-needed.diff
|
||||
Patch18: gold-depend-on-opcodes.diff
|
||||
Patch21: binutils-2.22-objalloc.patch
|
||||
@ -163,6 +164,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
||||
%patch9
|
||||
%patch10
|
||||
%patch11
|
||||
%patch12
|
||||
%patch14
|
||||
%patch18
|
||||
%patch21
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 3 13:08:47 UTC 2013 - rguenther@suse.com
|
||||
|
||||
- Re-instantiate patch to warn about non-PIC code in shared objects
|
||||
on s390x.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 28 12:46:09 UTC 2013 - rguenther@suse.com
|
||||
|
||||
|
@ -94,6 +94,7 @@ Patch8: ld-relro.diff
|
||||
Patch9: testsuite.diff
|
||||
Patch10: enable-targets-gold.diff
|
||||
Patch11: use-hashtype-both-by-default.diff
|
||||
Patch12: s390-pic-dso.diff
|
||||
Patch14: binutils-build-as-needed.diff
|
||||
Patch18: gold-depend-on-opcodes.diff
|
||||
Patch21: binutils-2.22-objalloc.patch
|
||||
@ -163,6 +164,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
||||
%patch9
|
||||
%patch10
|
||||
%patch11
|
||||
%patch12
|
||||
%patch14
|
||||
%patch18
|
||||
%patch21
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 3 13:08:47 UTC 2013 - rguenther@suse.com
|
||||
|
||||
- Re-instantiate patch to warn about non-PIC code in shared objects
|
||||
on s390x.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 28 12:46:09 UTC 2013 - rguenther@suse.com
|
||||
|
||||
|
@ -94,6 +94,7 @@ Patch8: ld-relro.diff
|
||||
Patch9: testsuite.diff
|
||||
Patch10: enable-targets-gold.diff
|
||||
Patch11: use-hashtype-both-by-default.diff
|
||||
Patch12: s390-pic-dso.diff
|
||||
Patch14: binutils-build-as-needed.diff
|
||||
Patch18: gold-depend-on-opcodes.diff
|
||||
Patch21: binutils-2.22-objalloc.patch
|
||||
@ -163,6 +164,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
||||
%patch9
|
||||
%patch10
|
||||
%patch11
|
||||
%patch12
|
||||
%patch14
|
||||
%patch18
|
||||
%patch21
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 3 13:08:47 UTC 2013 - rguenther@suse.com
|
||||
|
||||
- Re-instantiate patch to warn about non-PIC code in shared objects
|
||||
on s390x.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 28 12:46:09 UTC 2013 - rguenther@suse.com
|
||||
|
||||
|
@ -94,6 +94,7 @@ Patch8: ld-relro.diff
|
||||
Patch9: testsuite.diff
|
||||
Patch10: enable-targets-gold.diff
|
||||
Patch11: use-hashtype-both-by-default.diff
|
||||
Patch12: s390-pic-dso.diff
|
||||
Patch14: binutils-build-as-needed.diff
|
||||
Patch18: gold-depend-on-opcodes.diff
|
||||
Patch21: binutils-2.22-objalloc.patch
|
||||
@ -163,6 +164,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
||||
%patch9
|
||||
%patch10
|
||||
%patch11
|
||||
%patch12
|
||||
%patch14
|
||||
%patch18
|
||||
%patch21
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 3 13:08:47 UTC 2013 - rguenther@suse.com
|
||||
|
||||
- Re-instantiate patch to warn about non-PIC code in shared objects
|
||||
on s390x.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 28 12:46:09 UTC 2013 - rguenther@suse.com
|
||||
|
||||
|
@ -94,6 +94,7 @@ Patch8: ld-relro.diff
|
||||
Patch9: testsuite.diff
|
||||
Patch10: enable-targets-gold.diff
|
||||
Patch11: use-hashtype-both-by-default.diff
|
||||
Patch12: s390-pic-dso.diff
|
||||
Patch14: binutils-build-as-needed.diff
|
||||
Patch18: gold-depend-on-opcodes.diff
|
||||
Patch21: binutils-2.22-objalloc.patch
|
||||
@ -163,6 +164,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
||||
%patch9
|
||||
%patch10
|
||||
%patch11
|
||||
%patch12
|
||||
%patch14
|
||||
%patch18
|
||||
%patch21
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 3 13:08:47 UTC 2013 - rguenther@suse.com
|
||||
|
||||
- Re-instantiate patch to warn about non-PIC code in shared objects
|
||||
on s390x.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 28 12:46:09 UTC 2013 - rguenther@suse.com
|
||||
|
||||
|
@ -94,6 +94,7 @@ Patch8: ld-relro.diff
|
||||
Patch9: testsuite.diff
|
||||
Patch10: enable-targets-gold.diff
|
||||
Patch11: use-hashtype-both-by-default.diff
|
||||
Patch12: s390-pic-dso.diff
|
||||
Patch14: binutils-build-as-needed.diff
|
||||
Patch18: gold-depend-on-opcodes.diff
|
||||
Patch21: binutils-2.22-objalloc.patch
|
||||
@ -163,6 +164,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
||||
%patch9
|
||||
%patch10
|
||||
%patch11
|
||||
%patch12
|
||||
%patch14
|
||||
%patch18
|
||||
%patch21
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 3 13:08:47 UTC 2013 - rguenther@suse.com
|
||||
|
||||
- Re-instantiate patch to warn about non-PIC code in shared objects
|
||||
on s390x.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 28 12:46:09 UTC 2013 - rguenther@suse.com
|
||||
|
||||
|
@ -94,6 +94,7 @@ Patch8: ld-relro.diff
|
||||
Patch9: testsuite.diff
|
||||
Patch10: enable-targets-gold.diff
|
||||
Patch11: use-hashtype-both-by-default.diff
|
||||
Patch12: s390-pic-dso.diff
|
||||
Patch14: binutils-build-as-needed.diff
|
||||
Patch18: gold-depend-on-opcodes.diff
|
||||
Patch21: binutils-2.22-objalloc.patch
|
||||
@ -163,6 +164,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
||||
%patch9
|
||||
%patch10
|
||||
%patch11
|
||||
%patch12
|
||||
%patch14
|
||||
%patch18
|
||||
%patch21
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 3 13:08:47 UTC 2013 - rguenther@suse.com
|
||||
|
||||
- Re-instantiate patch to warn about non-PIC code in shared objects
|
||||
on s390x.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 28 12:46:09 UTC 2013 - rguenther@suse.com
|
||||
|
||||
|
@ -94,6 +94,7 @@ Patch8: ld-relro.diff
|
||||
Patch9: testsuite.diff
|
||||
Patch10: enable-targets-gold.diff
|
||||
Patch11: use-hashtype-both-by-default.diff
|
||||
Patch12: s390-pic-dso.diff
|
||||
Patch14: binutils-build-as-needed.diff
|
||||
Patch18: gold-depend-on-opcodes.diff
|
||||
Patch21: binutils-2.22-objalloc.patch
|
||||
@ -163,6 +164,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
||||
%patch9
|
||||
%patch10
|
||||
%patch11
|
||||
%patch12
|
||||
%patch14
|
||||
%patch18
|
||||
%patch21
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 3 13:08:47 UTC 2013 - rguenther@suse.com
|
||||
|
||||
- Re-instantiate patch to warn about non-PIC code in shared objects
|
||||
on s390x.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 28 12:46:09 UTC 2013 - rguenther@suse.com
|
||||
|
||||
|
@ -94,6 +94,7 @@ Patch8: ld-relro.diff
|
||||
Patch9: testsuite.diff
|
||||
Patch10: enable-targets-gold.diff
|
||||
Patch11: use-hashtype-both-by-default.diff
|
||||
Patch12: s390-pic-dso.diff
|
||||
Patch14: binutils-build-as-needed.diff
|
||||
Patch18: gold-depend-on-opcodes.diff
|
||||
Patch21: binutils-2.22-objalloc.patch
|
||||
@ -163,6 +164,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
||||
%patch9
|
||||
%patch10
|
||||
%patch11
|
||||
%patch12
|
||||
%patch14
|
||||
%patch18
|
||||
%patch21
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 3 13:08:47 UTC 2013 - rguenther@suse.com
|
||||
|
||||
- Re-instantiate patch to warn about non-PIC code in shared objects
|
||||
on s390x.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 28 12:46:09 UTC 2013 - rguenther@suse.com
|
||||
|
||||
|
@ -94,6 +94,7 @@ Patch8: ld-relro.diff
|
||||
Patch9: testsuite.diff
|
||||
Patch10: enable-targets-gold.diff
|
||||
Patch11: use-hashtype-both-by-default.diff
|
||||
Patch12: s390-pic-dso.diff
|
||||
Patch14: binutils-build-as-needed.diff
|
||||
Patch18: gold-depend-on-opcodes.diff
|
||||
Patch21: binutils-2.22-objalloc.patch
|
||||
@ -163,6 +164,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
||||
%patch9
|
||||
%patch10
|
||||
%patch11
|
||||
%patch12
|
||||
%patch14
|
||||
%patch18
|
||||
%patch21
|
||||
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 3 13:08:47 UTC 2013 - rguenther@suse.com
|
||||
|
||||
- Re-instantiate patch to warn about non-PIC code in shared objects
|
||||
on s390x.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 28 12:46:09 UTC 2013 - rguenther@suse.com
|
||||
|
||||
|
@ -94,6 +94,7 @@ Patch8: ld-relro.diff
|
||||
Patch9: testsuite.diff
|
||||
Patch10: enable-targets-gold.diff
|
||||
Patch11: use-hashtype-both-by-default.diff
|
||||
Patch12: s390-pic-dso.diff
|
||||
Patch14: binutils-build-as-needed.diff
|
||||
Patch18: gold-depend-on-opcodes.diff
|
||||
Patch21: binutils-2.22-objalloc.patch
|
||||
@ -163,6 +164,7 @@ echo "make check will return with %{make_check_handling} in case of testsuite fa
|
||||
%patch9
|
||||
%patch10
|
||||
%patch11
|
||||
%patch12
|
||||
%patch14
|
||||
%patch18
|
||||
%patch21
|
||||
|
40
s390-pic-dso.diff
Normal file
40
s390-pic-dso.diff
Normal file
@ -0,0 +1,40 @@
|
||||
--- bfd/elf32-s390.c.orig 2013-04-03 15:04:56.274458632 +0200
|
||||
+++ bfd/elf32-s390.c 2013-04-03 15:06:35.071564928 +0200
|
||||
@@ -2649,13 +2649,34 @@
|
||||
unresolved_reloc = FALSE;
|
||||
break;
|
||||
|
||||
- case R_390_8:
|
||||
- case R_390_16:
|
||||
- case R_390_32:
|
||||
case R_390_PC16:
|
||||
case R_390_PC16DBL:
|
||||
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)
|
Loading…
Reference in New Issue
Block a user