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