rabbitmq-server: security bump to version 3.6.6
[buildroot-gz.git] / package / binutils / 2.27 / 0905-bfin-rofixup-bug.patch
blobda9d5865512e17db6ffdadbaedf455fe3c11d904
1 Fixes: LINKER BUG: .rofixup section size mismatch
3 Workaround from adi-toolchain commit:
4 af414ec1fb628ddb1562f062f3db49823ca14ca2
5 [#6798] binutils-2.21/bfd: temp workaround for rofixup mismatch errors.
7 Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
9 diff -Nur binutils-2.26.1.orig/bfd/elf32-bfin.c binutils-2.26.1/bfd/elf32-bfin.c
10 --- binutils-2.26.1.orig/bfd/elf32-bfin.c 2015-11-13 09:27:40.000000000 +0100
11 +++ binutils-2.26.1/bfd/elf32-bfin.c 2016-07-31 00:50:48.357995132 +0200
12 @@ -4879,7 +4879,8 @@
14 case R_BFIN_FUNCDESC:
15 picrel->fd++;
16 - picrel->relocsfd++;
17 + if (bfd_get_section_flags (abfd, sec) & SEC_ALLOC)
18 + picrel->relocsfd++;
19 break;
21 /* This relocation describes the C++ object vtable hierarchy.