Basic error checking for mach-o
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
3e6aa775
AM
12020-01-06 Alan Modra <amodra@gmail.com>
2
3 * mach-o.c (bfd_mach_o_read_dylinker): Don't read past end of
4 command. Check name offset is within command.
5 (bfd_mach_o_read_dylib, bfd_mach_o_read_prebound_dylib),
6 (bfd_mach_o_read_prebind_cksum, bfd_mach_o_read_twolevel_hints),
7 (bfd_mach_o_read_fvmlib, bfd_mach_o_read_dysymtab),
8 (bfd_mach_o_read_symtab, bfd_mach_o_read_uuid),
9 (bfd_mach_o_read_linkedit, bfd_mach_o_read_str),
10 (bfd_mach_o_read_dyld_info, bfd_mach_o_read_version_min),
11 (bfd_mach_o_read_encryption_info, bfd_mach_o_read_source_version),
12 (bfd_mach_o_read_encryption_info_64, bfd_mach_o_read_main),
13 (bfd_mach_o_read_note, bfd_mach_o_read_build_version),
14 (bfd_mach_o_read_segment): Similarly.
15 (bfd_mach_o_read_thread): Properly bound check thread struct.
16 Don't repeat checks on second loop.
17 (bfd_mach_o_read_command): Fail on invalid command length.
18
ea933f17
AM
192020-01-04 Alan Modra <amodra@gmail.com>
20
21 * format.c (bfd_check_format_matches): Add preserve_match.
22 Save initial bfd state in "preserve", matched bfd state in
23 "preserve_match". Save just the first match. Release
24 bfd_alloc memory. Restore and finish preserved state as
25 appropriate on all function exit paths.
26
f24bdec4
AM
272020-01-04 Alan Modra <amodra@gmail.com>
28
29 * mmo.c (mmo_mkobject): Allocate tdata with bfd_zalloc.
30
991fb595
AM
312020-01-04 Alan Modra <amodra@gmail.com>
32
33 * coffgen.c (coff_real_object_p): Free malloc'd memory on target
34 match too.
35
f2a3559d
NC
362020-01-03 Nick Clifton <nickc@redhat.com>
37
38 PR 25307
39 (bfd_pef_parse_function_stubs): Correct the test that ensures that
40 there is enough data remaining in the code buffer before
41 attempting to read a function stub.
42
7a0fb7be
NC
432020-01-03 Nick Clifton <nickc@redhat.com>
44
45 PR 25308
46 * elf-properties.c (_bfd_elf_convert_gnu_properties): Check the
47 return value from bfd_malloc.
48 * elf32-arm.c (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise.
49 (bfd_elf32_arm_stm32l4xx_fix_veneer_locations): Likewise.
50 (elf32_arm_filter_cmse_symbols): Likewise.
51 (elf32_arm_write_section): Likewise.
52 * mach-o.c (bfd_mach_o_core_fetch_environment): Likewise.
53 (bfd_mach_o_follow_dsym): Likewise.
54 * pef.c (bfd_pef_print_loader_section): Likewise.
55 (bfd_pef_scan_start_address): Likewise.
56 (bfd_pef_parse_function_stubs): Likewise.
57 (bfd_pef_parse_symbols): Likewise.
58
b26a3d58
ST
592020-01-03 Sergei Trofimovich <siarheit@google.com>
60
61 * elfnn-ia64.c (elfNN_ia64_merge_private_bfd_data): don't fail
62 on binary inputs ld/PR25316.
63 (is_ia64_elf): new helper to filter on ia64 objects.
64
4bb7a87e
JB
652020-01-03 Jan Beulich <jbeulich@suse.com>
66
67 * mach-o.c (cpusubtype, bfd_mach_o_header_p): Insert underscore
68 in parameter names.
69 (bfd_mach_o_scan): Insert underscore in two variable names.
70
6655dba2
SB
712020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
72
73 * Makefile.am: Add z80-elf target support.
74 * configure.ac: Likewise.
75 * targets.c: Likewise.
76 * Makefile.in: Regenerate.
77 * configure: Regenerate.
78 * config.bfd: Add z80-elf target support and new arches: ez80 and
79 z180.
80 * elf32-z80.c: New file.
81 * archures.c: Add new z80 architectures: eZ80 and Z180.
82 * coffcode.h: Likewise.
83 * cpu-z80.c: Likewise.
84 * coff-z80.c: Add new relocations for Z80 target and local label
85 check.
86 * reloc.c: Add new relocs.
87 * bfd-in2.h: Regenerate.
88 * libbfd.h: Regenerate.
89
0db131fb
TC
902020-01-02 Tamar Christina <tamar.christina@arm.com>
91
92 PR 25210
93 PR 24753
94 * elfnn-aarch64.c (_bfd_aarch64_create_stub_section): Set ELF class.
95
b14ce8bf
AM
962020-01-01 Alan Modra <amodra@gmail.com>
97
98 Update year range in copyright notice of all files.
99
0b114740 100For older changes see ChangeLog-2019
3499769a 101\f
0b114740 102Copyright (C) 2020 Free Software Foundation, Inc.
3499769a
AM
103
104Copying and distribution of this file, with or without modification,
105are permitted in any medium without royalty provided the copyright
106notice and this notice are preserved.
107
108Local Variables:
109mode: change-log
110left-margin: 8
111fill-column: 74
112version-control: never
113End:
This page took 0.26163 seconds and 4 git commands to generate.