ELF: Add support for unique section ID to assembler
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
a8c4d40b
L
12020-02-02 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR gas/25380
4 * bfd-in2.h: Regenerated.
5 * ecoff.c (bfd_debug_section): Add section_id.
6 * section.c (bfd_section): Add section_id.
7 (SEC_ASSEMBLER_SECTION_ID): New.
8 (BFD_FAKE_SECTION): Add section_id.
9
5a9212a1
NC
102020-02-01 Nick Clifton <nickc@redhat.com>
11
12 * config.bfd: Move the c30-aout and tic30-aout targets onto the
13 obsolete list.
14
e7cbe0c4
SL
152020-01-31 Sandra Loosemore <sandra@codesourcery.com>
16
17 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): DW_EH_PE_datarel
18 encodings are relative to the GOT on nios2, too.
19
72ebe8c5
AM
202020-01-31 Alan Modra <amodra@gmail.com>
21
22 * Makefile.am (elf32-target.h, elf64-target.h): Don't use a temp
23 file. Use $< and $@ in rules.
24 (elf32-aarch64.c, elf64-aarch64.c): Likewise.
25 (elf32-ia64.c, elf64-ia64.c): Likewise.
26 (elf32-riscv.c, elf64-riscv.c): Likewise.
27 (peigen.c, pepigen.c, pex64igen.c): Likewise.
28 (elf32-aarch64.c, elf64-aarch64.c): Don't emit $srcdir on #line.
29 (elf32-riscv.c, elf64-riscv.c): Likewise, and use $(SED).
30 (elf32-ia64.c, elf64-ia64.c): Do emit #line.
31 (peigen.c, pepigen.c, pex64igen.c): Likewise.
32 * Makefile.in: Regenerate.
33
327301a4
AM
342020-01-31 Alan Modra <amodra@gmail.com>
35
36 PR 4110
37 * elf.c (setup_group): Don't clear entire section contents,
38 just the padding after group flags. Release alloc'd memory
39 after a seek or read failure.
40
b5d36aaa
JT
412020-01-16 Jon Turney <jon.turney@dronecode.org.uk>
42
43 * peXXigen.c (pe_is_repro): New function.
44 (_bfd_XX_print_private_bfd_data_common): Note timestamp is
45 actually a build hash if PE_IMAGE_DEBUG_TYPE_REPRO is present.
46
1957ab10
JT
472020-01-16 Jon Turney <jon.turney@dronecode.org.uk>
48
49 * peXXigen.c (debug_type_names): Add names for new debug data type
50 values.
51
87b2920f
JT
522020-01-16 Jon Turney <jon.turney@dronecode.org.uk>
53
54 * peXXigen.c (pe_print_debugdata): Fix the iteration variable for
55 inner loop. Fix a memory leak.
56
72913831
AM
572020-01-30 Alan Modra <amodra@gmail.com>
58
59 * coffgen.c (coff_real_object_p): Don't clear obj_coff_keep_syms
60 or obj_coff_keep_strings here.
61 (coff_get_normalized_symtab): Free external syms directly.
62 * xcofflink.c (xcoff_link_input_bfd): Restore obj_coff_keep_syms
63 on error exit path.
64
c35d018b
JW
652020-01-27 Jim Wilson <jimw@sifive.com>
66
67 * cpu-riscv.c (riscv_scan): New.
68 (N): Change bfd_default_scan to riscv_scan.
69
086b06f3
AS
702020-01-27 Andreas Schwab <schwab@suse.de>
71
72 * Makefile.am (ALL_MACHINES): Remove cpu-plugin.lo.
73 (ALL_MACHINES_CFILES): Remove cpu-plugin.c.
74 * Makefile.in: Regenerate.
75 * cpu-plugin.c: Remove.
76 * archures.c (enum bfd_architecture): Remove bfd_arch_plugin.
77 (bfd_plugin_arch): Remove declaration.
78 * bfd-in2.h: Regenerate.
79 * po/SRC-POTFILES.in: Regenerate.
80
3024a17a
AM
812020-01-27 H.J. Lu <hongjiu.lu@intel.com>
82 Alan Modra <amodra@gmail.com>
83
84 PR ld/25458
85 * elflink.c (_bfd_elf_gc_mark_rsec): Mark all weak aliases.
86
b5f998b2
JW
872020-01-24 Jim Wilson <jimw@sifive.com>
88
89 * elfxx-riscv.c (riscv_get_prefix_class): Format s case like others.
90 (riscv_parse_prefixed_ext): Fix s extension comment and reword to
91 avoid over long line.
92
caa31cfa
NC
932020-01-24 Nick Clifton <nickc@redhat.com>
94
95 PR 25447
96 * coffgen.c (_bfd_coff_close_and_cleanup): Do not clear the keep
97 syms and keep strings flags as these may have been set in order to
98 prevent a bogus call to free.
99
24e648d4
NC
1002020-01-23 Nick Clifton <nickc@redhat.com>
101
102 * po/fr.po: Updated French translation.
103
67641dd3
AM
1042020-01-23 Alan Modra <amodra@gmail.com>
105
106 PR 25444
107 * elf.c (assign_file_positions_for_load_sections): Avoid divide
108 by zero when p_align is zero.
109
403d1bd9
JW
1102020-01-22 Maxim Blinov <maxim.blinov@embecosm.com>
111
112 * bfd/elfnn-riscv.c (riscv_skip_prefix): New.
113 (riscv_prefix_cmp): Likewise.
114 (riscv_non_std_ext_p): Deleted.
115 (riscv_std_sv_ext_p): Likewise.
116 (riscv_non_std_sv_ext_p): Likewise.
117 (riscv_merge_non_std_and_sv_ext): Rename to...
118 (riscv_merge_multi_letter_ext): and modified to use riscv_prefix_cmp.
119 (riscv_merge_arch_attr_info): Replace 3 calls to
120 riscv_merge_non_std_and_sv_ext with single call to
121 riscv_merge_multi_letter_ext.
122 * bfd/elfxx-riscv.c (riscv_parse_std_ext): Break if we
123 encounter a 'z' prefix.
124 (riscv_get_prefix_class): New function, return prefix class based
125 on first few characters of input string.
126 (riscv_parse_config): New structure to factor out minor differences
127 in extension class parsing behaviour.
128 (riscv_parse_sv_or_non_std_ext): Rename to...
129 (riscv_parse_prefixed_ext): and parameterise with
130 riscv_parse_config.
131 (riscv_std_z_ext_strtab, riscv_std_s_ext_strtab): New.
132 (riscv_multi_letter_ext_valid_p): New.
133 (riscv_ext_x_valid_p, riscv_ext_z_valid_p, riscv_ext_s_valid_p): New.
134 (riscv_parse_subset): Delegate all non-single-letter parsing work
135 to riscv_parse_prefixed_ext.
136 * bfd/elfxx-riscv.h (riscv_isa_ext_class): New type.
137 (riscv_get_prefix_class): Declare.
138
a804e476
AM
1392020-01-22 Alan Modra <amodra@gmail.com>
140
141 * elf64-ppc.c (struct ppc_link_hash_table): Add tga_group.
142 (ppc64_elf_archive_symbol_lookup): Extract __tls_get_addr_opt for
143 __tls_get_addr_desc.
144 (ppc64_elf_size_stubs): Add section for linker generated
145 __tls_get_addr_desc wrapper function. Loop at least once if
146 generating this function.
147 (emit_tga_desc, emit_tga_desc_eh_frame): New functions.
148 (ppc64_elf_build_stubs): Generate __tls_get_addr_desc.
149
9e7028aa
AM
1502020-01-22 Alan Modra <amodra@gmail.com>
151
152 * elf64-ppc.h (struct ppc64_elf_params): Add no_tls_get_addr_regsave.
153 * elf64-ppc.c (struct ppc_link_hash_table): Add tga_desc and
154 tga_desc_fd.
155 (is_tls_get_addr): Match tga_desc and tga_desc_df too.
156 (STDU_R1_0R1, ADDI_R1_R1): Define.
157 (tls_get_addr_prologue, tls_get_addr_epilogue): New functions.
158 (ppc64_elf_tls_setup): Set up tga_desc and tga_desc_fd. Indirect
159 tga_desc_fd to opt_fd, and tga_desc to opt. Set
160 no_tls_get_addr_regsave.
161 (branch_reloc_hash_match): Add hash3 and hash4.
162 (ppc64_elf_tls_optimize): Handle tga_desc_fd and tga_desc too.
163 (ppc64_elf_size_dynamic_sections): Likewise.
164 (ppc64_elf_relocate_section): Likewise.
165 (plt_stub_size, build_plt_stub): Likewise. Size regsave
166 __tls_get_addr stub.
167 (build_tls_get_addr_stub): Build regsave __tls_get_addr stub and
168 eh_frame.
169 (ppc_size_one_stub): Handle tga_desc_fd and tga_desc too. Size
170 eh_frame for regsave __tls_get_addr.
171
abc489c6
AM
1722020-01-22 Alan Modra <amodra@gmail.com>
173
174 * elf64-ppc.c (ppc64_elf_size_stubs): Correct condition under
175 which __tls_get_addr calls will be eliminated.
176
26916852
NC
1772020-01-20 Nick Clifton <nickc@redhat.com>
178
179 * po/pt.po: Updates Portuguese translation.
180 * po/ru.po: Updated Russian translation.
181 * po/uk.po: Updated Ukranian translation.
182
14470f07
L
1832020-01-20 H.J. Lu <hongjiu.lu@intel.com>
184
185 PR ld/25416
186 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Support
187 "rex leal x@tlsdesc(%rip), %reg" and "call *x@tlsdesc(%eax)" in
188 X32 mode.
189 (elf_x86_64_relocate_section): In x32 mode, for GDesc -> LE
190 transition, relax "rex leal x@tlsdesc(%rip), %reg" to
191 "rex movl $x@tpoff, %reg", for GDesc -> IE transition, relax
192 "rex leal x@tlsdesc(%rip), %reg" to
193 "rex movl x@gottpoff(%rip), %eax". For both transitions, relax
194 "call *(%eax)" to "nopl (%rax)".
195
b9ca1af6
AM
1962020-01-20 Alan Modra <amodra@gmail.com>
197
198 * elf64-ppc.c (LD_R11_0R3, CMPDI_R11_0, STD_R11_0R1, LD_R11_0R1),
199 (MTLR_R11): Don't define.
200 (LD_R0_0R3, CMPDI_R0_0): Define.
201 (build_tls_get_addr_stub): Don't use r11 in stub.
202
ed7007c1
AM
2032020-01-20 Alan Modra <amodra@gmail.com>
204
205 * elf64-ppc.c (ppc_elf_hash_entry): New function, use throughout file.
206 (defined_sym_val, is_tls_get_addr): Likewise.
207
1b1bb2c6
NC
2082020-01-18 Nick Clifton <nickc@redhat.com>
209
210 * version.m4 (BFD_VERSION): Set to 2.34.50.
211 * configure: Regenerate.
212 * po/bfd.pot: Regenerate.
213
ae774686
NC
2142020-01-18 Nick Clifton <nickc@redhat.com>
215
216 Binutils 2.34 branch created.
217
07f1f3aa
CB
2182020-01-17 Christian Biesinger <cbiesinger@google.com>
219
220 * coff-arm.c: Fix spelling error (seperate).
221 * elfxx-riscv.c (riscv_parse_sv_or_non_std_ext): Fix spelling
222 error (seperate).
223 * sysdep.h (strnlen): Fix spelling error (seperate).
224
0d1cc75d
LB
2252020-01-15 Lars Brinkhoff <lars@nocrew.org>
226
227 PR 20694
228 * pdp11.c (TARGET_PAGE_SIZE): Set to 8192.
229
e1c6cf61
AM
2302020-01-15 Alan Modra <amodra@gmail.com>
231
232 PR 25384
233 * elf64-ppc.c (ELIMINATE_COPY_RELOCS): Update comment.
234 (ppc64_elf_adjust_dynamic_symbol): Don't allow .dynbss copies
235 of function symbols unless dot symbols are present. Do warn
236 whenever one is created, regardles of whether a PLT entry is
237 also emitted for the function symbol.
238
ef4e5ba5
AM
2392020-01-14 Alan Modra <amodra@gmail.com>
240
241 * som.c (som_bfd_count_ar_symbols): Error when file position
242 of symbols on chains is not strictly increasing.
243
8ab484c2
AM
2442020-01-14 Alan Modra <amodra@gmail.com>
245
246 * vms.h (VMS_DEBUG): Define as 0.
247 * vms-alpha.c (image_write): Move debug output after bounds check.
248 Tidy bounds check.
249 (_bfd_vms_slurp_eihd): Warning fix.
250 (_bfd_vms_slurp_etir): Init variables to avoid bogus warnings.
251
b50ef514
AM
2522020-01-13 Alan Modra <amodra@gmail.com>
253
254 * vms-alpha.c (_bfd_vms_slurp_egsd): Ensure minimum size even
255 for "ignored" records.
256
0c0adcc5
AM
2572020-01-13 Alan Modra <amodra@gmail.com>
258
259 * wasm-module.c (wasm_scan_name_function_section): Formatting.
260 Delete asect name check. Move asect NULL check to wasm_object_p.
261 Correct bounds check of sizes against end. Replace uses of
262 bfd_zalloc with bfd_alloc, zeroing only necessary bytes. Use
263 just one bfd_release.
264 (wasm_scan): Don't use malloc/strdup for section names,
265 bfd_alloc instead. Simplify code prefixing section name.
266 Formatting. Don't attempt to free memory here..
267 (wasm_object_p): ..do so here.
268
7f026732
SN
2692020-01-10 Szabolcs Nagy <szabolcs.nagy@arm.com>
270
271 PR ld/22269
272 * elf32-arm.c (elf32_arm_final_link_relocate): Use
273 UNDEFWEAK_NO_DYNAMIC_RELOC.
274 (allocate_dynrelocs_for_symbol): Likewise.
275
8cd0e5e9
TC
2762020-01-10 Tamar Christina <tamar.christina@arm.com>
277
278 PR 25210
279 * elfnn-aarch64.c (_bfd_aarch64_create_stub_section): Remove elfclass.
280
71780f45
AM
2812020-01-10 Alan Modra <amodra@gmail.com>
282
283 * coff-alpha.c (alpha_ecoff_object_p): Calculate size in bfd_size_type.
284
b899eb3b
NC
2852020-01-09 Nick Clifton <nickc@redhat.com>
286
287 PR 25221
288 * bfd.c (bfd_convert_section_contents): Check for a compress
289 header size that is larger than the actual section size.
290
4c6ee646
AM
2912020-01-08 Alan Modra <amodra@gmail.com>
292
293 PR 25351
294 * elflink.c (bfd_elf_final_link): Call _bfd_fix_excluded_sec_syms
295 after removing sections.
296
85f78364
JW
2972020-01-06 Jim Wilson <jimw@sifive.com>
298
299 PR 25205
300 * elfnn-riscv.c (riscv_elf_relocate_section) <R_RISCV_CALL>: Add
301 check for !bfd_link_pic (info).
302 <R_RISCV_CALL_PLT>: Move next to R_RISCV_CALL.
303 <R_RISCV_JAL>: Add comment.
304 (_bfd_riscv_relax_section): For plt.offset check, add check for
305 bfd_link_pic (info). Add comment.
306
49078ece
AM
3072020-01-06 Alan Modra <amodra@gmail.com>
308
309 * format.c (bfd_check_format_matches): Ignore bfd_error on target
310 match failures. Don't init to bfd_error_wrong_format before
311 calling _bfd_check_format.
312
ab356be7
AM
3132020-01-06 Alan Modra <amodra@gmail.com>
314
315 * vms-alpha.c (_bfd_vms_push, _bfd_vms_pop): Return pass/fail
316 status rather than exiting on stack overflow or underflow.
317 (_bfd_vms_slurp_etir): Adjust to suit.
318
85d86817
AM
3192020-01-06 Alan Modra <amodra@gmail.com>
320
321 * som.c (som_bfd_fill_in_ar_symbols): Bounds check som_dict index.
322
3e6aa775
AM
3232020-01-06 Alan Modra <amodra@gmail.com>
324
325 * mach-o.c (bfd_mach_o_read_dylinker): Don't read past end of
326 command. Check name offset is within command.
327 (bfd_mach_o_read_dylib, bfd_mach_o_read_prebound_dylib),
328 (bfd_mach_o_read_prebind_cksum, bfd_mach_o_read_twolevel_hints),
329 (bfd_mach_o_read_fvmlib, bfd_mach_o_read_dysymtab),
330 (bfd_mach_o_read_symtab, bfd_mach_o_read_uuid),
331 (bfd_mach_o_read_linkedit, bfd_mach_o_read_str),
332 (bfd_mach_o_read_dyld_info, bfd_mach_o_read_version_min),
333 (bfd_mach_o_read_encryption_info, bfd_mach_o_read_source_version),
334 (bfd_mach_o_read_encryption_info_64, bfd_mach_o_read_main),
335 (bfd_mach_o_read_note, bfd_mach_o_read_build_version),
336 (bfd_mach_o_read_segment): Similarly.
337 (bfd_mach_o_read_thread): Properly bound check thread struct.
338 Don't repeat checks on second loop.
339 (bfd_mach_o_read_command): Fail on invalid command length.
340
ea933f17
AM
3412020-01-04 Alan Modra <amodra@gmail.com>
342
343 * format.c (bfd_check_format_matches): Add preserve_match.
344 Save initial bfd state in "preserve", matched bfd state in
345 "preserve_match". Save just the first match. Release
346 bfd_alloc memory. Restore and finish preserved state as
347 appropriate on all function exit paths.
348
f24bdec4
AM
3492020-01-04 Alan Modra <amodra@gmail.com>
350
351 * mmo.c (mmo_mkobject): Allocate tdata with bfd_zalloc.
352
991fb595
AM
3532020-01-04 Alan Modra <amodra@gmail.com>
354
355 * coffgen.c (coff_real_object_p): Free malloc'd memory on target
356 match too.
357
f2a3559d
NC
3582020-01-03 Nick Clifton <nickc@redhat.com>
359
360 PR 25307
361 (bfd_pef_parse_function_stubs): Correct the test that ensures that
362 there is enough data remaining in the code buffer before
363 attempting to read a function stub.
364
7a0fb7be
NC
3652020-01-03 Nick Clifton <nickc@redhat.com>
366
367 PR 25308
368 * elf-properties.c (_bfd_elf_convert_gnu_properties): Check the
369 return value from bfd_malloc.
370 * elf32-arm.c (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise.
371 (bfd_elf32_arm_stm32l4xx_fix_veneer_locations): Likewise.
372 (elf32_arm_filter_cmse_symbols): Likewise.
373 (elf32_arm_write_section): Likewise.
374 * mach-o.c (bfd_mach_o_core_fetch_environment): Likewise.
375 (bfd_mach_o_follow_dsym): Likewise.
376 * pef.c (bfd_pef_print_loader_section): Likewise.
377 (bfd_pef_scan_start_address): Likewise.
378 (bfd_pef_parse_function_stubs): Likewise.
379 (bfd_pef_parse_symbols): Likewise.
380
b26a3d58
ST
3812020-01-03 Sergei Trofimovich <siarheit@google.com>
382
383 * elfnn-ia64.c (elfNN_ia64_merge_private_bfd_data): don't fail
384 on binary inputs ld/PR25316.
385 (is_ia64_elf): new helper to filter on ia64 objects.
386
4bb7a87e
JB
3872020-01-03 Jan Beulich <jbeulich@suse.com>
388
389 * mach-o.c (cpusubtype, bfd_mach_o_header_p): Insert underscore
390 in parameter names.
391 (bfd_mach_o_scan): Insert underscore in two variable names.
392
6655dba2
SB
3932020-01-02 Sergey Belyashov <sergey.belyashov@gmail.com>
394
395 * Makefile.am: Add z80-elf target support.
396 * configure.ac: Likewise.
397 * targets.c: Likewise.
398 * Makefile.in: Regenerate.
399 * configure: Regenerate.
400 * config.bfd: Add z80-elf target support and new arches: ez80 and
401 z180.
402 * elf32-z80.c: New file.
403 * archures.c: Add new z80 architectures: eZ80 and Z180.
404 * coffcode.h: Likewise.
405 * cpu-z80.c: Likewise.
406 * coff-z80.c: Add new relocations for Z80 target and local label
407 check.
408 * reloc.c: Add new relocs.
409 * bfd-in2.h: Regenerate.
410 * libbfd.h: Regenerate.
411
0db131fb
TC
4122020-01-02 Tamar Christina <tamar.christina@arm.com>
413
414 PR 25210
415 PR 24753
416 * elfnn-aarch64.c (_bfd_aarch64_create_stub_section): Set ELF class.
417
b14ce8bf
AM
4182020-01-01 Alan Modra <amodra@gmail.com>
419
420 Update year range in copyright notice of all files.
421
0b114740 422For older changes see ChangeLog-2019
3499769a 423\f
0b114740 424Copyright (C) 2020 Free Software Foundation, Inc.
3499769a
AM
425
426Copying and distribution of this file, with or without modification,
427are permitted in any medium without royalty provided the copyright
428notice and this notice are preserved.
429
430Local Variables:
431mode: change-log
432left-margin: 8
433fill-column: 74
434version-control: never
435End:
This page took 0.276735 seconds and 4 git commands to generate.