]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/ChangeLog
Automatic date update in version.in
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
de9c1b7c
AM
12020-03-11 Alan Modra <amodra@gmail.com>
2
3 * elf64-ppc.c (ppc64_elf_inline_plt): Do increment rel in for loop.
4
40bfb976
AM
52020-02-27 Alan Modra <amodra@gmail.com>
6
7 PR 24511
8 * syms.c (bfd_decode_symclass): Reverse order of coff_section_type
9 and decode_section_type calls.
10
42b2380c
L
112020-02-25 H.J. Lu <hongjiu.lu@intel.com>
12
13 PR binutils/25584
14 * plugin.c (need_lto_wrapper_p): New.
15 (bfd_plugin_set_program_name): Add an int argument to set
16 need_lto_wrapper_p.
17 (get_lto_wrapper): Return FALSE if need_lto_wrapper_p isn't
18 set.
19 * plugin.h (bfd_plugin_set_program_name): Add an int argument.
20
acc4a8b8
AM
212020-02-22 Alan Modra <amodra@gmail.com>
22
23 PR 25585
24 * elf.c (assign_file_positions_for_load_sections): Continue linking
25 on "PHDR segment not covered by LOAD segment" errors.
26
e2b46ba1
L
272020-02-19 H.J. Lu <hongjiu.lu@intel.com>
28
29 PR binutils/25355
30 * plugin.c (plugin_list_entry): Remove handle.
31 (try_load_plugin): Call dlclose before return.
32
804b7fd4
NC
332020-02-14 Nick Clifton <nickc@redhat.com>
34
35 Import from mainline:
36 2020-02-13 H.J. Lu <hongjiu.lu@intel.com>
37
38 * plugin.c (try_load_plugin): Make plugin_list_iter an argument
39 and use it if it isn't NULL. Remove has_plugin_p argument. Add
40 a build_list_p argument. Don't search plugin_list. Short circuit
41 when building the plugin list.
42 (has_plugin): Renamed to has_plugin_list.
43 (bfd_plugin_set_plugin): Don't set has_plugin.
44 (bfd_plugin_specified_p): Check plugin_list instead.
45 (build_plugin_list): New function.
46 (load_plugin): Call build_plugin_list and use plugin_list.
47
48 2020-02-11 H.J. Lu <hongjiu.lu@intel.com>
49
50 PR binutils/25355
51 * plugin.c (try_claim): Always clean up for LTO wrapper.
52 (try_load_plugin): Treat each object as independent. Create a
53 copy for plugin name.
54
55 2020-02-11 H.J. Lu <hongjiu.lu@intel.com>
56
57 * plugin.c (add_symbols): Clear plugin_data memory.
58
59 2020-02-10 H.J. Lu <hongjiu.lu@intel.com>
60
61 PR binutils/25355
62 * configure.ac (HAVE_EXECUTABLE_SUFFIX): New AC_DEFINE.
63 (EXECUTABLE_SUFFIX): Likewise.
64 * config.in: Regenerated.
65 * configure: Likewise.
66 * plugin.c (bfd_plugin_close_and_cleanup): Removed.
67 (plugin_list_entry): Add all_symbols_read, cleanup_handler,
68 gcc, lto_wrapper, resolution_file, resolution_option, gcc_env,
69 real_bfd, real_nsyms, real_syms, lto_nsyms and lto_syms.
70 (get_lto_wrapper): New.
71 (setup_lto_wrapper_env): Likewise.
72 (current_plugin): Likewise.
73 (register_all_symbols_read): Likewise.
74 (register_cleanup): Likewise.
75 (get_symbols): Likewise.
76 (add_input_file): Likewise.
77 (bfd_plugin_close_and_cleanup): Likewise.
78 (claim_file): Removed.
79 (register_claim_file): Set current_plugin->claim_file.
80 (add_symbols): Make a copy of LTO symbols. Set lto_nsyms and
81 lto_syms in current_plugin.
82 (try_claim): Use current_plugin->claim_file. Call LTO plugin
83 all_symbols_read handler. Copy real symbols to plugin_data.
84 Call LTO plugin cleanup handler. Clean up for LTO wrapper.
85 (try_load_plugin): Don't reuse the previous plugin for LTO
86 wrapper. Set up GCC LTO wrapper if possible. Don't set
87 plugin_list_iter->claim_file.
88 (bfd_plugin_canonicalize_symtab): Use real LTO symbols if
89 possible.
90 * plugin.h (plugin_data_struct): Add real_bfd, real_nsyms and
91 real_syms.
92
82f439d0
NC
932020-02-11 Nick Clifton <nickc@redhat.com>
94
95 Import from the mainline:
96
97 PR 25447
98 * coffgen.c (_bfd_coff_close_and_cleanup): Do not clear the keep
99 syms and keep strings flags as these may have been set in order to
100 prevent a bogus call to free.
101
0a710062
NC
1022020-02-11 Nick Clifton <nickc@redhat.com>
103
104 Import from the mainline:
105
106 * elf32-msp430.c (msp430_final_link_relocate): Always use longs
107 for addresses in print statements.
108 (msp430_elf_relax_delete_bytes): Likewise.
109 (msp430_elf_relax_add_words): Likewise.
110 (msp430_elf_relax_section): Likewise.
111
03397177
JL
1122020-02-10 Jozef Lawrynowicz <jozef.l@mittosystems.com>
113
114 Apply from master
115 2020-02-10 Jozef Lawrynowicz <jozef.l@mittosystems.com>
116 * elf32-msp430.c (msp430_final_link_relocate): Add printf statements for
117 debugging relocations.
118 (msp430_elf_relax_delete_bytes): Likewise.
119 (msp430_elf_relax_add_two_words): Likewise.
120 (msp430_elf_relax_section): Likewise.
121
07361958
JL
122 2020-02-10 Jozef Lawrynowicz <jozef.l@mittosystems.com>
123 * elf32-msp430.c (msp430_elf_relax_add_two_words): Rename to
124 msp430_elf_relax_add_words. Support insertion of either one or two
125 words.
126 (msp430_elf_relax_section): Catch opcode of 0x3c00 when relocation
127 needs to be grown. Handle insertion of branch instruction to replace
128 jump.
129
def23c1b
JL
130 2020-02-10 Jozef Lawrynowicz <jozef.l@mittosystems.com>
131
132 * elf32-msp430.c (msp430_elf_relax_section): Before relaxing a branch,
133 check if previous instruction matches a conditional jump inserted
134 earlier. Invert conditional jump and delete branch in this case.
135
871ac467
NC
1362020-02-01 Nick Clifton <nickc@redhat.com>
137
138 * development.sh: Set development to true.
139 * version.m4: Set to 2.34.0.
140 * configure: Regenerate.
141
d7f734bc
NC
1422020-02-01 Nick Clifton <nickc@redhat.com>
143
144 Binutils 2.34 release.
871ac467
NC
145 * development.sh: Set fields to false.
146 * version.m4: Set to 2.34.
147 * configure: Regenerate.
d7f734bc 148
a2bf3f0c
AM
1492020-01-29 Alan Modra <amodra@gmail.com>
150
151 Apply from master
7b647b69
AM
152 2020-01-27 H.J. Lu <hongjiu.lu@intel.com>
153 Alan Modra <amodra@gmail.com>
154 PR ld/25458
155 * elflink.c (_bfd_elf_gc_mark_rsec): Mark all weak aliases.
156
9d4684ce
AM
157 2020-01-23 Alan Modra <amodra@gmail.com>
158 PR 25444
159 * elf.c (assign_file_positions_for_load_sections): Avoid divide
160 by zero when p_align is zero.
161
a2bf3f0c
AM
162 2020-01-22 Alan Modra <amodra@gmail.com>
163 * elf64-ppc.c (ppc64_elf_size_stubs): Correct condition under
164 which __tls_get_addr calls will be eliminated.
165
c573ff93
NC
1662020-01-23 Nick Clifton <nickc@redhat.com>
167
168 * po/fr.po: Updated French translation.
169
86688db0
NC
1702020-01-20 Nick Clifton <nickc@redhat.com>
171
172 * po/pt.po: Updates Portuguese translation.
173 * po/ru.po: Updated Russian translation.
174 * po/uk.po: Updated Ukranian translation.
175
5e54caac
NC
1762020-01-18 Nick Clifton <nickc@redhat.com>
177
178 * version.m4 (BFD_VERSION): Set to 2.33.90.
179 * configure: Regenerate.
180 * po/bfd.pot: Regenerate.
181
ae774686
NC
1822020-01-18 Nick Clifton <nickc@redhat.com>
183
184 Binutils 2.34 branch created.
185
07f1f3aa
CB
1862020-01-17 Christian Biesinger <cbiesinger@google.com>
187
188 * coff-arm.c: Fix spelling error (seperate).
189 * elfxx-riscv.c (riscv_parse_sv_or_non_std_ext): Fix spelling
190 error (seperate).
191 * sysdep.h (strnlen): Fix spelling error (seperate).
192
0d1cc75d
LB
1932020-01-15 Lars Brinkhoff <lars@nocrew.org>
194
195 PR 20694
196 * pdp11.c (TARGET_PAGE_SIZE): Set to 8192.
197
e1c6cf61
AM
1982020-01-15 Alan Modra <amodra@gmail.com>
199
200 PR 25384
201 * elf64-ppc.c (ELIMINATE_COPY_RELOCS): Update comment.
202 (ppc64_elf_adjust_dynamic_symbol): Don't allow .dynbss copies
203 of function symbols unless dot symbols are present. Do warn
204 whenever one is created, regardles of whether a PLT entry is
205 also emitted for the function symbol.
206
ef4e5ba5
AM
2072020-01-14 Alan Modra <amodra@gmail.com>
208
209 * som.c (som_bfd_count_ar_symbols): Error when file position
210 of symbols on chains is not strictly increasing.
211
8ab484c2
AM
2122020-01-14 Alan Modra <amodra@gmail.com>
213
214 * vms.h (VMS_DEBUG): Define as 0.
215 * vms-alpha.c (image_write): Move debug output after bounds check.
216 Tidy bounds check.
217 (_bfd_vms_slurp_eihd): Warning fix.
218 (_bfd_vms_slurp_etir): Init variables to avoid bogus warnings.
219
b50ef514
AM
2202020-01-13 Alan Modra <amodra@gmail.com>
221
222 * vms-alpha.c (_bfd_vms_slurp_egsd): Ensure minimum size even
223 for "ignored" records.
224
0c0adcc5
AM
2252020-01-13 Alan Modra <amodra@gmail.com>
226
227 * wasm-module.c (wasm_scan_name_function_section): Formatting.
228 Delete asect name check. Move asect NULL check to wasm_object_p.
229 Correct bounds check of sizes against end. Replace uses of
230 bfd_zalloc with bfd_alloc, zeroing only necessary bytes. Use
231 just one bfd_release.
232 (wasm_scan): Don't use malloc/strdup for section names,
233 bfd_alloc instead. Simplify code prefixing section name.
234 Formatting. Don't attempt to free memory here..
235 (wasm_object_p): ..do so here.
236
7f026732
SN
2372020-01-10 Szabolcs Nagy <szabolcs.nagy@arm.com>
238
239 PR ld/22269
240 * elf32-arm.c (elf32_arm_final_link_relocate): Use
241 UNDEFWEAK_NO_DYNAMIC_RELOC.
242 (allocate_dynrelocs_for_symbol): Likewise.
243
8cd0e5e9
TC
2442020-01-10 Tamar Christina <tamar.christina@arm.com>
245
246 PR 25210
247 * elfnn-aarch64.c (_bfd_aarch64_create_stub_section): Remove elfclass.
248
71780f45
AM
2492020-01-10 Alan Modra <amodra@gmail.com>
250
251 * coff-alpha.c (alpha_ecoff_object_p): Calculate size in bfd_size_type.
252
b899eb3b
NC
2532020-01-09 Nick Clifton <nickc@redhat.com>
254
255 PR 25221
256 * bfd.c (bfd_convert_section_contents): Check for a compress
257 header size that is larger than the actual section size.
258
4c6ee646
AM
2592020-01-08 Alan Modra <amodra@gmail.com>
260
261 PR 25351
262 * elflink.c (bfd_elf_final_link): Call _bfd_fix_excluded_sec_syms
263 after removing sections.
264
85f78364
JW
2652020-01-06 Jim Wilson <jimw@sifive.com>
266
267 PR 25205
268 * elfnn-riscv.c (riscv_elf_relocate_section) <R_RISCV_CALL>: Add
269 check for !bfd_link_pic (info).
270 <R_RISCV_CALL_PLT>: Move next to R_RISCV_CALL.
271 <R_RISCV_JAL>: Add comment.
272 (_bfd_riscv_relax_section): For plt.offset check, add check for
273 bfd_link_pic (info). Add comment.
274
49078ece
AM
2752020-01-06 Alan Modra <amodra@gmail.com>
276
277 * format.c (bfd_check_format_matches): Ignore bfd_error on target
278 match failures. Don't init to bfd_error_wrong_format before
279 calling _bfd_check_format.
280
ab356be7
AM
2812020-01-06 Alan Modra <amodra@gmail.com>
282
283 * vms-alpha.c (_bfd_vms_push, _bfd_vms_pop): Return pass/fail
284 status rather than exiting on stack overflow or underflow.
285 (_bfd_vms_slurp_etir): Adjust to suit.
286
85d86817
AM
2872020-01-06 Alan Modra <amodra@gmail.com>
288
289 * som.c (som_bfd_fill_in_ar_symbols): Bounds check som_dict index.
290
3e6aa775
AM
2912020-01-06 Alan Modra <amodra@gmail.com>
292
293 * mach-o.c (bfd_mach_o_read_dylinker): Don't read past end of
294 command. Check name offset is within command.
295 (bfd_mach_o_read_dylib, bfd_mach_o_read_prebound_dylib),
296 (bfd_mach_o_read_prebind_cksum, bfd_mach_o_read_twolevel_hints),
297 (bfd_mach_o_read_fvmlib, bfd_mach_o_read_dysymtab),
298 (bfd_mach_o_read_symtab, bfd_mach_o_read_uuid),
299 (bfd_mach_o_read_linkedit, bfd_mach_o_read_str),
300 (bfd_mach_o_read_dyld_info, bfd_mach_o_read_version_min),
301 (bfd_mach_o_read_encryption_info, bfd_mach_o_read_source_version),
302 (bfd_mach_o_read_encryption_info_64, bfd_mach_o_read_main),
303 (bfd_mach_o_read_note, bfd_mach_o_read_build_version),
304 (bfd_mach_o_read_segment): Similarly.
305 (bfd_mach_o_read_thread): Properly bound check thread struct.
306 Don't repeat checks on second loop.
307 (bfd_mach_o_read_command): Fail on invalid command length.
308
ea933f17
AM
3092020-01-04 Alan Modra <amodra@gmail.com>
310
311 * format.c (bfd_check_format_matches): Add preserve_match.
312 Save initial bfd state in "preserve", matched bfd state in
313 "preserve_match". Save just the first match. Release
314 bfd_alloc memory. Restore and finish preserved state as
315 appropriate on all function exit paths.
316
f24bdec4
AM
3172020-01-04 Alan Modra <amodra@gmail.com>
318
319 * mmo.c (mmo_mkobject): Allocate tdata with bfd_zalloc.
320
991fb595
AM
3212020-01-04 Alan Modra <amodra@gmail.com>
322
323 * coffgen.c (coff_real_object_p): Free malloc'd memory on target
324 match too.
325
f2a3559d
NC
3262020-01-03 Nick Clifton <nickc@redhat.com>
327
328 PR 25307
329 (bfd_pef_parse_function_stubs): Correct the test that ensures that
330 there is enough data remaining in the code buffer before
331 attempting to read a function stub.
332
7a0fb7be
NC
3332020-01-03 Nick Clifton <nickc@redhat.com>
334
335 PR 25308
336 * elf-properties.c (_bfd_elf_convert_gnu_properties): Check the
337 return value from bfd_malloc.
338 * elf32-arm.c (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise.
339 (bfd_elf32_arm_stm32l4xx_fix_veneer_locations): Likewise.
340 (elf32_arm_filter_cmse_symbols): Likewise.
341 (elf32_arm_write_section): Likewise.
342 * mach-o.c (bfd_mach_o_core_fetch_environment): Likewise.
343 (bfd_mach_o_follow_dsym): Likewise.
344 * pef.c (bfd_pef_print_loader_section): Likewise.
345 (bfd_pef_scan_start_address): Likewise.
346 (bfd_pef_parse_function_stubs): Likewise.
347 (bfd_pef_parse_symbols): Likewise.
348
b26a3d58
ST
3492020-01-03 Sergei Trofimovich <siarheit@google.com>
350
351 * elfnn-ia64.c (elfNN_ia64_merge_private_bfd_data): don't fail
352 on binary inputs ld/PR25316.
353 (is_ia64_elf): new helper to filter on ia64 objects.
354
4bb7a87e
JB
3552020-01-03 Jan Beulich <jbeulich@suse.com>
356
357 * mach-o.c (cpusubtype, bfd_mach_o_header_p): Insert underscore
358 in parameter names.
359 (bfd_mach_o_scan): Insert underscore in two variable names.
360
6655dba2
SB
3612020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
362
363 * Makefile.am: Add z80-elf target support.
364 * configure.ac: Likewise.
365 * targets.c: Likewise.
366 * Makefile.in: Regenerate.
367 * configure: Regenerate.
368 * config.bfd: Add z80-elf target support and new arches: ez80 and
369 z180.
370 * elf32-z80.c: New file.
371 * archures.c: Add new z80 architectures: eZ80 and Z180.
372 * coffcode.h: Likewise.
373 * cpu-z80.c: Likewise.
374 * coff-z80.c: Add new relocations for Z80 target and local label
375 check.
376 * reloc.c: Add new relocs.
377 * bfd-in2.h: Regenerate.
378 * libbfd.h: Regenerate.
379
0db131fb
TC
3802020-01-02 Tamar Christina <tamar.christina@arm.com>
381
382 PR 25210
383 PR 24753
384 * elfnn-aarch64.c (_bfd_aarch64_create_stub_section): Set ELF class.
385
b14ce8bf
AM
3862020-01-01 Alan Modra <amodra@gmail.com>
387
388 Update year range in copyright notice of all files.
389
0b114740 390For older changes see ChangeLog-2019
3499769a 391\f
0b114740 392Copyright (C) 2020 Free Software Foundation, Inc.
3499769a
AM
393
394Copying and distribution of this file, with or without modification,
395are permitted in any medium without royalty provided the copyright
396notice and this notice are preserved.
397
398Local Variables:
399mode: change-log
400left-margin: 8
401fill-column: 74
402version-control: never
403End: