]>
Commit | Line | Data |
---|---|---|
ebdcad3f NC |
1 | 2021-03-11 Nelson Chu <nelson.chu@sifive.com> |
2 | ||
3 | * elfnn-riscv.c (riscv_elf_link_hash_table): New boolean | |
4 | restart_relax, used to check if we need to run the whole | |
5 | relaxations from relax pass 0 to 2 again. | |
6 | (riscv_elf_link_hash_table_create): Init restart_relax to FALSE. | |
7 | (_bfd_riscv_relax_align): Remove obsolete sec_flg0 set. | |
8 | (_bfd_riscv_relax_delete): Set again to TRUE if we do delete the code. | |
9 | (bfd_elfNN_riscv_restart_relax_sections): New function. Called by | |
10 | after_allocation to check if we need to run the whole relaxations again. | |
11 | (_bfd_riscv_relax_section): We will only enter into the relax pass 3 | |
12 | when the restart_relax is FALSE; At last set restart_relax to TRUE if | |
13 | again is TRUE, too. | |
14 | * elfxx-riscv.h (bfd_elf32_riscv_restart_relax_sections): Declaration. | |
15 | (bfd_elf64_riscv_restart_relax_sections): Likewise. | |
16 | ||
67b0f684 JB |
17 | 2021-03-10 Jan Beulich <jbeulich@suse.com> |
18 | ||
19 | * cofflink.c (_bfd_coff_write_global_sym): Range-check symbol | |
20 | offset. | |
21 | ||
2dfa8341 AM |
22 | 2021-03-10 Alan Modra <amodra@gmail.com> |
23 | Jan Beulich <jbeulich@suse.com> | |
24 | ||
25 | * elf.c (bfd_elf_generic_reloc): Make references between debug | |
26 | sections use section relative values. | |
27 | ||
87fa7d56 JB |
28 | 2021-03-09 Jan Beulich <jbeulich@suse.com> |
29 | ||
30 | * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Diagnose out of range RVA. | |
31 | ||
8c0546e9 L |
32 | 2021-03-05 H.J. Lu <hongjiu.lu@intel.com> |
33 | ||
34 | PR ld/27425 | |
35 | PR ld/27432 | |
36 | * bfd.c (_bfd_get_link_info): New function. | |
37 | * elf-bfd.h (output_elf_obj_tdata): Add link_info. | |
38 | (elf_link_info): New. | |
39 | * libbfd-in.h (_bfd_get_link_info): New prototype. | |
40 | * coff-x86_64.c (coff_amd64_reloc): Also subtract __ImageBase for | |
41 | R_AMD64_IMAGEBASE when generating x86-64 ELF executable. | |
42 | * pe-x86_64.c: Include "coff/internal.h" and "libcoff.h". | |
43 | (pex64_link_add_symbols): New function. | |
44 | (coff_bfd_link_add_symbols): New macro. | |
45 | * libbfd.h: Regenerated. | |
46 | ||
db6092f3 AB |
47 | 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com> |
48 | Andrew Burgess <andrew.burgess@embecosm.com> | |
49 | ||
50 | * elf-bfd.h (elfcore_write_riscv_csr): Declare. | |
51 | * elf.c (elfcore_grok_riscv_csr): New function. | |
52 | (elfcore_grok_note): Handle NT_RISCV_CSR. | |
53 | (elfcore_write_riscv_csr): New function. | |
54 | (elfcore_write_register_note): Handle '.reg-riscv-csr'. | |
55 | ||
0897bb7d AB |
56 | 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com> |
57 | Andrew Burgess <andrew.burgess@embecosm.com> | |
58 | ||
59 | * elfnn-riscv.c (PRPSINFO_PR_FNAME_LENGTH): Define. | |
60 | (PRPSINFO_PR_PSARGS_LENGTH): Define. | |
61 | (riscv_write_core_note): New function. | |
62 | (riscv_elf_grok_psinfo): Make use of two new length defines. | |
63 | (elf_backend_write_core_note): Define. | |
64 | ||
b63a5e38 AB |
65 | 2021-03-05 Craig Blackmore <craig.blackmore@embecosm.com> |
66 | Andrew Burgess <andrew.burgess@embecosm.com> | |
67 | ||
68 | * elf-bfd.h (elfcore_write_gdb_tdesc): Declare new function. | |
69 | * elf.c (elfcore_grok_gdb_tdesc): New function. | |
70 | (elfcore_grok_note): Handle NT_GDB_TDESC. | |
71 | (elfcore_write_gdb_tdesc): New function. | |
72 | (elfcore_write_register_note): Handle NT_GDB_TDESC. | |
73 | ||
2017f387 NC |
74 | 2021-03-05 Nick Clifton <nickc@redhat.com> |
75 | ||
76 | PR 27521 | |
77 | * dwarf2.c (is_str_attr): Add DW_FORM_strx* forms. | |
78 | (read_indexed_string): Placeholder function. | |
79 | (read_attribute_value): Handle DW_FORM_strx* and DW_FORM_addrx* | |
80 | forms. | |
81 | ||
b01b5d9a AM |
82 | 2021-03-05 Alan Modra <amodra@gmail.com> |
83 | ||
84 | * reloc.c (bfd_perform_relocation): Revert 2021-01-12 and | |
85 | 2020-09-16 changes. | |
86 | * coff-x86_64.c (coff_amd64_reloc): Do more or less the same | |
87 | adjustments here instead. Separate pc-relative adjustments | |
88 | from symbol related adjustments. Tidy comments and formatting. | |
89 | ||
6b5465b9 JB |
90 | 2021-03-04 Jan Beulich <jbeulich@suse.com> |
91 | ||
92 | * coffcode.h (sec_to_styp_flags): Don't set IMAGE_SCN_LNK_* in | |
93 | final PE images. | |
94 | ||
0b7733b6 AM |
95 | 2021-03-04 Alan Modra <amodra@gmail.com> |
96 | ||
97 | * rs6000-core.c (rs6000coff_core_p): Correct prototype. | |
98 | ||
5789f845 AM |
99 | 2021-03-03 Alan Modra <amodra@gmail.com> |
100 | ||
101 | PR 27500 | |
102 | * elflink.c (_bfd_elf_gc_mark_rsec): Do special start/stop | |
103 | processing not when start/stop symbol section is unmarked but | |
104 | on first time a start/stop symbol is processed. | |
105 | ||
dc83f2d2 AM |
106 | 2021-03-03 Alan Modra <amodra@gmail.com> |
107 | ||
108 | * reloc.c: Include x86_64.h rather than internal.h. | |
109 | ||
ca8f6bc6 NC |
110 | 2021-03-02 Nick Clifton <nickc@redhat.com> |
111 | ||
112 | PR 27484 | |
113 | * dwarf2.c (scan_unit_for_symbols): Scan twice, once to accumulate | |
114 | function and variable tags and a second time to resolve their | |
115 | attributes. | |
116 | ||
211bcd01 NA |
117 | 2021-03-02 Nick Alcock <nick.alcock@oracle.com> |
118 | ||
119 | * elf-strtab.c (_bfd_elf_strtab_str): Skip strings with zero refcount. | |
120 | ||
b80e421f AM |
121 | 2021-03-02 Alan Modra <amodra@gmail.com> |
122 | ||
123 | PR 27451 | |
124 | * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore synthesized | |
125 | linker defined start/stop symbols when start_stop_gc. | |
126 | ||
f5b9c288 AM |
127 | 2021-03-02 Alan Modra <amodra@gmail.com> |
128 | ||
129 | * elf64-ppc.c (ppc64_elf_relocate_section): Don't optimise got | |
130 | indirect to pc-relative or toc-relative for undefined symbols. | |
131 | ||
8ee10e86 AM |
132 | 2021-03-01 Alan Modra <amodra@gmail.com> |
133 | Fangrui Song <maskray@google.com> | |
134 | ||
135 | * elflink.c (_bfd_elf_gc_mark_rsec): Ignore synthesized linker | |
136 | defined start/stop symbols when start_stop_gc. | |
137 | (bfd_elf_gc_mark_dynamic_ref_symbol): Likewise. | |
138 | (bfd_elf_define_start_stop): Don't modify ldscript_def syms. | |
139 | * linker.c (bfd_generic_define_start_stop): Likewise. | |
140 | ||
bbaddd4b AM |
141 | 2021-02-25 Alan Modra <amodra@gmail.com> |
142 | ||
143 | PR 27441 | |
144 | * elf-bfd.h (struct elf_link_hash_entry): Add ref_ir_nonweak. | |
145 | * elflink.c (elf_link_add_object_symbols): Set ref_ir_nonweak and | |
146 | use when deciding an as-needed library should be loaded instead | |
147 | of using the binding of the library definition. | |
148 | ||
93af1b04 AM |
149 | 2021-02-24 Alan Modra <amodra@gmail.com> |
150 | ||
151 | PR 27459 | |
152 | * coff-stgo32.c (go32exe_check_format): Sanity check size of | |
153 | header to avoid a buffer overflow. | |
154 | ||
e9d18e06 AM |
155 | 2021-02-22 Alan Modra <amodra@gmail.com> |
156 | ||
157 | * coff-rs6000.c (_bfd_xcoff_reloc_type_lookup): Remove BFD_RELOC_16. | |
158 | * coff64-rs6000.c (xcoff64_reloc_type_lookup): Likewise. | |
159 | ||
5a9f5403 NC |
160 | 2021-02-19 Nelson Chu <nelson.chu@sifive.com> |
161 | ||
162 | PR 27158 | |
163 | * elfnn-riscv.c (perform_relocation): Updated encoding macros. | |
164 | (_bfd_riscv_relax_call): Likewise. | |
165 | (_bfd_riscv_relax_lui): Likewise. | |
166 | * elfxx-riscv.c (howto_table): Likewise. | |
167 | ||
3d73d29e NC |
168 | 2021-02-18 Nelson Chu <nelson.chu@sifive.com> |
169 | ||
170 | * Makefile.am: Added cpu-riscv.h. | |
171 | * Makefile.in: Regenerated. | |
172 | * po/SRC-POTFILES.in: Regenerated. | |
173 | * cpu-riscv.h: Added to support spec versions controlling. | |
174 | Also added extern arrays and functions for cpu-riscv.c. | |
175 | (enum riscv_spec_class): Define all spec classes here uniformly. | |
176 | (struct riscv_spec): Added for all specs. | |
177 | (RISCV_GET_SPEC_CLASS): Added to reduce repeated code. | |
178 | (RISCV_GET_SPEC_NAME): Likewise. | |
179 | (RISCV_GET_ISA_SPEC_CLASS): Added to get ISA spec class. | |
180 | (RISCV_GET_PRIV_SPEC_CLASS): Added to get privileged spec class. | |
181 | (RISCV_GET_PRIV_SPEC_NAME): Added to get privileged spec name. | |
182 | * cpu-riscv.c (struct priv_spec_t): Replaced with struct riscv_spec. | |
183 | (riscv_get_priv_spec_class): Replaced with RISCV_GET_PRIV_SPEC_CLASS. | |
184 | (riscv_get_priv_spec_name): Replaced with RISCV_GET_PRIV_SPEC_NAME. | |
185 | (riscv_priv_specs): Moved below. | |
186 | (riscv_get_priv_spec_class_from_numbers): Likewise, updated. | |
187 | (riscv_isa_specs): Moved from include/opcode/riscv.h. | |
188 | * elfnn-riscv.c: Included cpu-riscv.h. | |
189 | (riscv_merge_attributes): Initialize in_priv_spec and out_priv_spec. | |
190 | * elfxx-riscv.c: Included cpu-riscv.h and opcode/riscv.h. | |
191 | (RISCV_UNKNOWN_VERSION): Moved from include/opcode/riscv.h. | |
192 | * elfxx-riscv.h: Removed extern functions to cpu-riscv.h. | |
193 | ||
b9b204b3 AM |
194 | 2021-02-17 Alan Modra <amodra@gmail.com> |
195 | ||
196 | * wasm-module.c: Guard include of limits.h. | |
197 | (CHAR_BIT): Provide backup define. | |
198 | (wasm_read_leb128): Use CHAR_BIT to size "result" in bits. | |
199 | Correct signed overflow checking. | |
200 | ||
0d6aab77 NC |
201 | 2021-02-17 Nelson Chu <nelson.chu@sifive.com> |
202 | ||
203 | PR 27200 | |
204 | * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Delay | |
205 | copying the elf flags from input BFD to output BFD, until we have | |
206 | checked if the input BFD has no code section or not. Also fix the | |
207 | problem that we only check the first section rather than the entire | |
208 | sections for input BFD. | |
209 | ||
7b54cadd AM |
210 | 2021-02-16 Alan Modra <amodra@gmail.com> |
211 | ||
212 | * libbfd.c (_bfd_read_unsigned_leb128): Avoid excessive shift. | |
213 | (_bfd_safe_read_leb128, _bfd_read_signed_leb128): Likewise. | |
214 | ||
8c674061 JB |
215 | 2021-02-15 Jan Beulich <jbeulich@suse.com> |
216 | ||
217 | * doc/Makefile.am: Replace "cp -p" by "$(LN_S)". | |
218 | * doc/Makefile.in: Re-generate. | |
219 | ||
1781a9d0 AM |
220 | 2021-02-15 Alan Modra <amodra@gmail.com> |
221 | ||
222 | * elf32-nds32.c (nds32_get_section_contents): Replace | |
223 | bfd_malloc_and_get_section with bfd_get_full_section_contents. | |
224 | (nds32_elf_relax_delete_blanks): Init contents. | |
225 | (nds32_elf_relax_section, nds32_relax_fp_as_gp): Likewise. | |
226 | ||
8b78cbec AM |
227 | 2021-02-15 Alan Modra <amodra@gmail.com> |
228 | ||
229 | * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Use | |
230 | bfd_get_full_section_contents. | |
231 | ||
d7a7af8f AM |
232 | 2021-02-14 Alan Modra <amodra@gmail.com> |
233 | ||
234 | * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Apply | |
235 | all fixes to bfd_generic_get_relocated_section_contents since this | |
236 | function was split out. | |
237 | ||
234b98ce AM |
238 | 2021-02-11 Alan Modra <amodra@gmail.com> |
239 | ||
240 | * config.bfd: Remove ia64 from obsolete list. | |
241 | ||
769c253f AM |
242 | 2021-02-11 Alan Modra <amodra@gmail.com> |
243 | ||
244 | PR ld/22269 | |
245 | * elfnn-ia64.c: Revert 2017-10-14 git commit db41f6eb5234. | |
246 | ||
31c711a2 AM |
247 | 2021-02-11 Alan Modra <amodra@gmail.com> |
248 | ||
249 | PR 27294 | |
250 | * elf32-avr.c (avr_elf32_load_records_from_section): Use | |
251 | bfd_malloc_and_get_section. Use bfd_byte* vars and remove then | |
252 | unnecessary casts. | |
253 | ||
6db658c5 AM |
254 | 2021-02-11 Alan Modra <amodra@gmail.com> |
255 | ||
256 | PR 27291 | |
257 | * section.c (bfd_get_section_contents): Avoid possible overflow | |
258 | when range checking offset and count. | |
259 | (bfd_set_section_contents): Likewise. | |
260 | ||
95148614 NA |
261 | 2021-02-03 Nick Alcock <nick.alcock@oracle.com> |
262 | ||
263 | * configure.ac (SHARED_LIBADD): Remove explicit -lintl population in | |
264 | favour of LIBINTL. | |
265 | * configure: Regenerated. | |
266 | ||
a57d1773 AM |
267 | 2021-02-09 Alan Modra <amodra@gmail.com> |
268 | ||
269 | * config.bfd (arm*-*-symbianelf*): Move from obsolete to removed. | |
270 | * configure.ac: Delete symbian entries. | |
271 | * elf-bfd.h (enum elf_target_os): Delete is_symbian. | |
272 | * elf32-arm.c: Remove symbian support. Formatting. | |
273 | * targets.c: Delete symbian entries. | |
274 | * configure: Regenerate. | |
275 | ||
1a2f1b54 L |
276 | 2021-02-04 H.J. Lu <hongjiu.lu@intel.com> |
277 | ||
278 | PR ld/19609 | |
279 | * elf64-x86-64.c (elf_x86_64_relocate_section): Provide more | |
280 | info when failed to convert GOTPCREL relocation. | |
281 | ||
24075dcc NC |
282 | 2021-02-04 Nelson Chu <nelson.chu@sifive.com> |
283 | ||
284 | * elfxx-riscv.c (riscv_parse_prefixed_ext): Removed zb*. | |
285 | ||
7d409ac0 AM |
286 | 2021-02-04 Alan Modra <amodra@gmail.com> |
287 | ||
288 | PR 27311 | |
289 | * elflink.c (elf_link_add_object_symbols): Don't pull in as-needed | |
290 | libraries for IR references on pass over libraries after LTO | |
291 | recompilation. | |
292 | ||
f01fb44c AM |
293 | 2021-02-03 Alan Modra <amodra@gmail.com> |
294 | ||
295 | PR 27311 | |
296 | * elflink.c (_bfd_elf_add_default_symbol): Revert last two changes. | |
297 | (elf_link_add_object_symbols): Here too. Don't pull in as-needed | |
298 | libraries when H is an indirect symbol after calling | |
299 | _bfd_elf_add_default_symbol. | |
300 | ||
69551367 AM |
301 | 2021-02-03 Alan Modra <amodra@gmail.com> |
302 | ||
303 | PR 27311 | |
304 | * elflink.c (_bfd_elf_add_default_symbol): Clear override when | |
305 | undecorated symbol will have a different version. | |
306 | ||
9918bff7 AM |
307 | 2021-02-02 Alan Modra <amodra@gmail.com> |
308 | ||
309 | PR 27311 | |
310 | * elflink.c (_bfd_elf_add_default_symbol): Add override parameter. | |
311 | Use when handling default versioned symbol. Rename existing | |
312 | override variable to nondef_override and use for non-default | |
313 | versioned symbol. | |
314 | (elf_link_add_object_symbols): Adjust call to suit. Don't | |
315 | pull in as-needed libraries when override is set. | |
316 | ||
1f568f9a EH |
317 | 2021-02-01 Emery Hemingway <ehmry@posteo.net> |
318 | ||
319 | * config.bfd: Add *-*-genode* as a target for AArch64 and x86. | |
320 | ||
34c10233 EV |
321 | 2021-02-01 Egor Vishnyakov <lenvampir@yandex.ru> |
322 | ||
323 | PR 27254 | |
324 | * elf32-rl78.c (rl78_elf_relocate_section): Fix calculation of | |
325 | offset for the R_RL78_RH_SADDR relocation. | |
326 | ||
c4566785 AM |
327 | 2021-01-29 Alan Modra <amodra@gmail.com> |
328 | ||
329 | PR 27271 | |
330 | * elflink.c (bfd_elf_link_record_dynamic_symbol): Don't segfault | |
331 | on symbols defined in absolute or other special sections. | |
332 | ||
def97fb9 AM |
333 | 2021-01-28 Alan Modra <amodra@gmail.com> |
334 | ||
335 | PR 27259 | |
336 | * elflink.c (_bfd_elf_gc_mark_extra_sections): Use linker_mark to | |
337 | prevent endless looping of linked-to sections. | |
338 | ||
4cb1265b MS |
339 | 2020-12-17 Mihails Strasuns <mihails.strasuns@intel.com> |
340 | ||
341 | * bfd-elf.h (elfcore_write_file_note): New function. | |
342 | * elf.c (elfcore_write_file_note): New function. | |
343 | ||
4287950e AM |
344 | 2021-01-26 Alan Modra <amodra@gmail.com> |
345 | ||
346 | * elf32-ft32.c (ft32_reloc_type_lookup): Don't miss ft32_reloc_map[0]. | |
347 | ||
940d0202 L |
348 | 2021-01-24 H.J. Lu <hongjiu.lu@intel.com> |
349 | ||
350 | PR binutils/27231 | |
351 | * dwarf2.c (read_rnglists): Ignore empty range when parsing line | |
352 | number tables. | |
353 | ||
18454c15 L |
354 | 2021-01-23 H.J. Lu <hongjiu.lu@intel.com> |
355 | ||
356 | PR binutils/27231 | |
357 | * dwarf2.c (read_rnglists): Advance rngs_ptr after | |
358 | _bfd_safe_read_leb128 when parsing DW_RLE_offset_pair. | |
359 | ||
4bd7c902 AM |
360 | 2021-01-20 Alan Modra <amodra@gmail.com> |
361 | ||
362 | * elf32-ppc.c: Delete outdated comment. | |
363 | (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define. | |
364 | * elf64-ppc.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): Define. | |
365 | ||
8bd10d6b AM |
366 | 2021-01-20 Alan Modra <amodra@gmail.com> |
367 | ||
368 | * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't assume | |
369 | section symbols are present. | |
370 | ||
30845f11 AM |
371 | 2021-01-19 Alan Modra <amodra@gmail.com> |
372 | ||
373 | * elf64-ppc.c (elf_hash_entry): New inline function. Use | |
374 | throughout to replace casts. | |
375 | (branch_reloc_hash_match): Remove const from params. | |
376 | (use_local_plt): New function. | |
377 | (allocate_dynrelocs, ppc_build_one_stub, ppc_size_one_stub), | |
378 | (build_global_entry_stubs_and_plt, ppc64_elf_relocate_section): | |
379 | Use use_local_plt. | |
380 | * elf32-ppc.c (use_local_plt): New function. | |
381 | (allocate_dynrelocs, ppc_elf_relocate_section), | |
382 | (write_global_sym_plt): Use use_local_plt. | |
383 | ||
994b2513 L |
384 | 2021-01-17 H.J. Lu <hongjiu.lu@intel.com> |
385 | ||
386 | PR ld/27193 | |
387 | * elflink.c (elf_create_symbuf): Also ignore section symbols. | |
388 | ||
75a933f3 L |
389 | 2021-01-16 H.J. Lu <hongjiu.lu@intel.com> |
390 | ||
391 | PR ld/23169 | |
392 | * elfxx-x86.c (_bfd_x86_elf_link_fixup_ifunc_symbol): Don't | |
393 | check pointer_equality_needed. | |
394 | ||
68b00778 L |
395 | 2021-01-15 H.J. Lu <hongjiu.lu@intel.com> |
396 | ||
397 | * elf-linker-x86.h (elf_linker_x86_params): Add | |
398 | report_relative_reloc. | |
399 | * elf32-i386.c (elf_i386_relocate_section): Call | |
400 | _bfd_x86_elf_link_report_relative_reloc to report relative | |
401 | relocations for -z report-relative-reloc. | |
402 | (elf_i386_finish_dynamic_symbol): Likewse. | |
403 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewse. | |
404 | (elf_x86_64_finish_dynamic_symbol): Likewse. | |
405 | * elfxx-x86.c (_bfd_x86_elf_link_report_relative_reloc): New | |
406 | function. | |
407 | * elfxx-x86.h (_bfd_x86_elf_link_report_relative_reloc): New | |
408 | prototype. | |
409 | ||
ad92f33d AM |
410 | 2021-01-16 Alan Modra <amodra@gmail.com> |
411 | ||
412 | * compress.c (decompress_contents): Tidy inflateEnd result test. | |
413 | ||
eb6e6af8 AM |
414 | 2021-01-16 Alan Modra <amodra@gmail.com> |
415 | ||
416 | PR 26002 | |
417 | * elflink.c (elf_link_output_extsym): Use version 1 in | |
418 | .gnu.version for undefined unversioned symbols. | |
419 | ||
4bb5732e NC |
420 | 2021-01-15 Nelson Chu <nelson.chu@sifive.com> |
421 | ||
422 | * elfnn-riscv.c (riscv_relax_delete_bytes): Fixed the indent that | |
423 | caused the by previous commit accidentally. | |
424 | ||
1942a048 NC |
425 | 2021-01-15 Nelson Chu <nelson.chu@sifive.com> |
426 | ||
427 | * elfnn-riscv.c: Indent, labels and GNU coding standards tidy, | |
428 | also aligned the code. | |
429 | ||
b800637e NC |
430 | 2021-01-15 Nelson Chu <nelson.chu@sifive.com> |
431 | ||
432 | * elfnn-riscv.c (riscv_merge_attributes): Fix typos of messages. | |
433 | ||
dcd709e0 NC |
434 | 2021-01-15 Nelson Chu <nelson.chu@sifive.com> |
435 | ||
436 | * elfnn-riscv.c: Comments tidy and improvement. | |
437 | * elfxx-riscv.c: Likewise. | |
438 | * elfxx-riscv.h: Likewise. | |
439 | ||
8ca9c7eb L |
440 | 2021-01-14 H.J. Lu <hongjiu.lu@intel.com> |
441 | ||
442 | PR ld/26688 | |
443 | * elf32-bfin.c (bfinfdpic_relocate_section): Skip non SEC_ALLOC | |
444 | section for R_BFIN_FUNCDESC. | |
445 | ||
7e0d77ef NC |
446 | 2021-01-14 Nick Clifton <nickc@redhat.com> |
447 | ||
448 | * elf.c (elfcore_grok_win32pstatus): Check for a note type of 0. | |
449 | ||
5347ed60 AM |
450 | 2021-01-13 Alan Modra <amodra@gmail.com> |
451 | ||
452 | * Makefile.in: Regenerate. | |
453 | * doc/Makefile.in: Regenerate. | |
454 | ||
b209b5a6 AM |
455 | 2021-01-13 Alan Modra <amodra@gmail.com> |
456 | ||
457 | PR 27160 | |
458 | * section.c (struct bfd_section): Remove pattern field. | |
459 | (BFD_FAKE_SECTION): Adjust to suit. | |
460 | * bfd-in2.h: Regenerate. | |
461 | * elflink.c (compare_link_order, elf_fixup_link_order): Delete. | |
462 | (bfd_elf_final_link): Don't call elf_fixup_link_order. | |
463 | ||
d546b610 L |
464 | 2021-01-12 H.J. Lu <hongjiu.lu@intel.com> |
465 | ||
466 | PR binutils/26792 | |
467 | * configure.ac: Use GNU_MAKE_JOBSERVER. | |
468 | * aclocal.m4: Regenerated. | |
469 | * configure: Likewise. | |
470 | ||
c2e9a4a3 L |
471 | 2021-01-12 H.J. Lu <hongjiu.lu@intel.com> |
472 | ||
473 | PR ld/27171 | |
474 | * reloc.c (bfd_perform_relocation): Adjust R_AMD64_DIR64 and | |
475 | R_AMD64_DIR32 relocations for PE/x86-64 inputs. | |
476 | ||
83b33c6c L |
477 | 2021-01-11 H.J. Lu <hongjiu.lu@intel.com> |
478 | ||
479 | PR ld/27173 | |
480 | * configure: Regenerated. | |
481 | ||
a8aa72b9 NC |
482 | 2021-01-11 Nick Clifton <nickc@redhat.com> |
483 | ||
484 | * po/fr.po: Updated French translation. | |
485 | * po/pt.po: Updated Portuguese translation. | |
486 | * po/sr.po: Updated Serbian translation. | |
487 | * po/uk.po: Updated Ukranian translation. | |
488 | ||
a4966cd9 L |
489 | 2021-01-09 H.J. Lu <hongjiu.lu@intel.com> |
490 | ||
491 | * configure: Regenerated. | |
492 | ||
0a94990b L |
493 | 2021-01-09 H.J. Lu <hongjiu.lu@intel.com> |
494 | ||
495 | PR ld/27166 | |
496 | * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Handle | |
497 | -z lam-u48 and -z lam-u57. | |
498 | ||
573fe3fb NC |
499 | 2021-01-09 Nick Clifton <nickc@redhat.com> |
500 | ||
501 | * version.m4: Change to 2.36.50. | |
502 | * configure: Regenerate. | |
503 | * po/bfd.pot: Regenerate. | |
504 | ||
055bc77a NC |
505 | 2021-01-09 Nick Clifton <nickc@redhat.com> |
506 | ||
507 | * 2.36 release branch crated. | |
508 | ||
ba9e922f L |
509 | 2021-01-08 H.J. Lu <hongjiu.lu@intel.com> |
510 | ||
511 | * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Also set | |
512 | LAM_U57 when setting LAM_U48. | |
513 | ||
b1b29aa5 L |
514 | 2021-01-08 H.J. Lu <hongjiu.lu@intel.com> |
515 | ||
516 | PR ld/26256 | |
517 | PR ld/27160 | |
518 | * elflink.c (elf_fixup_link_order): Verify that fixing up | |
519 | SHF_LINK_ORDER doesn't increase the output section size. | |
520 | ||
64307045 AM |
521 | 2021-01-09 Alan Modra <amodra@gmail.com> |
522 | ||
523 | * configure: Regenerate. | |
524 | ||
f4782128 ST |
525 | 2021-01-07 Samuel Thibault <samuel.thibault@gnu.org> |
526 | ||
527 | * configure: Regenerate. | |
528 | ||
d1bcae83 L |
529 | 2021-01-07 H.J. Lu <hongjiu.lu@intel.com> |
530 | ||
531 | PR 27109 | |
532 | * aix386-core.c (core_aix386_vec): Initialize | |
533 | keep_unused_section_symbol to TARGET_KEEP_UNUSED_SECTION_SYMBOLS. | |
534 | * aout-target.h (MY (vec)): Likewise. | |
535 | * binary.c (binary_vec): Likewise. | |
536 | * cisco-core.c (core_cisco_be_vec): Likewise. | |
537 | (core_cisco_le_vec): Likewise. | |
538 | * coff-alpha.c (alpha_ecoff_le_vec): Likewise. | |
539 | * coff-i386.c (TARGET_SYM): Likewise. | |
540 | (TARGET_SYM_BIG): Likewise. | |
541 | * coff-ia64.c (TARGET_SYM): Likewise. | |
542 | * coff-mips.c (mips_ecoff_le_vec): Likewise. | |
543 | (mips_ecoff_be_vec): Likewise. | |
544 | (mips_ecoff_bele_vec): Likewise. | |
545 | * coff-rs6000.c (rs6000_xcoff_vec): Likewise. | |
546 | (powerpc_xcoff_vec): Likewise. | |
547 | * coff-sh.c (sh_coff_small_vec): Likewise. | |
548 | (sh_coff_small_le_vec): Likewise. | |
549 | * coff-tic30.c (tic30_coff_vec): Likewise. | |
550 | * coff-tic54x.c (tic54x_coff0_vec): Likewise. | |
551 | (tic54x_coff0_beh_vec): Likewise. | |
552 | (tic54x_coff1_vec): Likewise. | |
553 | (tic54x_coff1_beh_vec): Likewise. | |
554 | (tic54x_coff2_vec): Likewise. | |
555 | (tic54x_coff2_beh_vec): Likewise. | |
556 | * coff-x86_64.c (TARGET_SYM): Likewise. | |
557 | (TARGET_SYM_BIG): Likewise. | |
558 | * coff64-rs6000.c (rs6000_xcoff64_vec): Likewise. | |
559 | (rs6000_xcoff64_aix_vec): Likewise. | |
560 | * coffcode.h (CREATE_BIG_COFF_TARGET_VEC): Likewise. | |
561 | (CREATE_BIGHDR_COFF_TARGET_VEC): Likewise. | |
562 | (CREATE_LITTLE_COFF_TARGET_VEC): Likewise. | |
563 | * elfxx-target.h (TARGET_BIG_SYM): Likewise. | |
564 | (TARGET_LITTLE_SYM): Likewise. | |
565 | * hppabsd-core.c (core_hppabsd_vec): Likewise. | |
566 | * hpux-core.c (core_hpux_vec): Likewise. | |
567 | * i386msdos.c (i386_msdos_vec): Likewise. | |
568 | * ihex.c (ihex_vec): Likewise. | |
569 | * irix-core.c (core_irix_vec): Likewise. | |
570 | * mach-o-target.c (TARGET_NAME): Likewise. | |
571 | * mmo.c (mmix_mmo_vec): Likewise. | |
572 | * netbsd-core.c (core_netbsd_vec): Likewise. | |
573 | * osf-core.c (core_osf_vec): Likewise. | |
574 | * pdp11.c (MY (vec)): Likewise. | |
575 | * pef.c (pef_vec): Likewise. | |
576 | (pef_xlib_vec): Likewise. | |
577 | * plugin.c (plugin_vec): Likewise. | |
578 | * ppcboot.c (powerpc_boot_vec): Likewise. | |
579 | * ptrace-core.c (core_ptrace_vec): Likewise. | |
580 | * sco5-core.c (core_sco5_vec): Likewise. | |
581 | * som.c (hppa_som_vec): Likewise. | |
582 | * srec.c (srec_vec): Likewise. | |
583 | (symbolsrec_vec): Likewise. | |
584 | * tekhex.c (tekhex_vec): Likewise. | |
585 | * trad-core.c (core_trad_vec): Likewise. | |
586 | * verilog.c (verilog_vec): Likewise. | |
587 | * vms-alpha.c (alpha_vms_vec): Likewise. | |
588 | * vms-lib.c (alpha_vms_lib_txt_vec): Likewise. | |
589 | * wasm-module.c (wasm_vec): Likewise. | |
590 | * xsym.c (sym_vec): Likewise. | |
591 | * elf.c (ignore_section_sym): Return TRUE if BSF_SECTION_SYM_USED | |
592 | isn't set. | |
593 | (elf_map_symbols): Don't include ignored section symbols. | |
594 | * elfcode.h (elf_slurp_symbol_table): Also set | |
595 | BSF_SECTION_SYM_USED on STT_SECTION symbols. | |
596 | * elflink.c (bfd_elf_final_link): Generated section symbols only | |
597 | when emitting relocations or reqired. | |
598 | * elfxx-x86.h (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New. | |
599 | * syms.c (BSF_SECTION_SYM_USED): New. | |
600 | * targets.c (TARGET_KEEP_UNUSED_SECTION_SYMBOLS): New. | |
601 | (bfd_target): Add keep_unused_section_symbols. | |
602 | (bfd_keep_unused_section_symbols): New. | |
603 | * bfd-in2.h: Regenerated. | |
604 | ||
17d60030 NC |
605 | 2021-01-07 Nick Clifton <nickc@redhat.com> |
606 | ||
607 | PR 25713 | |
608 | * bfdio.c (_bfd_real_fopen): For Win32 convert relative paths to | |
609 | absolute paths and check to see if they are longer than MAX_PATH. | |
610 | ||
aa881ecd PT |
611 | 2021-01-07 Philipp Tomsich <prt@gnu.org> |
612 | ||
613 | * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zihintpause. | |
614 | ||
2652cfad CXW |
615 | 2021-01-07 Claire Xenia Wolf <claire@symbioticeda.com> |
616 | Jim Wilson <jimw@sifive.com> | |
617 | Andrew Waterman <andrew@sifive.com> | |
618 | Maxim Blinov <maxim.blinov@embecosm.com> | |
619 | Kito Cheng <kito.cheng@sifive.com> | |
620 | Nelson Chu <nelson.chu@sifive.com> | |
621 | ||
622 | * elfxx-riscv.c (riscv_std_z_ext_strtab): Added zba, zbb and zbc. | |
623 | ||
d4e57b87 L |
624 | 2021-01-06 H.J. Lu <hongjiu.lu@intel.com> |
625 | ||
626 | * elf32-bfin.c (bfin_check_relocs): Check bfd_link_hash_indirect. | |
627 | (bfinfdpic_check_relocs): Likewise. | |
628 | ||
599c86c4 AM |
629 | 2021-01-06 Alan Modra <amodra@gmail.com> |
630 | ||
631 | * elf32-score.c (s3_bfd_score_info_to_howto): Report an error | |
632 | on unknown r_type. | |
633 | * elf32-score7.c (s7_bfd_score_info_to_howto): Likewise. | |
634 | ||
3677b729 AM |
635 | 2021-01-06 Alan Modra <amodra@gmail.com> |
636 | ||
637 | * config.bfd (sparc-*-solaris2*): Add sparc_elf32_vec. | |
638 | (sparc64-*-solaris2*): Add sparc_elf64_vec and | |
639 | sparc_elf32_vec. | |
640 | ||
fbc09e7a MC |
641 | 2021-01-06 Marcus Comstedt <marcus@mc.pp.se> |
642 | ||
643 | * config.bfd: Added targets riscv64be*-*-*, riscv32be*-*-* and | |
644 | riscvbe*-*-*. Also added riscv_elf[32|64]_be_vec. | |
645 | * configure.ac: Handle riscv_elf[32|64]_be_vec. | |
646 | * configure: Regenerate. | |
647 | * elfnn-riscv.c: Include <limits.h> and define CHAR_BIT for | |
648 | riscv_is_insn_reloc. | |
649 | (riscv_get_insn): RISC-V instructions are always little endian, but | |
650 | bfd_get may be used for big-endian, so add new riscv_get_insn to handle | |
651 | the insturctions. | |
652 | (riscv_put_insn): Likewsie. | |
653 | (riscv_is_insn_reloc): Check if we are relocaing an instruction. | |
654 | (perform_relocation): Call riscv_is_insn_reloc to decide if we should | |
655 | use riscv_[get|put]_insn or bfd_[get|put]. | |
656 | (riscv_zero_pcrel_hi_reloc): Use riscv_[get|put]_insn, bfd_[get|put]l32 | |
657 | or bfd_[get|put]l16 for code. | |
658 | (riscv_elf_relocate_section): Likewise. | |
659 | (riscv_elf_finish_dynamic_symbol): Likewise. | |
660 | (riscv_elf_finish_dynamic_sections): Likewise. | |
661 | (_bfd_riscv_relax_call): Likewise. | |
662 | (_bfd_riscv_relax_lui): Likewise. | |
663 | (_bfd_riscv_relax_align): Likewise. | |
664 | (_bfd_riscv_relax_pc): Likewise. | |
665 | (riscv_elf_object_p): Handled for big endian. | |
666 | (TARGET_BIG_SYM, TARGET_BIG_NAME): Defined. | |
667 | * targets.c: Add riscv_elf[32|64]_be_vec. | |
668 | (_bfd_target_vector): Likewise. | |
669 | ||
c8bad65e AM |
670 | 2021-01-05 Alan Modra <amodra@gmail.com> |
671 | ||
672 | * elflink.c (bfd_elf_link_record_dynamic_symbol): Handle no_export | |
673 | for relocatable executable. | |
674 | ||
de6a7ee4 AM |
675 | 2021-01-05 Alan Modra <amodra@gmail.com> |
676 | ||
677 | * vms-alpha.c (_bfd_vms_slurp_egsd): Read flags after size check. | |
678 | ||
18b98722 NC |
679 | 2021-01-05 Nelson Chu <nelson.chu@sifive.com> |
680 | ||
681 | * elfnn-riscv.c (allocate_dynrelocs): When we are generating pde, | |
682 | make sure gp symbol is output as a dynamic symbol. | |
683 | ||
cd6d537c L |
684 | 2021-01-04 H.J. Lu <hongjiu.lu@intel.com> |
685 | ||
686 | PR ld/26256 | |
687 | * elflink.c (compare_link_order): Place unordered sections before | |
688 | ordered sections. | |
689 | (elf_fixup_link_order): Add a link info argument. Allow mixed | |
690 | ordered and unordered input sections for non-relocatable link. | |
691 | Sort the consecutive bfd_indirect_link_order sections with the | |
692 | same pattern. Change the offsets of the bfd_indirect_link_order | |
693 | sections only. | |
694 | (bfd_elf_final_link): Pass info to elf_fixup_link_order. | |
695 | * section.c (bfd_section): Add pattern. | |
696 | (BFD_FAKE_SECTION): Initialize pattern to NULL. | |
697 | * bfd-in2.h: Regenerated. | |
698 | ||
dbb078f6 AF |
699 | 2021-01-04 Alexander Fedotov <alfedotov@gmail.com> |
700 | ||
701 | * elf32-arm.c (elf32_arm_print_private_bfd_data): Prefix hex value | |
702 | of private flags with 0x. | |
703 | * elfnn-aarch64.c (elfNN_aarch64_print_private_bfd_data): Likewise. | |
704 | ||
5b4293ba AM |
705 | 2021-01-04 Alan Modra <amodra@gmail.com> |
706 | ||
707 | PR 26822 | |
708 | * elflink.c (elf_link_input_bfd): Use the file base name in | |
709 | linker generated STT_FILE symbols. | |
710 | ||
4c0e540e NC |
711 | 2021-01-04 Nelson Chu <nelson.chu@sifive.com> |
712 | ||
713 | * elfxx-riscv.c (riscv_compare_subsets): Removed static. | |
714 | * elfxx-riscv.h: Add declaration. | |
715 | * elfnn-riscv.c (riscv_merge_multi_letter_ext): Use | |
716 | riscv_compare_subsets to check the orders. | |
717 | (riscv_skip_prefix): Removed. | |
718 | (riscv_prefix_cmp): Removed. | |
719 | ||
e9cf3691 AM |
720 | 2021-01-04 Alan Modra <amodra@gmail.com> |
721 | ||
722 | PR 26741 | |
723 | * elfxx-riscv.c (riscv_parse_prefixed_ext): Free subset after | |
724 | calculating subset version length. | |
725 | ||
f9a6a8f0 AM |
726 | 2021-01-01 Nicolas Boulenguez <nicolas@debian.org> |
727 | ||
728 | * xcofflink.c: Correct spelling in comments. | |
729 | ||
250d07de AM |
730 | 2021-01-01 Alan Modra <amodra@gmail.com> |
731 | ||
732 | Update year range in copyright notice of all files. | |
733 | ||
c2795844 | 734 | For older changes see ChangeLog-2020 |
3499769a | 735 | \f |
c2795844 | 736 | Copyright (C) 2021 Free Software Foundation, Inc. |
3499769a AM |
737 | |
738 | Copying and distribution of this file, with or without modification, | |
739 | are permitted in any medium without royalty provided the copyright | |
740 | notice and this notice are preserved. | |
741 | ||
742 | Local Variables: | |
743 | mode: change-log | |
744 | left-margin: 8 | |
745 | fill-column: 74 | |
746 | version-control: never | |
747 | End: |