Commit | Line | Data |
---|---|---|
64b2d4a0 TT |
1 | 2019-09-11 Tom Tromey <tom@tromey.com> |
2 | ||
3 | * opncls.c (bfd_set_filename): New function. | |
4 | * bfd-in2.h: Regenerate. | |
5 | ||
cb7f4b29 AM |
6 | 2019-09-11 Alan Modra <amodra@gmail.com> |
7 | ||
8 | * targets.c (struct bfd_target): Add _bfd_group_name. | |
9 | (BFD_JUMP_TABLE): Likewise. | |
10 | * coffgen.c (bfd_coff_group_name): New function. | |
11 | * elf.c (bfd_elf_group_name): New function. | |
12 | * linker.c (_bfd_nolink_bfd_group_name): New function. | |
13 | * section.c (bfd_generic_group_name): New function. | |
14 | * elf-bfd.h (bfd_elf_group_name): Declare. | |
15 | * libbfd-in.h (_bfd_nolink_bfd_group_name): Declare. | |
16 | * libcoff-in.h (bfd_coff_group_name): Declare. | |
17 | * aout-target.h (MY_bfd_group_name): Define. | |
18 | * aout-tic30.c (MY_bfd_group_name): Define. | |
19 | * bfd.c (bfd_group_name): Define. | |
20 | * binary.c (binary_bfd_group_name): Define. | |
21 | * coff-alpha.c (_bfd_ecoff_bfd_group_name): Define. | |
22 | * coff-mips.c (_bfd_ecoff_bfd_group_name): Define. | |
23 | * coff-rs6000.c (_bfd_xcoff_bfd_group_name): Define. | |
24 | * coffcode.h (coff_bfd_group_name): Define. | |
25 | * elfxx-target.h (bfd_elfNN_bfd_group_name): Define. | |
26 | * i386msdos.c (msdos_bfd_group_name): Define. | |
27 | * ihex.c (ihex_bfd_group_name): Define. | |
28 | * mach-o-target.c (bfd_mach_o_bfd_group_name): Define. | |
29 | * mmo.c (mmo_bfd_group_name): Define. | |
30 | * pef.c (bfd_pef_bfd_group_name): Define. | |
31 | * plugin.c (bfd_plugin_bfd_group_name): Define. | |
32 | * ppcboot.c (ppcboot_bfd_group_name): Define. | |
33 | * som.c (som_bfd_group_name): Define. | |
34 | * srec.c (srec_bfd_group_name): Define. | |
35 | * tekhex.c (tekhex_bfd_group_name): Define. | |
36 | * verilog.c (verilog_bfd_group_name): Define. | |
37 | * vms-alpha.c (vms_bfd_group_name, alpha_vms_bfd_group_name): Define. | |
38 | * xsym.c (bfd_sym_bfd_group_name): Define. | |
39 | * coff64-rs6000.c (rs6000_xcoff64_vec): Init new field. | |
40 | (rs6000_xcoff64_aix_vec): Likewise. | |
41 | * bfd-in2.h: Regenerate. | |
42 | * libbfd.h: Regenerate. | |
43 | * libcoff.h: Regenerate. | |
44 | ||
aebcfb76 NC |
45 | 2019-09-10 Nick Clifton <nickc@redhat.com> |
46 | ||
47 | PR 24907 | |
48 | * archures.c (bfd_arch_info_type): Add max_reloc_offset_into_insn | |
49 | field. | |
50 | (bfd_default_arch_struct): Initialise the new field. | |
51 | * bfd-in2.h: Regenerate. | |
52 | * cpu-aarch64.c: Initialise the new field. | |
53 | * cpu-alpha.c: Likewise. | |
54 | * cpu-arc.c: Likewise. | |
55 | * cpu-arm.c: Likewise. | |
56 | * cpu-avr.c: Likewise. | |
57 | * cpu-bfin.c: Likewise. | |
58 | * cpu-bpf.c: Likewise. | |
59 | * cpu-cr16.c: Likewise. | |
60 | * cpu-cr16c.c: Likewise. | |
61 | * cpu-cris.c: Likewise. | |
62 | * cpu-crx.c: Likewise. | |
63 | * cpu-csky.c: Likewise. | |
64 | * cpu-d10v.c: Likewise. | |
65 | * cpu-d30v.c: Likewise. | |
66 | * cpu-dlx.c: Likewise. | |
67 | * cpu-epiphany.c: Likewise. | |
68 | * cpu-fr30.c: Likewise. | |
69 | * cpu-frv.c: Likewise. | |
70 | * cpu-ft32.c: Likewise. | |
71 | * cpu-h8300.c: Likewise. | |
72 | * cpu-hppa.c: Likewise. | |
73 | * cpu-i386.c: Likewise. | |
74 | * cpu-ia64.c: Likewise. | |
75 | * cpu-iamcu.c: Likewise. | |
76 | * cpu-ip2k.c: Likewise. | |
77 | * cpu-iq2000.c: Likewise. | |
78 | * cpu-k1om.c: Likewise. | |
79 | * cpu-l1om.c: Likewise. | |
80 | * cpu-lm32.c: Likewise. | |
81 | * cpu-m10200.c: Likewise. | |
82 | * cpu-m10300.c: Likewise. | |
83 | * cpu-m32c.c: Likewise. | |
84 | * cpu-m32r.c: Likewise. | |
85 | * cpu-m68hc11.c: Likewise. | |
86 | * cpu-m68hc12.c: Likewise. | |
87 | * cpu-m68k.c: Likewise. | |
88 | * cpu-m9s12x.c: Likewise. | |
89 | * cpu-m9s12xg.c: Likewise. | |
90 | * cpu-mcore.c: Likewise. | |
91 | * cpu-mep.c: Likewise. | |
92 | * cpu-metag.c: Likewise. | |
93 | * cpu-microblaze.c: Likewise. | |
94 | * cpu-mips.c: Likewise. | |
95 | * cpu-mmix.c: Likewise. | |
96 | * cpu-moxie.c: Likewise. | |
97 | * cpu-msp430.c: Likewise. | |
98 | * cpu-mt.c: Likewise. | |
99 | * cpu-nds32.c: Likewise. | |
100 | * cpu-nfp.c: Likewise. | |
101 | * cpu-nios2.c: Likewise. | |
102 | * cpu-ns32k.c: Likewise. | |
103 | * cpu-or1k.c: Likewise. | |
104 | * cpu-pdp11.c: Likewise. | |
105 | * cpu-pj.c: Likewise. | |
106 | * cpu-plugin.c: Likewise. | |
107 | * cpu-powerpc.c: Likewise. | |
108 | * cpu-pru.c: Likewise. | |
109 | * cpu-riscv.c: Likewise. | |
110 | * cpu-rl78.c: Likewise. | |
111 | * cpu-rs6000.c: Likewise. | |
112 | * cpu-rx.c: Likewise. | |
113 | * cpu-s12z.c: Likewise. | |
114 | * cpu-s390.c: Likewise. | |
115 | * cpu-score.c: Likewise. | |
116 | * cpu-sh.c: Likewise. | |
117 | * cpu-sparc.c: Likewise. | |
118 | * cpu-spu.c: Likewise. | |
119 | * cpu-tic30.c: Likewise. | |
120 | * cpu-tic4x.c: Likewise. | |
121 | * cpu-tic54x.c: Likewise. | |
122 | * cpu-tic6x.c: Likewise. | |
123 | * cpu-tic80.c: Likewise. | |
124 | * cpu-tilegx.c: Likewise. | |
125 | * cpu-tilepro.c: Likewise. | |
126 | * cpu-v850.c: Likewise. | |
127 | * cpu-v850_rh850.c: Likewise. | |
128 | * cpu-vax.c: Likewise. | |
129 | * cpu-visium.c: Likewise. | |
130 | * cpu-wasm32.c: Likewise. | |
131 | * cpu-xc16x.c: Likewise. | |
132 | * cpu-xgate.c: Likewise. | |
133 | * cpu-xstormy16.c: Likewise. | |
134 | * cpu-xtensa.c: Likewise. | |
135 | * cpu-z80.c: Likewise. | |
136 | * cpu-z8k.c: Likewise. | |
137 | ||
60391a25 PB |
138 | 2019-09-09 Phil Blundell <pb@pbcl.net> |
139 | ||
140 | binutils 2.33 branch created. | |
141 | ||
b16c44de AM |
142 | 2019-09-06 Alan Modra <amodra@gmail.com> |
143 | ||
144 | * aout-target.h (object_p): Formatting. | |
145 | * bfd-in.h (bfd_get_filename): Don't cast to char*. | |
146 | * corefile.c (generic_core_file_matches_executable_p): Constify | |
147 | variables and remove cast. | |
148 | * bfd-in2.h: Regenerate. | |
149 | ||
133a1f60 AM |
150 | 2019-09-05 Alan Modra <amodra@gmail.com> |
151 | ||
152 | * elf64-ppc.c (ppc64_elf_check_relocs): Interpret an addend in | |
153 | GOT_PCREL and PLT_PCREL relocs as affecting the value stored | |
154 | in the GOT/PLT entry rather than affecting the offset to that | |
155 | GOI/PLT entry. | |
156 | (ppc64_elf_edit_toc, ppc64_elf_relocate_section): Likewise. | |
157 | ||
77486630 AM |
158 | 2019-09-05 Alan Modra <amodra@gmail.com> |
159 | ||
160 | * elf64-ppc.c (xlate_pcrel_opt): Handle prefix loads and stores | |
161 | in second instruction. | |
162 | (ppc64_elf_relocate_section): Likewise. | |
163 | ||
89bdc77e AM |
164 | 2019-09-05 Alan Modra <amodra@gmail.com> |
165 | ||
166 | PR 24955 | |
167 | * libbfd-in.h (bfd_strdup): New inline function. | |
168 | * archive.c (_bfd_get_elt_at_filepos): Use bfd_strdup. Close | |
169 | bfd on error. | |
170 | * elfcode.h (_bfd_elf_bfd_from_remote_memory): Use bfd_strdup. | |
171 | * opncls.c (bfd_fopen): Use bfd_strdup. Close fd and stream | |
172 | on error. | |
173 | (bfd_openstreamr): Use bfd_strdup. | |
174 | (bfd_openr_iovec, bfd_openw, bfd_create): Likewise. | |
175 | * plugin.c (try_load_plugin): Use bfd_malloc. | |
176 | * libbfd.h: Regenerate. | |
177 | ||
22b31fea AM |
178 | 2019-09-02 Alan Modra <amodra@gmail.com> |
179 | ||
180 | PR 11983 | |
181 | * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Free debug_filename | |
182 | on success. Tidy. | |
217d2eaa AM |
183 | (read_alt_indirect_string): Likewise. |
184 | (read_alt_indirect_ref): Likewise. | |
22b31fea | 185 | |
3e7bd7f2 JW |
186 | 2019-08-31 Jim Wilson <jimw@sifive.com> |
187 | ||
188 | PR 23825 | |
189 | * elfnn-riscv.c (riscv_elf_create_dynamic_sections): Add SEC_LOAD, | |
190 | SEC_DATA, and SEC_HAS_CONTENTS to .tdata.dyn section. | |
191 | ||
fdd50269 JW |
192 | 2019-08-30 Jim Wilson <jimw@sifive.com> |
193 | ||
194 | * elfnn-riscv.c (riscv_elf_relocate_section): For unresolvable reloc | |
195 | error, call bfd_set_error, set ret to FALSE, and goto out label. | |
196 | ||
6744bcad L |
197 | 2019-08-30 H.J. Lu <hongjiu.lu@intel.com> |
198 | ||
199 | PR ld/24951 | |
200 | * archive.c (_bfd_get_elt_at_filepos): Copy BFD_COMPRESS, | |
201 | BFD_DECOMPRESS and BFD_COMPRESS_GABI flags for thin archive. | |
202 | ||
c0d9f31d AM |
203 | 2019-08-29 Alan Modra <amodra@gmail.com> |
204 | ||
205 | PR 24697 | |
206 | * elf32-ppc.c (ppc_elf_check_relocs): Call bad_shared_reloc | |
207 | when !bfd_link_executable for R_PPC_EMB_SDA2I16 and | |
208 | R_PPC_EMB_SDA2REL. Don't call bad_shared_reloc for any other | |
209 | reloc. | |
210 | ||
dd9b12c2 AM |
211 | 2019-08-29 Alan Modra <amodra@gmail.com> |
212 | ||
213 | * elf64-ppc.c (xlate_pcrel_opt): Add poff parameter. Allow offset | |
214 | on second insn, return it in poff. | |
215 | (ppc64_elf_relocate_section): Add offset to paddi addend for | |
216 | PCREL_OPT. | |
217 | ||
507685a3 JW |
218 | 2019-08-28 Jim Wilson <jimw@sifive.com> |
219 | ||
220 | * elfnn-riscv.c (_bfd_riscv_relax_lui): Add check to exclude abs | |
221 | section when setting max_alignment. Update comment. | |
222 | (_bfd_riscv_relax_pc): Likewise. | |
223 | ||
83cf0d04 AM |
224 | 2019-08-29 Alan Modra <amodra@gmail.com> |
225 | ||
226 | PR 24891 | |
227 | * bfd.c (struct bfd): Add no_element_cache. | |
228 | * archive.c (_bfd_get_elt_at_filepos): Don't add element to | |
229 | archive cache when no_element_cache. | |
230 | (bfd_generic_archive_p): Set no_element_cache when opening first | |
231 | element to check format. Close first element too. | |
232 | (do_slurp_bsd_armap): Don't zero ardata->cache here. | |
233 | * bfd-in2.h: Regenerate. | |
234 | ||
6d5554a6 AM |
235 | 2019-08-24 Alan Modra <amodra@gmail.com> |
236 | ||
237 | * elf64-ppc.c (ppc64_elf_edit_toc): Exclude undefined weak | |
238 | symbols from GOT optimisation. | |
239 | ||
09f7b0de SH |
240 | 2019-08-23 Stafford Horne <shorne@gmail.com> |
241 | ||
242 | * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Use correct value for | |
243 | PLT GOT entries. | |
244 | ||
a7ba3896 NC |
245 | 2019-08-23 Nick Clifton <nickc@redhat.com> |
246 | ||
247 | PR 24456 | |
248 | * elf.c (bfd_section_from_shdr): Issue an informative warning | |
249 | message and continue processing other sections after encountering | |
250 | a reloc section for a section which already has other relocs | |
251 | associated with it. | |
252 | ||
2600d80c AM |
253 | 2019-08-23 Alan Modra <amodra@gmail.com> |
254 | ||
255 | PR 24933 | |
256 | * elfxx-x86.c (_bfd_x86_elf_get_synthetic_symtab): Don't exit | |
257 | on error without freeing plts[] contents. | |
258 | ||
0535e5d7 DZ |
259 | 2019-08-22 Dennis Zhang <dennis.zhang@arm.com> |
260 | ||
261 | * cpu-arm.c: New entries for Cortex-M35P, Cortex-A77, Cortex-A76AE. | |
262 | ||
03da31c6 NC |
263 | 2019-08-22 Nick Clifton <nickc@redhat.com> |
264 | ||
265 | PR 24922 | |
266 | * pei-x86_64.c (pex64_xdata_print_uwd_codes): Add checks before | |
267 | reading data from extra records. | |
268 | ||
652afeef TC |
269 | 2019-08-22 Tamar Christina <tamar.christina@arm.com> |
270 | ||
271 | PR ld/24601 | |
272 | * elfnn-aarch64.c (aarch64_relocate): Handle weak TLS and undefined TLS. | |
273 | Also Pass input_bfd to _bfd_aarch64_elf_resolve_relocation. | |
274 | * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Use it. | |
275 | * elfxx-aarch64.h (_bfd_aarch64_elf_resolve_relocation): Emit warning | |
276 | for weak TLS. | |
277 | ||
baf46cd7 AM |
278 | 2019-08-22 Alan Modra <amodra@gmail.com> |
279 | ||
280 | * elf32-arm.c (cmse_scan): Don't use ARM_GET_SYM_CMSE_SPCL, | |
281 | instead recognize CMSE_PREFIX in symbol name. | |
282 | (elf32_arm_gc_mark_extra_sections): Likewise. | |
283 | (elf32_arm_filter_cmse_symbols): Don't test ARM_GET_SYM_CMSE_SPCL. | |
284 | (elf32_arm_swap_symbol_in): Don't invoke ARM_SET_SYM_CMSE_SPCL. | |
285 | ||
546053ac DZ |
286 | 2019-08-20 Dennis Zhang <dennis.zhang@arm.com> |
287 | ||
288 | * cpu-aarch64.c: New entries for Cortex-A34, Cortex-A65, | |
289 | Cortex-A77, cortex-A65AE, and Cortex-A76AE. | |
290 | ||
b4e87f2c TC |
291 | 2019-08-20 Tamar Christina <tamar.christina@arm.com> |
292 | ||
293 | * elf32-arm.c (elf32_thumb2_plt_entry, elf32_arm_plt_thumb_stub, | |
294 | elf32_arm_stub_long_branch_v4t_thumb_thumb, | |
295 | elf32_arm_stub_long_branch_v4t_thumb_arm, | |
296 | elf32_arm_stub_short_branch_v4t_thumb_arm, | |
297 | elf32_arm_stub_long_branch_v4t_thumb_arm_pic, | |
298 | elf32_arm_stub_long_branch_v4t_thumb_thumb_pic, | |
299 | elf32_arm_stub_long_branch_v4t_thumb_tls_pic): Change nop to branch to | |
300 | previous instruction. | |
301 | ||
3eb185c9 TT |
302 | 2019-08-19 Tom Tromey <tromey@adacore.com> |
303 | ||
304 | * dwarf2.c (_bfd_dwarf2_find_symbol_bias): Create hash table | |
305 | holding symbols. | |
306 | ||
903b777d AM |
307 | 2019-08-19 Alan Modra <amodra@gmail.com> |
308 | ||
309 | * elf64-ppc.c (struct ppc64_elf_obj_tdata): Rename has_gotrel | |
310 | to has_optrel. | |
311 | (struct _ppc64_elf_section_data): Likewise. | |
312 | (ppc64_elf_check_relocs): Set has_optrel for more relocs. | |
313 | (ppc64_elf_edit_toc): Do ha/lo insn checks in GOT loop rather | |
314 | than TOC loop. Check PLT16 insns too. | |
315 | ||
81e8046d L |
316 | 2019-08-16 H.J. Lu <hongjiu.lu@intel.com> |
317 | ||
318 | PR ld/24905 | |
319 | * elf64-x86-64.c (elf_x86_64_check_relocs): Move PIC check for | |
320 | PC-relative relocations back to ... | |
321 | (elf_x86_64_relocate_section): Here. | |
322 | ||
b4c555cf ML |
323 | 2019-08-16 Martin Liska <mliska@suse.cz> |
324 | ||
325 | PR ld/24912 | |
326 | * elflink.c: Report error only for not relocatable. | |
327 | * linker.c (_bfd_generic_link_add_one_symbol): Do not handle | |
328 | here lto_slim_object as it's handled in caller. | |
329 | ||
63f6e94f AM |
330 | 2019-08-16 Alan Modra <amodra@gmail.com> |
331 | ||
332 | * elf32-ppc.c (ppc_elf_relocate_section): Optimize unaligned relocs. | |
333 | ||
080a4883 JW |
334 | 2019-08-15 Jim Wilson <jimw@sifive.com> |
335 | ||
336 | * elfnn-riscv.c (perform_relocation) <R_RISCV_RVC_LUI>: If | |
337 | RISCV_CONST_HIGH_PART (value) is zero, then convert c.lui instruction | |
338 | to c.li instruction, and use ENCODE_RVC_IMM to set value. | |
339 | ||
05192282 TT |
340 | 2019-08-15 Tom Tromey <tromey@adacore.com> |
341 | ||
342 | * dwarf2.c (scan_unit_for_symbols): Check for end of CU, not end | |
343 | of section. | |
344 | ||
dfc19da6 AM |
345 | 2019-08-14 Alan Modra <amodra@gmail.com> |
346 | ||
347 | PR 24623 | |
348 | * dwarf2.c (stash_comp_unit): New function, extracted from.. | |
349 | (_bfd_dwarf2_find_nearest_line): ..here. | |
350 | (find_abstract_instance): Parse comp units and decode line info | |
351 | as needed. | |
352 | ||
c327a44f AM |
353 | 2019-08-14 Alan Modra <amodra@gmail.com> |
354 | ||
355 | * dwarf2.c (comp_unit_maybe_decode_line_info): Declare. | |
356 | (comp_unit_find_nearest_line): Use it here.. | |
357 | (_bfd_dwarf2_find_symbol_bias): ..and here. | |
358 | ||
9defd221 AM |
359 | 2019-08-14 Alan Modra <amodra@gmail.com> |
360 | ||
361 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove addr_size parameter. | |
362 | * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype. | |
363 | * coffgen.c (coff_find_nearest_line_with_names): Adjust | |
364 | _bfd_dwarf2_find_nearest_line calls. | |
365 | * elf.c (_bfd_elf_find_nearest_line, _bfd_elf_find_line): Likewise. | |
366 | * elf32-arm.c (elf32_arm_find_nearest_line): Likewise. | |
367 | * elf64-alpha.c (elf64_alpha_find_nearest_line): Likewise. | |
368 | * elfnn-aarch64.c (elfNN_aarch64_find_nearest_line): Likewise. | |
369 | * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): Likewise. | |
370 | * mach-o.c (bfd_mach_o_find_nearest_line): Likewise. | |
371 | * libbfd.h: Regenerate. | |
372 | ||
f16a9783 MS |
373 | 2019-08-09 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com> |
374 | ||
375 | * elf-bfd.h (struct elf_backend_data): New members. | |
376 | * elflink.c (_bfd_elf_link_create_dynamic_sections): Create | |
377 | .gnu.hash section if necessary. | |
378 | (struct collect_gnu_hash_codes): New member. | |
379 | (elf_gnu_hash_process_symidx): New function name. | |
380 | (elf_renumber_gnu_hash_syms): Ignore local and undefined | |
381 | symbols. Record xlat location for every symbol which should have | |
382 | a .MIPS.xhash entry. | |
383 | (bfd_elf_size_dynamic_sections): Add DT_GNU_HASH dynamic tag to | |
384 | dynamic section if necessary. | |
385 | (GNU_HASH_SECTION_NAME): New define. | |
386 | (bfd_elf_size_dynsym_hash_dynstr): Get .MIPS.xhash section. | |
387 | Update the section size info. | |
388 | * elfxx-mips.c (struct mips_elf_hash_sort_data): New members. | |
389 | (struct mips_elf_link_hash_entry): New member. | |
390 | (mips_elf_link_hash_newfunc): Initialize .MIPS.xhash translation | |
391 | table location. | |
392 | (mips_elf_sort_hash_table): Initialize the pointer to the | |
393 | .MIPS.xhash section. | |
394 | (mips_elf_sort_hash_table_f): Populate the .MIPS.xhash | |
395 | translation table entry with the symbol dynindx. | |
396 | (_bfd_mips_elf_section_from_shdr): Add SHT_MIPS_XHASH. | |
397 | (_bfd_mips_elf_fake_sections): Initialize .MIPS.xhash section | |
398 | info. | |
399 | (_bfd_mips_elf_create_dynamic_sections): Create .MIPS.xhash | |
400 | section. | |
401 | (_bfd_mips_elf_size_dynamic_sections): Add DT_MIPS_XHASH tag to | |
402 | dynamic section. | |
403 | (_bfd_mips_elf_finish_synamic_sections): Add DT_MIPS_XHASH. | |
404 | (_bfd_mips_elf_final_write_processing): Set .MIPS.xhash section | |
405 | sh_link info. | |
406 | (_bfd_mips_elf_get_target_dtag): Get DT_MIPS_XHASH tag. | |
407 | (MIPS_LIBC_ABI_XHASH): New ABI version enum value. | |
408 | (_bfd_mips_post_process_headers): Mark the ABI version as | |
409 | MIPS_LIBC_ABI_XHASH if there exists a .MIPS.xhash section, | |
410 | but not a .hash section. | |
411 | (_bfd_mips_elf_record_xhash_symbol): New function. Record a | |
412 | position in the translation table, associated with the hash | |
413 | entry. | |
414 | * elfxx-mips.h (literal_reloc_p): Define | |
415 | elf_backend_record_xhash_symbol backend hook. | |
416 | * elfxx-target.h: Initialize elf_backend_record_xhash_symbol | |
417 | backend hook. | |
418 | ||
fc8de8e2 JM |
419 | 2019-08-07 Jose E. Marchesi <jose.marchesi@oracle.com> |
420 | ||
421 | * elf64-bpf.c (bpf_elf_relocate_section): New function. | |
422 | (bpf_elf_insn_disp_reloc): Delete function. | |
423 | (elf_backend_relocate_section): Define. | |
424 | ||
97b031c5 AM |
425 | 2019-08-07 Alan Modra <amodra@gmail.com> |
426 | ||
427 | PR 24644 | |
428 | * archive64.c (_bfd_archive_64_bit_slurp_armap): Properly check | |
429 | for overflow in expressions involving nsymz. | |
430 | ||
0f52d45a JW |
431 | 2019-08-01 Ilia Diachkov <ilia.diachkov@optimitech.com> |
432 | ||
433 | * elfnn-riscv.c (_bfd_riscv_relax_lui): Set lui relax safety area to | |
434 | two pages in relro presence. | |
435 | ||
e0d0c518 MF |
436 | 2019-08-01 Max Filippov <jcmvbkbc@gmail.com> |
437 | ||
438 | * elf32-xtensa.c (insn_num_slots, get_rsr_lend_opcode) | |
439 | (get_wsr_lbeg_opcode): New functions. | |
440 | (check_loop_aligned): Detect relaxed loops and adjust loop_len | |
441 | and insn_len for the first actual instruction of the loop. | |
442 | ||
34d5c40a AM |
443 | 2019-07-30 Alan Modra <amodra@gmail.com> |
444 | ||
445 | PR 24768 | |
446 | * bfd.c (struct bfd): Add lto_slim_object flag. | |
447 | * bfd-in2.h: Regenerate. | |
448 | ||
cc5277b1 ML |
449 | 2019-07-29 Martin Liska <mliska@suse.cz> |
450 | ||
451 | PR 24768 | |
452 | * archive.c (_bfd_compute_and_write_armap): Come up with | |
453 | report_plugin_err variable. | |
454 | * bfd-in2.h (struct bfd): Add lto_slim_object flag. | |
455 | * elf.c (struct lto_section): New. | |
456 | (_bfd_elf_make_section_from_shdr): Parse content of | |
457 | .gnu_lto_.lto section. | |
458 | * elflink.c: Report error for a missing LTO plugin. | |
459 | * linker.c (_bfd_generic_link_add_one_symbol): Likewise. | |
460 | ||
4538d1c7 AM |
461 | 2019-07-28 Alan Modra <amodra@gmail.com> |
462 | ||
463 | PR 24857 | |
464 | PR 24339 | |
465 | * elflink.c (elf_link_add_object_symbols): Report an informative | |
466 | error on finding local symbols with index equal or greater than | |
467 | symbol table sh_info. Correct comment. Allow such symbols in | |
468 | dynamic objects. Abort on NULL section for symbol. | |
469 | ||
6dd17ae0 AM |
470 | 2019-07-26 Alan Modra <amodra@gmail.com> |
471 | ||
472 | * elf-bfd.h (struct output_elf_obj_tdata): Delete "linker" field. | |
473 | (elf_linker): Don't define. | |
474 | * elflink.c (bfd_elf_final_link): Don't set elf_linker. | |
475 | ||
c7c860d2 YS |
476 | 2019-07-25 YunQiang Su <syq@debian.org> |
477 | ||
478 | PR 24832 | |
479 | * elfxx-mips.c (mips_set_isa_flags): Default to MIPS 3 for 64-bit | |
480 | mips inputs. | |
481 | ||
95967518 CZ |
482 | 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com> |
483 | ||
484 | * elf32-arc.c (bfd_get_32_me): Add a small description, fix | |
485 | formating. | |
486 | (reloc_type_to_name): Fix formating. | |
487 | (arc_elf_object_p): Likewise. | |
488 | (debug_arc_reloc): Likewise. | |
489 | (arc_do_relocation): Likewise. | |
490 | ||
ef551643 CZ |
491 | 2019-07-24 Claudiu Zissulescu <claziss@synopsys.com> |
492 | ||
493 | * elf32-arc.c (bfd_get_32_me): New function. | |
494 | (bfd_put_32_me): Likewise. | |
495 | (arc_elf_relax_section): Likewise. | |
496 | (bfd_elf32_bfd_relax_section): Define. | |
497 | ||
cc364be6 AM |
498 | 2019-07-24 Alan Modra <amodra@gmail.com> |
499 | ||
500 | * elf-bfd.h (struct elf_backend_data): Return bfd_boolean from | |
501 | elf_backend_final_write_processing, don't pass linker arg. | |
502 | (_bfd_elf_final_write_processing): Update prototype. | |
503 | * elf.c (_bfd_elf_write_object_contents): Adjust call. | |
504 | (_bfd_elf_final_write_processing): Return error on incompatible | |
505 | OSABI and has_gnu_osabi. Remove linker arg. | |
506 | * elf-nacl.h (nacl_final_write_processing): Update prototype. | |
507 | * elf-vxworks.h (elf_vxworks_final_write_processing): Likewise. | |
508 | * elfxx-mips.h (_bfd_mips_final_write_processing): Likewise. | |
509 | (_bfd_mips_elf_final_write_processing): Likewise. | |
510 | * elf-hppa.h (elf_hppa_final_write_processing): Return status | |
511 | and remove linker arg. | |
512 | * elf-m10300.c (_bfd_mn10300_elf_final_write_processing): Likewise. | |
513 | * elf-nacl.c (nacl_final_write_processing): Likewise. | |
514 | * elf-vxworks.c (elf_vxworks_final_write_processing): Likewise. | |
515 | * elf32-arc.c (arc_elf_final_write_processing): Likewise. | |
516 | * elf32-arm.c (arm_final_write_processing): Likewise. | |
517 | (elf32_arm_final_write_processing): Likewise. | |
518 | (elf32_arm_nacl_final_write_processing): Likewise. | |
519 | (elf32_arm_vxworks_final_write_processing): Likewise. | |
520 | * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise. | |
521 | * elf32-bfin.c (elf32_bfin_final_write_processing): Likewise. | |
522 | * elf32-cr16.c (_bfd_cr16_elf_final_write_processing): Likewise. | |
523 | * elf32-cris.c (cris_elf_final_write_processing): Likewise. | |
524 | * elf32-h8300.c (elf32_h8_final_write_processing): Likewise. | |
525 | * elf32-lm32.c (lm32_elf_final_write_processing): Likewise. | |
526 | * elf32-m32r.c (m32r_elf_final_write_processing): Likewise. | |
527 | * elf32-m68k.c (elf_m68k_final_write_processing): Likewise. | |
528 | * elf32-mips.c (mips_vxworks_final_write_processing): Likewise. | |
529 | * elf32-msp430.c (bfd_elf_msp430_final_write_processing): Likewise. | |
530 | * elf32-nds32.c (nds32_elf_final_write_processing): Likewise. | |
531 | * elf32-or1k.c (or1k_elf_final_write_processing): Likewise. | |
532 | * elf32-pj.c (pj_elf_final_write_processing): Likewise. | |
533 | * elf32-ppc.c (ppc_final_write_processing): Likewise. | |
534 | (ppc_elf_final_write_processing): Likewise. | |
535 | (ppc_elf_vxworks_final_write_processing): Likewise. | |
536 | * elf32-sparc.c (sparc_final_write_processing): Likewise. | |
537 | (elf32_sparc_final_write_processing): Likewise. | |
538 | (elf32_sparc_vxworks_final_write_processing): Likewise. | |
539 | * elf32-v850.c (v850_elf_final_write_processing): Likewise. | |
540 | * elf32-xc16x.c (elf32_xc16x_final_write_processing): Likewise. | |
541 | * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise. | |
542 | * elf64-ia64-vms.c (elf64_vms_final_write_processing): Likewise. | |
543 | * elfnn-ia64.c (elfNN_ia64_final_write_processing): Likewise. | |
544 | * elfxx-mips.c (_bfd_mips_final_write_processing): Likewise. | |
545 | (_bfd_mips_elf_final_write_processing): Likewise. | |
546 | ||
c5e20471 AM |
547 | 2019-07-24 Alan Modra <amodra@gmail.com> |
548 | ||
549 | * elf-vxworks.c (elf_vxworks_final_write_processing): Don't return | |
550 | early. | |
551 | * elf32-arc.c (arc_elf_final_write_processing): Likewise. | |
552 | * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise. | |
553 | ||
7613ca5e AM |
554 | 2019-07-24 Alan Modra <amodra@gmail.com> |
555 | ||
556 | * elf32-visium.c (visium_elf_post_process_headers): Don't set | |
557 | EI_OSABI header byte here. | |
558 | (ELF_OSABI): Define. | |
559 | ||
df3a023b AM |
560 | 2019-07-23 Alan Modra <amodra@gmail.com> |
561 | ||
562 | * elf-bfd.h (enum elf_gnu_osabi): Add elf_gnu_osabi_mbind. | |
563 | * elf.c (_bfd_elf_make_section_from_shdr): Set elf_gnu_osabi_mbind. | |
564 | (get_program_header_size): Formatting. Only test SH_GNU_MBIND | |
565 | when elf_gnu_osabi_mbind is set. | |
566 | (_bfd_elf_map_sections_to_segments): Likewise. | |
567 | (_bfd_elf_init_private_section_data): Likewise. | |
568 | (_bfd_elf_final_write_processing): Update comment. | |
569 | * elf64-hppa.c (elf64_hppa_special_sections): Move .tbss entry. | |
570 | (elf_backend_special_sections): Define without .tbss for linux. | |
571 | ||
06f44071 AM |
572 | 2019-07-23 Alan Modra <amodra@gmail.com> |
573 | ||
574 | * elf-bfd.h (enum elf_gnu_osabi): Rename from elf_gnu_symbols. | |
575 | Remove none, any, all enums. | |
576 | (struct elf_obj_tdata): Rename has_gnu_symbols field to has_gnu_osabi. | |
577 | (_bfd_elf_final_write_processing): Declare. | |
578 | * elf.c (_bfd_elf_write_object_contents): Unconditionally call | |
579 | elf_backend_final_write_processing. | |
580 | (_bfd_elf_post_process_headers): Move body of function to.. | |
581 | (_bfd_elf_final_write_processing): ..here, but set EI_OSABI byte | |
582 | only when not already set. Adjust for rename. | |
583 | * elfxx-target.h (elf_backend_final_write_processing): Default to | |
584 | _bfd_elf_final_write_processing. | |
585 | * elf-hppa.h (elf_hppa_final_write_processing): Call | |
586 | _bfd_elf_final_write_processing. | |
587 | * elf-m10300.c (_bfd_mn10300_elf_final_write_processing): Likewise. | |
588 | * elf-nacl.c (nacl_final_write_processing): Likewise. | |
589 | * elf-vxworks.c (elf_vxworks_final_write_processing): Likewise. | |
590 | * elf32-arc.c (arc_elf_final_write_processing): Likewise. | |
591 | * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise. | |
592 | * elf32-bfin.c (elf32_bfin_final_write_processing): Likewise. | |
593 | * elf32-cr16.c (_bfd_cr16_elf_final_write_processing): Likewise. | |
594 | * elf32-cris.c (cris_elf_final_write_processing): Likewise. | |
595 | * elf32-h8300.c (elf32_h8_final_write_processing): Likewise. | |
596 | * elf32-lm32.c (lm32_elf_final_write_processing): Likewise. | |
597 | * elf32-m32r.c (m32r_elf_final_write_processing): Likewise. | |
598 | * elf32-m68k.c (elf_m68k_final_write_processing): Likewise. | |
599 | * elf32-msp430.c (bfd_elf_msp430_final_write_processing): Likewise. | |
600 | * elf32-nds32.c (nds32_elf_final_write_processing): Likewise. | |
601 | * elf32-or1k.c (or1k_elf_final_write_processing): Likewise. | |
602 | * elf32-pj.c (pj_elf_final_write_processing): Likewise. | |
603 | * elf32-v850.c (v850_elf_final_write_processing): Likewise. | |
604 | * elf32-xc16x.c (elf32_xc16x_final_write_processing): Likewise. | |
605 | * elf32-xtensa.c (elf_xtensa_final_write_processing): Likewise. | |
606 | * elf64-ia64-vms.c (elf64_vms_final_write_processing): Likewise. | |
607 | * elfnn-ia64.c (elfNN_ia64_final_write_processing): Likewise. | |
608 | * elf32-arm.c (arm_final_write_processing): Split out from.. | |
609 | (elf32_arm_final_write_processing): ..here. Call | |
610 | _bfd_elf_final_write_processing. | |
611 | (elf32_arm_nacl_final_write_processing): Adjust. | |
612 | * elfxx-mips.c (_bfd_mips_final_write_processing): Split out from.. | |
613 | (_bfd_mips_elf_final_write_processing): ..here. Call | |
614 | _bfd_elf_final_write_processing. | |
615 | * elfxx-mips.h (_bfd_mips_final_write_processing): Declare. | |
616 | * elf32-mips.c (mips_vxworks_final_write_processing): Adjust. | |
617 | * elf32-ppc.c (ppc_final_write_processing): Split out from.. | |
618 | (ppc_elf_final_write_processing): ..here. Call | |
619 | _bfd_elf_final_write_processing. | |
620 | (ppc_elf_vxworks_final_write_processing): Adjust. | |
621 | * elf32-sparc.c (sparc_final_write_processing): Split out from.. | |
622 | (elf32_sparc_final_write_processing): ..here. Call | |
623 | _bfd_elf_final_write_processing. | |
624 | (elf32_sparc_vxworks_final_write_processing): Adjust. | |
625 | * elf32-d10v.c (elf_backend_final_write_processing): Don't define. | |
626 | * elf32-d30v.c (elf_backend_final_write_processing): Don't define. | |
627 | * elf32-m68hc11.c (elf_backend_final_write_processing): Don't define. | |
628 | * elf32-m68hc12.c (elf_backend_final_write_processing): Don't define. | |
629 | * elf32-s12z.c (elf_backend_final_write_processing): Don't define. | |
630 | * elf32-i386.c (elf_i386_check_relocs): Don't set has_gnu_symbols. | |
631 | * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. | |
632 | * elflink.c (elf_link_add_object_symbols): Likewise. | |
633 | (elf_link_output_symstrtab): Set has_gnu_osabi for symbols here | |
634 | instead. | |
635 | ||
1dd1bc4d OM |
636 | 2019-07-23 Omar Majid <omajid@redhat.com> |
637 | ||
638 | * coffcode.h (coff_set_arch_mach_hook): Handle I386_APPLE_MAGIC, | |
639 | I386_FREEBSD_MAGIC, I386_LINUX_MAGIC, I386_NETBSD_MAGIC, | |
640 | AMD64_APPLE_MAGIC, AMD64_FREEBSD_MAGIC, AMD64_LINUX_MAGIC, | |
641 | AMD64_NETBSD_MAGIC. | |
642 | * peXXigen.c: Add comment about source of .NET magic numbers. | |
643 | ||
c213164a AM |
644 | 2019-07-19 Alan Modra <amodra@gmail.com> |
645 | ||
646 | * reloc.c (BFD_RELOC_PPC64_TPREL34, BFD_RELOC_PPC64_DTPREL34), | |
647 | (BFD_RELOC_PPC64_GOT_TLSGD34, BFD_RELOC_PPC64_GOT_TLSLD34), | |
648 | (BFD_RELOC_PPC64_GOT_TPREL34, BFD_RELOC_PPC64_GOT_DTPREL34), | |
649 | (BFD_RELOC_PPC64_TLS_PCREL): New pcrel tls relocs. | |
650 | * elf64-ppc.c (ppc64_elf_howto_raw): Add howtos for pcrel tls relocs. | |
651 | (ppc64_elf_reloc_type_lookup): Translate pcrel tls relocs. | |
652 | (must_be_dyn_reloc, dec_dynrel_count): Add R_PPC64_TPREL64. | |
653 | (ppc64_elf_check_relocs): Support pcrel tls relocs. | |
654 | (ppc64_elf_tls_optimize, ppc64_elf_relocate_section): Likewise. | |
655 | * bfd-in2.h: Regenerate. | |
656 | * libbfd.h: Regenerate. | |
657 | ||
71c4e95a AM |
658 | 2019-07-18 Alan Modra <amodra@gmail.com> |
659 | ||
660 | * elf64-ppc.c (ppc64_elf_relocate_section): Don't bother selecting | |
661 | a TLS section symbol for edited relocs. Tighten TLS symbol/reloc | |
662 | match test. | |
663 | ||
46e9995a AM |
664 | 2019-07-18 Alan Modra <amodra@gmail.com> |
665 | ||
666 | * elf64-ppc.c (TLS_EXPLICIT): Define as 256. | |
667 | (ppc64_elf_check_relocs): Don't store TLS_EXPLICIT even if char | |
668 | is more than 8 bits. | |
669 | (ppc64_elf_tls_optimize): Likewise. Make tls_set, tls_clear, and | |
670 | tls_type vars unsigned int. | |
671 | (ppc64_elf_relocate_section): Use r_type rather than TLS_EXPLICIT | |
672 | to select r_type edit. | |
673 | ||
b00a0a86 AM |
674 | 2019-07-18 Alan Modra <amodra@gmail.com> |
675 | ||
676 | * elf32-ppc.c (TLS_GDIE): Rename from TLS_TPRELGD throughout file. | |
677 | Correct comment. | |
678 | * elf64-ppc.c (TLS_GDIE): Likewise. | |
679 | ||
0b147428 AM |
680 | 2019-07-18 Alan Modra <amodra@gmail.com> |
681 | ||
682 | * elf64-ppc.c (ppc64_elf_tls_optimize): Correct test for allowed | |
683 | range of tp-relative offsets. | |
684 | ||
5b9d7a9a AM |
685 | 2019-07-15 Alan Modra <amodra@gmail.com> |
686 | ||
687 | * elflink.c (_bfd_elf_fix_symbol_flags): If the def for an | |
688 | alias is no longer bfd_link_hash_defined, clear the alias. | |
689 | ||
f26a3287 AM |
690 | 2019-07-13 Alan Modra <amodra@gmail.com> |
691 | ||
692 | * elflink.c (_bfd_elf_omit_section_dynsym_default): Don't keep | |
693 | tls_sec. | |
694 | (_bfd_elf_init_1_index_section): Prefer not using TLS sections. | |
695 | (_bfd_elf_init_2_index_sections): Likewise. | |
696 | * elf64-ppc.c (ppc64_elf_relocate_section): When emitting dynamic | |
697 | relocations for local TLS symbols, use STN_UNDEF as the relocation | |
698 | symbol. | |
699 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise, and don't | |
700 | leave TLS symbol value in the addend. | |
701 | ||
62a47958 AM |
702 | 2019-07-08 Alan Modra <amodra@gmail.com> |
703 | ||
704 | PR 24785 | |
705 | * elf32-ppc.c (_bfd_elf_ppc_set_arch): Sanity check .PPC.EMB.apuinfo | |
706 | size before reading first word. | |
707 | ||
1faa385f NC |
708 | 2019-07-02 Nick Clifton <nickc@redhat.com> |
709 | ||
710 | PR 24717 | |
711 | * elf.c (is_debuginfo_file): New function. | |
712 | (assign_file_positions_for_non_load_sections): Do not warn about | |
713 | allocated sections outside of loadable segments if they are found | |
714 | in a debuginfo file. | |
715 | * elf-bfd.h (is_debuginfo_file): Prototype. | |
716 | ||
125f83f6 NC |
717 | 2019-07-02 Nick Clifton <nickc@redhat.com> |
718 | ||
719 | PR 24753 | |
720 | * compress.c (bfd_get_full_section_contents): Do not complain | |
721 | about linker created sections that are larger than the file size. | |
722 | ||
4d83e8d9 CL |
723 | 2019-07-02 Christophe Lyon <christophe.lyon@linaro.org> |
724 | ||
725 | * bfd/elf32-arm.c (CMSE_STUB_NAME): New define. | |
726 | (elf32_arm_get_stub_entry): Do not try to emit long-branch stubs | |
727 | for CMSE stubs. | |
728 | (arm_dedicated_stub_output_section_name): Use CMSE_STUB_NAME. | |
729 | ||
bb32413f SP |
730 | 2019-07-02 Srinath Parvathaneni <srinath.parvathaneni@arm.com> |
731 | ||
732 | * elf32-arm.c (elf32_arm_gc_mark_extra_sections): Mark debug | |
733 | sections when .text section contain secure entry functions | |
734 | is marked. | |
735 | ||
539300fb NC |
736 | 2019-07-01 Nick Clifton <nickc@redhat.com> |
737 | ||
738 | PR 23839 | |
739 | * elf32-arm.c (elf32_arm_update_relocs): Do not include the | |
740 | section VMA in the offset used to update exidx relocs. | |
741 | ||
7e56c51c NC |
742 | 2019-06-28 Nick Clifton <nickc@redhat.com> |
743 | ||
744 | PR 24708 | |
745 | * elf.c (_bfd_elf_slurp_version_tables): Check for an excessively | |
746 | large version reference section. | |
747 | * compress.c (bfd_get_full_section_contents): Check for an | |
748 | uncompressed section whose size is larger than the file size. | |
749 | ||
999d6dff AM |
750 | 2019-06-28 Alan Modra <amodra@gmail.com> |
751 | ||
752 | * format.c (bfd_check_format_matches): Don't match plugin target | |
753 | if another target matches. Expand comment. | |
754 | * targets.c (_bfd_target_vector): Move plugin_vec after all other | |
755 | non-corefile targets, outside !SELECT_VECS. | |
756 | * config.bfd: Don't handle targ=plugin here. | |
757 | * configure.ac: Don't add plugin to enable_targets or handle in | |
758 | target loop setting selvecs and other target vars. | |
759 | * configure: Regenerate. | |
760 | ||
a68aa5d3 NC |
761 | 2019-06-26 Nick Clifton <nickc@redhat.com> |
762 | ||
763 | PR 24703 | |
764 | * mach-o-arm.c (bfd_mach_o_arm_canonicalize_one_reloc): Add error | |
765 | messages for failures. | |
766 | * mach-o.c (bfd_mach_o_canonicalize_relocs): Set an bfd error code | |
767 | if returning an error value. | |
768 | ||
ab9f654c JB |
769 | 2019-06-25 Jan Beulich <jbeulich@suse.com> |
770 | ||
771 | * elf-properties.c (elf_find_and_remove_property): Rename last | |
772 | parameter. Mention it in comment. | |
773 | ||
04b865dc JW |
774 | 2019-06-24 Ilia Diachkov <ilia.diachkov@optimitech.com> |
775 | ||
776 | * elfnn-riscv.c (_bfd_riscv_relax_lui): Delete early exit when | |
777 | SEC_MERGE or SEC_CODE flags are set. | |
778 | (_bfd_riscv_relax_section): New local symtype. Set sym_sec and | |
779 | symtype consistently. Don't include sec_addr (sym_sec) in symval. | |
780 | Add check for SEC_INFO_TYPE_MERGE and call _bfd_merged_section_offset. | |
781 | Add sec_addr (sym_sec) after handling merge sections. | |
782 | ||
f93ab3a0 L |
783 | 2019-06-24 H.J. Lu <hongjiu.lu@intel.com> |
784 | ||
785 | PR ld/24721 | |
786 | * elf-properties.c (elf_merge_gnu_property_list): Remove the | |
787 | property after reporting property removal. | |
788 | ||
bb22a418 AM |
789 | 2019-06-23 Alan Modra <amodra@gmail.com> |
790 | ||
791 | PR 24704 | |
792 | * elf64-ppc.c (R_PPC64_GOT16_DS): Don't set has_gotrel. | |
793 | (ppc64_elf_edit_toc): Don't remove R_PPC64_GOT16_DS got entries. | |
794 | Reduce range of offsets allowed for other GOT relocs. | |
795 | ||
14b2a8e4 AM |
796 | 2019-06-23 Alan Modra <amodra@gmail.com> |
797 | ||
798 | PR 24689 | |
799 | * elfcode.h (elf_object_p): Warning fix. | |
800 | ||
890f750a AM |
801 | 2019-06-21 Alan Modra <amodra@gmail.com> |
802 | ||
803 | PR 24689 | |
804 | * elfcode.h (elf_object_p): Check type of e_shstrndx section. | |
805 | ||
6f5601c4 AM |
806 | 2019-06-19 Alan Modra <amodra@gmail.com> |
807 | ||
808 | PR 24697 | |
809 | * elf32-ppc.c (ppc_elf_relocate_section): Don't read insn for | |
810 | R_PPC_EMB_RELSDA. Mask low bit of R_PPC_EMB_SDA21 r_offset. | |
811 | ||
4a4e7361 AM |
812 | 2019-06-19 Alan Modra <amodra@gmail.com> |
813 | ||
814 | * elf64-ppc.c (ppc64_elf_inline_plt): Correct st_other test for | |
815 | functions that require r2 valid to use local entry. | |
816 | (ppc64_elf_size_stubs, ppc64_elf_relocate_section): Likewise. | |
817 | ||
39c05d94 SN |
818 | 2019-06-17 Szabolcs Nagy <szabolcs.nagy@arm.com> |
819 | ||
820 | * elfnn-aarch64.c (elfNN_aarch64_allocate_local_dynrelocs): Remove. | |
821 | (elfNN_aarch64_size_dynamic_sections): Remove loc_hash_table traversal | |
822 | with elfNN_aarch64_allocate_local_dynrelocs. | |
823 | ||
e30d1fa1 SN |
824 | 2019-06-14 Szabolcs Nagy <szabolcs.nagy@arm.com> |
825 | ||
826 | * elfnn-aarch64.c: Enable MOVW_PREL relocs for ELF32. | |
827 | ||
3a3a077c AM |
828 | 2019-06-14 Alan Modra <amodra@gmail.com> |
829 | ||
830 | * Makefile.in: Regenerate. | |
831 | * configure: Regenerate. | |
832 | ||
d4b87b1e AM |
833 | 2019-06-14 Alan Modra <amodra@gmail.com> |
834 | ||
835 | * elf64-ppc.c: Fix comments involving paddi. | |
836 | ||
62e0492f AL |
837 | 2019-06-12 Adam Lackorzymski <adam@os.inf.tu-dresden.de> |
838 | ||
839 | PR 24643 | |
840 | * elf32-arm.c (arm_elf_find_function): Fail if the symol table is | |
841 | absent, or the bfd is not in the ELF formart. | |
842 | * elfnn-aarch64.c (aarch64_elf_find_function): Likewise. | |
843 | ||
58e07198 CZ |
844 | 2019-06-10 Christos Zoulas <christos@zoulas.com> |
845 | ||
846 | PR 24650 | |
847 | * elf.c (elfcore_make_auxv_note_section): New function. | |
848 | (elfcore_grok_note): Use it. | |
849 | (elfcore_grok_freebsd_note): Likewise. | |
850 | (elfcore_grok_openbsd_note): Likewise. | |
851 | (elfcore_grok_netbsd_note): Likewise. Plus add support for | |
852 | NT_NETBSDCORE_AUXV notes. | |
853 | ||
237df8fe SD |
854 | 2019-06-06 Sudakshina Das <sudi.das@arm.com> |
855 | ||
856 | * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Set | |
857 | alignment of the new gnu property section. | |
858 | ||
8bf6d176 SD |
859 | 2019-06-06 Sudakshina Das <sudi.das@arm.com> |
860 | ||
861 | * bfd-in.h: Change comment. | |
862 | * bfd-in2.h: Regenerate. | |
863 | * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update warning. | |
864 | * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): | |
865 | Likwise. | |
866 | ||
1e129bbe FS |
867 | 2019-05-28 Faraz Shahbazker <fshahbazker@wavecomp.com> |
868 | ||
869 | * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_PCHI16>: | |
870 | Remove overflow check. | |
871 | ||
0f4a61b4 AM |
872 | 2019-05-28 Alan Modra <amodra@gmail.com> |
873 | ||
874 | PR 24596 | |
875 | * cofflink.c (coff_link_check_archive_element): Don't assume | |
876 | element is a coff object file after calling add_archive_element. | |
877 | ||
94667ab1 AM |
878 | 2019-05-28 Alan Modra <amodra@gmail.com> |
879 | ||
880 | PR 24596 | |
881 | * elf32-microblaze.c (microblaze_elf_finish_dynamic_sections): Don't | |
882 | attempt to set sh_entsize for excluded PLT section. | |
883 | ||
28fbeab8 AM |
884 | 2019-05-28 Alan Modra <amodra@gmail.com> |
885 | ||
886 | PR 24596 | |
887 | * elf64-alpha.c (elf64_alpha_relocate_section): Don't attempt | |
888 | to emit R_ALPHA_GOTTPREL in PIEs, for which no space is | |
889 | allocated in alpha_dynamic_entries_for_reloc. | |
890 | ||
a0f6fd21 AM |
891 | 2019-05-28 Alan Modra <amodra@gmail.com> |
892 | ||
893 | PR 24596 | |
894 | * elf32-lm32.c (lm32_elf_finish_dynamic_sections): Don't segfault | |
895 | on NULL output_section. | |
896 | * elflink.c (elf_final_link_free): Don't free -1 symshndxbuf. | |
897 | ||
c83004d5 AM |
898 | 2019-05-28 Alan Modra <amodra@gmail.com> |
899 | ||
900 | PR 24596 | |
901 | * elf32-m68k.c (elf_m68k_get_got_entry): Don't create a new | |
902 | entry when MUST_FIND. Abort when MUST_FIND not found. | |
903 | (elf_m68k_get_bfd2got_entry): Likewise. | |
904 | (elf_m68k_relocate_section): Remove now useless assert. | |
905 | ||
586338b8 AM |
906 | 2019-05-28 Alan Modra <amodra@gmail.com> |
907 | ||
908 | PR 24596 | |
909 | * elf64-hppa.c (elf64_hppa_finalize_dynreloc): Get the output bfd | |
910 | from bfd_link_info, not an output section owner. | |
911 | (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd): Likewise. | |
912 | (elf_hppa_final_link_relocate): Likewise. | |
913 | ||
a7b34aba AM |
914 | 2019-05-28 Alan Modra <amodra@gmail.com> |
915 | ||
916 | PR 24596 | |
917 | * aout-tic30.c (MY_bfd_final_link): Don't segfault on missing | |
918 | create_object_symbols_section, obj_textsec, obj_datasec or | |
919 | obj_bsssec. Fix other errors in placement. | |
920 | * config.bfd: Obsolete tic30-aout. | |
921 | ||
0eb32b6e AM |
922 | 2019-05-28 Alan Modra <amodra@gmail.com> |
923 | ||
924 | PR 24596 | |
925 | * dwarf2.c (save_section_vma, section_vma_same): Check for NULL | |
926 | end of section list as well as section_count. | |
927 | * xcofflink.c (xcoff_link_add_symbols): Fix temporarily changed | |
928 | section list before returning error. | |
929 | ||
ce5aecf8 AM |
930 | 2019-05-27 Alan Modra <amodra@gmail.com> |
931 | ||
932 | * elf.c (bfd_elf_set_group_contents): Exit on zero size section. | |
933 | ||
3d7d6a6f AM |
934 | 2019-05-27 Alan Modra <amodra@gmail.com> |
935 | ||
936 | PR 24596 | |
937 | * linker.c (_bfd_generic_link_output_symbols): Heed BSF_KEEP. | |
938 | ||
823710d5 SN |
939 | 2019-05-24 Szabolcs Nagy <szabolcs.nagy@arm.com> |
940 | ||
941 | * elfnn-aarch64.c (elfNN_aarch64_merge_symbol_attribute): New function. | |
942 | (struct elf_aarch64_link_hash_table): Add variant_pcs member. | |
943 | (elfNN_aarch64_allocate_dynrelocs): Update variant_pcs. | |
944 | (elfNN_aarch64_size_dynamic_sections): Add DT_AARCH64_VARIANT_PCS. | |
945 | (elf_backend_merge_symbol_attribute): Define. | |
946 | ||
405b5bd8 AM |
947 | 2019-05-24 Alan Modra <amodra@gmail.com> |
948 | ||
949 | * po/SRC-POTFILES.in: Regenerate. | |
950 | ||
04bdff6a AM |
951 | 2019-05-24 Alan Modra <amodra@gmail.com> |
952 | ||
953 | * elf64-ppc.c: Comment on powerxx _notoc stub variants. | |
954 | (LI_R11_0, LIS_R11, ORI_R11_R11_0, SLDI_R11_R11_34): Define. | |
955 | (PADDI_R12_PC, PLD_R12_PC, D34, HA34): Define. | |
956 | (struct ppc_link_hash_table): Add powerxx_stubs. | |
957 | (ppc64_elf_check_relocs): Set powerxx_stubs. | |
958 | (build_powerxx_offset, size_powerxx_offset), | |
959 | (num_relocs_for_powerxx_offset), | |
960 | (emit_relocs_for_powerxx_offset): New functions. | |
961 | (plt_stub_size): Size powerxx stubs. | |
962 | (ppc_build_one_stub): Emit powerxx stubs. | |
963 | (ppc_size_one_stub): Size powerxx stubs. Omit .eh_frame for | |
964 | powerxx stubs. | |
965 | ||
4a421c53 AM |
966 | 2019-05-24 Alan Modra <amodra@gmail.com> |
967 | ||
968 | * elf64-ppc.c (ppc64_elf_check_relocs): Set has_gotrel for | |
969 | R_PPC64_GOT_PCREL34. | |
970 | (xlate_pcrel_opt): New function. | |
971 | (ppc64_elf_edit_toc): Handle R_PPC64_GOT_PCREL34. | |
972 | (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative | |
973 | for R_PPC64_GOT_PCREL34. Implement R_PPC64_PCREL_OPT optimisation. | |
974 | ||
5663e321 AM |
975 | 2019-05-24 Alan Modra <amodra@gmail.com> |
976 | ||
977 | * reloc.c (BFD_RELOC_PPC64_D34, BFD_RELOC_PPC64_D34_LO), | |
978 | (BFD_RELOC_PPC64_D34_HI30, BFD_RELOC_PPC64_D34_HA30), | |
979 | (BFD_RELOC_PPC64_PCREL34, BFD_RELOC_PPC64_GOT_PCREL34), | |
980 | (BFD_RELOC_PPC64_PLT_PCREL34), | |
981 | (BFD_RELOC_PPC64_ADDR16_HIGHER34, BFD_RELOC_PPC64_ADDR16_HIGHERA34), | |
982 | (BFD_RELOC_PPC64_ADDR16_HIGHEST34, BFD_RELOC_PPC64_ADDR16_HIGHESTA34), | |
983 | (BFD_RELOC_PPC64_REL16_HIGHER34, BFD_RELOC_PPC64_REL16_HIGHERA34), | |
984 | (BFD_RELOC_PPC64_REL16_HIGHEST34, BFD_RELOC_PPC64_REL16_HIGHESTA34), | |
985 | (BFD_RELOC_PPC64_D28, BFD_RELOC_PPC64_PCREL28): New reloc enums. | |
986 | * elf64-ppc.c (PNOP): Define. | |
987 | (ppc64_elf_howto_raw): Add reloc howtos for new relocations. | |
988 | (ppc64_elf_reloc_type_lookup): Translate new bfd reloc numbers. | |
989 | (ppc64_elf_ha_reloc): Adjust addend for highera34 and highesta34 | |
990 | relocs. | |
991 | (ppc64_elf_prefix_reloc): New function. | |
992 | (struct ppc_link_hash_table): Add notoc_plt. | |
993 | (is_branch_reloc): Add R_PPC64_PLTCALL_NOTOC. | |
994 | (is_plt_seq_reloc): Add R_PPC64_PLT_PCREL34, | |
995 | R_PPC64_PLT_PCREL34_NOTOC, and R_PPC64_PLTSEQ_NOTOC. | |
996 | (ppc64_elf_check_relocs): Handle pcrel got and plt relocs. Set | |
997 | has_pltcall for section on seeing R_PPC64_PLTCALL_NOTOC. Handle | |
998 | possible need for dynamic relocs on non-pcrel powerxx relocs. | |
999 | (dec_dynrel_count): Handle non-pcrel powerxx relocs. | |
1000 | (ppc64_elf_inline_plt): Handle R_PPC64_PLTCALL_NOTOC. | |
1001 | (toc_adjusting_stub_needed): Likewise. | |
1002 | (ppc64_elf_tls_optimize): Handle R_PPC64_PLTSEQ_NOTOC. | |
1003 | (ppc64_elf_relocate_section): Handle new powerxx relocs. | |
1004 | * bfd-in2.h: Regenerate. | |
1005 | * libbfd.h: Regenerate. | |
1006 | ||
fd0de36e JM |
1007 | 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com> |
1008 | ||
45d5293f JM |
1009 | * config.bfd (targ_cpu): Process bpf-*-none only if BFD64. |
1010 | * configure.ac: Set target_size=64 for bpf_elf64_le_vec and | |
1011 | bpf_elf64_be_vec. | |
1012 | * configure: Regenerate. | |
1013 | ||
1014 | 2019-05-23 Jose E. Marchesi <jose.marchesi@oracle.com> | |
1015 | ||
fd0de36e JM |
1016 | * configure: Regenerated. |
1017 | * Makefile.am (ALL_MACHINES): Add cpu-bpf.lo. | |
1018 | (ALL_MACHINES_CFILES): Add cpu-bpf.c. | |
1019 | (BFD64_BACKENDS): Add elf64-bpf.lo. | |
1020 | (BFD64_BACKENDS_CFILES): Add elf64-bpf.c. | |
1021 | * Makefile.in (SOURCE_HFILES): Regenerate. | |
1022 | * config.bfd (targ_cpu): Handle bpf-*-* targets. | |
1023 | * cpu-bpf.c: New file. | |
1024 | * elf64-bpf.c: Likewise. | |
1025 | * targets.c (_bfd_target_vector): Add bpf_elf64_be_vec and | |
1026 | bpf_elf64_le_vec. | |
1027 | * archures.c: Define architecture bfd_arch_bpf and machine | |
1028 | bfd_arch_bpf. | |
1029 | * reloc.c: Define BFD relocations used by the BPF target. | |
1030 | * bfd-in2.h: Regenerated. | |
1031 | * libbfd.h: Likewise. | |
1032 | ||
b0f4fbf8 AM |
1033 | 2019-05-22 Alan Modra <amodra@gmail.com> |
1034 | ||
1035 | * elf32-arm.c (arm_allocate_glue_section_space): Clear section | |
1036 | contents. | |
1037 | ||
9ec2f606 AM |
1038 | 2019-05-22 Alan Modra <amodra@gmail.com> |
1039 | ||
1040 | * vms-alpha.c (_bfd_vms_write_etir): Don't attempt further | |
1041 | processing on "size error in section". | |
1042 | ||
4decd602 AM |
1043 | 2019-05-22 Alan Modra <amodra@gmail.com> |
1044 | ||
1045 | * som.c (som_bfd_free_cached_info): Call | |
1046 | _bfd_generic_close_and_cleanup. | |
1047 | ||
b474a202 FS |
1048 | 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com> |
1049 | ||
1050 | * elfxx-mips.c (_bfd_mips_elf_check_relocs): Generate error | |
1051 | for TLS_TPREL_HI16(/LO16) relocations in shared library. | |
1052 | ||
304f09d0 FS |
1053 | 2019-05-21 Faraz Shahbazker <fshahbazker@wavecomp.com> |
1054 | ||
1055 | * elfxx-mips.c (_bfd_mips_elf_check_relocs): Add NULL pointer | |
1056 | checks. Search the RELA table for n64 relocations. | |
1057 | ||
3734320d MF |
1058 | 2019-05-21 Matthew Fortune <matthew.fortune@mips.com> |
1059 | Faraz Shahbazker <fshahbazker@wavecomp.com> | |
1060 | ||
1061 | * elfxx-mips.c (LA25_BC): New macro. | |
1062 | (mips_elf_link_hash_table)<compact_branches>: New field. | |
1063 | (STUB_JALRC): New macro. | |
1064 | (mipsr6_o32_exec_plt0_entry_compact): New array. | |
1065 | (mipsr6_n32_exec_plt0_entry_compact): Likewise. | |
1066 | (mipsr6_n64_exec_plt0_entry_compact): Likewise. | |
1067 | (mipsr6_exec_plt_entry_compact): Likewise. | |
1068 | (mips_elf_create_la25_stub): Use BC instead of J for stubs | |
1069 | when compact_branches is true. | |
1070 | (_bfd_mips_elf_finish_dynamic_symbol): Choose the compact | |
1071 | PLT for MIPSR6 with compact_branches. Do not reorder the | |
1072 | compact branches PLT. Switch the lazy stub for MIPSR6 | |
1073 | with compact_branches to use JALRC. | |
1074 | (mips_finish_exec_plt): Choose the compact PLT0 for MIPSR6 | |
1075 | when compact_branches is true. | |
1076 | (_bfd_mips_elf_compact_branches): New function. | |
1077 | * elfxx-mips.h (_bfd_mips_elf_compact_branches): New prototype. | |
1078 | ||
64672071 TC |
1079 | 2019-05-21 Tamar Christina <tamar.christina@arm.com> |
1080 | ||
1081 | PR ld/24373 | |
1082 | * elfnn-aarch64.c (_bfd_aarch64_erratum_843419_branch_to_stub): | |
1083 | Fix print formatter. | |
1084 | ||
e6f65e75 AV |
1085 | 2019-05-21 Andre Vieira <andre.simoesdiasvieira@arm.com> |
1086 | ||
1087 | PR 24460 | |
1088 | * elf32-arm.c (get_value_helper): Remove. | |
1089 | (elf32_arm_final_link_relocate): Fix branch future relocations. | |
1090 | ||
739b5c9c TC |
1091 | 2019-05-21 Tamar Christina <tamar.christina@arm.com> |
1092 | ||
1093 | PR ld/24373 | |
1094 | * bfd-in.h (enum erratum_84319_opts): New | |
1095 | (bfd_elf64_aarch64_set_options, bfd_elf32_aarch64_set_options): Change | |
1096 | int to enum erratum_84319_opts. | |
1097 | * bfd-in2.h: Regenerate. | |
1098 | * elfnn-aarch64.c (struct elf_aarch64_link_hash_table): Change | |
1099 | fix_erratum_843419 to use new enum, remove fix_erratum_843419_adr. | |
1100 | (_bfd_aarch64_add_stub_entry_after): Conditionally create erratum stub. | |
1101 | (aarch64_size_one_stub): Conditionally size erratum 843419 stubs. | |
1102 | (_bfd_aarch64_resize_stubs): Amend comment. | |
1103 | (elfNN_aarch64_size_stubs): Don't generate stubs when no workaround | |
1104 | requested. | |
1105 | (bfd_elfNN_aarch64_set_options): Use new fix_erratum_843419 enum. | |
1106 | (_bfd_aarch64_erratum_843419_branch_to_stub): Implement selection of | |
1107 | erratum workaround. | |
1108 | (clear_erratum_843419_entry): Update erratum conditional. | |
1109 | ||
7622049e SKS |
1110 | 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com> |
1111 | ||
1112 | PR ld/24571 | |
1113 | * bfd/elf32-avr.c (elf32_avr_relax_section): Adjust range check | |
1114 | when computing distance_short_enough. | |
1115 | ||
338ba755 SKS |
1116 | 2019-05-21 Senthil Kumar Selvaraj <senthilkumar.selvaraj@microchip.com> |
1117 | ||
1118 | PR ld/24564 | |
1119 | * bfd/elf32-avr.c (avr_relative_distance_considering_wrap_around): | |
1120 | Wrap around even if distance equals avr_pc_wrap_around. | |
1121 | ||
999b073b NC |
1122 | 2019-05-20 Nick Clifton <nickc@redhat.com> |
1123 | ||
1124 | * po/fr.po: Updated French translation. | |
1125 | ||
a7ad558c AV |
1126 | 2019-05-16 Andre Vieira <andre.simoesdiasvieira@arm.com> |
1127 | ||
1128 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add case for Tag_MVE_arch. | |
1129 | ||
a2699ef2 AM |
1130 | 2019-05-16 Alan Modra <amodra@gmail.com> |
1131 | ||
1132 | * elf32-arm.c (elf32_arm_write_section): Revert last change. | |
1133 | ||
3a1bb98c AM |
1134 | 2019-05-15 Alan Modra <amodra@gmail.com> |
1135 | ||
1136 | * elf32-arm.c (elf32_arm_write_section): Don't leave | |
1137 | error case of STM32L4XX_ERRATUM_BRANCH_TO_VENEER with | |
1138 | unitialised section contents. | |
1139 | ||
37d0d091 JH |
1140 | 2019-05-14 Jamey Hicks <jamey.hicks@gmail.com> |
1141 | ||
1142 | PR 19921 | |
1143 | * verilog.c: (VerilogDataWidth): New variable. | |
1144 | (verilog_write_record): Emit bytes in VerilogDataWidth bundles. | |
1145 | ||
79299211 NC |
1146 | 2019-05-08 Nick Clifton <nickc@redhat.com> |
1147 | ||
1148 | PR 24523 | |
1149 | * elf32-m68k.c (elf32_m68k_merge_private_bfd_data): Return TRUE | |
1150 | rather than FALSE if encountering a non-ELF file. | |
1151 | ||
e1cbf07a AM |
1152 | 2019-05-06 Alan Modra <amodra@gmail.com> |
1153 | ||
1154 | * elf32-pj.c (pj_elf_reloc): Don't report undefined weak as an error. | |
1155 | ||
334d91b9 AM |
1156 | 2019-05-06 Alan Modra <amodra@gmail.com> |
1157 | ||
1158 | * reloc.c (BFD_RELOC_PPC64_TPREL16_HIGH, BFD_RELOC_PPC64_TPREL16_HIGHA), | |
1159 | (BFD_RELOC_PPC64_DTPREL16_HIGH, BFD_RELOC_PPC64_DTPREL16_HIGHA): | |
1160 | Sort before BFD_RELOC_PPC64_DTPREL16_HIGHESTA entry. | |
1161 | * libbfd.h: Regenerate. | |
1162 | * bfd-in2.h: Regenerate. | |
1163 | ||
a288c270 AM |
1164 | 2019-05-04 Alan Modra <amodra@gmail.com> |
1165 | ||
1166 | PR 24511 | |
1167 | * syms.c (coff_section_type): Only allow '.', '$' and numeric | |
1168 | following the standard section names. | |
1169 | (bfd_decode_symclass): Prioritize section flag tests in | |
1170 | decode_section_type before name tests in coff_section_type. | |
1171 | * plugin.c (bfd_plugin_canonicalize_symtab): Init fake_section | |
1172 | and fake_common_section using BFD_FAKE_SECTION. Use "fake" as | |
1173 | their names and choose standard .text section flags for | |
1174 | fake_section. | |
1175 | ||
2cdc1a97 NC |
1176 | 2019-05-02 Nick Clifton <nickc@redhat.com> |
1177 | ||
1178 | PR 24493 | |
1179 | * coffcode.h (styp_to_sec_flags): Treat .gnu.debuglink and | |
1180 | .gnu.debugaltlink sections as debugging sections. | |
1181 | ||
066f4018 AM |
1182 | 2019-04-30 Alan Modra <amodra@gmail.com> |
1183 | ||
1184 | * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add has_gotrel. | |
1185 | (struct _ppc64_elf_section_data): Likewise. | |
1186 | (ppc64_elf_check_relocs): Set above fields. | |
1187 | (ppc64_elf_edit_toc): Add a pass over GOT relocs. | |
1188 | (ppc64_elf_relocate_section): Edit GOT indirect to GOT relative | |
1189 | when possible. | |
1190 | ||
c54f1524 L |
1191 | 2019-04-26 H.J. Lu <hongjiu.lu@intel.com> |
1192 | ||
1193 | PR ld/24486 | |
1194 | * elflink.c (elf_link_output_extsym): Don't complain undefined | |
1195 | weak dynamic reference. | |
1196 | ||
68bb0359 SD |
1197 | 2019-04-25 Sudakshina Das <sudi.das@arm.com> |
1198 | ||
1199 | * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): Remove. | |
1200 | (PLT_BTI_TLSDESC_ENTRY_SIZE): Remove. | |
1201 | (PLT_PAC_ENTRY_SIZE, PLT_BTI_PAC_ENTRY_SIZE): Remove. | |
1202 | (PLT_BTI_SMALL_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): Update. | |
1203 | (elfNN_aarch64_small_plt0_pac_entry): Remove. | |
1204 | (elfNN_aarch64_small_plt0_bti_pac_entry): Remove. | |
1205 | (elfNN_aarch64_small_plt0_bti_entry): Update. | |
1206 | (elfNN_aarch64_small_plt_bti_entry): Update. | |
1207 | (elfNN_aarch64_small_plt_pac_entry): Update. | |
1208 | (elfNN_aarch64_tlsdesc_small_plt_bti_entry): Update. | |
1209 | (setup_plt_values): Setup new entries. | |
1210 | (elfNN_aarch64_finish_dynamic_sections): Remove size change. | |
1211 | (elfNN_aarch64_plt_sym_val): Likewise. | |
1212 | ||
79b8e8ab JW |
1213 | 2019-04-22 Jim Wilson <jimw@sifive.com> |
1214 | ||
1215 | * elfnn-riscv.c (PRSTATUS_SIZE) [ARCH_SIZE==32]: Change from 0 to 204. | |
1216 | ||
fce97736 AM |
1217 | 2019-04-19 Alan Modra <amodra@gmail.com> |
1218 | ||
1219 | * elf32-s12z.c (elf_backend_can_gc_sections): Don't define | |
1220 | ||
9a7f0679 L |
1221 | 2019-04-17 H.J. Lu <hongjiu.lu@intel.com> |
1222 | ||
1223 | * elf64-x86-64.c (elf_x86_64_need_pic): Suggest -fPIE when not | |
1224 | building shared object. | |
1225 | * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Likewise. | |
1226 | ||
4e84a8f8 L |
1227 | 2019-04-17 H.J. Lu <hongjiu.lu@intel.com> |
1228 | ||
1229 | PR ld/24458 | |
1230 | * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): Also check x86 | |
1231 | linker_def. | |
1232 | ||
32c36c3c AV |
1233 | 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com> |
1234 | ||
1235 | * reloc.c (BFD_RELOC_ARM_T32_VLDR_VSTR_OFF_IMM): New internal | |
1236 | relocation. | |
1237 | * bfd-in2.h: Regenerate. | |
1238 | * libbfd.h: Likewise. | |
1239 | ||
60f993ce AV |
1240 | 2019-04-15 Sudakshina Das <sudi.das@arm.com> |
1241 | ||
1242 | * reloc.c (BFD_RELOC_ARM_THUMB_LOOP12): New. | |
1243 | * bfd-in2.h: Regenerated. | |
1244 | * libbfd.h: Regenerated. | |
1245 | ||
f6b2b12d AV |
1246 | 2019-04-15 Sudakshina Das <sudi.das@arm.com> |
1247 | ||
1248 | * reloc.c (BFD_RELOC_THUMB_PCREL_BFCSEL): New relocation. | |
1249 | * bfd-in2.h: Regenerated. | |
1250 | * libbfd.h: Likewise. | |
1251 | ||
1889da70 AV |
1252 | 2019-04-15 Sudakshina Das <sudi.das@arm.com> |
1253 | ||
1254 | * reloc.c (BFD_RELOC_ARM_THUMB_BF13): New. | |
1255 | * bfd-in2.h: Regenerated. | |
1256 | * libbfd.h: Regenerated. | |
1257 | * elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF13. | |
1258 | (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF13 | |
1259 | and R_ARM_THM_BF12 together. | |
1260 | (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF13. | |
1261 | ||
1caf72a5 AV |
1262 | 2019-04-15 Sudakshina Das <sudi.das@arm.com> |
1263 | ||
1264 | * reloc.c (BFD_RELOC_ARM_THUMB_BF19): New | |
1265 | * libbfd.h: Regenerated. | |
1266 | * bfd-in2.h: Regenerated. | |
1267 | * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF18. | |
1268 | (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF19 | |
1269 | and R_ARM_THM_BF18 together. | |
1270 | (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF19. | |
1271 | ||
e5d6e09e AV |
1272 | 2019-04-15 Sudakshina Das <sudi.das@arm.com> |
1273 | ||
1274 | * reloc.c (BFD_RELOC_ARM_THUMB_BF17): New enum. | |
1275 | * bfd-in2.h: Regenerated. | |
1276 | * libbfd.h: Regenerated. | |
1277 | * bfd-elf32-arm.c (elf32_arm_howto_table_1): New entry for R_ARM_THM_BF16. | |
1278 | (elf32_arm_reloc_map elf32_arm_reloc_map): Map BFD_RELOC_ARM_THUMB_BF17 | |
1279 | and R_ARM_THM_BF16 together. | |
1280 | (get_value_helper): New reloc helper. | |
1281 | (elf32_arm_final_link_relocate): New switch case for R_ARM_THM_BF16. | |
1282 | ||
e12437dc AV |
1283 | 2019-04-15 Sudakshina Das <sudi.das@arm.com> |
1284 | ||
1285 | * reloc.c (BFD_RELOC_THUMB_PCREL_BRANCH5): New enum. | |
1286 | * bfd-in2.h: Regenerate. | |
1287 | * libbfd.h: Regenerate. | |
1288 | ||
031254f2 AV |
1289 | 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com> |
1290 | ||
1291 | * archures.c (bfd_mach_arm_8_1M_MAIN): Define. | |
1292 | * bfd-in2.h: Regenerate. | |
1293 | * cpu-arm.c (arch_info_struct): Add entry for Armv8.1-M Mainline. | |
1294 | * elf32-arm.c (using_thumb_only): Return true for Armv8.1-M Mainline | |
1295 | and update assert. | |
1296 | (using_thumb2): Likewise. | |
1297 | (using_thumb2_bl): Update assert. | |
1298 | (arch_has_arm_nop): Likewise. | |
1299 | (bfd_arm_get_mach_from_attributes): Add case for Armv8.1-M Mainline. | |
1300 | (tag_cpu_arch_combine): Add logic for Armv8.1-M Mainline merging. | |
1301 | ||
233a0083 L |
1302 | 2019-04-11 H.J. Lu <hongjiu.lu@intel.com> |
1303 | ||
1304 | * elf-linker-x86.h (elf_x86_cet_report): New. | |
1305 | (elf_linker_x86_params): Add cet_report. | |
1306 | * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): Report | |
1307 | missing IBT and SHSTK properties if needed. | |
1308 | ||
a0ea3a14 L |
1309 | 2019-04-11 H.J. Lu <hongjiu.lu@intel.com> |
1310 | ||
ca4e6331 | 1311 | PR ld/24436 |
a0ea3a14 L |
1312 | * elf-m10300.c (mn10300_elf_check_relocs): Remove BFD_ASSERT of |
1313 | "h != NULL". Don't check "h != NULL" before calling. | |
1314 | bfd_elf_gc_record_vtentry. | |
1315 | * elf32-arm.c (elf32_arm_check_relocs): Likewise. | |
1316 | * elf32-bfin.c (bfin_check_relocs): Likewise. | |
1317 | * elf32-cris.c (cris_elf_check_relocs): Likewise. | |
1318 | * elf32-csky.c (csky_elf_check_relocs): Likewise. | |
1319 | * elf32-d10v.c (elf32_d10v_check_relocs): Likewise. | |
1320 | * elf32-dlx.c (elf32_dlx_check_relocs): Likewise. | |
1321 | * elf32-fr30.c (fr30_elf_check_relocs): Likewise. | |
1322 | * elf32-frv.c (elf32_frv_check_relocs): Likewise. | |
1323 | * elf32-hppa.c (elf32_hppa_check_relocs): Likewise. | |
1324 | * elf32-i386.c (elf_i386_check_relocs): Likewise. | |
1325 | * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise. | |
1326 | * elf32-m32r.c (m32r_elf_check_relocs): Likewise. | |
1327 | * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise. | |
1328 | * elf32-m68k.c (elf_m68k_check_relocs): Likewise. | |
1329 | * elf32-mcore.c (mcore_elf_check_relocs): Likewise. | |
1330 | * elf32-metag.c (elf_metag_check_relocs): Likewise. | |
1331 | * elf32-or1k.c (or1k_elf_check_relocs): Likewise. | |
1332 | * elf32-ppc.c (ppc_elf_check_relocs): Likewise. | |
1333 | * elf32-s390.c (elf_s390_check_relocs): Likewise. | |
1334 | * elf32-sh.c (sh_elf_check_relocs): Likewise. | |
1335 | * elf32-v850.c (v850_elf_check_relocs): Likewise. | |
1336 | * elf32-vax.c (elf_vax_check_relocs): Likewise. | |
1337 | * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise. | |
1338 | * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise. | |
1339 | * elf64-mmix.c (mmix_elf_check_relocs): Likewise. | |
1340 | * elf64-ppc.c (ppc64_elf_check_relocs): Likewise. | |
1341 | * elf64-s390.c (elf_s390_check_relocs): Likewise. | |
1342 | * elf64-x86-64.c (elf_s390_check_relocs): Likewise. | |
1343 | * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise. | |
1344 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise. | |
1345 | * elflink.c (bfd_elf_gc_record_vtinherit): Check for corrupt | |
1346 | VTENTRY entry. | |
1347 | ||
9bff840e AM |
1348 | 2019-04-11 Alan Modra <amodra@gmail.com> |
1349 | ||
1350 | PR 24435 | |
1351 | * elflink.c (elf_link_add_object_symbols): Don't read partial | |
1352 | dynamic entries from fuzzed objects. | |
1353 | ||
ce12121b TC |
1354 | 2019-04-11 Tamar Christina <tamar.christina@arm.com> |
1355 | ||
1356 | PR ld/24302 | |
1357 | * elfnn-aarch64.c (elfNN_aarch64_size_dynamic_sections): Don't emit | |
1358 | DT_TLSDESC_GOT and DT_TLSDESC_PLT when DF_BIND_NOW. | |
1359 | (elfNN_aarch64_finish_dynamic_sections): Don't write PLT if DF_BIND_NOW. | |
1360 | ||
b05971a6 MF |
1361 | 2019-04-10 Michael Forney <mforney@mforney.org> |
1362 | ||
1363 | PR 24427 | |
1364 | * doc/chew.c (free_words): Correctly free "push_text" strings. | |
1365 | ||
3ae61bb6 L |
1366 | 2019-04-08 H.J. Lu <hongjiu.lu@intel.com> |
1367 | ||
1368 | * config.bfd: Remove i[3-7]86-*-kaos* and i[3-7]86-*-chaos targets. | |
1369 | ||
5f2a6b85 AM |
1370 | 2019-04-08 Alan Modra <amodra@gmail.com> |
1371 | ||
1372 | * configure.ac (elfxx_x86): Define and use. | |
1373 | * configure: Regenerate. | |
1374 | ||
5b9c07b2 L |
1375 | 2019-04-06 H.J. Lu <hongjiu.lu@intel.com> |
1376 | ||
1377 | * elf-linker-x86.h: New file. | |
1378 | * elf32-i386.c (elf_i386_convert_load_reloc): Use htab->params | |
1379 | to get x86-specific linker options. | |
1380 | * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Likewise. | |
1381 | (elf_x86_64_check_relocs): Likewise. | |
1382 | (elf_x86_64_relocate_section): Likewise. | |
1383 | (elf_x86_64_link_setup_gnu_properties): Likewise. | |
1384 | * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Likewise. | |
1385 | (_bfd_x86_elf_link_setup_gnu_properties): Likewise. | |
1386 | (_bfd_elf_linker_x86_set_options): New function. | |
1387 | * elfxx-x86.h: Include "elf-linker-x86.h". | |
1388 | (elf_x86_link_hash_table): Add params. | |
1389 | ||
4b24dd1a AM |
1390 | 2019-04-03 Alan Modra <amodra@gmail.com> |
1391 | ||
1392 | * coff-i386.c, * coff-x86_64.c, * coffgen.c, * dwarf2.c, | |
1393 | * elf-m10200.c, * elf.c, * elf32-arm.c, * elf32-bfin.c, | |
1394 | * elf32-csky.c, * elf32-m32r.c, * elf32-microblaze.c, * elf32-pru.c, | |
1395 | * elf32-rx.c, * elf32-xgate.c, * elf64-sparc.c, * elfnn-ia64.c, | |
1396 | * elfxx-riscv.c, * elfxx-sparc.c, * linker.c, * mach-o.c, | |
1397 | * pe-x86_64.c, * pei-x86_64.c, * plugin.c: Whitespace fixes. | |
1398 | ||
87f98bac JW |
1399 | 2019-04-02 Jim Wilson <jimw@sifive.com> |
1400 | ||
1401 | PR 24389 | |
1402 | * elfnn-riscv.c (_bfd_riscv_elf_merge_private_bfd_data): Move read of | |
1403 | ELF header flags to after check for ELF object file. Loop through | |
1404 | sections looking for code sections, if none, then skip ABI checks. | |
1405 | ||
ae2b14c7 JW |
1406 | 2019-03-30 Andrew Waterman <andrew@sifive.com> |
1407 | ||
1408 | * elfnn-riscv.c (_bfd_riscv_relax_call): Only check ARCH_SIZE for | |
1409 | rd == X_RA case. | |
1410 | ||
2487ef07 MF |
1411 | 2019-03-29 Max Filippov <jcmvbkbc@gmail.com> |
1412 | ||
1413 | * elf32-xtensa.c (shrink_dynamic_reloc_sections): Add | |
1414 | info->export_dynamic to the conditional. | |
1415 | ||
242a1159 AM |
1416 | 2019-03-28 Alan Modra <amodra@gmail.com> |
1417 | ||
1418 | PR 24392 | |
1419 | * configure.ac: Invoke AC_CHECK_SIZEOF(int). | |
1420 | * configure: Regenerate. | |
1421 | * coffgen.c (coff_get_reloc_upper_bound): Replace gcc diagnostic | |
1422 | workaround with SIZEOF_LONG vs. SIZEOF_INT check. | |
1423 | * elf.c (_bfd_elf_get_reloc_upper_bound): Likewise. | |
1424 | * elf64-sparc.c (elf64_sparc_get_reloc_upper_bound): Likewise. | |
1425 | * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise. | |
1426 | ||
a9f5a551 JW |
1427 | 2019-03-21 Jim Wilson <jimw@sifive.com> |
1428 | ||
1429 | PR 24365 | |
1430 | * elfnn-riscv.c (riscv_elf_relocate_section): For STT_SECTION check, | |
1431 | verify sym non-NULL before using. Add identical check using h. | |
1432 | ||
4e539114 SD |
1433 | 2019-03-21 Sudakshina Das <sudi.das@arm.com> |
1434 | ||
1435 | * elf-bfd.h (struct elf_backend_data): Add argument to | |
1436 | merge_gnu_properties. | |
1437 | * elf-properties.c (elf_merge_gnu_properties): Add argument to | |
1438 | itself and while calling bed->merge_gnu_properties. | |
1439 | (elf_merge_gnu_property_list): Update the calls for | |
1440 | elf_merge_gnu_properties. | |
1441 | * elfnn-aarch64.c (elfNN_aarch64_merge_gnu_properties): Update handling | |
1442 | of --force-bti warning and add argument. | |
1443 | * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Add | |
1444 | warning. | |
1445 | * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Add argument. | |
1446 | * elfxx-x86.h (_bfd_x86_elf_merge_gnu_properties): Likewise in | |
1447 | declaration. | |
1448 | ||
acde6c6b SD |
1449 | 2019-03-20 Sudakshina Das <sudi.das@arm.com> |
1450 | ||
1451 | * elfxx-aarch64.c (_bfd_aarch64_elf_link_fixup_gnu_properties): Define. | |
1452 | * elfxx-aarch64.h (_bfd_aarch64_elf_link_fixup_gnu_properties): Declare. | |
1453 | (elf_backend_fixup_gnu_properties): Define for AArch64. | |
1454 | ||
8cd1fe1b AM |
1455 | 2019-03-18 Alan Modra <amodra@gmail.com> |
1456 | ||
1457 | PR 24355 | |
1458 | * elf32-ppc.c (ppc_finish_symbols): Don't call write_glink_stub | |
1459 | for local iplt syms with ent->plt.offset == -1. Remove ineffective | |
1460 | attempt at writing glink stubs only once. | |
1461 | ||
6835821b AM |
1462 | 2019-03-16 Alan Modra <amodra@gmail.com> |
1463 | ||
1464 | PR 24337 | |
1465 | * elf.c (_bfd_elf_rela_local_sym): Revert last change. | |
1466 | (_bfd_elf_rel_local_sym): Likewise. | |
1467 | * elflink.c (elf_link_input_bfd): Use bfd_und_section for | |
1468 | section of symbols with unrecognized shndx. | |
1469 | ||
2219ae0b L |
1470 | 2019-03-15 H.J. Lu <hongjiu.lu@intel.com> |
1471 | ||
1472 | PR ld/24267 | |
1473 | * coffgen.c (_bfd_coff_section_already_linked): Skip discarded | |
1474 | section. | |
1475 | * cofflink.c (coff_link_add_symbols): Check for symbols defined | |
1476 | in discarded section. | |
1477 | ||
fe3fef62 AM |
1478 | 2019-03-15 Alan Modra <amodra@gmail.com> |
1479 | ||
1480 | PR 24339 | |
1481 | * elflink.c (elf_link_add_object_symbols): Bail out on a local | |
1482 | symbol after globals if elf_bad_symtab is not set. | |
1483 | ||
1ff31e13 AM |
1484 | 2019-03-15 Alan Modra <amodra@gmail.com> |
1485 | ||
1486 | PR 24337 | |
1487 | * elf.c (_bfd_elf_rela_local_sym): Don't segfault on NULL sec. | |
1488 | (_bfd_elf_rel_local_sym): Likewise. | |
1489 | ||
f55b1e32 AM |
1490 | 2019-03-15 Alan Modra <amodra@gmail.com> |
1491 | ||
1492 | PR 24336 | |
1493 | * elflink.c (elf_link_read_relocs_from_section): Handle fuzzed | |
1494 | object files with sh_size not a multiple of sh_entsize. | |
1495 | ||
da0d12d2 L |
1496 | 2019-03-15 H.J. Lu <hongjiu.lu@intel.com> |
1497 | ||
418d4036 L |
1498 | PR ld/24338 |
1499 | * elf64-x86-64.c (elf_x86_64_relocate_section): Check for corrupt | |
1500 | input with bad relocation. | |
1501 | ||
1502 | 22019-03-15 H.J. Lu <hongjiu.lu@intel.com> | |
1503 | ||
da0d12d2 L |
1504 | * elf64-x86-64.c (elf_x86_64_relocate_section): Re-indent. |
1505 | ||
d7f848c3 NC |
1506 | 2019-03-14 Nick Clifton <nickc@redhat.com> |
1507 | ||
1508 | PR 24334 | |
1509 | * dwarf2.c (struct dwarf2_debug): Add sec_vma_count field. | |
1510 | (save_section_vma): Initialise field to the number of entries in | |
1511 | the sec_vma table. | |
1512 | (section_vma_same): Check that the number of entries in the | |
1513 | sec_vma table matches the number of sections in the bfd. | |
1514 | ||
6cc71b82 NC |
1515 | 2019-03-14 Nick Clifton <nickc@redhat.com> |
1516 | ||
1517 | PR 24333 | |
1518 | * elflink.c (_bfd_elf_add_default_symbol): Add a check for a NULL | |
1519 | section owner pointer when adding the default symbol. | |
1520 | ||
be22c732 NC |
1521 | 2019-03-14 Nick Clifton <nickc@redhat.com> |
1522 | ||
1523 | PR 24332 | |
1524 | * elflink.c (elf_link_add_object_symbols): Add new local variable | |
1525 | extversym_end. Initialise it to point to the end of the version | |
1526 | symbol table, if present. Check it when initialising and updating | |
1527 | the ever pointer. | |
1528 | ||
1dbade74 SD |
1529 | 2019-03-13 Sudakshina Das <sudi.das@arm.com> |
1530 | ||
1531 | * elfnn-aarch64.c (PLT_PAC_ENTRY_SIZE, PLT_PAC_SMALL_ENTRY_SIZE): New. | |
1532 | (PLT_BTI_PAC_ENTRY_SIZE, PLT_BTI_PAC_SMALL_ENTRY_SIZE): New. | |
1533 | (setup_plt_values): Account for PAC or PAC and BTI enabled PLTs. | |
1534 | (elfNN_aarch64_size_dynamic_sections): Add checks for PLT_BTI_PAC | |
1535 | and PLT_PAC_PLT. | |
1536 | (elfNN_aarch64_finish_dynamic_sections): Account for PLT_BTI_PAC. | |
1537 | (get_plt_type): Add case for DT_AARCH64_PAC_PLT. | |
1538 | (elfNN_aarch64_plt_sym_val): Add cases for PLT_BTI_PAC and PLT_PAC. | |
1539 | ||
37c18eed SD |
1540 | 2019-03-13 Sudakshina Das <sudi.das@arm.com> |
1541 | Szabolcs Nagy <szabolcs.nagy@arm.com> | |
1542 | ||
1543 | * bfd-in.h (aarch64_plt_type, aarch64_enable_bti_type): New. | |
1544 | (aarch64_bti_pac_info): New. | |
1545 | (bfd_elf64_aarch64_set_options): Add aarch64_bti_pac_info argument. | |
1546 | (bfd_elf32_aarch64_set_options): Likewise. | |
1547 | * bfd-in2.h: Regenerate | |
1548 | * elfnn-aarch64.c (PLT_BTI_ENTRY_SIZE): New. | |
1549 | (PLT_BTI_SMALL_ENTRY_SIZE, PLT_BTI_TLSDESC_ENTRY_SIZE): New. | |
1550 | (elfNN_aarch64_small_plt0_bti_entry): New. | |
1551 | (elfNN_aarch64_small_plt_bti_entry): New. | |
1552 | (elfNN_aarch64_tlsdesc_small_plt_bti_entry): New. | |
1553 | (elf_aarch64_obj_tdata): Add no_bti_warn and plt_type fields. | |
1554 | (elf_aarch64_link_hash_table): Add plt0_entry, plt_entry and | |
1555 | tlsdesc_plt_entry_size fields. | |
1556 | (elfNN_aarch64_link_hash_table_create): Initialise the new fields. | |
1557 | (setup_plt_values): New helper function. | |
1558 | (bfd_elfNN_aarch64_set_options): Use new bp_info to set plt sizes and | |
1559 | bti enable type. | |
1560 | (elfNN_aarch64_allocate_dynrelocs): Use new size members instead of | |
1561 | fixed macros. | |
1562 | (elfNN_aarch64_size_dynamic_sections): Likewise and add checks. | |
1563 | (elfNN_aarch64_create_small_pltn_entry): Use new generic pointers | |
1564 | to plt stubs instead of fixed ones and update filling them according | |
1565 | to the need for bti. | |
1566 | (elfNN_aarch64_init_small_plt0_entry): Likewise. | |
1567 | (elfNN_aarch64_finish_dynamic_sections): Likewise. | |
1568 | (get_plt_type, elfNN_aarch64_get_synthetic_symtab): New. | |
1569 | (elfNN_aarch64_plt_sym_val): Update size accordingly. | |
1570 | (elfNN_aarch64_link_setup_gnu_properties): Set up plts if BTI GNU NOTE | |
1571 | is set. | |
1572 | (bfd_elfNN_get_synthetic_symtab): Define. | |
1573 | (elfNN_aarch64_merge_gnu_properties): Give out warning with --force-bti | |
1574 | and mising BTI NOTE SECTION. | |
1575 | ||
1576 | ||
cd702818 SD |
1577 | 2019-03-13 Sudakshina Das <sudi.das@arm.com> |
1578 | ||
1579 | * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Exclude | |
1580 | linker created inputs from merge. | |
1581 | * elfnn-aarch64.c (struct elf_aarch64_obj_tdata): Add field for | |
1582 | GNU_PROPERTY_AARCH64_FEATURE_1_AND properties. | |
1583 | (elfNN_aarch64_link_setup_gnu_properties): New. | |
1584 | (elfNN_aarch64_merge_gnu_properties): New. | |
1585 | (elf_backend_setup_gnu_properties): Define for AArch64. | |
1586 | (elf_backend_merge_gnu_properties): Likewise. | |
1587 | * elfxx-aarch64.c (_bfd_aarch64_elf_link_setup_gnu_properties): Define. | |
1588 | (_bfd_aarch64_elf_parse_gnu_properties): Define. | |
1589 | (_bfd_aarch64_elf_merge_gnu_properties): Define. | |
1590 | * elfxx-aarch64.h (_bfd_aarch64_elf_link_setup_gnu_properties): Declare. | |
1591 | (_bfd_aarch64_elf_parse_gnu_properties): Declare. | |
1592 | (_bfd_aarch64_elf_merge_gnu_properties): Declare. | |
1593 | (elf_backend_parse_gnu_properties): Define for AArch64. | |
1594 | ||
44b27f95 L |
1595 | 2019-03-13 H.J. Lu <hongjiu.lu@intel.com> |
1596 | ||
1597 | PR ld/24322 | |
1598 | * elfxx-x86.c (_bfd_x86_elf_merge_gnu_properties): Properly | |
1599 | merge GNU_PROPERTY_X86_FEATURE_1_[IBT|SHSTK]. | |
1600 | ||
7a6e0d89 AM |
1601 | 2019-03-12 Alan Modra <amodra@gmail.com> |
1602 | ||
1603 | * coffcode.h (buy_and_read): Delete unnecessary forward decl. Add | |
1604 | nmemb parameter. Use bfd_alloc2. | |
1605 | (coff_slurp_line_table): Use bfd_alloc2. Update buy_and_read calls. | |
1606 | Delete assertion. | |
1607 | (coff_slurp_symbol_table): Use bfd_alloc2 and bfd_zalloc2. | |
1608 | (coff_slurp_reloc_table): Use bfd_alloc2. Update buy_and_read calls. | |
1609 | * coffgen.c (coff_get_reloc_upper_bound): Ensure size calculation | |
1610 | doesn't overflow. | |
1611 | * elf.c (bfd_section_from_shdr): Use bfd_zalloc2. Style fix. | |
1612 | (assign_section_numbers): Style fix. | |
1613 | (swap_out_syms): Use bfd_malloc2. | |
1614 | (_bfd_elf_get_reloc_upper_bound): Ensure size calculation doesn't | |
1615 | overflow. | |
1616 | (_bfd_elf_make_empty_symbol): Style fix. | |
1617 | (elfobj_grok_stapsdt_note_1): Formatting. | |
1618 | * elfcode.h (elf_object_p): Use bfd_alloc2. | |
1619 | (elf_write_relocs, elf_write_shdrs_and_ehdr): Likewise. | |
1620 | (elf_slurp_symbol_table): Use bfd_zalloc2. | |
1621 | (elf_slurp_reloc_table): Use bfd_alloc2. | |
1622 | (_bfd_elf_bfd_from_remote_memory): Use bfd_malloc2. | |
1623 | * elf64-sparc (elf64_sparc_get_reloc_upper_bound): Ensure | |
1624 | size calculation doesn't overflow. | |
1625 | (elf64_sparc_get_dynamic_reloc_upper_bound): Likewise. | |
1626 | * mach-o.c (bfd_mach_o_get_reloc_upper_bound): Likewise. | |
1627 | * pdp11.c (get_reloc_upper_bound): Copy aoutx.h version. | |
1628 | ||
ebd2263b AM |
1629 | 2019-03-08 Alan Modra <amodra@gmail.com> |
1630 | ||
1631 | PR 24311 | |
1632 | * merge.c (merge_strings): Return secinfo. Don't pad section | |
1633 | to alignment here. | |
1634 | (_bfd_merge_sections): Pad section to alignment here, if input | |
1635 | sections contributing to merged output all pad to alignment. | |
1636 | Formatting. | |
1637 | ||
219d6836 NC |
1638 | 2019-03-06 Nick Clifton <nickc@redhat.com> |
1639 | ||
1640 | * dwarf2.c (_bfd_dwarf2_find_symbol_bias): Check for a NULL symbol | |
1641 | table pointer. | |
1642 | * coffgen.c (coff_find_nearest_line_with_names): Do not call | |
1643 | _bfd_dwarf2_find_symbol_bias if there is no symbol table available. | |
1644 | ||
24801b15 AK |
1645 | 2019-03-01 Andreas Krebbel <krebbel@linux.ibm.com> |
1646 | ||
1647 | This reverts commit 5a12586d44fa8d5dfc74cbca4f2f36a273a16335. | |
1648 | 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com> | |
1649 | ||
1650 | PR 20113 | |
1651 | * elf32-s390.c (allocate_dynrelocs): Update comment. | |
1652 | ||
4ffd2909 TC |
1653 | 2019-02-28 Tamar Christina <tamar.christina@arm.com> |
1654 | ||
1655 | * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Correct CIE parse. | |
1656 | ||
eed5def8 NC |
1657 | 2019-02-28 Nick Clifton <nickc@redhat.com> |
1658 | ||
1659 | PR 24273 | |
1660 | * elf.c (bfd_elf_string_from_elf_section): Check for a string | |
1661 | section that is not NUL terminated. | |
1662 | ||
5cfe428c L |
1663 | 2019-02-27 H.J. Lu <hongjiu.lu@intel.com> |
1664 | ||
1665 | PR ld/24276 | |
1666 | * elf64-x86-64.c (elf_x86_64_check_relocs): Skip symbol defined | |
1667 | by linker when checking copy reloc on protected symbol. | |
1668 | ||
f616c36b AM |
1669 | 2019-02-24 Alan Modra <amodra@gmail.com> |
1670 | ||
1671 | PR 24144 | |
1672 | * pdp11.c (set_section_contents): Revert 2015-02-24 change. | |
1673 | ||
eed62915 MF |
1674 | 2019-02-20 Eric Tsai <erictsai@cadence.com> |
1675 | ||
1676 | * elf32-xtensa.c (is_resolvable_asm_expansion): Scan output | |
1677 | sections between the call site and call destination and adjust | |
1678 | call distance by the largest alignment. | |
1679 | ||
e6c3b5bf AH |
1680 | 2019-02-20 Alan Hayward <alan.hayward@arm.com> |
1681 | ||
1682 | * elf-bfd.h (elfcore_write_aarch_pauth): Add declaration. | |
1683 | * elf.c (elfcore_grok_aarch_pauth): New function. | |
1684 | (elfcore_grok_note): Check for NT_ARM_PAC_MASK. | |
1685 | (elfcore_write_aarch_pauth): New function. | |
1686 | (elfcore_write_register_note): Check for AArch64 pauth section. | |
1687 | ||
34d75fb5 AM |
1688 | 2019-02-20 Alan Modra <amodra@gmail.com> |
1689 | ||
1690 | PR 24225 | |
1691 | * elf32-nios2.c (nios2_elf32_relocate_section): Check asprintf | |
1692 | return value. | |
1693 | ||
edd01d07 MR |
1694 | 2019-02-20 Michael Roitzsch <reactorcontrol@icloud.com> |
1695 | ||
1696 | * configure.ac (SHARED_LIBADD): Add -liberty -lintl for all | |
1697 | Darwin hosts, not just or1k. | |
1698 | * configure: Regenerate. | |
1699 | ||
8abac803 AM |
1700 | 2019-02-20 Alan Modra <amodra@gmail.com> |
1701 | ||
1702 | PR 24236 | |
1703 | * archive64.c (_bfd_archive_64_bit_slurp_armap): Move code adding | |
1704 | sentinel NUL to string buffer nearer to loop where it is used. | |
1705 | Don't go past sentinel when scanning strings, and don't write | |
1706 | NUL again. | |
1707 | * archive.c (do_slurp_coff_armap): Simplify string handling to | |
1708 | archive64.c style. | |
1709 | ||
179f2db0 AM |
1710 | 2019-02-19 Alan Modra <amodra@gmail.com> |
1711 | ||
1712 | PR 24235 | |
1713 | * pei-x86_64.c (pex64_bfd_print_pdata_section): Correct checks | |
1714 | attempting to prevent read past end of section. | |
1715 | ||
a31b8bd9 AM |
1716 | 2019-02-18 Alan Modra <amodra@gmail.com> |
1717 | ||
1718 | PR 24225 | |
1719 | * elf32-nios2.c (nios2_elf32_relocate_section): Use asprintf and | |
1720 | PRIx64 to generate warning messages. Print local sym names too. | |
1721 | ||
a0e90a73 CZ |
1722 | 2019-02-09 Vineet Gupta <vgupta@synopsys.com> |
1723 | ||
1724 | * elf32-arc (INIT_SYM_STRING): Delete. | |
1725 | (FINI_SYM_STRING): Likewise. | |
1726 | (init_str): Likewise. | |
1727 | (fini_str): Likewise. | |
1728 | ||
482f3505 AM |
1729 | 2019-02-08 Alan Modra <amodra@gmail.com> |
1730 | ||
1731 | * elf32-ppc.c (ppc_elf_relocate_section): Add %X to "unsupported | |
1732 | for bss-plt" warning to make it an error. | |
1733 | ||
b2abe1bd EB |
1734 | 2019-02-07 Eric Botcazou <ebotcazou@adacore.com> |
1735 | ||
1736 | PR ld/18841 | |
1737 | * elf32-sparc.c (elf32_sparc_reloc_type_class): Return | |
1738 | reloc_class_ifunc for ifunc symbols. | |
1739 | * elf64-sparc.c (elf64_sparc_reloc_type_class): Likewise. | |
1740 | ||
68a09132 EB |
1741 | 2019-02-07 Eric Botcazou <ebotcazou@adacore.com> |
1742 | ||
1743 | * elf32-visium.c (visium_elf_howto_parity_reloc): Minor tweak. | |
1744 | <R_VISIUM_PC16>: Use explicit range test to detect an overflow. | |
1745 | ||
2012bf01 NC |
1746 | 2019-02-07 Nick Clifton <nickc@redhat.com> |
1747 | ||
1748 | * config.bfd: Move the powerpc-lynxos and powerpc-windiss targets | |
1749 | into the definitely obsolete list. | |
1750 | ||
83924b38 L |
1751 | 2019-02-05 H.J. Lu <hongjiu.lu@intel.com> |
1752 | ||
1753 | PR ld/24151 | |
1754 | * elf64-x86-64.c (elf_x86_64_need_pic): Check | |
1755 | SYMBOL_DEFINED_NON_SHARED_P instead of def_regular. | |
1756 | (elf_x86_64_relocate_section): Move PIC check for PC-relative | |
1757 | relocations to ... | |
1758 | (elf_x86_64_check_relocs): Here. | |
1759 | (elf_x86_64_finish_dynamic_symbol): Use SYMBOL_DEFINED_NON_SHARED_P | |
1760 | to check if a symbol is defined in a non-shared object. | |
1761 | * elfxx-x86.h (SYMBOL_DEFINED_NON_SHARED_P): New. | |
1762 | ||
453f8e1e SDJ |
1763 | 2019-01-21 Sergio Durigan Junior <sergiodj@redhat.com> |
1764 | ||
1765 | * elf32-arm.c (elf32_arm_final_link_relocate): Use 'llabs' instead | |
1766 | of 'labs' (and fix GCC warning). | |
1767 | ||
9ed1348c NC |
1768 | 2019-01-25 Nick Clifton <nickc@redhat.com> |
1769 | ||
1770 | * po/ru.po: Updated Russian translation. | |
1771 | ||
d9938630 NC |
1772 | 2019-01-23 Nick Clifton <nickc@redhat.com> |
1773 | ||
1774 | * po/fr.po: Updated French translation. | |
1775 | ||
375cd423 NC |
1776 | 2019-01-21 Nick Clifton <nickc@redhat.com> |
1777 | ||
1778 | * po/pt.po: Updated Portuguese translation. | |
1779 | * po/uk.po: Updated Ukranian translation. | |
1780 | ||
acef8081 YC |
1781 | 2019-01-21 Yuri Chornoivan <yurchor@ukr.net> |
1782 | ||
1783 | PR 24108 | |
1784 | * elf32-nds32.c (nds32_relocate_section): Add space between words | |
1785 | in error message. | |
1786 | * elfnn-riscv.c (riscv_version_mismatch): Fix spelling mistake in | |
1787 | error message. | |
1788 | (riscv_i_or_e_p): Likewise. | |
1789 | (riscv_merge_arch_attr_info): Likewise. | |
1790 | ||
f48dfe41 NC |
1791 | 2019-01-19 Nick Clifton <nickc@redhat.com> |
1792 | ||
1793 | * version.m4: Reset to 2.32.51 | |
1794 | * configure: Regenerate. | |
1795 | * po/bfd.pot: Regenerate. | |
1796 | ||
f974f26c NC |
1797 | 2018-06-24 Nick Clifton <nickc@redhat.com> |
1798 | ||
1799 | 2.32 branch created. | |
1800 | ||
a4bf3d07 JW |
1801 | 2019-01-16 Kito Cheng <kito@andestech.com> |
1802 | ||
1803 | * elf-attrs.c (vendor_obj_attr_size): Return 0 if size is 0 even | |
1804 | for OBJ_ATTR_PROC. | |
1805 | ||
2dc8dd17 JW |
1806 | 2019-01-16 Kito Cheng <kito@andestech.com> |
1807 | Nelson Chu <nelson@andestech.com> | |
1808 | ||
7d7a7d7c JW |
1809 | * elfnn-riscv.c (in_subsets): New. |
1810 | (out_subsets): Likewise. | |
1811 | (merged_subsets): Likewise. | |
1812 | (riscv_std_ext_p): Likewise. | |
1813 | (riscv_non_std_ext_p): Likewise. | |
1814 | (riscv_std_sv_ext_p): Likewise. | |
1815 | (riscv_non_std_sv_ext_p): Likewise. | |
1816 | (riscv_version_mismatch): Likewise. | |
1817 | (riscv_i_or_e_p): Likewise. | |
1818 | (riscv_merge_std_ext): Likewise. | |
1819 | (riscv_merge_non_std_and_sv_ext): Likewise. | |
1820 | (riscv_merge_arch_attr_info): Likewise. | |
1821 | (riscv_merge_attributes): Likewise. | |
1822 | (_bfd_riscv_elf_merge_private_bfd_data): Merge attribute. | |
1823 | ||
2dc8dd17 JW |
1824 | * elfnn-riscv.c (riscv_elf_obj_attrs_arg_type): New. |
1825 | (elf_backend_obj_attrs_vendor): Define. | |
1826 | (elf_backend_obj_attrs_section_type): Likewise. | |
1827 | (elf_backend_obj_attrs_section): Likewise. | |
1828 | (elf_backend_obj_attrs_arg_type): Define as | |
1829 | riscv_elf_obj_attrs_arg_type. | |
1830 | * elfxx-riscv.c (riscv_estimate_digit): New. | |
1831 | (riscv_estimate_arch_strlen1): Likewise. | |
1832 | (riscv_estimate_arch_strlen): Likewise. | |
1833 | (riscv_arch_str1): Likewise. | |
1834 | (riscv_arch_str): Likewise. | |
1835 | * elfxx-riscv.h (riscv_arch_str): Declare. | |
1836 | ||
d5dcaf1b JD |
1837 | 2019-01-14 John Darrington <john@darrington.wattle.id.au> |
1838 | ||
1839 | * bfd-in2.h [BFD_RELOC_S12Z_OPR]: New reloc. | |
1840 | * libbfd.h: regen. | |
1841 | * elf32-s12z.c (eld_s12z_howto_table): R_S12Z_OPR takes non zero | |
1842 | source field. (md_apply_fix): Apply final fix | |
1843 | to BFD_RELOC_S12Z_OPR. | |
1844 | * reloc.c[BFD_RELOC_S12Z_OPR]: New reloc. | |
1845 | ||
5a12586d MT |
1846 | 2019-01-14 Maamoun Tarsha <maamountk@hotmail.com> |
1847 | ||
f466c305 | 1848 | PR 20113 |
5a12586d MT |
1849 | * elf32-s390.c (allocate_dynrelocs): Update comment. |
1850 | ||
3107326d AP |
1851 | 2019-01-09 Andrew Paprocki <andrew@ishiboo.com> |
1852 | ||
1853 | * warning.m4: Adjust egrep pattern for non-GNU compilers. | |
1854 | * configure: Regenerate. | |
1855 | ||
a9859e01 AM |
1856 | 2019-01-08 Alan Modra <amodra@gmail.com> |
1857 | ||
1858 | PR 23699 | |
1859 | PR 24065 | |
1860 | * ihex.c (ihex_write_object_contents): Properly check 32-bit | |
1861 | address range. | |
1862 | ||
c8c89dac YS |
1863 | 2019-01-05 Yoshinori Sato <ysato@users.sourceforge.jp> |
1864 | ||
1865 | * bfd/archures.c: Add bfd_mach_rx_v2 and bfd_mach_rx_v3. | |
1866 | * bfd/bfd-in2.h: Regenerate. | |
1867 | * bfd/cpu-rx.c (arch_info_struct): Add RXv2 and RXv3 entry. | |
1868 | * bfd/elf32-rx.c (elf32_rx_machine): Add RXv2 and RXv3 support. | |
1869 | ||
d9858c37 LX |
1870 | 2019-01-04 Lifang Xia <lifang_xia@c-sky.com> |
1871 | ||
1872 | * config.bfd (csky-*-elf* | csky-*-linux*): Modify the csky | |
1873 | default target, little endian target is more suitable. | |
1874 | ||
677bd4c6 AM |
1875 | 2019-01-04 Alan Modra <amodra@gmail.com> |
1876 | ||
1877 | PR 24061 | |
1878 | PR 21786 | |
1879 | * coff-rs6000.c (GET_VALUE_IN_FIELD): Add base parameter and | |
1880 | adjust all callers. | |
1881 | (EQ_VALUE_IN_FIELD): Likewise. | |
1882 | * coff64-rs6000.c (GET_VALUE_IN_FIELD): Likewise. | |
1883 | ||
82704155 AM |
1884 | 2019-01-01 Alan Modra <amodra@gmail.com> |
1885 | ||
1886 | Update year range in copyright notice of all files. | |
1887 | ||
d5c04e1b | 1888 | For older changes see ChangeLog-2018 |
3499769a | 1889 | \f |
d5c04e1b | 1890 | Copyright (C) 2019 Free Software Foundation, Inc. |
3499769a AM |
1891 | |
1892 | Copying and distribution of this file, with or without modification, | |
1893 | are permitted in any medium without royalty provided the copyright | |
1894 | notice and this notice are preserved. | |
1895 | ||
1896 | Local Variables: | |
1897 | mode: change-log | |
1898 | left-margin: 8 | |
1899 | fill-column: 74 | |
1900 | version-control: never | |
1901 | End: |