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