rabbitmq-server: security bump to version 3.6.6
[buildroot-gz.git] / package / binutils / 2.27 / 0100-elf32-arm-no-data-fix.patch
blobc6b0e7efe8cd3b713fd3076ea48716ade1a8eefc
1 bfd/ChangeLog
2 2016-08-23 Nick Clifton <address@hidden>
4 * elf32-arm.c (elf32_arm_count_additional_relocs): Return zero if
5 there is no arm data associated with the section.
7 [Thomas: taken from https://lists.gnu.org/archive/html/bug-binutils/2016-08/msg00165.html.]
8 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10 diff --git a/bfd/elf32-arm.c b/bfd/elf32-arm.c
11 index 1eba21b..4478238 100644
12 --- a/bfd/elf32-arm.c
13 +++ b/bfd/elf32-arm.c
14 @@ -18688,7 +18688,7 @@ elf32_arm_count_additional_relocs (asection *sec)
16 struct _arm_elf_section_data *arm_data;
17 arm_data = get_arm_elf_section_data (sec);
18 - return arm_data->additional_reloc_count;
19 + return arm_data == NULL ? 0 : arm_data->additional_reloc_count;
22 /* Called to set the sh_flags, sh_link and sh_info fields of OSECTION which