PR25384, PowerPC64 ELFv1 copy relocs against function symbols
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2020-01-15 Alan Modra <amodra@gmail.com>
2
3 PR 25384
4 * elf64-ppc.c (ELIMINATE_COPY_RELOCS): Update comment.
5 (ppc64_elf_adjust_dynamic_symbol): Don't allow .dynbss copies
6 of function symbols unless dot symbols are present. Do warn
7 whenever one is created, regardles of whether a PLT entry is
8 also emitted for the function symbol.
9
10 2020-01-14 Alan Modra <amodra@gmail.com>
11
12 * som.c (som_bfd_count_ar_symbols): Error when file position
13 of symbols on chains is not strictly increasing.
14
15 2020-01-14 Alan Modra <amodra@gmail.com>
16
17 * vms.h (VMS_DEBUG): Define as 0.
18 * vms-alpha.c (image_write): Move debug output after bounds check.
19 Tidy bounds check.
20 (_bfd_vms_slurp_eihd): Warning fix.
21 (_bfd_vms_slurp_etir): Init variables to avoid bogus warnings.
22
23 2020-01-13 Alan Modra <amodra@gmail.com>
24
25 * vms-alpha.c (_bfd_vms_slurp_egsd): Ensure minimum size even
26 for "ignored" records.
27
28 2020-01-13 Alan Modra <amodra@gmail.com>
29
30 * wasm-module.c (wasm_scan_name_function_section): Formatting.
31 Delete asect name check. Move asect NULL check to wasm_object_p.
32 Correct bounds check of sizes against end. Replace uses of
33 bfd_zalloc with bfd_alloc, zeroing only necessary bytes. Use
34 just one bfd_release.
35 (wasm_scan): Don't use malloc/strdup for section names,
36 bfd_alloc instead. Simplify code prefixing section name.
37 Formatting. Don't attempt to free memory here..
38 (wasm_object_p): ..do so here.
39
40 2020-01-10 Szabolcs Nagy <szabolcs.nagy@arm.com>
41
42 PR ld/22269
43 * elf32-arm.c (elf32_arm_final_link_relocate): Use
44 UNDEFWEAK_NO_DYNAMIC_RELOC.
45 (allocate_dynrelocs_for_symbol): Likewise.
46
47 2020-01-10 Tamar Christina <tamar.christina@arm.com>
48
49 PR 25210
50 * elfnn-aarch64.c (_bfd_aarch64_create_stub_section): Remove elfclass.
51
52 2020-01-10 Alan Modra <amodra@gmail.com>
53
54 * coff-alpha.c (alpha_ecoff_object_p): Calculate size in bfd_size_type.
55
56 2020-01-09 Nick Clifton <nickc@redhat.com>
57
58 PR 25221
59 * bfd.c (bfd_convert_section_contents): Check for a compress
60 header size that is larger than the actual section size.
61
62 2020-01-08 Alan Modra <amodra@gmail.com>
63
64 PR 25351
65 * elflink.c (bfd_elf_final_link): Call _bfd_fix_excluded_sec_syms
66 after removing sections.
67
68 2020-01-06 Jim Wilson <jimw@sifive.com>
69
70 PR 25205
71 * elfnn-riscv.c (riscv_elf_relocate_section) <R_RISCV_CALL>: Add
72 check for !bfd_link_pic (info).
73 <R_RISCV_CALL_PLT>: Move next to R_RISCV_CALL.
74 <R_RISCV_JAL>: Add comment.
75 (_bfd_riscv_relax_section): For plt.offset check, add check for
76 bfd_link_pic (info). Add comment.
77
78 2020-01-06 Alan Modra <amodra@gmail.com>
79
80 * format.c (bfd_check_format_matches): Ignore bfd_error on target
81 match failures. Don't init to bfd_error_wrong_format before
82 calling _bfd_check_format.
83
84 2020-01-06 Alan Modra <amodra@gmail.com>
85
86 * vms-alpha.c (_bfd_vms_push, _bfd_vms_pop): Return pass/fail
87 status rather than exiting on stack overflow or underflow.
88 (_bfd_vms_slurp_etir): Adjust to suit.
89
90 2020-01-06 Alan Modra <amodra@gmail.com>
91
92 * som.c (som_bfd_fill_in_ar_symbols): Bounds check som_dict index.
93
94 2020-01-06 Alan Modra <amodra@gmail.com>
95
96 * mach-o.c (bfd_mach_o_read_dylinker): Don't read past end of
97 command. Check name offset is within command.
98 (bfd_mach_o_read_dylib, bfd_mach_o_read_prebound_dylib),
99 (bfd_mach_o_read_prebind_cksum, bfd_mach_o_read_twolevel_hints),
100 (bfd_mach_o_read_fvmlib, bfd_mach_o_read_dysymtab),
101 (bfd_mach_o_read_symtab, bfd_mach_o_read_uuid),
102 (bfd_mach_o_read_linkedit, bfd_mach_o_read_str),
103 (bfd_mach_o_read_dyld_info, bfd_mach_o_read_version_min),
104 (bfd_mach_o_read_encryption_info, bfd_mach_o_read_source_version),
105 (bfd_mach_o_read_encryption_info_64, bfd_mach_o_read_main),
106 (bfd_mach_o_read_note, bfd_mach_o_read_build_version),
107 (bfd_mach_o_read_segment): Similarly.
108 (bfd_mach_o_read_thread): Properly bound check thread struct.
109 Don't repeat checks on second loop.
110 (bfd_mach_o_read_command): Fail on invalid command length.
111
112 2020-01-04 Alan Modra <amodra@gmail.com>
113
114 * format.c (bfd_check_format_matches): Add preserve_match.
115 Save initial bfd state in "preserve", matched bfd state in
116 "preserve_match". Save just the first match. Release
117 bfd_alloc memory. Restore and finish preserved state as
118 appropriate on all function exit paths.
119
120 2020-01-04 Alan Modra <amodra@gmail.com>
121
122 * mmo.c (mmo_mkobject): Allocate tdata with bfd_zalloc.
123
124 2020-01-04 Alan Modra <amodra@gmail.com>
125
126 * coffgen.c (coff_real_object_p): Free malloc'd memory on target
127 match too.
128
129 2020-01-03 Nick Clifton <nickc@redhat.com>
130
131 PR 25307
132 (bfd_pef_parse_function_stubs): Correct the test that ensures that
133 there is enough data remaining in the code buffer before
134 attempting to read a function stub.
135
136 2020-01-03 Nick Clifton <nickc@redhat.com>
137
138 PR 25308
139 * elf-properties.c (_bfd_elf_convert_gnu_properties): Check the
140 return value from bfd_malloc.
141 * elf32-arm.c (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise.
142 (bfd_elf32_arm_stm32l4xx_fix_veneer_locations): Likewise.
143 (elf32_arm_filter_cmse_symbols): Likewise.
144 (elf32_arm_write_section): Likewise.
145 * mach-o.c (bfd_mach_o_core_fetch_environment): Likewise.
146 (bfd_mach_o_follow_dsym): Likewise.
147 * pef.c (bfd_pef_print_loader_section): Likewise.
148 (bfd_pef_scan_start_address): Likewise.
149 (bfd_pef_parse_function_stubs): Likewise.
150 (bfd_pef_parse_symbols): Likewise.
151
152 2020-01-03 Sergei Trofimovich <siarheit@google.com>
153
154 * elfnn-ia64.c (elfNN_ia64_merge_private_bfd_data): don't fail
155 on binary inputs ld/PR25316.
156 (is_ia64_elf): new helper to filter on ia64 objects.
157
158 2020-01-03 Jan Beulich <jbeulich@suse.com>
159
160 * mach-o.c (cpusubtype, bfd_mach_o_header_p): Insert underscore
161 in parameter names.
162 (bfd_mach_o_scan): Insert underscore in two variable names.
163
164 2020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
165
166 * Makefile.am: Add z80-elf target support.
167 * configure.ac: Likewise.
168 * targets.c: Likewise.
169 * Makefile.in: Regenerate.
170 * configure: Regenerate.
171 * config.bfd: Add z80-elf target support and new arches: ez80 and
172 z180.
173 * elf32-z80.c: New file.
174 * archures.c: Add new z80 architectures: eZ80 and Z180.
175 * coffcode.h: Likewise.
176 * cpu-z80.c: Likewise.
177 * coff-z80.c: Add new relocations for Z80 target and local label
178 check.
179 * reloc.c: Add new relocs.
180 * bfd-in2.h: Regenerate.
181 * libbfd.h: Regenerate.
182
183 2020-01-02 Tamar Christina <tamar.christina@arm.com>
184
185 PR 25210
186 PR 24753
187 * elfnn-aarch64.c (_bfd_aarch64_create_stub_section): Set ELF class.
188
189 2020-01-01 Alan Modra <amodra@gmail.com>
190
191 Update year range in copyright notice of all files.
192
193 For older changes see ChangeLog-2019
194 \f
195 Copyright (C) 2020 Free Software Foundation, Inc.
196
197 Copying and distribution of this file, with or without modification,
198 are permitted in any medium without royalty provided the copyright
199 notice and this notice are preserved.
200
201 Local Variables:
202 mode: change-log
203 left-margin: 8
204 fill-column: 74
205 version-control: never
206 End:
This page took 0.034062 seconds and 5 git commands to generate.