d912e1aaa1449bc35b6374b61693cac9e098d2c1
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2017-04-07 gingold <gingold@gingold-Precision-7510>
2
3 * coffgen.c (_bfd_coff_gc_mark_hook): Handle PE weak
4 external symbols with a definition.
5 (_bfd_coff_gc_mark_extra_sections): Fix typo.
6
7 2017-04-07 Alan Modra <amodra@gmail.com>
8
9 * po/SRC-POTFILES.in: Regenerate.
10
11 2017-04-05 Alan Modra <amodra@gmail.com>
12
13 * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Support ELFv2 PLT
14 reference counting.
15
16 2017-04-02 Jon Turney <jon.turney@dronecode.org.uk>
17
18 (_bfd_XXi_swap_aouthdr_out): For clarity, use defines rather than
19 numbers for DataDirectory entry indicies passed to
20 add_data_entry().
21
22 2017-04-04 H.J. Lu <hongjiu.lu@intel.com>
23
24 * elf.c (get_program_header_size): Add a GNU_MBIND segment for
25 each GNU_MBIND section and align GNU_MBIND section to page size.
26 (_bfd_elf_map_sections_to_segments): Create a GNU_MBIND
27 segment for each GNU_MBIND section.
28 (_bfd_elf_init_private_section_data): Copy sh_info from input
29 for GNU_MBIND section.
30
31 2017-04-03 Palmer Dabbelt <palmer@dabbelt.com>
32
33 * elfnn-riscv.c (GP_NAME): Delete.
34 (riscv_global_pointer_value): Change GP_NAME to RISCV_GP_SYMBOL.
35 (_bfd_riscv_relax_lui): Likewise.
36
37 2017-04-04 Nick Clifton <nickc@redhat.com>
38
39 PR binutils/21342
40 * elflink.c (_bfd_elf_define_linkage_sym): Prevent null pointer
41 dereference.
42 (bfd_elf_final_link): Only initialize the extended symbol index
43 section if there are extended symbol tables to list.
44
45 2017-04-03 H.J. Lu <hongjiu.lu@intel.com>
46
47 * Makefile.am (BFD32_BACKENDS): Add elf-properties.lo.
48 (BFD32_BACKENDS_CFILES): Add elf-properties.c.
49 * configure.ac (elf): Add elf-properties.lo.
50 * Makefile.in: Regenerated.
51 * configure: Likewise.
52 * elf-bfd.h (elf_property_kind): New.
53 (elf_property): Likewise.
54 (elf_property_list): Likewise.
55 (elf_properties): Likewise.
56 (_bfd_elf_parse_gnu_properties): Likewise.
57 (_bfd_elf_get_property): Likewise.
58 (_bfd_elf_link_setup_gnu_properties): Likewise.
59 (elf_backend_data): Add parse_gnu_properties, merge_gnu_properties
60 and setup_gnu_properties.
61 (elf_obj_tdata): Add properties.
62 * elf-properties.c: New file.
63 * elf32-i386.c (elf_i386_parse_gnu_properties): New.
64 (elf_i386_merge_gnu_properties): Likewise.
65 (elf_backend_parse_gnu_properties): Likewise.
66 (elf_backend_merge_gnu_properties): Likewise.
67 * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise.
68 (elf_x86_64_merge_gnu_properties): Likewise.
69 (elf_backend_parse_gnu_properties): Likewise.
70 (elf_backend_merge_gnu_properties): Likewise.
71 * elfxx-target.h (elf_backend_merge_gnu_properties): Likewise.
72 (elf_backend_parse_gnu_properties): Likewise.
73 (elf_backend_setup_gnu_properties): Likewise.
74 (elfNN_bed): Add elf_backend_parse_gnu_properties,
75 elf_backend_merge_gnu_properties and
76 elf_backend_setup_gnu_properties.
77
78 2017-03-30 Pip Cet <pipcet@gmail.com>
79
80 * elf32-wasm32.c: Add relocation code, two relocs.
81 * reloc.c: Add wasm32 relocations.
82 * libbfd.h: Regenerate.
83 * bfd-in2.h: Regenerate.
84 * bfd/po/bfd.pot: Regenerate.
85
86 2017-03-29 Nick Clifton <nickc@redhat.com>
87
88 PR binutils/18025
89 * coff-bfd.h (struct coff_section_data): Add new fields:
90 saved_bias and bias.
91 * coffgen.c (coff_find_nearest_line_with_names): Cache the bias
92 computed for PE binaries.
93 * dwarf2.c (scan_unit_for_symbols): Only warn once about each
94 missing abbrev.
95
96 2017-03-28 Hans-Peter Nilsson <hp@axis.com>
97
98 PR ld/16044
99 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Adjust BFD_ASSERT
100 to handle a local symbol with a hash-symbol-entry; without PLT.
101 Add BFD_ASSERT for an incidental case with GOT entry present.
102 (cris_elf_check_relocs): Increment PLT refcount only if the symbol
103 isn't forced-or-set local.
104
105 2017-03-27 Pip Cet <pipcet@gmail.com>
106
107 * wasm-module.c: New file to support WebAssembly modules.
108 * wasm-module.h: New file to support WebAssembly modules.
109 * doc/webassembly.texi: Start documenting wasm-module.c.
110 * config.bfd: Add wasm_vec.
111 * targets.c: Likewise.
112 * configure.ac: Likewise.
113 * Makefile.am: Add entries for wasm-module.c.
114 * Makefile.in: Regenerate.
115 * configure: Regenerate.
116 * po/SRC-POTFILES.in: Regenerate.
117
118 2017-03-27 Pip Cet <pipcet@gmail.com>
119
120 * cpu-wasm32.c: New file to support wasm32 architecture.
121 * elf32-wasm32.c: New file to support wasm32 architecture.
122 * Makefile.am: Add wasm32 architecture.
123 * archures.c: Likewise.
124 * config.bfd: Likewise.
125 * configure.ac: Likewise.
126 * targets.c: Likewise.
127 * Makefile.in: Regenerate.
128 * bfd-in2.h: Regenerate.
129 * configure: Regenerate.
130 * po/SRC-POTFILES.in: Regenerate.
131
132 2017-03-20 Alan Modra <amodra@gmail.com>
133
134 PR 21266
135 * elf64-ppc.c (compare_symbols): Stabilize sort.
136
137 2017-03-18 Alan Modra <amodra@gmail.com>
138
139 * elf64-ppc.c (struct ppc_link_hash_table): Add
140 local_ifunc_resolver and maybe_local_ifunc_resolver.
141 (ppc_build_one_stub): Set flags on emitting dynamic
142 relocation to ifunc.
143 (ppc64_elf_relocate_section): Likewise.
144 (ppc64_elf_finish_dynamic_symbol): Likewise.
145 (ppc64_elf_finish_dynamic_sections): Error on DT_TEXTREL with
146 local dynamic relocs to ifuncs.
147 * elf32-ppc.c (struct ppc_elf_link_hash_table): Add
148 local_ifunc_resolver and maybe_local_ifunc_resolver.
149 (ppc_elf_relocate_section): Set flag on emitting dynamic
150 relocation to ifuncs.
151 (ppc_elf_finish_dynamic_symbol): Likewise.
152 (ppc_elf_finish_dynamic_sections): Error on DT_TEXTREL with local
153 dynamic relocs to ifuncs.
154
155 2017-03-13 Nick Clifton <nickc@redhat.com>
156
157 PR binutils/21202
158 * reloc.c (BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC): Rename to
159 BFD_RELOC_AARCH64_TLSDESC_LD64_LO12.
160 (BFD_RELOC_AARCH64_TLSDESC_ADD_LO12_NC): Rename to
161 BFD_RELOC_AARCH64_TLSDESC_ADD_LO12.
162 * bfd-in2.h: Regenerate.
163 * libbfd.h: Regenerate.
164 * elfnn-aarch64.c (IS_AARCH64_TLS_RELAX_RELOC): Update reloc
165 names.
166 (IS_AARCH64_TLSDESC_RELOC): Likewise.
167 (elfNN_aarch64_howto_table): Likewise.
168 (aarch64_tls_transition_without_check): Likewise.
169 (aarch64_reloc_got_type): Likewise.
170 (elfNN_aarch64_final_link_relocate): Likewise.
171 (elfNN_aarch64_tls_relax): Likewise.
172 (elfNN_aarch64_relocate_section): Likewise.
173 (elfNN_aarch64_gc_sweep_hook): Likewise.
174 (elfNN_aarch64_check_relocs): Likewise.
175 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
176 (_bfd_aarch64_elf_resolve_relocation): Likewise.
177
178 2017-03-11 Alan Modra <amodra@gmail.com>
179
180 * elf32-ppc.c: Remove ATTRIBUTE_UNUSED throughout when function
181 parameter is in fact used. Whitespace fixes.
182 * elf64-ppc.c: Likewise.
183
184 2017-03-09 Sam Thursfield <sam.thursfield@codethink.co.uk>
185
186 * rs6000-core.c (CORE_NEW): Simplify macro when
187 AIX_CORE_DUMPX_CORE and BFD64 are true to avoid compile warning.
188
189 2017-03-07 Alan Modra <amodra@gmail.com>
190
191 PR 21224
192 PR 20519
193 * elf64-ppc.c (ppc64_elf_relocate_section): Add missing
194 dyn_relocs check.
195
196 2017-03-05 Alan Modra <amodra@gmail.com>
197
198 * elf-bfd.h (struct eh_cie_fde): Add u.cie.per_encoding_aligned8.
199 * elf-eh-frame.c (size_of_output_cie_fde): Don't align here.
200 (next_cie_fde_offset): New function.
201 (_bfd_elf_parse_eh_frame): Set u.cie.per_encoding_aligned8.
202 (_bfd_elf_discard_section_eh_frame): Align zero terminator to
203 four bytes. Align CIEs to four or eight bytes depending on
204 per_encoding_aligned8. Align FDEs according to their encoding.
205 Pad last FDE to output section alignment.
206 (_bfd_elf_write_section_eh_frame): Adjust to suit. Remove
207 assertion.
208 * elf64-ppc.c (glink_eh_frame_cie): Delete padding.
209 (ppc64_elf_size_stubs): Pad glink eh_frame as per elf-eh-frame.c.
210 (ppc64_elf_finish_dynamic_sections): Adjust to suit.
211
212 2017-03-02 Martin Bickel <binutils@ineranves.de>
213
214 PR ld/21212
215 * elf.c (rewrite_elf_program_header): Do not issue a warning for
216 empty segments which have a zero filesz, but a non-zero memsz.
217
218 2017-03-02 Alan Modra <amodra@gmail.com>
219
220 * elf32-ppc.c (ppc_elf_vle_split16): Correct insn mask typo.
221
222 2017-02-28 Alan Modra <amodra@gmail.com>
223
224 * elf64-ppc.c (ppc64_elf_ha_reloc): Revert last change.
225 (ppc64_elf_relocate_section): Likewise.
226
227 2017-02-28 Alan Modra <amodra@gmail.com>
228
229 PR 20995
230 * elf32-nios2.c (nios2_elf32_relocate_section): Use htab
231 rather than elf32_nios2_hash_table or elf_hash_table.
232 (create_got_section): Likewise.
233 (nios2_elf32_finish_dynamic_symbol): Likewise.
234 (nios2_elf32_adjust_dynamic_symbol): Likewise.
235 (nios2_elf32_size_dynamic_sections): Likewise.
236 (nios2_elf32_check_relocs): Delete dynobj, sgot, and srelgot
237 vars. Use htab equivalents directly instead. Don't create
238 all dynamic sections on needing just the GOT. Use a goto
239 rather than a fall-through with reloc test. Ensure
240 htab->dynobj is set when making dynamic sreloc section.
241 (nios2_elf32_finish_dynamic_sections): Delete dynobj, use htab
242 equivalent directly instead. Don't segfault on looking for
243 .dynamic when dynamic sections have not been created. Don't
244 segfault on .got.plt being discarded.
245 (nios2_elf32_size_dynamic_sections): Delete plt and got vars.
246 Don't set "relocs" on .rela.plt. Do handle .sbss. Delete
247 fixme and another not so relevant comment.
248 (nios2_elf_add_symbol_hook): Delete dynobj var. If not
249 already set, set hash table dynobj on creating .sbss.
250
251 2017-02-28 Alan Modra <amodra@gmail.com>
252
253 * reloc.c (BFD_RELOC_PPC_16DX_HA): New.
254 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_16DX_HA>): New howto.
255 (ppc64_elf_reloc_type_lookup): Translate new bfd reloc.
256 (ppc64_elf_ha_reloc): Correct overflow test on REL16DX_HA.
257 (ppc64_elf_relocate_section): Likewise.
258 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_16DX_HA>): New howto.
259 (ppc_elf_reloc_type_lookup): Translate new bfd reloc.
260 (ppc_elf_check_relocs): Handle R_PPC_16DX_HA to pacify gcc.
261 * libbfd.h: Regenerate.
262 * bfd-in2.h: Regenerate.
263
264 2017-02-28 Alan Modra <amodra@gmail.com>
265
266 * elflink.c (_bfd_elf_create_dynamic_sections): Don't make
267 dynamic .data.rel.ro read-only.
268 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Compare section
269 rather than section flags when deciding where copy reloc goes.
270 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
271 * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise.
272 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise.
273 * elf32-metag.c (elf_metag_finish_dynamic_symbol): Likewise.
274 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Likewise.
275 * elf32-nios2.c (nios2_elf32_finish_dynamic_symbol): Likewise.
276 * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Likewise.
277 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Likewise.
278 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
279 * elf32-tic6x.c (elf32_tic6x_finish_dynamic_symbol): Likewise.
280 * elf32-tilepro.c (tilepro_elf_finish_dynamic_symbol): Likewise.
281 * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Likewise.
282 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
283 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
284 * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Likewise.
285 * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Likewise.
286 * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
287 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
288 * elfxx-tilegx.c (tilegx_elf_finish_dynamic_symbol): Likewise.
289
290 2017-02-28 Maciej W. Rozycki <macro@imgtec.com>
291
292 * elfxx-mips.c (mips_elf_perform_relocation): Also handle the
293 `jalr $0, $25' instruction encoding.
294
295 2017-02-27 Nick Clifton <nickc@redhat.com>
296
297 PR ld/21180
298 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Avoid
299 generating a seg-fault when encountering a symbol that has been
300 deleted by garbage collection.
301
302 2017-02-25 Alan Modra <amodra@gmail.com>
303
304 * elf32-arc.c (struct dynamic_sections): Delete.
305 (enum dyn_section_types): Delete.
306 (dyn_section_names): Delete.
307 (arc_create_dynamic_sections): Delete.
308 (elf_arc_finish_dynamic_sections): Don't call the above. Don't
309 segfault on discarded .rela.plt section.
310 (elf_arc_size_dynamic_sections): Formatting. Don't call
311 arc_create_dynamic_sections. Don't allocate memory for sections
312 handled by the generic linker. Correct code finding relocs in
313 read-only sections. Set SEC_EXCLUDE on zero size .got,
314 .got.plt, and .dynbss sections. Do set .interp for pies.
315
316 2017-02-24 Andrew Waterman <andrew@sifive.com>
317
318 * elfnn-riscv.c (GP_NAME): New macro.
319 (riscv_global_pointer_value): Use it.
320 (_bfd_riscv_relax_lui): If symbol and global pointer are in same
321 output section, consider only that section's alignment.
322
323 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
324
325 * elfxx-mips.h (_bfd_mips_relax_section): Remove prototype.
326 * elfxx-mips.c (_bfd_mips_relax_section): Remove function.
327 * elf64-mips.c (bfd_elf64_bfd_relax_section): Remove macro.
328 * elfn32-mips.c (bfd_elf32_bfd_relax_section): Likewise.
329
330 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
331
332 * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_JALR>
333 <R_MICROMIPS_JALR>: Discard relocation if `cross_mode_jump_p'
334 or misaligned.
335
336 2017-02-23 Alan Modra <amodra@gmail.com>
337
338 PR 20744
339 * elf32-ppc.c (ppc_elf_howto_raw): Correct dst_mask on all VLE
340 16D relocations.
341 (ppc_elf_vle_split16): Correct field mask and shift for 16D relocs.
342 (ppc_elf_relocate_section): Correct calculation for VLE SDAREL
343 relocs.
344
345 2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
346
347 PR ld/20828
348 * elflink.c (bfd_elf_size_dynamic_sections): Move symbol version
349 processing ahead of the call to `elf_gc_sweep_symbol'.
350
351 2017-02-22 Nick Clifton <nickc@redhat.com>
352
353 PR binutils/21193
354 * opncls.c (bfd_create_gnu_debuglink_section): Give the newly
355 created section 4-byte alignment.
356
357 2017-02-22 Alan Modra <amodra@gmail.com>
358
359 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Don't segfault
360 on .got or .plt output section being discarded by script.
361 * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Likewise. Move
362 vxworks splt temp.
363
364 2017-02-21 Alan Modra <amodra@gmail.com>
365
366 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only emit
367 DT_RELA, DT_RELASZ, and DT_RELAENT when DT_RELASZ is non-zero.
368
369 2017-02-20 Alan Modra <amodra@gmail.com>
370
371 PR 21181
372 * elflink.c (bfd_elf_final_link): Make DT_REL/DT_RELA zero
373 if DT_RELSZ/DT_RELASZ is zero.
374
375 2017-02-17 Nick Clifton <nickc@redhat.com>
376
377 * compress.c (bfd_get_full_section_contents): Remember to reduce
378 compressed size by the sizeof the compression header when
379 decompressing the contents.
380
381 2017-02-17 Pedro Alves <palves@redhat.com>
382
383 * srec.c (Chunk): Rename to ...
384 (_bfd_srec_len): ... this.
385 (S3Forced): Rename to ...
386 (_bfd_srec_forceS3): ... this.
387 * objcopy.c: Adjust all references.
388
389 2017-02-17 Pedro Alves <palves@redhat.com>
390
391 * archive.c (bsd_write_armap): Rename to ...
392 (_bfd_bsd_write_armap): ... this.
393 (coff_write_armap): Rename to ...
394 (_bfd_coff_write_armap): ... this.
395 * libbfd-in.h (bsd_write_armap): Rename to ...
396 (_bfd_bsd_write_armap): ... this.
397 (coff_write_armap): Rename to ...
398 (_bfd_coff_write_armap): ... this.
399 * aout-target.h, aout-tic30.c: Adjust all users.
400 * libbfd.h: Regenerate.
401
402 2017-02-17 Pedro Alves <palves@redhat.com>
403
404 * bfd-in.h (bfd_read, bfd_write): Adjust to rename.
405 (warn_deprecated): Rename to ...
406 (_bfd_warn_deprecated): ... this.
407 * libbfd.c (warn_deprecated): Rename to ...
408 (_bfd_warn_deprecated): ... this.
409 * bfd-in2.h: Regenerate.
410
411 2017-02-17 Pedro Alves <palves@redhat.com>
412
413 * bfdio.c (real_ftell): Rename to ...
414 (_bfd_real_ftell): ... this.
415 (real_fseek): Rename to ...
416 (_bfd_real_fseek): ... this.
417 (real_fopen): Rename to ...
418 (_bfd_real_fopen): ... this.
419 * libbfd-in.h (real_ftell): Rename to ...
420 (_bfd_real_ftell): ... this.
421 (real_fseek): Rename to ...
422 (_bfd_real_fseek): ... this.
423 (real_fopen): Rename to ...
424 (_bfd_real_fopen): ... this.
425 * cache.c, dwarf2.c, opncls.c: Adjust all callers.
426 * libbfd.h: Regenerate.
427
428 2017-02-17 Pedro Alves <palves@redhat.com>
429
430 * dwarf2.c, elf-attrs.c, elf32-nds32.c: Adjust all callers.
431 * libbfd.c (read_unsigned_leb128): Rename to ...
432 (_bfd_read_unsigned_leb128): ... this.
433 (read_signed_leb128): Rename to ...
434 (_bfd_read_signed_leb128): ... this.
435 (safe_read_leb128): Rename to ...
436 (_bfd_safe_read_leb128): ... this.
437 * libbfd-in.h (read_unsigned_leb128): Rename to ...
438 (_bfd_read_unsigned_leb128): ... this.
439 (read_signed_leb128): Rename to ...
440 (_bfd_read_signed_leb128): ... this.
441 (safe_read_leb128): Rename to ...
442 (_bfd_safe_read_leb128): ... this.
443 * libbfd.h: Renegerate.
444
445 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
446
447 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Perform symbol lookup
448 before trying to fine matching file and line information.
449
450 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
451
452 * dwarf2.c (struct dwarf2_debug): Add orig_bfd member.
453 (_bfd_dwarf2_slurp_debug_info): If stashed debug information does
454 not match current bfd, then reload debug information. Record bfd
455 we're loading debug info for in the stash. If we have debug
456 informatin in the cache then perform section placement before
457 returning.
458
459 2017-02-16 Alan Modra <amodra@gmail.com>
460
461 PR 21000
462 * elf-bfd.h (struct elf_backend_data): Add no_page_alias.
463 * elfxx-target.h (elf_backend_no_page_alias): Define.
464 (elfNN_bed): Init new field.
465 * elf.c (assign_file_positions_for_load_sections): If no_page_alias
466 ensure PT_LOAD segment starts on a new page.
467 * elf32-hppa.c (elf_backend_no_page_alias): Define.
468
469 2017-02-16 Alan Modra <amodra@gmail.com>
470
471 PR 21132
472 * elf32-hppa.c (allocate_plt_static): Allocate space for relocs
473 if pic.
474
475 2017-02-16 Jiong Wang <jiong.wang@arm.com>
476
477 * bfd.c (BFD_FLAGS_SAVED): Add BFD_LINKER_CREATED.
478 * bfd-in2.h: Regenerated.
479
480 2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
481
482 PR ld/21168
483 * elf32-i386.c (elf_i386_relocate_section): Allow
484 "lea foo@GOT, %reg" in PIC.
485
486 2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
487
488 PR ld/20244
489 * elf32-i386.c (elf_i386_relocate_section): Properly get IFUNC
490 symbol name when reporting R_386_GOT32/R_386_GOT32X relocation
491 error against local IFUNC symbol without a base register for
492 PIC.
493
494 2017-02-15 Maciej W. Rozycki <macro@imgtec.com>
495
496 * elf32-ppc.c (ppc_elf_check_relocs): Use `%H:' rather than
497 `%P: %H:' with `info->callbacks->einfo'.
498 (ppc_elf_relocate_section): Likewise.
499 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
500 (ppc64_elf_edit_toc): Likewise.
501 (ppc64_elf_relocate_section): Likewise.
502
503 2017-02-14 Alan Modra <amodra@gmail.com>
504
505 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Support
506 --gc-keep-exported, and test versioned field of sym rather than
507 looking for @ in name.
508
509 2017-02-13 Palmer Dabbelt <palmer@dabbelt.com>
510
511 * elfnn-riscv.c (riscv_global_pointer_value): Change _gp to
512 __global_pointer$.
513
514 2017-02-13 Nick Clifton <nickc@redhat.com>
515
516 PR binutils/21151
517 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Check for an invalid
518 unit length field.
519
520 2017-02-07 Andrew Waterman <andrew@sifive.com>
521
522 * elfnn-riscv.c (riscv_elf_finish_dynamic_sections): Only write PLT
523 entry size if PLT header is written.
524
525 2017-02-06 Sheldon Lobo <sheldon.lobo@oracle.com>
526
527 Fix sparc64 dynamic relocation processing to use the dynamic
528 symbol count.
529 * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Use 'dynamic'
530 to determine if bfd_get_symcount() or bfd_get_dynamic_symcount()
531 should be used.
532
533 2017-02-03 Nick Clifton <nickc@redhat.com>
534
535 PR 21096
536 * coffcode.h (coff_write_object_contents): Enlarge size of
537 s_name_buf in order to avoid compile time warning about possible
538 integer truncation.
539 * elf32-nds32.c (nds32_elf_ex9_import_table): Mask off lower
540 32-bits of insn value before printing into buffer.
541
542 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
543
544 * elfxx-mips.c (mips_elf_hash_sort_data): Add
545 `max_local_dynindx'.
546 (mips_elf_sort_hash_table): Handle it.
547 (mips_elf_sort_hash_table_f) <GGA_NONE>: For forced local
548 symbols bump up `max_local_dynindx' rather than
549 `max_non_got_dynindx'.
550
551 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
552
553 * elfxx-mips.c (mips_elf_hash_sort_data): Convert the
554 `min_got_dynindx', `max_unref_got_dynindx' and
555 `max_non_got_dynindx' members to the `bfd_size_type' data type.
556 (mips_elf_sort_hash_table): Adjust accordingly.
557
558 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
559
560 * elfxx-mips.c (mips_elf_sort_hash_table): Use `htab' throughout
561 to access the hash table.
562
563 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
564
565 * elfxx-mips.c (mips_elf_sort_hash_table): Move assertion on
566 non-NULL `htab' to the beginning.
567
568 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
569
570 * elflink.c (elf_gc_sweep): Wrap overlong line.
571
572 2017-01-30 Maciej W. Rozycki <macro@imgtec.com>
573
574 * elfxx-mips.h (_bfd_mips_elf_insn32): Rename prototype to...
575 (_bfd_mips_elf_linker_flags): ... this. Add another parameter.
576 * elfxx-mips.c (mips_elf_link_hash_table): Add
577 `ignore_branch_isa' member.
578 (mips_elf_perform_relocation): Do not treat an ISA mode mismatch
579 in branch relocation calculation as an error if
580 `ignore_branch_isa' has been set.
581 (_bfd_mips_elf_insn32): Rename to...
582 (_bfd_mips_elf_linker_flags): ... this. Rename the `on'
583 parameter to `insn32' and add an `ignore_branch_isa' parameter.
584 Handle the new parameter.
585
586 2017-01-27 Hans-Peter Nilsson <hp@axis.com>
587
588 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Remove now unused
589 local variable dynobj.
590
591 PR ld/20995
592 * elf32-cris.c (elf_cris_size_dynamic_sections): Handle sdynrelro.
593 (elf_cris_adjust_dynamic_symbol): Place variables copied into the
594 executable from read-only sections into sdynrelro.
595 (elf_cris_finish_dynamic_symbol): Select sreldynrelro for
596 dynamic relocs in sdynrelro.
597 (elf_backend_want_dynrelro): Define.
598
599 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
600
601 * config.bfd (*-*-rtemsaout*): Mark as removed.
602
603 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
604
605 * config.bfd (powerpcle-*-rtems*): Do not mark as removed.
606 (arm-*-rtems*): Move to (arm*-*-eabi*).
607 (i[3-7]86-*-rtems*): Move to (i[3-7]86-*-elf*).
608 (m68-*-rtems*): Move to (m68*-*-elf*).
609
610 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
611
612 * config.bfd (*-*-rtemscoff*): Mark as removed.
613
614 2017-01-24 Maciej W. Rozycki <macro@imgtec.com>
615
616 PR ld/20828
617 * elflink.c (bfd_elf_record_link_assignment): Revert last
618 change and don't ever clear `forced_local'. Set `mark'
619 unconditionally.
620 (elf_gc_sweep_symbol_info, elf_gc_sweep_symbol): Reorder within
621 file.
622 (elf_gc_sweep): Move the call to `elf_gc_sweep_symbol'...
623 (bfd_elf_size_dynamic_sections): ... here.
624 * elf32-ppc.c (ppc_elf_tls_setup): Don't clear `forced_local'
625 and set `mark' instead in `__tls_get_addr_opt' processing.
626 * elf64-ppc.c (ppc64_elf_tls_setup): Likewise.
627
628 2017-01-24 Alan Modra <amodra@gmail.com>
629
630 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Merge two cases
631 where dynamic relocs are preferable. Allow ifunc too.
632 (ensure_undefweak_dynamic): New function.
633 (allocate_dynrelocs): Use it here. Move plt handling last and
634 don't make symbols dynamic, simplifying loop. Only make undef
635 weak symbols with GOT entries dynamic. Correct condition
636 for GOT relocs. Handle dynamic relocs on ifuncs. Correct
637 comments. Remove goto.
638 (ppc_elf_relocate_section): Correct test for using dynamic
639 symbol on GOT relocs. Rearrange test for emitting GOT relocs
640 to suit. Set up explicit tls_index entries and implicit GOT
641 tls_index entries resolvable at link time for
642 __tls_get_addr_opt. Simplify test to clear mem for prelink.
643 * elf64-ppc.c (allocate_got): Correct condition for GOT relocs.
644 (ensure_undefweak_dynamic): New function.
645 (allocate_dynrelocs): Use it here. Only make undef weak symbols
646 with GOT entries dynamic. Remove unnecessary test of
647 WILL_CALL_FINISH_DYNAMIC_SYMBOL in PLT handling.
648 (ppc64_elf_relocate_section): Correct test for using dynamic
649 symbol on GOT relocs. Rearrange test for emitting GOT relocs
650 to suit. Set up explicit tls_index entries and implicit GOT
651 tls_index entries resolvable at link time for __tls_get_addr_opt.
652 Simplify expression to clear mem for prelink.
653
654 2017-01-23 Yury Norov <ynorov@caviumnetworks.com>
655
656 * elfnn-aarch64.c: Fix relaxations for ILP32 mode.
657
658 2017-01-20 Jiong Wang <jiong.wang@arm.com>
659
660 * elfnn-aarch64.c (elf_aarch64_hash_symbol): New function.
661 (elf_backend_hash_symbol): Define.
662
663 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
664
665 PR ld/20828
666 * elflink.c (bfd_elf_record_link_assignment): Clear any
667 `forced_local' marking for DSO symbols that are not being
668 provided.
669
670 2017-01-17 Kuan-Lin Chen <kuanlinchentw@gmail.com>
671
672 * elfnn-riscv.c (riscv_elf_object_p): New function.
673
674 2017-01-12 H.J. Lu <hongjiu.lu@intel.com>
675
676 PR ld/21038
677 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add
678 plt_bnd_eh_frame.
679 (elf_x86_64_check_relocs): Create .eh_frame section for the
680 .plt.bnd section.
681 (elf_x86_64_size_dynamic_sections): Allocate and initialize
682 .eh_frame section for the .plt.bnd section.
683 (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section
684 for the .plt.bnd section.
685
686 2017-01-12 Nick Clifton <nickc@redhat.com>
687
688 PR binutils/20876
689 * opncls.c (find_separate_debug_file): Add include_dirs
690 parameter. Only include the directory part of the bfd's filename
691 in search paths if include_dirs is true. Add a couple of extra
692 locations for looking for debug files.
693 ( bfd_follow_gnu_debuglink): Update invocation of
694 find_separate_debug_file.
695 (bfd_follow_gnu_debugaltlink): Likewise.
696 (get_build_id): New function: Finds the build-id of the given bfd.
697 (get_build_id_name): New function: Computes the name of the
698 separate debug info file for a bfd, based upon its build-id.
699 (check_build_id_file): New function: Checks to see if a separate
700 debug info file exists at the given location, and that its
701 build-id matches that of the original bfd.
702 (bfd_follow_build_id_debuglink): New function: Finds a separate
703 debug info file for a given bfd by using the build-id method.
704 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Try using the build-id
705 method of locating a separate debug info file before using the
706 debuglink method.
707 * bfd-in2.h: Regenerate.
708
709 2017-01-11 H.J. Lu <hongjiu.lu@intel.com>
710
711 PR ld/21038
712 * elf64-x86-64.c (elf_x86_64_eh_frame_bnd_plt): New.
713 (elf_x86_64_bnd_arch_bed): Use elf_x86_64_eh_frame_bnd_plt and
714 elf_x86_64_eh_frame_plt_got.
715 (elf_x86_64_size_dynamic_sections): Get unwind info from
716 elf_x86_64_bnd_arch_bed for the BND PLT.
717
718 2017-01-11 Jeremy Soller <jackpot51@gmail.com>
719
720 * config.bfd: Add entries for i686-redox and x86_64-redox.
721
722 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
723
724 * elf32-i386.c (elf_i386_check_relocs): Align .eh_frame section
725 to 4 bytes.
726 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Align
727 .eh_frame section to 4 bytes for x32.
728 (elf_x86_64_check_relocs): Likewise.
729
730 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
731
732 PR ld/20830
733 * elf32-i386.c (elf_i386_eh_frame_plt_got): New.
734 (PLT_GOT_FDE_LENGTH): Likewise.
735 (elf_i386_plt_layout): Add eh_frame_plt_got and
736 eh_frame_plt_got_size.
737 (elf_i386_plt): Updated.
738 (elf_i386_link_hash_table): Add plt_got_eh_frame.
739 (elf_i386_check_relocs): Create .eh_frame section for .plt.got.
740 (elf_i386_size_dynamic_sections): Allocate and initialize
741 .eh_frame section for .plt.got.
742 (elf_i386_finish_dynamic_sections): Adjust .eh_frame section for
743 .plt.got.
744 (elf_i386_nacl_plt): Add FIXME for eh_frame_plt_got and
745 eh_frame_plt_got_size.
746 * elf64-x86-64.c (elf_x86_64_eh_frame_plt_got): New.
747 (PLT_GOT_FDE_LENGTH): Likewise.
748 (elf_x86_64_backend_data): Add eh_frame_plt_got and
749 eh_frame_plt_got_size.
750 (elf_x86_64_arch_bed): Updated.
751 (elf_x86_64_bnd_arch_bed): Add FIXME for eh_frame_plt_got and
752 eh_frame_plt_got_size.
753 (elf_x86_64_nacl_arch_bed): Likewise.
754 (elf_x86_64_link_hash_table): Add plt_got_eh_frame.
755 (elf_x86_64_check_relocs): Create .eh_frame section for .plt.got.
756 (elf_x86_64_size_dynamic_sections): Allocate and initialize
757 .eh_frame section for .plt.got.
758 (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section
759 for .plt.got.
760
761 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
762
763 * elf32-i386.c (elf_i386_size_dynamic_sections): Set
764 plt_eh_frame->size to eh_frame_plt_size and use eh_frame_plt.
765
766 2017-01-09 Nick Clifton <nickc@redhat.com>
767
768 * dwarf2.c (lookup_address_in_function_table): Return early if
769 there are no functions in the given comp unit, or if the high
770 address of the last function in the comp unit is less than the
771 desired address.
772
773 2017-01-09 Nick Clifton <nickc@redhat.com>
774
775 PR binutils/21013
776 * coffgen.c (_bfd_coff_get_external_symbols): Generate an error
777 message if there are too many symbols to load.
778
779 2017-01-04 James Clarke <jrtc27@jrtc27.com>
780
781 * elf64-alpha.c (elf64_alpha_relax_opt_call): Don't set tsec_free
782 if relocs are cached.
783
784 2017-01-03 Rich Felker <bugdal@aerifal.cx>
785
786 PR ld/21017
787 * elf32-microblaze.c (microblaze_elf_check_relocs): Add an entry
788 for R_MICROBLAZE_GOTOFF_64.
789
790 2017-01-03 Nick Clifton <nickc@redhat.com>
791
792 * mach-o.c (bfd_mach_o_lookup_uuid_command): Fix compile time
793 warning about using a possibly uninitialised variable.
794
795 2017-01-02 Alan Modra <amodra@gmail.com>
796
797 * elf32-hppa.c (ensure_undef_weak_dynamic): New function.
798 (allocate_plt_static, allocate_dynrelocs): Use it.
799
800 2017-01-02 Alan Modra <amodra@gmail.com>
801
802 * elf-hppa.h (elf_hppa_fake_sections): Set SHF_INFO_LINK for
803 .PARISC.unwind section.
804
805 2017-01-02 Alan Modra <amodra@gmail.com>
806
807 PR ld/20989
808 * elfxx-sparc.c (gdop_relative_offset_ok): New function.
809 (_bfd_sparc_elf_relocate_section): Use it to validate GOT
810 indirect to GOT pointer relative code edit.
811
812 2017-01-02 Alan Modra <amodra@gmail.com>
813
814 Update year range in copyright notice of all files.
815
816 For older changes see ChangeLog-2016
817 \f
818 Copyright (C) 2017 Free Software Foundation, Inc.
819
820 Copying and distribution of this file, with or without modification,
821 are permitted in any medium without royalty provided the copyright
822 notice and this notice are preserved.
823
824 Local Variables:
825 mode: change-log
826 left-margin: 8
827 fill-column: 74
828 version-control: never
829 End:
This page took 0.05858 seconds and 4 git commands to generate.