Fix an illegal memory access triggered when trying to examine an input file containin...
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
b899eb3b
NC
12020-01-09 Nick Clifton <nickc@redhat.com>
2
3 PR 25221
4 * bfd.c (bfd_convert_section_contents): Check for a compress
5 header size that is larger than the actual section size.
6
4c6ee646
AM
72020-01-08 Alan Modra <amodra@gmail.com>
8
9 PR 25351
10 * elflink.c (bfd_elf_final_link): Call _bfd_fix_excluded_sec_syms
11 after removing sections.
12
85f78364
JW
132020-01-06 Jim Wilson <jimw@sifive.com>
14
15 PR 25205
16 * elfnn-riscv.c (riscv_elf_relocate_section) <R_RISCV_CALL>: Add
17 check for !bfd_link_pic (info).
18 <R_RISCV_CALL_PLT>: Move next to R_RISCV_CALL.
19 <R_RISCV_JAL>: Add comment.
20 (_bfd_riscv_relax_section): For plt.offset check, add check for
21 bfd_link_pic (info). Add comment.
22
49078ece
AM
232020-01-06 Alan Modra <amodra@gmail.com>
24
25 * format.c (bfd_check_format_matches): Ignore bfd_error on target
26 match failures. Don't init to bfd_error_wrong_format before
27 calling _bfd_check_format.
28
ab356be7
AM
292020-01-06 Alan Modra <amodra@gmail.com>
30
31 * vms-alpha.c (_bfd_vms_push, _bfd_vms_pop): Return pass/fail
32 status rather than exiting on stack overflow or underflow.
33 (_bfd_vms_slurp_etir): Adjust to suit.
34
85d86817
AM
352020-01-06 Alan Modra <amodra@gmail.com>
36
37 * som.c (som_bfd_fill_in_ar_symbols): Bounds check som_dict index.
38
3e6aa775
AM
392020-01-06 Alan Modra <amodra@gmail.com>
40
41 * mach-o.c (bfd_mach_o_read_dylinker): Don't read past end of
42 command. Check name offset is within command.
43 (bfd_mach_o_read_dylib, bfd_mach_o_read_prebound_dylib),
44 (bfd_mach_o_read_prebind_cksum, bfd_mach_o_read_twolevel_hints),
45 (bfd_mach_o_read_fvmlib, bfd_mach_o_read_dysymtab),
46 (bfd_mach_o_read_symtab, bfd_mach_o_read_uuid),
47 (bfd_mach_o_read_linkedit, bfd_mach_o_read_str),
48 (bfd_mach_o_read_dyld_info, bfd_mach_o_read_version_min),
49 (bfd_mach_o_read_encryption_info, bfd_mach_o_read_source_version),
50 (bfd_mach_o_read_encryption_info_64, bfd_mach_o_read_main),
51 (bfd_mach_o_read_note, bfd_mach_o_read_build_version),
52 (bfd_mach_o_read_segment): Similarly.
53 (bfd_mach_o_read_thread): Properly bound check thread struct.
54 Don't repeat checks on second loop.
55 (bfd_mach_o_read_command): Fail on invalid command length.
56
ea933f17
AM
572020-01-04 Alan Modra <amodra@gmail.com>
58
59 * format.c (bfd_check_format_matches): Add preserve_match.
60 Save initial bfd state in "preserve", matched bfd state in
61 "preserve_match". Save just the first match. Release
62 bfd_alloc memory. Restore and finish preserved state as
63 appropriate on all function exit paths.
64
f24bdec4
AM
652020-01-04 Alan Modra <amodra@gmail.com>
66
67 * mmo.c (mmo_mkobject): Allocate tdata with bfd_zalloc.
68
991fb595
AM
692020-01-04 Alan Modra <amodra@gmail.com>
70
71 * coffgen.c (coff_real_object_p): Free malloc'd memory on target
72 match too.
73
f2a3559d
NC
742020-01-03 Nick Clifton <nickc@redhat.com>
75
76 PR 25307
77 (bfd_pef_parse_function_stubs): Correct the test that ensures that
78 there is enough data remaining in the code buffer before
79 attempting to read a function stub.
80
7a0fb7be
NC
812020-01-03 Nick Clifton <nickc@redhat.com>
82
83 PR 25308
84 * elf-properties.c (_bfd_elf_convert_gnu_properties): Check the
85 return value from bfd_malloc.
86 * elf32-arm.c (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise.
87 (bfd_elf32_arm_stm32l4xx_fix_veneer_locations): Likewise.
88 (elf32_arm_filter_cmse_symbols): Likewise.
89 (elf32_arm_write_section): Likewise.
90 * mach-o.c (bfd_mach_o_core_fetch_environment): Likewise.
91 (bfd_mach_o_follow_dsym): Likewise.
92 * pef.c (bfd_pef_print_loader_section): Likewise.
93 (bfd_pef_scan_start_address): Likewise.
94 (bfd_pef_parse_function_stubs): Likewise.
95 (bfd_pef_parse_symbols): Likewise.
96
b26a3d58
ST
972020-01-03 Sergei Trofimovich <siarheit@google.com>
98
99 * elfnn-ia64.c (elfNN_ia64_merge_private_bfd_data): don't fail
100 on binary inputs ld/PR25316.
101 (is_ia64_elf): new helper to filter on ia64 objects.
102
4bb7a87e
JB
1032020-01-03 Jan Beulich <jbeulich@suse.com>
104
105 * mach-o.c (cpusubtype, bfd_mach_o_header_p): Insert underscore
106 in parameter names.
107 (bfd_mach_o_scan): Insert underscore in two variable names.
108
6655dba2
SB
1092020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
110
111 * Makefile.am: Add z80-elf target support.
112 * configure.ac: Likewise.
113 * targets.c: Likewise.
114 * Makefile.in: Regenerate.
115 * configure: Regenerate.
116 * config.bfd: Add z80-elf target support and new arches: ez80 and
117 z180.
118 * elf32-z80.c: New file.
119 * archures.c: Add new z80 architectures: eZ80 and Z180.
120 * coffcode.h: Likewise.
121 * cpu-z80.c: Likewise.
122 * coff-z80.c: Add new relocations for Z80 target and local label
123 check.
124 * reloc.c: Add new relocs.
125 * bfd-in2.h: Regenerate.
126 * libbfd.h: Regenerate.
127
0db131fb
TC
1282020-01-02 Tamar Christina <tamar.christina@arm.com>
129
130 PR 25210
131 PR 24753
132 * elfnn-aarch64.c (_bfd_aarch64_create_stub_section): Set ELF class.
133
b14ce8bf
AM
1342020-01-01 Alan Modra <amodra@gmail.com>
135
136 Update year range in copyright notice of all files.
137
0b114740 138For older changes see ChangeLog-2019
3499769a 139\f
0b114740 140Copyright (C) 2020 Free Software Foundation, Inc.
3499769a
AM
141
142Copying and distribution of this file, with or without modification,
143are permitted in any medium without royalty provided the copyright
144notice and this notice are preserved.
145
146Local Variables:
147mode: change-log
148left-margin: 8
149fill-column: 74
150version-control: never
151End:
This page took 0.242934 seconds and 4 git commands to generate.