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