Commit | Line | Data |
---|---|---|
3a3a077c AM |
1 | 2019-06-14 Alan Modra <amodra@gmail.com> |
2 | ||
3 | * Makefile.in: Regenerate. | |
4 | * configure: Regenerate. | |
5 | ||
d4b87b1e AM |
6 | 2019-06-14 Alan Modra <amodra@gmail.com> |
7 | ||
8 | * elf64-ppc.c: Fix comments involving paddi. | |
9 | ||
62e0492f AL |
10 | 2019-06-12 Adam Lackorzymski <adam@os.inf.tu-dresden.de> |
11 | ||
12 | PR 24643 | |
13 | * elf32-arm.c (arm_elf_find_function): Fail if the symol table is | |
14 | absent, or the bfd is not in the ELF formart. | |
15 | * elfnn-aarch64.c (aarch64_elf_find_function): Likewise. | |
16 | ||
58e07198 CZ |
17 | 2019-06-10 Christos Zoulas <christos@zoulas.com> |
18 | ||
19 | PR 24650 | |
20 | * elf.c (elfcore_make_auxv_note_section): New function. | |
21 | (elfcore_grok_note): Use it. | |
22 | (elfcore_grok_freebsd_note): Likewise. | |
23 | (elfcore_grok_openbsd_note): Likewise. | |
24 | (elfcore_grok_netbsd_note): Likewise. Plus add support for | |
25 | NT_NETBSDCORE_AUXV notes. | |
26 | ||
237df8fe SD |
27 | 2019-06-06 Sudakshina Das <sudi.das@arm.com> |
28 | ||
29 | * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Set | |
30 | alignment of the new gnu property section. | |
31 | ||
8bf6d176 SD |
32 | 2019-06-06 Sudakshina Das <sudi.das@arm.com> |
33 | ||
34 | * bfd-in.h: Change comment. | |
35 | * bfd-in2.h: Regenerate. | |
36 | * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update warning. | |
37 | * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): | |
38 | Likwise. | |
39 | ||
1e129bbe FS |
40 | 2019-05-28 Faraz Shahbazker <fshahbazker@wavecomp.com> |
41 | ||
42 | * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_PCHI16>: | |
43 | Remove overflow check. | |
44 | ||
0f4a61b4 AM |
45 | 2019-05-28 Alan Modra <amodra@gmail.com> |
46 | ||
47 | PR 24596 | |
48 | * cofflink.c (coff_link_check_archive_element): Don't assume | |
49 | element is a coff object file after calling add_archive_element. | |
50 | ||
94667ab1 AM |
51 | 2019-05-28 Alan Modra <amodra@gmail.com> |
52 | ||
53 | PR 24596 | |
54 | * elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Don't | |
55 | attempt to set sh_entsize for excluded PLT section. | |
56 | ||
28fbeab8 AM |
57 | 2019-05-28 Alan Modra <amodra@gmail.com> |
58 | ||
59 | PR 24596 | |
60 | * elf64-alpha.c (elf64_alpha_relocate_section): Don't attempt | |
61 | to emit R_ALPHA_GOTTPREL in PIEs, for which no space is | |
62 | allocated in alpha_dynamic_entries_for_reloc. | |
63 | ||
a0f6fd21 AM |
64 | 2019-05-28 Alan Modra <amodra@gmail.com> |
65 | ||
66 | PR 24596 | |
67 | * elf32-lm32.c (lm32_elf_finish_dynamic_sections): Don't segfault | |
68 | on NULL output_section. | |
69 | * elflink.c (elf_final_link_free): Don't free -1 symshndxbuf. | |
70 | ||
c83004d5 AM |
71 | 2019-05-28 Alan Modra <amodra@gmail.com> |
72 | ||
73 | PR 24596 | |
74 | * elf32-m68k.c (elf_m68k_get_got_entry): Don't create a new | |
75 | entry when MUST_FIND. Abort when MUST_FIND not found. | |
76 | (elf_m68k_get_bfd2got_entry): Likewise. | |
77 | (elf_m68k_relocate_section): Remove now useless assert. | |
78 | ||
586338b8 AM |
79 | 2019-05-28 Alan Modra <amodra@gmail.com> |
80 | ||
81 | PR 24596 | |
82 | * elf64-hppa.c (elf64_hppa_finalize_dynreloc): Get the output bfd | |
83 | from bfd_link_info, not an output section owner. | |
84 | (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd): Likewise. | |
85 | (elf_hppa_final_link_relocate): Likewise. | |
86 | ||
a7b34aba AM |
87 | 2019-05-28 Alan Modra <amodra@gmail.com> |
88 | ||
89 | PR 24596 | |
90 | * aout-tic30.c (MY_bfd_final_link): Don't segfault on missing | |
91 | create_object_symbols_section, obj_textsec, obj_datasec or | |
92 | obj_bsssec. Fix other errors in placement. | |
93 | * config.bfd: Obsolete tic30-aout. | |
94 | ||
0eb32b6e AM |
95 | 2019-05-28 Alan Modra <amodra@gmail.com> |
96 | ||
97 | PR 24596 | |
98 | * dwarf2.c (save_section_vma, section_vma_same): Check for NULL | |
99 | end of section list as well as section_count. | |
100 | * xcofflink.c (xcoff_link_add_symbols): Fix temporarily changed | |
101 | section list before returning error. | |
102 | ||
ce5aecf8 AM |
103 | 2019-05-27 Alan Modra <amodra@gmail.com> |
104 | ||
105 | * elf.c (bfd_elf_set_group_contents): Exit on zero size section. | |
106 | ||
3d7d6a6f AM |
107 | 2019-05-27 Alan Modra <amodra@gmail.com> |
108 | ||
109 | PR 24596 | |
110 | * linker.c (_bfd_generic_link_output_symbols): Heed BSF_KEEP. | |
111 | ||
823710d5 SN |
112 | 2019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com> |
113 | ||
114 | * elfnn-aarch64.c (elfNN_aarch64_merge_symbol_attribute): New function. | |
115 | (struct elf_aarch64_link_hash_table): Add variant_pcs member. | |
116 | (elfNN_aarch64_allocate_dynrelocs): Update variant_pcs. | |
117 | (elfNN_aarch64_size_dynamic_sections): Add DT_AARCH64_VARIANT_PCS. | |
118 | (elf_backend_merge_symbol_attribute): Define. | |
119 | ||
405b5bd8 AM |
120 | 2019-05-24 Alan Modra <amodra@gmail.com> |
121 | ||
122 | * po/SRC-POTFILES.in: Regenerate. | |
123 | ||
04bdff6a AM |
124 | 2019-05-24 Alan Modra <amodra@gmail.com> |
125 | ||
126 | * elf64-ppc.c: Comment on powerxx _notoc stub variants. | |
127 | (LI_R11_0, LIS_R11, ORI_R11_R11_0, SLDI_R11_R11_34): Define. | |
128 | (PADDI_R12_PC, PLD_R12_PC, D34, HA34): Define. | |
129 | (struct ppc_link_hash_table): Add powerxx_stubs. | |
130 | (ppc64_elf_check_relocs): Set powerxx_stubs. | |
131 | (build_powerxx_offset, size_powerxx_offset), | |
132 | (num_relocs_for_powerxx_offset), | |
133 | (emit_relocs_for_powerxx_offset): New functions. | |
134 | (plt_stub_size): Size powerxx stubs. | |
135 | (ppc_build_one_stub): Emit powerxx stubs. | |
136 | (ppc_size_one_stub): Size powerxx stubs. Omit .eh_frame for | |
137 | powerxx stubs. | |
138 | ||
4a421c53 AM |
139 | 2019-05-24 Alan Modra <amodra@gmail.com> |
140 | ||
141 | * elf64-ppc.c (ppc64_elf_check_relocs): Set has_gotrel for | |
142 | R_PPC64_GOT_PCREL34. | |
143 | (xlate_pcrel_opt): New function. | |
144 | (ppc64_elf_edit_toc): Handle R_PPC64_GOT_PCREL34. | |
145 | (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative | |
146 | for R_PPC64_GOT_PCREL34. Implement R_PPC64_PCREL_OPT optimisation. | |
147 | ||
5663e321 AM |
148 | 2019-05-24 Alan Modra <amodra@gmail.com> |
149 | ||
150 | * reloc.c (BFD_RELOC_PPC64_D34, BFD_RELOC_PPC64_D34_LO), | |
151 | (BFD_RELOC_PPC64_D34_HI30, BFD_RELOC_PPC64_D34_HA30), | |
152 | (BFD_RELOC_PPC64_PCREL34, BFD_RELOC_PPC64_GOT_PCREL34), | |
153 | (BFD_RELOC_PPC64_PLT_PCREL34), | |
154 | (BFD_RELOC_PPC64_ADDR16_HIGHER34, BFD_RELOC_PPC64_ADDR16_HIGHERA34), | |
155 | (BFD_RELOC_PPC64_ADDR16_HIGHEST34, BFD_RELOC_PPC64_ADDR16_HIGHESTA34), | |
156 | (BFD_RELOC_PPC64_REL16_HIGHER34, BFD_RELOC_PPC64_REL16_HIGHERA34), | |
157 | (BFD_RELOC_PPC64_REL16_HIGHEST34, BFD_RELOC_PPC64_REL16_HIGHESTA34), | |
158 | (BFD_RELOC_PPC64_D28, BFD_RELOC_PPC64_PCREL28): New reloc enums. | |
159 | * elf64-ppc.c (PNOP): Define. | |
160 | (ppc64_elf_howto_raw): Add reloc howtos for new relocations. | |
161 | (ppc64_elf_reloc_type_lookup): Translate new bfd reloc numbers. | |
162 | (ppc64_elf_ha_reloc): Adjust addend for highera34 and highesta34 | |
163 | relocs. | |
164 | (ppc64_elf_prefix_reloc): New function. | |
165 | (struct ppc_link_hash_table): Add notoc_plt. | |
166 | (is_branch_reloc): Add R_PPC64_PLTCALL_NOTOC. | |
167 | (is_plt_seq_reloc): Add R_PPC64_PLT_PCREL34, | |
168 | R_PPC64_PLT_PCREL34_NOTOC, and R_PPC64_PLTSEQ_NOTOC. | |
169 | (ppc64_elf_check_relocs): Handle pcrel got and plt relocs. Set | |
170 | has_pltcall for section on seeing R_PPC64_PLTCALL_NOTOC. Handle | |
171 | possible need for dynamic relocs on non-pcrel powerxx relocs. | |
172 | (dec_dynrel_count): Handle non-pcrel powerxx relocs. | |
173 | (ppc64_elf_inline_plt): Handle R_PPC64_PLTCALL_NOTOC. | |
174 | (toc_adjusting_stub_needed): Likewise. | |
175 | (ppc64_elf_tls_optimize): Handle R_PPC64_PLTSEQ_NOTOC. | |
176 | (ppc64_elf_relocate_section): Handle new powerxx relocs. | |
177 | * bfd-in2.h: Regenerate. | |
178 | * libbfd.h: Regenerate. | |
179 | ||
fd0de36e JM |
180 | 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com> |
181 | ||
45d5293f JM |
182 | * config.bfd (targ_cpu): Process bpf-*-none only if BFD64. |
183 | * configure.ac: Set target_size=64 for bpf_elf64_le_vec and | |
184 | bpf_elf64_be_vec. | |
185 | * configure: Regenerate. | |
186 | ||
187 | 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com> | |
188 | ||
fd0de36e JM |
189 | * configure: Regenerated. |
190 | * Makefile.am (ALL_MACHINES): Add cpu-bpf.lo. | |
191 | (ALL_MACHINES_CFILES): Add cpu-bpf.c. | |
192 | (BFD64_BACKENDS): Add elf64-bpf.lo. | |
193 | (BFD64_BACKENDS_CFILES): Add elf64-bpf.c. | |
194 | * Makefile.in (SOURCE_HFILES): Regenerate. | |
195 | * config.bfd (targ_cpu): Handle bpf-*-* targets. | |
196 | * cpu-bpf.c: New file. | |
197 | * elf64-bpf.c: Likewise. | |
198 | * targets.c (_bfd_target_vector): Add bpf_elf64_be_vec and | |
199 | bpf_elf64_le_vec. | |
200 | * archures.c: Define architecture bfd_arch_bpf and machine | |
201 | bfd_arch_bpf. | |
202 | * reloc.c: Define BFD relocations used by the BPF target. | |
203 | * bfd-in2.h: Regenerated. | |
204 | * libbfd.h: Likewise. | |
205 | ||
b0f4fbf8 AM |
206 | 2019-05-22 Alan Modra <amodra@gmail.com> |
207 | ||
208 | * elf32-arm.c (arm_allocate_glue_section_space): Clear section | |
209 | contents. | |
210 | ||
9ec2f606 AM |
211 | 2019-05-22 Alan Modra <amodra@gmail.com> |
212 | ||
213 | * vms-alpha.c (_bfd_vms_write_etir): Don't attempt further | |
214 | processing on "size error in section". | |
215 | ||
4decd602 AM |
216 | 2019-05-22 Alan Modra <amodra@gmail.com> |
217 | ||
218 | * som.c (som_bfd_free_cached_info): Call | |
219 | _bfd_generic_close_and_cleanup. | |
220 | ||
b474a202 FS |
221 | 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com> |
222 | ||
223 | * elfxx-mips.c (_bfd_mips_elf_check_relocs): Generate error | |
224 | for TLS_TPREL_HI16(/LO16) relocations in shared library. | |
225 | ||
304f09d0 FS |
226 | 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com> |
227 | ||
228 | * elfxx-mips.c (_bfd_mips_elf_check_relocs): Add NULL pointer | |
229 | checks. Search the RELA table for n64 relocations. | |
230 | ||
3734320d MF |
231 | 2019-05-21 Matthew Fortune <matthew.fortune@mips.com> |
232 | Faraz Shahbazker <fshahbazker@wavecomp.com> | |
233 | ||
234 | * elfxx-mips.c (LA25_BC): New macro. | |
235 | (mips_elf_link_hash_table)<compact_branches>: New field. | |
236 | (STUB_JALRC): New macro. | |
237 | (mipsr6_o32_exec_plt0_entry_compact): New array. | |
238 | (mipsr6_n32_exec_plt0_entry_compact): Likewise. | |
239 | (mipsr6_n64_exec_plt0_entry_compact): Likewise. | |
240 | (mipsr6_exec_plt_entry_compact): Likewise. | |
241 | (mips_elf_create_la25_stub): Use BC instead of J for stubs | |
242 | when compact_branches is true. | |
243 | (_bfd_mips_elf_finish_dynamic_symbol): Choose the compact | |
244 | PLT for MIPSR6 with compact_branches. Do not reorder the | |
245 | compact branches PLT. Switch the lazy stub for MIPSR6 | |
246 | with compact_branches to use JALRC. | |
247 | (mips_finish_exec_plt): Choose the compact PLT0 for MIPSR6 | |
248 | when compact_branches is true. | |
249 | (_bfd_mips_elf_compact_branches): New function. | |
250 | * elfxx-mips.h (_bfd_mips_elf_compact_branches): New prototype. | |
251 | ||
64672071 TC |
252 | 2019-05-21 Tamar Christina <tamar.christina@arm.com> |
253 | ||
254 | PR ld/24373 | |
255 | * elfnn-aarch64.c (_bfd_aarch64_erratum_843419_branch_to_stub): | |
256 | Fix print formatter. | |
257 | ||
e6f65e75 AV |
258 | 2019-05-21 Andre Vieira <andre.simoesdiasvieira@arm.com> |
259 | ||
260 | PR 24460 | |
261 | * elf32-arm.c (get_value_helper): Remove. | |
262 | (elf32_arm_final_link_relocate): Fix branch future relocations. | |
263 | ||
739b5c9c TC |
264 | 2019-05-21 Tamar Christina <tamar.christina@arm.com> |
265 | ||
266 | PR ld/24373 | |
267 | * bfd-in.h (enum erratum_84319_opts): New | |
268 | (bfd_elf64_aarch64_set_options, bfd_elf32_aarch64_set_options): Change | |
269 | int to enum erratum_84319_opts. | |
270 | * bfd-in2.h: Regenerate. | |
271 | * elfnn-aarch64.c (struct elf_aarch64_link_hash_table): Change | |
272 | fix_erratum_843419 to use new enum, remove fix_erratum_843419_adr. | |
273 | (_bfd_aarch64_add_stub_entry_after): Conditionally create erratum stub. | |
274 | (aarch64_size_one_stub): Conditionally size erratum 843419 stubs. | |
275 | (_bfd_aarch64_resize_stubs): Amend comment. | |
276 | (elfNN_aarch64_size_stubs): Don't generate stubs when no workaround | |
277 | requested. | |
278 | (bfd_elfNN_aarch64_set_options): Use new fix_erratum_843419 enum. | |
279 | (_bfd_aarch64_erratum_843419_branch_to_stub): Implement selection of | |
280 | erratum workaround. | |
281 | (clear_erratum_843419_entry): Update erratum conditional. | |
282 | ||
7622049e SKS |
283 | 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com> |
284 | ||
285 | PR ld/24571 | |
286 | * bfd/elf32-avr.c (elf32_avr_relax_section): Adjust range check | |
287 | when computing distance_short_enough. | |
288 | ||
338ba755 SKS |
289 | 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com> |
290 | ||
291 | PR ld/24564 | |
292 | * bfd/elf32-avr.c (avr_relative_distance_considering_wrap_around): | |
293 | Wrap around even if distance equals avr_pc_wrap_around. | |
294 | ||
999b073b NC |
295 | 2019-05-20 Nick Clifton <nickc@redhat.com> |
296 | ||
297 | * po/fr.po: Updated French translation. | |
298 | ||
a7ad558c AV |
299 | 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com> |
300 | ||
301 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add case for Tag_MVE_arch. | |
302 | ||
a2699ef2 AM |
303 | 2019-05-16 Alan Modra <amodra@gmail.com> |
304 | ||
305 | * elf32-arm.c (elf32_arm_write_section): Revert last change. | |
306 | ||
3a1bb98c AM |
307 | 2019-05-15 Alan Modra <amodra@gmail.com> |
308 | ||
309 | * elf32-arm.c (elf32_arm_write_section): Don't leave | |
310 | error case of STM32L4XX_ERRATUM_BRANCH_TO_VENEER with | |
311 | unitialised section contents. | |
312 | ||
37d0d091 JH |
313 | 2019-05-14 Jamey Hicks <jamey.hicks@gmail.com> |
314 | ||
315 | PR 19921 | |
316 | * verilog.c: (VerilogDataWidth): New variable. | |
317 | (verilog_write_record): Emit bytes in VerilogDataWidth bundles. | |
318 | ||
79299211 NC |
319 | 2019-05-08 Nick Clifton <nickc@redhat.com> |
320 | ||
321 | PR 24523 | |
322 | * elf32-m68k.c (elf32_m68k_merge_private_bfd_data): Return TRUE | |
323 | rather than FALSE if encountering a non-ELF file. | |
324 | ||
e1cbf07a AM |
325 | 2019-05-06 Alan Modra <amodra@gmail.com> |
326 | ||
327 | * elf32-pj.c (pj_elf_reloc): Don't report undefined weak as an error. | |
328 | ||
334d91b9 AM |
329 | 2019-05-06 Alan Modra <amodra@gmail.com> |
330 | ||
331 | * reloc.c (BFD_RELOC_PPC64_TPREL16_HIGH, BFD_RELOC_PPC64_TPREL16_HIGHA), | |
332 | (BFD_RELOC_PPC64_DTPREL16_HIGH, BFD_RELOC_PPC64_DTPREL16_HIGHA): | |
333 | Sort before BFD_RELOC_PPC64_DTPREL16_HIGHESTA entry. | |
334 | * libbfd.h: Regenerate. | |
335 | * bfd-in2.h: Regenerate. | |
336 | ||
a288c270 AM |
337 | 2019-05-04 Alan Modra <amodra@gmail.com> |
338 | ||
339 | PR 24511 | |
340 | * syms.c (coff_section_type): Only allow '.', '$' and numeric | |
341 | following the standard section names. | |
342 | (bfd_decode_symclass): Prioritize section flag tests in | |
343 | decode_section_type before name tests in coff_section_type. | |
344 | * plugin.c (bfd_plugin_canonicalize_symtab): Init fake_section | |
345 | and fake_common_section using BFD_FAKE_SECTION. Use "fake" as | |
346 | their names and choose standard .text section flags for | |
347 | fake_section. | |
348 | ||
2cdc1a97 NC |
349 | 2019-05-02 Nick Clifton <nickc@redhat.com> |
350 | ||
351 | PR 24493 | |
352 | * coffcode.h (styp_to_sec_flags): Treat .gnu.debuglink and | |
353 | .gnu.debugaltlink sections as debugging sections. | |
354 | ||
066f4018 AM |
355 | 2019-04-30 Alan Modra <amodra@gmail.com> |
356 | ||
357 | * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add has_gotrel. | |
358 | (struct _ppc64_elf_section_data): Likewise. | |
359 | (ppc64_elf_check_relocs): Set above fields. | |
360 | (ppc64_elf_edit_toc): Add a pass over GOT relocs. | |
361 | (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative | |
362 | when possible. | |
363 | ||
c54f1524 L |
364 | 2019-04-26 H.J. Lu <hongjiu.lu@intel.com> |
365 | ||
366 | PR ld/24486 | |
367 | * elflink.c (elf_link_output_extsym): Don't complain undefined | |
368 | weak dynamic reference. | |
369 | ||
68bb0359 SD |
370 | 2019-04-25 Sudakshina Das <sudi.das@arm.com> |
371 | ||
372 | * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): Remove. | |
373 | (PLT_BTI_TLSDESC_ENTRY_SIZE): Remove. | |
374 | (PLT_PAC_ENTRY_SIZE, PLT_BTI_PAC_ENTRY_SIZE): Remove. | |
375 | (PLT_BTI_SMALL_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): Update. | |
376 | (elfNN_aarch64_small_plt0_pac_entry): Remove. | |
377 | (elfNN_aarch64_small_plt0_bti_pac_entry): Remove. | |
378 | (elfNN_aarch64_small_plt0_bti_entry): Update. | |
379 | (elfNN_aarch64_small_plt_bti_entry): Update. | |
380 | (elfNN_aarch64_small_plt_pac_entry): Update. | |
381 | (elfNN_aarch64_tlsdesc_small_plt_bti_entry): Update. | |
382 | (setup_plt_values): Setup new entries. | |
383 | (elfNN_aarch64_finish_dynamic_sections): Remove size change. | |
384 | (elfNN_aarch64_plt_sym_val): Likewise. | |
385 | ||
79b8e8ab JW |
386 | 2019-04-22 Jim Wilson <jimw@sifive.com> |
387 | ||
388 | * elfnn-riscv.c (PRSTATUS_SIZE) [ARCH_SIZE==32]: Change from 0 to 204. | |
389 | ||
fce97736 AM |
390 | 2019-04-19 Alan Modra <amodra@gmail.com> |
391 | ||
392 | * elf32-s12z.c (elf_backend_can_gc_sections): Don't define | |
393 | ||
9a7f0679 L |
394 | 2019-04-17 H.J. Lu <hongjiu.lu@intel.com> |
395 | ||
396 | * elf64-x86-64.c (elf_x86_64_need_pic): Suggest -fPIE when not | |
397 | building shared object. | |
398 | * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Likewise. | |
399 | ||
4e84a8f8 L |
400 | 2019-04-17 H.J. Lu <hongjiu.lu@intel.com> |
401 | ||
402 | PR ld/24458 | |
403 | * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): Also check x86 | |
404 | linker_def. | |
405 | ||
32c36c3c AV |
406 | 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com> |
407 | ||
408 | * reloc.c (BFD_RELOC_ARM_T32_VLDR_VSTR_OFF_IMM): New internal | |
409 | relocation. | |
410 | * bfd-in2.h: Regenerate. | |
411 | * libbfd.h: Likewise. | |
412 | ||
60f993ce AV |
413 | 2019-04-15 Sudakshina Das <sudi.das@arm.com> |
414 | ||
415 | * reloc.c (BFD_RELOC_ARM_THUMB_LOOP12): New. | |
416 | * bfd-in2.h: Regenerated. | |
417 | * libbfd.h: Regenerated. | |
418 | ||
f6b2b12d AV |
419 | 2019-04-15 Sudakshina Das <sudi.das@arm.com> |
420 | ||
421 | * reloc.c (BFD_RELOC_THUMB_PCREL_BFCSEL): New relocation. | |
422 | * bfd-in2.h: Regenerated. | |
423 | * libbfd.h: Likewise. | |
424 | ||
1889da70 AV |
425 | 2019-04-15 Sudakshina Das <sudi.das@arm.com> |
426 | ||
427 | * reloc.c (BFD_RELOC_ARM_THUMB_BF13): New. | |
428 | * bfd-in2.h: Regenerated. | |
429 | * libbfd.h: Regenerated. | |
430 | * elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF13. | |
431 | (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF13 | |
432 | and R_ARM_THM_BF12 together. | |
433 | (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF13. | |
434 | ||
1caf72a5 AV |
435 | 2019-04-15 Sudakshina Das <sudi.das@arm.com> |
436 | ||
437 | * reloc.c (BFD_RELOC_ARM_THUMB_BF19): New | |
438 | * libbfd.h: Regenerated. | |
439 | * bfd-in2.h: Regenerated. | |
440 | * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF18. | |
441 | (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF19 | |
442 | and R_ARM_THM_BF18 together. | |
443 | (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF19. | |
444 | ||
e5d6e09e AV |
445 | 2019-04-15 Sudakshina Das <sudi.das@arm.com> |
446 | ||
447 | * reloc.c (BFD_RELOC_ARM_THUMB_BF17): New enum. | |
448 | * bfd-in2.h: Regenerated. | |
449 | * libbfd.h: Regenerated. | |
450 | * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF16. | |
451 | (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF17 | |
452 | and R_ARM_THM_BF16 together. | |
453 | (get_value_helper): New reloc helper. | |
454 | (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF16. | |
455 | ||
e12437dc AV |
456 | 2019-04-15 Sudakshina Das <sudi.das@arm.com> |
457 | ||
458 | * reloc.c (BFD_RELOC_THUMB_PCREL_BRANCH5): New enum. | |
459 | * bfd-in2.h: Regenerate. | |
460 | * libbfd.h: Regenerate. | |
461 | ||
031254f2 AV |
462 | 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com> |
463 | ||
464 | * archures.c (bfd_mach_arm_8_1M_MAIN): Define. | |
465 | * bfd-in2.h: Regenerate. | |
466 | * cpu-arm.c (arch_info_struct): Add entry for Armv8.1-M Mainline. | |
467 | * elf32-arm.c (using_thumb_only): Return true for Armv8.1-M Mainline | |
468 | and update assert. | |
469 | (using_thumb2): Likewise. | |
470 | (using_thumb2_bl): Update assert. | |
471 | (arch_has_arm_nop): Likewise. | |
472 | (bfd_arm_get_mach_from_attributes): Add case for Armv8.1-M Mainline. | |
473 | (tag_cpu_arch_combine): Add logic for Armv8.1-M Mainline merging. | |
474 | ||
233a0083 L |
475 | 2019-04-11 H.J. Lu <hongjiu.lu@intel.com> |
476 | ||
477 | * elf-linker-x86.h (elf_x86_cet_report): New. | |
478 | (elf_linker_x86_params): Add cet_report. | |
479 | * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Report | |
480 | missing IBT and SHSTK properties if needed. | |
481 | ||
a0ea3a14 L |
482 | 2019-04-11 H.J. Lu <hongjiu.lu@intel.com> |
483 | ||
ca4e6331 | 484 | PR ld/24436 |
a0ea3a14 L |
485 | * elf-m10300.c (mn10300_elf_check_relocs): Remove BFD_ASSERT of |
486 | "h != NULL". Don't check "h != NULL" before calling. | |
487 | bfd_elf_gc_record_vtentry. | |
488 | * elf32-arm.c (elf32_arm_check_relocs): Likewise. | |
489 | * elf32-bfin.c (bfin_check_relocs): Likewise. | |
490 | * elf32-cris.c (cris_elf_check_relocs): Likewise. | |
491 | * elf32-csky.c (csky_elf_check_relocs): Likewise. | |
492 | * elf32-d10v.c (elf32_d10v_check_relocs): Likewise. | |
493 | * elf32-dlx.c (elf32_dlx_check_relocs): Likewise. | |
494 | * elf32-fr30.c (fr30_elf_check_relocs): Likewise. | |
495 | * elf32-frv.c (elf32_frv_check_relocs): Likewise. | |
496 | * elf32-hppa.c (elf32_hppa_check_relocs): Likewise. | |
497 | * elf32-i386.c (elf_i386_check_relocs): Likewise. | |
498 | * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise. | |
499 | * elf32-m32r.c (m32r_elf_check_relocs): Likewise. | |
500 | * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise. | |
501 | * elf32-m68k.c (elf_m68k_check_relocs): Likewise. | |
502 | * elf32-mcore.c (mcore_elf_check_relocs): Likewise. | |
503 | * elf32-metag.c (elf_metag_check_relocs): Likewise. | |
504 | * elf32-or1k.c (or1k_elf_check_relocs): Likewise. | |
505 | * elf32-ppc.c (ppc_elf_check_relocs): Likewise. | |
506 | * elf32-s390.c (elf_s390_check_relocs): Likewise. | |
507 | * elf32-sh.c (sh_elf_check_relocs): Likewise. | |
508 | * elf32-v850.c (v850_elf_check_relocs): Likewise. | |
509 | * elf32-vax.c (elf_vax_check_relocs): Likewise. | |
510 | * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise. | |
511 | * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise. | |
512 | * elf64-mmix.c (mmix_elf_check_relocs): Likewise. | |
513 | * elf64-ppc.c (ppc64_elf_check_relocs): Likewise. | |
514 | * elf64-s390.c (elf_s390_check_relocs): Likewise. | |
515 | * elf64-x86-64.c (elf_s390_check_relocs): Likewise. | |
516 | * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise. | |
517 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise. | |
518 | * elflink.c (bfd_elf_gc_record_vtinherit): Check for corrupt | |
519 | VTENTRY entry. | |
520 | ||
9bff840e AM |
521 | 2019-04-11 Alan Modra <amodra@gmail.com> |
522 | ||
523 | PR 24435 | |
524 | * elflink.c (elf_link_add_object_symbols): Don't read partial | |
525 | dynamic entries from fuzzed objects. | |
526 | ||
ce12121b TC |
527 | 2019-04-11 Tamar Christina <tamar.christina@arm.com> |
528 | ||
529 | PR ld/24302 | |
530 | * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Don't emit | |
531 | DT_TLSDESC_GOT and DT_TLSDESC_PLT when DF_BIND_NOW. | |
532 | (elfNN_aarch64_finish_dynamic_sections): Don't write PLT if DF_BIND_NOW. | |
533 | ||
b05971a6 MF |
534 | 2019-04-10 Michael Forney <mforney@mforney.org> |
535 | ||
536 | PR 24427 | |
537 | * doc/chew.c (free_words): Correctly free "push_text" strings. | |
538 | ||
3ae61bb6 L |
539 | 2019-04-08 H.J. Lu <hongjiu.lu@intel.com> |
540 | ||
541 | * config.bfd: Remove i[3-7]86-*-kaos* and i[3-7]86-*-chaos targets. | |
542 | ||
5f2a6b85 AM |
543 | 2019-04-08 Alan Modra <amodra@gmail.com> |
544 | ||
545 | * configure.ac (elfxx_x86): Define and use. | |
546 | * configure: Regenerate. | |
547 | ||
5b9c07b2 L |
548 | 2019-04-06 H.J. Lu <hongjiu.lu@intel.com> |
549 | ||
550 | * elf-linker-x86.h: New file. | |
551 | * elf32-i386.c (elf_i386_convert_load_reloc): Use htab->params | |
552 | to get x86-specific linker options. | |
553 | * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Likewise. | |
554 | (elf_x86_64_check_relocs): Likewise. | |
555 | (elf_x86_64_relocate_section): Likewise. | |
556 | (elf_x86_64_link_setup_gnu_properties): Likewise. | |
557 | * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Likewise. | |
558 | (_bfd_x86_elf_link_setup_gnu_properties): Likewise. | |
559 | (_bfd_elf_linker_x86_set_options): New function. | |
560 | * elfxx-x86.h: Include "elf-linker-x86.h". | |
561 | (elf_x86_link_hash_table): Add params. | |
562 | ||
4b24dd1a AM |
563 | 2019-04-03 Alan Modra <amodra@gmail.com> |
564 | ||
565 | * coff-i386.c, * coff-x86_64.c, * coffgen.c, * dwarf2.c, | |
566 | * elf-m10200.c, * elf.c, * elf32-arm.c, * elf32-bfin.c, | |
567 | * elf32-csky.c, * elf32-m32r.c, * elf32-microblaze.c, * elf32-pru.c, | |
568 | * elf32-rx.c, * elf32-xgate.c, * elf64-sparc.c, * elfnn-ia64.c, | |
569 | * elfxx-riscv.c, * elfxx-sparc.c, * linker.c, * mach-o.c, | |
570 | * pe-x86_64.c, * pei-x86_64.c, * plugin.c: Whitespace fixes. | |
571 | ||
87f98bac JW |
572 | 2019-04-02 Jim Wilson <jimw@sifive.com> |
573 | ||
574 | PR 24389 | |
575 | * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Move read of | |
576 | ELF header flags to after check for ELF object file. Loop through | |
577 | sections looking for code sections, if none, then skip ABI checks. | |
578 | ||
ae2b14c7 JW |
579 | 2019-03-30 Andrew Waterman <andrew@sifive.com> |
580 | ||
581 | * elfnn-riscv.c (_bfd_riscv_relax_call): Only check ARCH_SIZE for | |
582 | rd == X_RA case. | |
583 | ||
2487ef07 MF |
584 | 2019-03-29 Max Filippov <jcmvbkbc@gmail.com> |
585 | ||
586 | * elf32-xtensa.c (shrink_dynamic_reloc_sections): Add | |
587 | info->export_dynamic to the conditional. | |
588 | ||
242a1159 AM |
589 | 2019-03-28 Alan Modra <amodra@gmail.com> |
590 | ||
591 | PR 24392 | |
592 | * configure.ac: Invoke AC_CHECK_SIZEOF(int). | |
593 | * configure: Regenerate. | |
594 | * coffgen.c (coff_get_reloc_upper_bound): Replace gcc diagnostic | |
595 | workaround with SIZEOF_LONG vs. SIZEOF_INT check. | |
596 | * elf.c (_bfd_elf_get_reloc_upper_bound): Likewise. | |
597 | * elf64-sparc.c (elf64_sparc_get_reloc_upper_bound): Likewise. | |
598 | * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise. | |
599 | ||
a9f5a551 JW |
600 | 2019-03-21 Jim Wilson <jimw@sifive.com> |
601 | ||
602 | PR 24365 | |
603 | * elfnn-riscv.c (riscv_elf_relocate_section): For STT_SECTION check, | |
604 | verify sym non-NULL before using. Add identical check using h. | |
605 | ||
4e539114 SD |
606 | 2019-03-21 Sudakshina Das <sudi.das@arm.com> |
607 | ||
608 | * elf-bfd.h (struct elf_backend_data): Add argument to | |
609 | merge_gnu_properties. | |
610 | * elf-properties.c (elf_merge_gnu_properties): Add argument to | |
611 | itself and while calling bed->merge_gnu_properties. | |
612 | (elf_merge_gnu_property_list): Update the calls for | |
613 | elf_merge_gnu_properties. | |
614 | * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update handling | |
615 | of --force-bti warning and add argument. | |
616 | * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Add | |
617 | warning. | |
618 | * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Add argument. | |
619 | * elfxx-x86.h (_bfd_x86_elf_merge_gnu_properties): Likewise in | |
620 | declaration. | |
621 | ||
acde6c6b SD |
622 | 2019-03-20 Sudakshina Das <sudi.das@arm.com> |
623 | ||
624 | * elfxx-aarch64.c (_bfd_aarch64_elf_link_fixup_gnu_properties): Define. | |
625 | * elfxx-aarch64.h (_bfd_aarch64_elf_link_fixup_gnu_properties): Declare. | |
626 | (elf_backend_fixup_gnu_properties): Define for AArch64. | |
627 | ||
8cd1fe1b AM |
628 | 2019-03-18 Alan Modra <amodra@gmail.com> |
629 | ||
630 | PR 24355 | |
631 | * elf32-ppc.c (ppc_finish_symbols): Don't call write_glink_stub | |
632 | for local iplt syms with ent->plt.offset == -1. Remove ineffective | |
633 | attempt at writing glink stubs only once. | |
634 | ||
6835821b AM |
635 | 2019-03-16 Alan Modra <amodra@gmail.com> |
636 | ||
637 | PR 24337 | |
638 | * elf.c (_bfd_elf_rela_local_sym): Revert last change. | |
639 | (_bfd_elf_rel_local_sym): Likewise. | |
640 | * elflink.c (elf_link_input_bfd): Use bfd_und_section for | |
641 | section of symbols with unrecognized shndx. | |
642 | ||
2219ae0b L |
643 | 2019-03-15 H.J. Lu <hongjiu.lu@intel.com> |
644 | ||
645 | PR ld/24267 | |
646 | * coffgen.c (_bfd_coff_section_already_linked): Skip discarded | |
647 | section. | |
648 | * cofflink.c (coff_link_add_symbols): Check for symbols defined | |
649 | in discarded section. | |
650 | ||
fe3fef62 AM |
651 | 2019-03-15 Alan Modra <amodra@gmail.com> |
652 | ||
653 | PR 24339 | |
654 | * elflink.c (elf_link_add_object_symbols): Bail out on a local | |
655 | symbol after globals if elf_bad_symtab is not set. | |
656 | ||
1ff31e13 AM |
657 | 2019-03-15 Alan Modra <amodra@gmail.com> |
658 | ||
659 | PR 24337 | |
660 | * elf.c (_bfd_elf_rela_local_sym): Don't segfault on NULL sec. | |
661 | (_bfd_elf_rel_local_sym): Likewise. | |
662 | ||
f55b1e32 AM |
663 | 2019-03-15 Alan Modra <amodra@gmail.com> |
664 | ||
665 | PR 24336 | |
666 | * elflink.c (elf_link_read_relocs_from_section): Handle fuzzed | |
667 | object files with sh_size not a multiple of sh_entsize. | |
668 | ||
da0d12d2 L |
669 | 2019-03-15 H.J. Lu <hongjiu.lu@intel.com> |
670 | ||
418d4036 L |
671 | PR ld/24338 |
672 | * elf64-x86-64.c (elf_x86_64_relocate_section): Check for corrupt | |
673 | input with bad relocation. | |
674 | ||
675 | 22019-03-15 H.J. Lu <hongjiu.lu@intel.com> | |
676 | ||
da0d12d2 L |
677 | * elf64-x86-64.c (elf_x86_64_relocate_section): Re-indent. |
678 | ||
d7f848c3 NC |
679 | 2019-03-14 Nick Clifton <nickc@redhat.com> |
680 | ||
681 | PR 24334 | |
682 | * dwarf2.c (struct dwarf2_debug): Add sec_vma_count field. | |
683 | (save_section_vma): Initialise field to the number of entries in | |
684 | the sec_vma table. | |
685 | (section_vma_same): Check that the number of entries in the | |
686 | sec_vma table matches the number of sections in the bfd. | |
687 | ||
6cc71b82 NC |
688 | 2019-03-14 Nick Clifton <nickc@redhat.com> |
689 | ||
690 | PR 24333 | |
691 | * elflink.c (_bfd_elf_add_default_symbol): Add a check for a NULL | |
692 | section owner pointer when adding the default symbol. | |
693 | ||
be22c732 NC |
694 | 2019-03-14 Nick Clifton <nickc@redhat.com> |
695 | ||
696 | PR 24332 | |
697 | * elflink.c (elf_link_add_object_symbols): Add new local variable | |
698 | extversym_end. Initialise it to point to the end of the version | |
699 | symbol table, if present. Check it when initialising and updating | |
700 | the ever pointer. | |
701 | ||
1dbade74 SD |
702 | 2019-03-13 Sudakshina Das <sudi.das@arm.com> |
703 | ||
704 | * elfnn-aarch64.c (PLT_PAC_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): New. | |
705 | (PLT_BTI_PAC_ENTRY_SIZE, PLT_BTI_PAC_SMALL_ENTRY_SIZE): New. | |
706 | (setup_plt_values): Account for PAC or PAC and BTI enabled PLTs. | |
707 | (elfNN_aarch64_size_dynamic_sections): Add checks for PLT_BTI_PAC | |
708 | and PLT_PAC_PLT. | |
709 | (elfNN_aarch64_finish_dynamic_sections): Account for PLT_BTI_PAC. | |
710 | (get_plt_type): Add case for DT_AARCH64_PAC_PLT. | |
711 | (elfNN_aarch64_plt_sym_val): Add cases for PLT_BTI_PAC and PLT_PAC. | |
712 | ||
37c18eed SD |
713 | 2019-03-13 Sudakshina Das <sudi.das@arm.com> |
714 | Szabolcs Nagy <szabolcs.nagy@arm.com> | |
715 | ||
716 | * bfd-in.h (aarch64_plt_type, aarch64_enable_bti_type): New. | |
717 | (aarch64_bti_pac_info): New. | |
718 | (bfd_elf64_aarch64_set_options): Add aarch64_bti_pac_info argument. | |
719 | (bfd_elf32_aarch64_set_options): Likewise. | |
720 | * bfd-in2.h: Regenerate | |
721 | * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): New. | |
722 | (PLT_BTI_SMALL_ENTRY_SIZE, PLT_BTI_TLSDESC_ENTRY_SIZE): New. | |
723 | (elfNN_aarch64_small_plt0_bti_entry): New. | |
724 | (elfNN_aarch64_small_plt_bti_entry): New. | |
725 | (elfNN_aarch64_tlsdesc_small_plt_bti_entry): New. | |
726 | (elf_aarch64_obj_tdata): Add no_bti_warn and plt_type fields. | |
727 | (elf_aarch64_link_hash_table): Add plt0_entry, plt_entry and | |
728 | tlsdesc_plt_entry_size fields. | |
729 | (elfNN_aarch64_link_hash_table_create): Initialise the new fields. | |
730 | (setup_plt_values): New helper function. | |
731 | (bfd_elfNN_aarch64_set_options): Use new bp_info to set plt sizes and | |
732 | bti enable type. | |
733 | (elfNN_aarch64_allocate_dynrelocs): Use new size members instead of | |
734 | fixed macros. | |
735 | (elfNN_aarch64_size_dynamic_sections): Likewise and add checks. | |
736 | (elfNN_aarch64_create_small_pltn_entry): Use new generic pointers | |
737 | to plt stubs instead of fixed ones and update filling them according | |
738 | to the need for bti. | |
739 | (elfNN_aarch64_init_small_plt0_entry): Likewise. | |
740 | (elfNN_aarch64_finish_dynamic_sections): Likewise. | |
741 | (get_plt_type, elfNN_aarch64_get_synthetic_symtab): New. | |
742 | (elfNN_aarch64_plt_sym_val): Update size accordingly. | |
743 | (elfNN_aarch64_link_setup_gnu_properties): Set up plts if BTI GNU NOTE | |
744 | is set. | |
745 | (bfd_elfNN_get_synthetic_symtab): Define. | |
746 | (elfNN_aarch64_merge_gnu_properties): Give out warning with --force-bti | |
747 | and mising BTI NOTE SECTION. | |
748 | ||
749 | ||
cd702818 SD |
750 | 2019-03-13 Sudakshina Das <sudi.das@arm.com> |
751 | ||
752 | * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Exclude | |
753 | linker created inputs from merge. | |
754 | * elfnn-aarch64.c (struct elf_aarch64_obj_tdata): Add field for | |
755 | GNU_PROPERTY_AARCH64_FEATURE_1_AND properties. | |
756 | (elfNN_aarch64_link_setup_gnu_properties): New. | |
757 | (elfNN_aarch64_merge_gnu_properties): New. | |
758 | (elf_backend_setup_gnu_properties): Define for AArch64. | |
759 | (elf_backend_merge_gnu_properties): Likewise. | |
760 | * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Define. | |
761 | (_bfd_aarch64_elf_parse_gnu_properties): Define. | |
762 | (_bfd_aarch64_elf_merge_gnu_properties): Define. | |
763 | * elfxx-aarch64.h (_bfd_aarch64_elf_link_setup_gnu_properties): Declare. | |
764 | (_bfd_aarch64_elf_parse_gnu_properties): Declare. | |
765 | (_bfd_aarch64_elf_merge_gnu_properties): Declare. | |
766 | (elf_backend_parse_gnu_properties): Define for AArch64. | |
767 | ||
44b27f95 L |
768 | 2019-03-13 H.J. Lu <hongjiu.lu@intel.com> |
769 | ||
770 | PR ld/24322 | |
771 | * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Properly | |
772 | merge GNU_PROPERTY_X86_FEATURE_1_[IBT|SHSTK]. | |
773 | ||
7a6e0d89 AM |
774 | 2019-03-12 Alan Modra <amodra@gmail.com> |
775 | ||
776 | * coffcode.h (buy_and_read): Delete unnecessary forward decl. Add | |
777 | nmemb parameter. Use bfd_alloc2. | |
778 | (coff_slurp_line_table): Use bfd_alloc2. Update buy_and_read calls. | |
779 | Delete assertion. | |
780 | (coff_slurp_symbol_table): Use bfd_alloc2 and bfd_zalloc2. | |
781 | (coff_slurp_reloc_table): Use bfd_alloc2. Update buy_and_read calls. | |
782 | * coffgen.c (coff_get_reloc_upper_bound): Ensure size calculation | |
783 | doesn't overflow. | |
784 | * elf.c (bfd_section_from_shdr): Use bfd_zalloc2. Style fix. | |
785 | (assign_section_numbers): Style fix. | |
786 | (swap_out_syms): Use bfd_malloc2. | |
787 | (_bfd_elf_get_reloc_upper_bound): Ensure size calculation doesn't | |
788 | overflow. | |
789 | (_bfd_elf_make_empty_symbol): Style fix. | |
790 | (elfobj_grok_stapsdt_note_1): Formatting. | |
791 | * elfcode.h (elf_object_p): Use bfd_alloc2. | |
792 | (elf_write_relocs, elf_write_shdrs_and_ehdr): Likewise. | |
793 | (elf_slurp_symbol_table): Use bfd_zalloc2. | |
794 | (elf_slurp_reloc_table): Use bfd_alloc2. | |
795 | (_bfd_elf_bfd_from_remote_memory): Use bfd_malloc2. | |
796 | * elf64-sparc (elf64_sparc_get_reloc_upper_bound): Ensure | |
797 | size calculation doesn't overflow. | |
798 | (elf64_sparc_get_dynamic_reloc_upper_bound): Likewise. | |
799 | * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise. | |
800 | * pdp11.c (get_reloc_upper_bound): Copy aoutx.h version. | |
801 | ||
ebd2263b AM |
802 | 2019-03-08 Alan Modra <amodra@gmail.com> |
803 | ||
804 | PR 24311 | |
805 | * merge.c (merge_strings): Return secinfo. Don't pad section | |
806 | to alignment here. | |
807 | (_bfd_merge_sections): Pad section to alignment here, if input | |
808 | sections contributing to merged output all pad to alignment. | |
809 | Formatting. | |
810 | ||
219d6836 NC |
811 | 2019-03-06 Nick Clifton <nickc@redhat.com> |
812 | ||
813 | * dwarf2.c (_bfd_dwarf2_find_symbol_bias): Check for a NULL symbol | |
814 | table pointer. | |
815 | * coffgen.c (coff_find_nearest_line_with_names): Do not call | |
816 | _bfd_dwarf2_find_symbol_bias if there is no symbol table available. | |
817 | ||
24801b15 AK |
818 | 2019-03-01 Andreas Krebbel <krebbel@linux.ibm.com> |
819 | ||
820 | This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335. | |
821 | 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com> | |
822 | ||
823 | PR 20113 | |
824 | * elf32-s390.c (allocate_dynrelocs): Update comment. | |
825 | ||
4ffd2909 TC |
826 | 2019-02-28 Tamar Christina <tamar.christina@arm.com> |
827 | ||
828 | * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Correct CIE parse. | |
829 | ||
eed5def8 NC |
830 | 2019-02-28 Nick Clifton <nickc@redhat.com> |
831 | ||
832 | PR 24273 | |
833 | * elf.c (bfd_elf_string_from_elf_section): Check for a string | |
834 | section that is not NUL terminated. | |
835 | ||
5cfe428c L |
836 | 2019-02-27 H.J. Lu <hongjiu.lu@intel.com> |
837 | ||
838 | PR ld/24276 | |
839 | * elf64-x86-64.c (elf_x86_64_check_relocs): Skip symbol defined | |
840 | by linker when checking copy reloc on protected symbol. | |
841 | ||
f616c36b AM |
842 | 2019-02-24 Alan Modra <amodra@gmail.com> |
843 | ||
844 | PR 24144 | |
845 | * pdp11.c (set_section_contents): Revert 2015-02-24 change. | |
846 | ||
eed62915 MF |
847 | 2019-02-20 Eric Tsai <erictsai@cadence.com> |
848 | ||
849 | * elf32-xtensa.c (is_resolvable_asm_expansion): Scan output | |
850 | sections between the call site and call destination and adjust | |
851 | call distance by the largest alignment. | |
852 | ||
e6c3b5bf AH |
853 | 2019-02-20 Alan Hayward <alan.hayward@arm.com> |
854 | ||
855 | * elf-bfd.h (elfcore_write_aarch_pauth): Add declaration. | |
856 | * elf.c (elfcore_grok_aarch_pauth): New function. | |
857 | (elfcore_grok_note): Check for NT_ARM_PAC_MASK. | |
858 | (elfcore_write_aarch_pauth): New function. | |
859 | (elfcore_write_register_note): Check for AArch64 pauth section. | |
860 | ||
34d75fb5 AM |
861 | 2019-02-20 Alan Modra <amodra@gmail.com> |
862 | ||
863 | PR 24225 | |
864 | * elf32-nios2.c (nios2_elf32_relocate_section): Check asprintf | |
865 | return value. | |
866 | ||
edd01d07 MR |
867 | 2019-02-20 Michael Roitzsch <reactorcontrol@icloud.com> |
868 | ||
869 | * configure.ac (SHARED_LIBADD): Add -liberty -lintl for all | |
870 | Darwin hosts, not just or1k. | |
871 | * configure: Regenerate. | |
872 | ||
8abac803 AM |
873 | 2019-02-20 Alan Modra <amodra@gmail.com> |
874 | ||
875 | PR 24236 | |
876 | * archive64.c (_bfd_archive_64_bit_slurp_armap): Move code adding | |
877 | sentinel NUL to string buffer nearer to loop where it is used. | |
878 | Don't go past sentinel when scanning strings, and don't write | |
879 | NUL again. | |
880 | * archive.c (do_slurp_coff_armap): Simplify string handling to | |
881 | archive64.c style. | |
882 | ||
179f2db0 AM |
883 | 2019-02-19 Alan Modra <amodra@gmail.com> |
884 | ||
885 | PR 24235 | |
886 | * pei-x86_64.c (pex64_bfd_print_pdata_section): Correct checks | |
887 | attempting to prevent read past end of section. | |
888 | ||
a31b8bd9 AM |
889 | 2019-02-18 Alan Modra <amodra@gmail.com> |
890 | ||
891 | PR 24225 | |
892 | * elf32-nios2.c (nios2_elf32_relocate_section): Use asprintf and | |
893 | PRIx64 to generate warning messages. Print local sym names too. | |
894 | ||
a0e90a73 CZ |
895 | 2019-02-09 Vineet Gupta <vgupta@synopsys.com> |
896 | ||
897 | * elf32-arc (INIT_SYM_STRING): Delete. | |
898 | (FINI_SYM_STRING): Likewise. | |
899 | (init_str): Likewise. | |
900 | (fini_str): Likewise. | |
901 | ||
482f3505 AM |
902 | 2019-02-08 Alan Modra <amodra@gmail.com> |
903 | ||
904 | * elf32-ppc.c (ppc_elf_relocate_section): Add %X to "unsupported | |
905 | for bss-plt" warning to make it an error. | |
906 | ||
b2abe1bd EB |
907 | 2019-02-07 Eric Botcazou <ebotcazou@adacore.com> |
908 | ||
909 | PR ld/18841 | |
910 | * elf32-sparc.c (elf32_sparc_reloc_type_class): Return | |
911 | reloc_class_ifunc for ifunc symbols. | |
912 | * elf64-sparc.c (elf64_sparc_reloc_type_class): Likewise. | |
913 | ||
68a09132 EB |
914 | 2019-02-07 Eric Botcazou <ebotcazou@adacore.com> |
915 | ||
916 | * elf32-visium.c (visium_elf_howto_parity_reloc): Minor tweak. | |
917 | <R_VISIUM_PC16>: Use explicit range test to detect an overflow. | |
918 | ||
2012bf01 NC |
919 | 2019-02-07 Nick Clifton <nickc@redhat.com> |
920 | ||
921 | * config.bfd: Move the powerpc-lynxos and powerpc-windiss targets | |
922 | into the definitely obsolete list. | |
923 | ||
83924b38 L |
924 | 2019-02-05 H.J. Lu <hongjiu.lu@intel.com> |
925 | ||
926 | PR ld/24151 | |
927 | * elf64-x86-64.c (elf_x86_64_need_pic): Check | |
928 | SYMBOL_DEFINED_NON_SHARED_P instead of def_regular. | |
929 | (elf_x86_64_relocate_section): Move PIC check for PC-relative | |
930 | relocations to ... | |
931 | (elf_x86_64_check_relocs): Here. | |
932 | (elf_x86_64_finish_dynamic_symbol): Use SYMBOL_DEFINED_NON_SHARED_P | |
933 | to check if a symbol is defined in a non-shared object. | |
934 | * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): New. | |
935 | ||
453f8e1e SDJ |
936 | 2019-01-21 Sergio Durigan Junior <sergiodj@redhat.com> |
937 | ||
938 | * elf32-arm.c (elf32_arm_final_link_relocate): Use 'llabs' instead | |
939 | of 'labs' (and fix GCC warning). | |
940 | ||
9ed1348c NC |
941 | 2019-01-25 Nick Clifton <nickc@redhat.com> |
942 | ||
943 | * po/ru.po: Updated Russian translation. | |
944 | ||
d9938630 NC |
945 | 2019-01-23 Nick Clifton <nickc@redhat.com> |
946 | ||
947 | * po/fr.po: Updated French translation. | |
948 | ||
375cd423 NC |
949 | 2019-01-21 Nick Clifton <nickc@redhat.com> |
950 | ||
951 | * po/pt.po: Updated Portuguese translation. | |
952 | * po/uk.po: Updated Ukranian translation. | |
953 | ||
acef8081 YC |
954 | 2019-01-21 Yuri Chornoivan <yurchor@ukr.net> |
955 | ||
956 | PR 24108 | |
957 | * elf32-nds32.c (nds32_relocate_section): Add space between words | |
958 | in error message. | |
959 | * elfnn-riscv.c (riscv_version_mismatch): Fix spelling mistake in | |
960 | error message. | |
961 | (riscv_i_or_e_p): Likewise. | |
962 | (riscv_merge_arch_attr_info): Likewise. | |
963 | ||
f48dfe41 NC |
964 | 2019-01-19 Nick Clifton <nickc@redhat.com> |
965 | ||
966 | * version.m4: Reset to 2.32.51 | |
967 | * configure: Regenerate. | |
968 | * po/bfd.pot: Regenerate. | |
969 | ||
f974f26c NC |
970 | 2018-06-24 Nick Clifton <nickc@redhat.com> |
971 | ||
972 | 2.32 branch created. | |
973 | ||
a4bf3d07 JW |
974 | 2019-01-16 Kito Cheng <kito@andestech.com> |
975 | ||
976 | * elf-attrs.c (vendor_obj_attr_size): Return 0 if size is 0 even | |
977 | for OBJ_ATTR_PROC. | |
978 | ||
2dc8dd17 JW |
979 | 2019-01-16 Kito Cheng <kito@andestech.com> |
980 | Nelson Chu <nelson@andestech.com> | |
981 | ||
7d7a7d7c JW |
982 | * elfnn-riscv.c (in_subsets): New. |
983 | (out_subsets): Likewise. | |
984 | (merged_subsets): Likewise. | |
985 | (riscv_std_ext_p): Likewise. | |
986 | (riscv_non_std_ext_p): Likewise. | |
987 | (riscv_std_sv_ext_p): Likewise. | |
988 | (riscv_non_std_sv_ext_p): Likewise. | |
989 | (riscv_version_mismatch): Likewise. | |
990 | (riscv_i_or_e_p): Likewise. | |
991 | (riscv_merge_std_ext): Likewise. | |
992 | (riscv_merge_non_std_and_sv_ext): Likewise. | |
993 | (riscv_merge_arch_attr_info): Likewise. | |
994 | (riscv_merge_attributes): Likewise. | |
995 | (_bfd_riscv_elf_merge_private_bfd_data): Merge attribute. | |
996 | ||
2dc8dd17 JW |
997 | * elfnn-riscv.c (riscv_elf_obj_attrs_arg_type): New. |
998 | (elf_backend_obj_attrs_vendor): Define. | |
999 | (elf_backend_obj_attrs_section_type): Likewise. | |
1000 | (elf_backend_obj_attrs_section): Likewise. | |
1001 | (elf_backend_obj_attrs_arg_type): Define as | |
1002 | riscv_elf_obj_attrs_arg_type. | |
1003 | * elfxx-riscv.c (riscv_estimate_digit): New. | |
1004 | (riscv_estimate_arch_strlen1): Likewise. | |
1005 | (riscv_estimate_arch_strlen): Likewise. | |
1006 | (riscv_arch_str1): Likewise. | |
1007 | (riscv_arch_str): Likewise. | |
1008 | * elfxx-riscv.h (riscv_arch_str): Declare. | |
1009 | ||
d5dcaf1b JD |
1010 | 2019-01-14 John Darrington <john@darrington.wattle.id.au> |
1011 | ||
1012 | * bfd-in2.h [BFD_RELOC_S12Z_OPR]: New reloc. | |
1013 | * libbfd.h: regen. | |
1014 | * elf32-s12z.c (eld_s12z_howto_table): R_S12Z_OPR takes non zero | |
1015 | source field. (md_apply_fix): Apply final fix | |
1016 | to BFD_RELOC_S12Z_OPR. | |
1017 | * reloc.c[BFD_RELOC_S12Z_OPR]: New reloc. | |
1018 | ||
5a12586d MT |
1019 | 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com> |
1020 | ||
f466c305 | 1021 | PR 20113 |
5a12586d MT |
1022 | * elf32-s390.c (allocate_dynrelocs): Update comment. |
1023 | ||
3107326d AP |
1024 | 2019-01-09 Andrew Paprocki <andrew@ishiboo.com> |
1025 | ||
1026 | * warning.m4: Adjust egrep pattern for non-GNU compilers. | |
1027 | * configure: Regenerate. | |
1028 | ||
a9859e01 AM |
1029 | 2019-01-08 Alan Modra <amodra@gmail.com> |
1030 | ||
1031 | PR 23699 | |
1032 | PR 24065 | |
1033 | * ihex.c (ihex_write_object_contents): Properly check 32-bit | |
1034 | address range. | |
1035 | ||
c8c89dac YS |
1036 | 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp> |
1037 | ||
1038 | * bfd/archures.c: Add bfd_mach_rx_v2 and bfd_mach_rx_v3. | |
1039 | * bfd/bfd-in2.h: Regenerate. | |
1040 | * bfd/cpu-rx.c (arch_info_struct): Add RXv2 and RXv3 entry. | |
1041 | * bfd/elf32-rx.c (elf32_rx_machine): Add RXv2 and RXv3 support. | |
1042 | ||
d9858c37 LX |
1043 | 2019-01-04 Lifang Xia <lifang_xia@c-sky.com> |
1044 | ||
1045 | * config.bfd (csky-*-elf* | csky-*-linux*): Modify the csky | |
1046 | default target, little endian target is more suitable. | |
1047 | ||
677bd4c6 AM |
1048 | 2019-01-04 Alan Modra <amodra@gmail.com> |
1049 | ||
1050 | PR 24061 | |
1051 | PR 21786 | |
1052 | * coff-rs6000.c (GET_VALUE_IN_FIELD): Add base parameter and | |
1053 | adjust all callers. | |
1054 | (EQ_VALUE_IN_FIELD): Likewise. | |
1055 | * coff64-rs6000.c (GET_VALUE_IN_FIELD): Likewise. | |
1056 | ||
82704155 AM |
1057 | 2019-01-01 Alan Modra <amodra@gmail.com> |
1058 | ||
1059 | Update year range in copyright notice of all files. | |
1060 | ||
d5c04e1b | 1061 | For older changes see ChangeLog-2018 |
3499769a | 1062 | \f |
d5c04e1b | 1063 | Copyright (C) 2019 Free Software Foundation, Inc. |
3499769a AM |
1064 | |
1065 | Copying and distribution of this file, with or without modification, | |
1066 | are permitted in any medium without royalty provided the copyright | |
1067 | notice and this notice are preserved. | |
1068 | ||
1069 | Local Variables: | |
1070 | mode: change-log | |
1071 | left-margin: 8 | |
1072 | fill-column: 74 | |
1073 | version-control: never | |
1074 | End: |