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