4 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Adjust BFD_ASSERT
5 to handle a local symbol with a hash-symbol-entry; without PLT.
6 Add BFD_ASSERT for an incidental case with GOT entry present.
7 (cris_elf_check_relocs): Increment PLT refcount only if the symbol
8 isn't forced-or-set local.
12 * wasm-module.c: New file to support WebAssembly modules.
13 * wasm-module.h: New file to support WebAssembly modules.
14 * doc/webassembly.texi: Start documenting wasm-module.c.
15 * config.bfd: Add wasm_vec.
16 * targets.c: Likewise.
17 * configure.ac: Likewise.
18 * Makefile.am: Add entries for wasm-module.c.
19 * Makefile.in: Regenerate.
20 * configure: Regenerate.
21 * po/SRC-POTFILES.in: Regenerate.
25 * cpu-wasm32.c: New file to support wasm32 architecture.
26 * elf32-wasm32.c: New file to support wasm32 architecture.
27 * Makefile.am: Add wasm32 architecture.
28 * archures.c: Likewise.
29 * config.bfd: Likewise.
30 * configure.ac: Likewise.
31 * targets.c: Likewise.
32 * Makefile.in: Regenerate.
33 * bfd-in2.h: Regenerate.
34 * configure: Regenerate.
35 * po/SRC-POTFILES.in: Regenerate.
40 * elf64-ppc.c (compare_symbols): Stabilize sort.
44 * elf64-ppc.c (struct ppc_link_hash_table): Add
45 local_ifunc_resolver and maybe_local_ifunc_resolver.
46 (ppc_build_one_stub): Set flags on emitting dynamic
48 (ppc64_elf_relocate_section): Likewise.
49 (ppc64_elf_finish_dynamic_symbol): Likewise.
50 (ppc64_elf_finish_dynamic_sections): Error on DT_TEXTREL with
51 local dynamic relocs to ifuncs.
52 * elf32-ppc.c (struct ppc_elf_link_hash_table): Add
53 local_ifunc_resolver and maybe_local_ifunc_resolver.
54 (ppc_elf_relocate_section): Set flag on emitting dynamic
56 (ppc_elf_finish_dynamic_symbol): Likewise.
57 (ppc_elf_finish_dynamic_sections): Error on DT_TEXTREL with local
58 dynamic relocs to ifuncs.
63 * reloc.c (BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC): Rename to
64 BFD_RELOC_AARCH64_TLSDESC_LD64_LO12.
65 (BFD_RELOC_AARCH64_TLSDESC_ADD_LO12_NC): Rename to
66 BFD_RELOC_AARCH64_TLSDESC_ADD_LO12.
67 * bfd-in2.h: Regenerate.
68 * libbfd.h: Regenerate.
69 * elfnn-aarch64.c (IS_AARCH64_TLS_RELAX_RELOC): Update reloc
71 (IS_AARCH64_TLSDESC_RELOC): Likewise.
72 (elfNN_aarch64_howto_table): Likewise.
73 (aarch64_tls_transition_without_check): Likewise.
74 (aarch64_reloc_got_type): Likewise.
75 (elfNN_aarch64_final_link_relocate): Likewise.
76 (elfNN_aarch64_tls_relax): Likewise.
77 (elfNN_aarch64_relocate_section): Likewise.
78 (elfNN_aarch64_gc_sweep_hook): Likewise.
79 (elfNN_aarch64_check_relocs): Likewise.
80 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
81 (_bfd_aarch64_elf_resolve_relocation): Likewise.
85 * elf32-ppc.c: Remove ATTRIBUTE_UNUSED throughout when function
86 parameter is in fact used. Whitespace fixes.
87 * elf64-ppc.c: Likewise.
91 * rs6000-core.c (CORE_NEW): Simplify macro when
92 AIX_CORE_DUMPX_CORE and BFD64 are true to avoid compile warning.
98 * elf64-ppc.c (ppc64_elf_relocate_section): Add missing
103 * elf-bfd.h (struct eh_cie_fde): Add u.cie.per_encoding_aligned8.
104 * elf-eh-frame.c (size_of_output_cie_fde): Don't align here.
105 (next_cie_fde_offset): New function.
106 (_bfd_elf_parse_eh_frame): Set u.cie.per_encoding_aligned8.
107 (_bfd_elf_discard_section_eh_frame): Align zero terminator to
108 four bytes. Align CIEs to four or eight bytes depending on
109 per_encoding_aligned8. Align FDEs according to their encoding.
110 Pad last FDE to output section alignment.
111 (_bfd_elf_write_section_eh_frame): Adjust to suit. Remove
113 * elf64-ppc.c (glink_eh_frame_cie): Delete padding.
114 (ppc64_elf_size_stubs): Pad glink eh_frame as per elf-eh-frame.c.
115 (ppc64_elf_finish_dynamic_sections): Adjust to suit.
120 * elf.c (rewrite_elf_program_header): Do not issue a warning for
121 empty segments which have a zero filesz, but a non-zero memsz.
125 * elf32-ppc.c (ppc_elf_vle_split16): Correct insn mask typo.
129 * elf64-ppc.c (ppc64_elf_ha_reloc): Revert last change.
130 (ppc64_elf_relocate_section): Likewise.
135 * elf32-nios2.c (nios2_elf32_relocate_section): Use htab
136 rather than elf32_nios2_hash_table or elf_hash_table.
137 (create_got_section): Likewise.
138 (nios2_elf32_finish_dynamic_symbol): Likewise.
139 (nios2_elf32_adjust_dynamic_symbol): Likewise.
140 (nios2_elf32_size_dynamic_sections): Likewise.
141 (nios2_elf32_check_relocs): Delete dynobj, sgot, and srelgot
142 vars. Use htab equivalents directly instead. Don't create
143 all dynamic sections on needing just the GOT. Use a goto
144 rather than a fall-through with reloc test. Ensure
145 htab->dynobj is set when making dynamic sreloc section.
146 (nios2_elf32_finish_dynamic_sections): Delete dynobj, use htab
147 equivalent directly instead. Don't segfault on looking for
148 .dynamic when dynamic sections have not been created. Don't
149 segfault on .got.plt being discarded.
150 (nios2_elf32_size_dynamic_sections): Delete plt and got vars.
151 Don't set "relocs" on .rela.plt. Do handle .sbss. Delete
152 fixme and another not so relevant comment.
153 (nios2_elf_add_symbol_hook): Delete dynobj var. If not
154 already set, set hash table dynobj on creating .sbss.
158 * reloc.c (BFD_RELOC_PPC_16DX_HA): New.
159 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_16DX_HA>): New howto.
160 (ppc64_elf_reloc_type_lookup): Translate new bfd reloc.
161 (ppc64_elf_ha_reloc): Correct overflow test on REL16DX_HA.
162 (ppc64_elf_relocate_section): Likewise.
163 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_16DX_HA>): New howto.
164 (ppc_elf_reloc_type_lookup): Translate new bfd reloc.
165 (ppc_elf_check_relocs): Handle R_PPC_16DX_HA to pacify gcc.
166 * libbfd.h: Regenerate.
167 * bfd-in2.h: Regenerate.
171 * elflink.c (_bfd_elf_create_dynamic_sections): Don't make
172 dynamic .data.rel.ro read-only.
173 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Compare section
174 rather than section flags when deciding where copy reloc goes.
175 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
176 * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise.
177 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise.
178 * elf32-metag.c (elf_metag_finish_dynamic_symbol): Likewise.
179 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Likewise.
180 * elf32-nios2.c (nios2_elf32_finish_dynamic_symbol): Likewise.
181 * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Likewise.
182 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Likewise.
183 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
184 * elf32-tic6x.c (elf32_tic6x_finish_dynamic_symbol): Likewise.
185 * elf32-tilepro.c (tilepro_elf_finish_dynamic_symbol): Likewise.
186 * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Likewise.
187 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
188 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
189 * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Likewise.
190 * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Likewise.
191 * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
192 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
193 * elfxx-tilegx.c (tilegx_elf_finish_dynamic_symbol): Likewise.
197 * elfxx-mips.c (mips_elf_perform_relocation): Also handle the
198 `jalr $0, $25' instruction encoding.
203 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Avoid
204 generating a seg-fault when encountering a symbol that has been
205 deleted by garbage collection.
209 * elf32-arc.c (struct dynamic_sections): Delete.
210 (enum dyn_section_types): Delete.
211 (dyn_section_names): Delete.
212 (arc_create_dynamic_sections): Delete.
213 (elf_arc_finish_dynamic_sections): Don't call the above. Don't
214 segfault on discarded .rela.plt section.
215 (elf_arc_size_dynamic_sections): Formatting. Don't call
216 arc_create_dynamic_sections. Don't allocate memory for sections
217 handled by the generic linker. Correct code finding relocs in
218 read-only sections. Set SEC_EXCLUDE on zero size .got,
219 .got.plt, and .dynbss sections. Do set .interp for pies.
223 * elfnn-riscv.c (GP_NAME): New macro.
224 (riscv_global_pointer_value): Use it.
225 (_bfd_riscv_relax_lui): If symbol and global pointer are in same
226 output section, consider only that section's alignment.
230 * elfxx-mips.h (_bfd_mips_relax_section): Remove prototype.
231 * elfxx-mips.c (_bfd_mips_relax_section): Remove function.
232 * elf64-mips.c (bfd_elf64_bfd_relax_section): Remove macro.
233 * elfn32-mips.c (bfd_elf32_bfd_relax_section): Likewise.
237 * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_JALR>
238 <R_MICROMIPS_JALR>: Discard relocation if `cross_mode_jump_p'
244 * elf32-ppc.c (ppc_elf_howto_raw): Correct dst_mask on all VLE
246 (ppc_elf_vle_split16): Correct field mask and shift for 16D relocs.
247 (ppc_elf_relocate_section): Correct calculation for VLE SDAREL
253 * elflink.c (bfd_elf_size_dynamic_sections): Move symbol version
254 processing ahead of the call to `elf_gc_sweep_symbol'.
259 * opncls.c (bfd_create_gnu_debuglink_section): Give the newly
260 created section 4-byte alignment.
264 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Don't segfault
265 on .got or .plt output section being discarded by script.
266 * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Likewise. Move
271 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only emit
272 DT_RELA, DT_RELASZ, and DT_RELAENT when DT_RELASZ is non-zero.
277 * elflink.c (bfd_elf_final_link): Make DT_REL/DT_RELA zero
278 if DT_RELSZ/DT_RELASZ is zero.
282 * compress.c (bfd_get_full_section_contents): Remember to reduce
283 compressed size by the sizeof the compression header when
284 decompressing the contents.
288 * srec.c (Chunk): Rename to ...
289 (_bfd_srec_len): ... this.
290 (S3Forced): Rename to ...
291 (_bfd_srec_forceS3): ... this.
292 * objcopy.c: Adjust all references.
296 * archive.c (bsd_write_armap): Rename to ...
297 (_bfd_bsd_write_armap): ... this.
298 (coff_write_armap): Rename to ...
299 (_bfd_coff_write_armap): ... this.
300 * libbfd-in.h (bsd_write_armap): Rename to ...
301 (_bfd_bsd_write_armap): ... this.
302 (coff_write_armap): Rename to ...
303 (_bfd_coff_write_armap): ... this.
304 * aout-target.h, aout-tic30.c: Adjust all users.
305 * libbfd.h: Regenerate.
309 * bfd-in.h (bfd_read, bfd_write): Adjust to rename.
310 (warn_deprecated): Rename to ...
311 (_bfd_warn_deprecated): ... this.
312 * libbfd.c (warn_deprecated): Rename to ...
313 (_bfd_warn_deprecated): ... this.
314 * bfd-in2.h: Regenerate.
318 * bfdio.c (real_ftell): Rename to ...
319 (_bfd_real_ftell): ... this.
320 (real_fseek): Rename to ...
321 (_bfd_real_fseek): ... this.
322 (real_fopen): Rename to ...
323 (_bfd_real_fopen): ... this.
324 * libbfd-in.h (real_ftell): Rename to ...
325 (_bfd_real_ftell): ... this.
326 (real_fseek): Rename to ...
327 (_bfd_real_fseek): ... this.
328 (real_fopen): Rename to ...
329 (_bfd_real_fopen): ... this.
330 * cache.c, dwarf2.c, opncls.c: Adjust all callers.
331 * libbfd.h: Regenerate.
335 * dwarf2.c, elf-attrs.c, elf32-nds32.c: Adjust all callers.
336 * libbfd.c (read_unsigned_leb128): Rename to ...
337 (_bfd_read_unsigned_leb128): ... this.
338 (read_signed_leb128): Rename to ...
339 (_bfd_read_signed_leb128): ... this.
340 (safe_read_leb128): Rename to ...
341 (_bfd_safe_read_leb128): ... this.
342 * libbfd-in.h (read_unsigned_leb128): Rename to ...
343 (_bfd_read_unsigned_leb128): ... this.
344 (read_signed_leb128): Rename to ...
345 (_bfd_read_signed_leb128): ... this.
346 (safe_read_leb128): Rename to ...
347 (_bfd_safe_read_leb128): ... this.
348 * libbfd.h: Renegerate.
352 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Perform symbol lookup
353 before trying to fine matching file and line information.
357 * dwarf2.c (struct dwarf2_debug): Add orig_bfd member.
358 (_bfd_dwarf2_slurp_debug_info): If stashed debug information does
359 not match current bfd, then reload debug information. Record bfd
360 we're loading debug info for in the stash. If we have debug
361 informatin in the cache then perform section placement before
367 * elf-bfd.h (struct elf_backend_data): Add no_page_alias.
368 * elfxx-target.h (elf_backend_no_page_alias): Define.
369 (elfNN_bed): Init new field.
370 * elf.c (assign_file_positions_for_load_sections): If no_page_alias
371 ensure PT_LOAD segment starts on a new page.
372 * elf32-hppa.c (elf_backend_no_page_alias): Define.
377 * elf32-hppa.c (allocate_plt_static): Allocate space for relocs
382 * bfd.c (BFD_FLAGS_SAVED): Add BFD_LINKER_CREATED.
383 * bfd-in2.h: Regenerated.
388 * elf32-i386.c (elf_i386_relocate_section): Allow
389 "lea foo@GOT, %reg" in PIC.
394 * elf32-i386.c (elf_i386_relocate_section): Properly get IFUNC
395 symbol name when reporting R_386_GOT32/R_386_GOT32X relocation
396 error against local IFUNC symbol without a base register for
401 * elf32-ppc.c (ppc_elf_check_relocs): Use `%H:' rather than
402 `%P: %H:' with `info->callbacks->einfo'.
403 (ppc_elf_relocate_section): Likewise.
404 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
405 (ppc64_elf_edit_toc): Likewise.
406 (ppc64_elf_relocate_section): Likewise.
410 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Support
411 --gc-keep-exported, and test versioned field of sym rather than
412 looking for @ in name.
416 * elfnn-riscv.c (riscv_global_pointer_value): Change _gp to
422 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Check for an invalid
427 * elfnn-riscv.c (riscv_elf_finish_dynamic_sections): Only write PLT
428 entry size if PLT header is written.
432 Fix sparc64 dynamic relocation processing to use the dynamic
434 * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Use 'dynamic'
435 to determine if bfd_get_symcount() or bfd_get_dynamic_symcount()
441 * coffcode.h (coff_write_object_contents): Enlarge size of
442 s_name_buf in order to avoid compile time warning about possible
444 * elf32-nds32.c (nds32_elf_ex9_import_table): Mask off lower
445 32-bits of insn value before printing into buffer.
449 * elfxx-mips.c (mips_elf_hash_sort_data): Add
451 (mips_elf_sort_hash_table): Handle it.
452 (mips_elf_sort_hash_table_f) <GGA_NONE>: For forced local
453 symbols bump up `max_local_dynindx' rather than
454 `max_non_got_dynindx'.
458 * elfxx-mips.c (mips_elf_hash_sort_data): Convert the
459 `min_got_dynindx', `max_unref_got_dynindx' and
460 `max_non_got_dynindx' members to the `bfd_size_type' data type.
461 (mips_elf_sort_hash_table): Adjust accordingly.
465 * elfxx-mips.c (mips_elf_sort_hash_table): Use `htab' throughout
466 to access the hash table.
470 * elfxx-mips.c (mips_elf_sort_hash_table): Move assertion on
471 non-NULL `htab' to the beginning.
475 * elflink.c (elf_gc_sweep): Wrap overlong line.
479 * elfxx-mips.h (_bfd_mips_elf_insn32): Rename prototype to...
480 (_bfd_mips_elf_linker_flags): ... this. Add another parameter.
481 * elfxx-mips.c (mips_elf_link_hash_table): Add
482 `ignore_branch_isa' member.
483 (mips_elf_perform_relocation): Do not treat an ISA mode mismatch
484 in branch relocation calculation as an error if
485 `ignore_branch_isa' has been set.
486 (_bfd_mips_elf_insn32): Rename to...
487 (_bfd_mips_elf_linker_flags): ... this. Rename the `on'
488 parameter to `insn32' and add an `ignore_branch_isa' parameter.
489 Handle the new parameter.
493 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Remove now unused
494 local variable dynobj.
497 * elf32-cris.c (elf_cris_size_dynamic_sections): Handle sdynrelro.
498 (elf_cris_adjust_dynamic_symbol): Place variables copied into the
499 executable from read-only sections into sdynrelro.
500 (elf_cris_finish_dynamic_symbol): Select sreldynrelro for
501 dynamic relocs in sdynrelro.
502 (elf_backend_want_dynrelro): Define.
506 * config.bfd (*-*-rtemsaout*): Mark as removed.
510 * config.bfd (powerpcle-*-rtems*): Do not mark as removed.
511 (arm-*-rtems*): Move to (arm*-*-eabi*).
512 (i[3-7]86-*-rtems*): Move to (i[3-7]86-*-elf*).
513 (m68-*-rtems*): Move to (m68*-*-elf*).
517 * config.bfd (*-*-rtemscoff*): Mark as removed.
522 * elflink.c (bfd_elf_record_link_assignment): Revert last
523 change and don't ever clear `forced_local'. Set `mark'
525 (elf_gc_sweep_symbol_info, elf_gc_sweep_symbol): Reorder within
527 (elf_gc_sweep): Move the call to `elf_gc_sweep_symbol'...
528 (bfd_elf_size_dynamic_sections): ... here.
529 * elf32-ppc.c (ppc_elf_tls_setup): Don't clear `forced_local'
530 and set `mark' instead in `__tls_get_addr_opt' processing.
531 * elf64-ppc.c (ppc64_elf_tls_setup): Likewise.
535 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Merge two cases
536 where dynamic relocs are preferable. Allow ifunc too.
537 (ensure_undefweak_dynamic): New function.
538 (allocate_dynrelocs): Use it here. Move plt handling last and
539 don't make symbols dynamic, simplifying loop. Only make undef
540 weak symbols with GOT entries dynamic. Correct condition
541 for GOT relocs. Handle dynamic relocs on ifuncs. Correct
542 comments. Remove goto.
543 (ppc_elf_relocate_section): Correct test for using dynamic
544 symbol on GOT relocs. Rearrange test for emitting GOT relocs
545 to suit. Set up explicit tls_index entries and implicit GOT
546 tls_index entries resolvable at link time for
547 __tls_get_addr_opt. Simplify test to clear mem for prelink.
548 * elf64-ppc.c (allocate_got): Correct condition for GOT relocs.
549 (ensure_undefweak_dynamic): New function.
550 (allocate_dynrelocs): Use it here. Only make undef weak symbols
551 with GOT entries dynamic. Remove unnecessary test of
552 WILL_CALL_FINISH_DYNAMIC_SYMBOL in PLT handling.
553 (ppc64_elf_relocate_section): Correct test for using dynamic
554 symbol on GOT relocs. Rearrange test for emitting GOT relocs
555 to suit. Set up explicit tls_index entries and implicit GOT
556 tls_index entries resolvable at link time for __tls_get_addr_opt.
557 Simplify expression to clear mem for prelink.
561 * elfnn-aarch64.c: Fix relaxations for ILP32 mode.
565 * elfnn-aarch64.c (elf_aarch64_hash_symbol): New function.
566 (elf_backend_hash_symbol): Define.
571 * elflink.c (bfd_elf_record_link_assignment): Clear any
572 `forced_local' marking for DSO symbols that are not being
577 * elfnn-riscv.c (riscv_elf_object_p): New function.
582 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add
584 (elf_x86_64_check_relocs): Create .eh_frame section for the
586 (elf_x86_64_size_dynamic_sections): Allocate and initialize
587 .eh_frame section for the .plt.bnd section.
588 (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section
589 for the .plt.bnd section.
594 * opncls.c (find_separate_debug_file): Add include_dirs
595 parameter. Only include the directory part of the bfd's filename
596 in search paths if include_dirs is true. Add a couple of extra
597 locations for looking for debug files.
598 ( bfd_follow_gnu_debuglink): Update invocation of
599 find_separate_debug_file.
600 (bfd_follow_gnu_debugaltlink): Likewise.
601 (get_build_id): New function: Finds the build-id of the given bfd.
602 (get_build_id_name): New function: Computes the name of the
603 separate debug info file for a bfd, based upon its build-id.
604 (check_build_id_file): New function: Checks to see if a separate
605 debug info file exists at the given location, and that its
606 build-id matches that of the original bfd.
607 (bfd_follow_build_id_debuglink): New function: Finds a separate
608 debug info file for a given bfd by using the build-id method.
609 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Try using the build-id
610 method of locating a separate debug info file before using the
612 * bfd-in2.h: Regenerate.
617 * elf64-x86-64.c (elf_x86_64_eh_frame_bnd_plt): New.
618 (elf_x86_64_bnd_arch_bed): Use elf_x86_64_eh_frame_bnd_plt and
619 elf_x86_64_eh_frame_plt_got.
620 (elf_x86_64_size_dynamic_sections): Get unwind info from
621 elf_x86_64_bnd_arch_bed for the BND PLT.
625 * config.bfd: Add entries for i686-redox and x86_64-redox.
629 * elf32-i386.c (elf_i386_check_relocs): Align .eh_frame section
631 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Align
632 .eh_frame section to 4 bytes for x32.
633 (elf_x86_64_check_relocs): Likewise.
638 * elf32-i386.c (elf_i386_eh_frame_plt_got): New.
639 (PLT_GOT_FDE_LENGTH): Likewise.
640 (elf_i386_plt_layout): Add eh_frame_plt_got and
641 eh_frame_plt_got_size.
642 (elf_i386_plt): Updated.
643 (elf_i386_link_hash_table): Add plt_got_eh_frame.
644 (elf_i386_check_relocs): Create .eh_frame section for .plt.got.
645 (elf_i386_size_dynamic_sections): Allocate and initialize
646 .eh_frame section for .plt.got.
647 (elf_i386_finish_dynamic_sections): Adjust .eh_frame section for
649 (elf_i386_nacl_plt): Add FIXME for eh_frame_plt_got and
650 eh_frame_plt_got_size.
651 * elf64-x86-64.c (elf_x86_64_eh_frame_plt_got): New.
652 (PLT_GOT_FDE_LENGTH): Likewise.
653 (elf_x86_64_backend_data): Add eh_frame_plt_got and
654 eh_frame_plt_got_size.
655 (elf_x86_64_arch_bed): Updated.
656 (elf_x86_64_bnd_arch_bed): Add FIXME for eh_frame_plt_got and
657 eh_frame_plt_got_size.
658 (elf_x86_64_nacl_arch_bed): Likewise.
659 (elf_x86_64_link_hash_table): Add plt_got_eh_frame.
660 (elf_x86_64_check_relocs): Create .eh_frame section for .plt.got.
661 (elf_x86_64_size_dynamic_sections): Allocate and initialize
662 .eh_frame section for .plt.got.
663 (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section
668 * elf32-i386.c (elf_i386_size_dynamic_sections): Set
669 plt_eh_frame->size to eh_frame_plt_size and use eh_frame_plt.
673 * dwarf2.c (lookup_address_in_function_table): Return early if
674 there are no functions in the given comp unit, or if the high
675 address of the last function in the comp unit is less than the
681 * coffgen.c (_bfd_coff_get_external_symbols): Generate an error
682 message if there are too many symbols to load.
686 * elf64-alpha.c (elf64_alpha_relax_opt_call): Don't set tsec_free
687 if relocs are cached.
692 * elf32-microblaze.c (microblaze_elf_check_relocs): Add an entry
693 for R_MICROBLAZE_GOTOFF_64.
697 * mach-o.c (bfd_mach_o_lookup_uuid_command): Fix compile time
698 warning about using a possibly uninitialised variable.
702 * elf32-hppa.c (ensure_undef_weak_dynamic): New function.
703 (allocate_plt_static, allocate_dynrelocs): Use it.
707 * elf-hppa.h (elf_hppa_fake_sections): Set SHF_INFO_LINK for
708 .PARISC.unwind section.
713 * elfxx-sparc.c (gdop_relative_offset_ok): New function.
714 (_bfd_sparc_elf_relocate_section): Use it to validate GOT
715 indirect to GOT pointer relative code edit.
719 Update year range in copyright notice of all files.
721 For older changes see ChangeLog-2016
723 Copyright (C) 2017 Free Software Foundation, Inc.
725 Copying and distribution of this file, with or without modification,
726 are permitted in any medium without royalty provided the copyright
727 notice and this notice are preserved.
733 version-control: never