1 2018-01-26 Alan Modra <amodra@gmail.com>
3 * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when
4 .branch_lt changes size.
6 2018-01-25 Alan Modra <amodra@gmail.com>
9 * elfcode.h (elf_object_p): Avoid integer overflow.
11 2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
14 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
15 Do a mere lookup of the __tls_get_addr symbol instead of adding it.
18 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
21 * elfxx-sparc.c (sparc_elf_tls_transition): Replace
22 bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
23 bfd_link_executable for TLS check.
24 (_bfd_sparc_elf_check_relocs): Likewise.
25 (allocate_dynrelocs): Likewise.
26 (_bfd_sparc_elf_relocate_section): Likewise.
28 2018-01-24 Renlin Li <renlin.li@arm.com>
30 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for
31 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
32 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
33 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
34 BFD_RELOC_AARCH64_MOVW_PREL_G3.
35 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
36 (_bfd_aarch64_elf_resolve_relocation): Likewise.
38 2018-01-24 Renlin Li <renlin.li@arm.com>
40 * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0,
41 BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1,
42 BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2,
43 BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3.
44 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for
45 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
46 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
47 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
48 BFD_RELOC_AARCH64_MOVW_PREL_G3.
49 * bfd-in2.h: Regenerate.
50 * libbfd.h: Regenerate.
52 2018-01-23 Maciej W. Rozycki <macro@mips.com>
54 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale
55 `mips_elf32_section_processing' comment reference.
57 2018-01-20 H.J. Lu <hongjiu.lu@intel.com>
60 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
61 versioned __tls_get_addr symbol.
63 2018-01-19 Nick Clifton <nickc@redhat.com>
65 * po/fr.po: Updated French translation.
67 2018-01-18 Alan Modra <amodra@gmail.com>
69 * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink.
70 * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align.
71 (ppc64_elf_build_stubs): Likewise.
73 2018-01-17 Nick Clifton <nickc@redhat.com>
75 * po/ru.po: Updated Russian translation.
76 * po/uk/po: Updated Ukranian translation.
78 2018-01-17 Alan Modra <amodra@gmail.com>
80 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
82 2018-01-17 Alan Modra <amodra@gmail.com>
84 * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier.
85 (CRSETEQ, BEQCTRM): Define.
86 (is_nonpic_glink_stub): Don't check bctr.
87 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
88 (ppc_elf_relax_section): Size speculation barrier.
89 (output_bctr): New function.
90 (write_glink_stub): Use output_bctr.
91 (ppc_elf_relocate_section): Use output_bctr for long branch stub.
92 (ppc_elf_finish_dynamic_symbol): Likewise.
93 (ppc_elf_finish_dynamic_sections): Use output_bctr.
94 * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps.
95 * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define.
96 (GLINK_PLTRESOLVE_SIZE): Size speculation barrier.
97 (size_global_entry_stubs): Handle speculation barrier sizing.
98 (plt_stub_size): Likewise.
99 (output_bctr): New function.
100 (build_plt_stub, build_tls_get_addr_stub): Output speculation
102 (ppc_build_one_stub): Likewise for ppc_stub_plt_branch.
103 (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch.
104 (build_global_entry_stubs): Output speculation barrier.
105 (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub.
106 * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps.
108 2018-01-17 Alan Modra <amodra@gmail.com>
110 * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle
111 __tls_get_addr_opt, and alignment sizing.
112 (TLS_GET_ADDR_GLINK_SIZE): Delete.
113 (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE.
114 (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6,
116 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
117 (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE.
118 (ppc_elf_size_dynamic_sections): Likewise. Size branch table
120 (write_glink_stub): Handle __tls_get_addr_opt stub.
121 Pad out to size given by GLINK_ENTRY_SIZE.
122 (ppc_elf_relocate_section): Adjust write_glink_stub call.
123 (ppc_elf_finish_dynamic_symbol): Likewise.
124 (ppc_elf_finish_dynamic_sections): Write PLTresolve without using
125 insn array since so many need rewriting.
126 * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align.
127 * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from
128 GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without
129 nops. Adjust all uses.
130 (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE
131 in glink_vma calculation.
132 (struct ppc_link_hash_table): Add global_entry section pointer.
133 (create_linkage_sections): Create separate section for global
135 (PPC_LO, PPC_HI, PPC_HA): Move earlier.
136 (size_global_entry_stubs): Handle sizing for aligned stubs.
137 (ppc64_elf_size_dynamic_sections): Handle global_entry alloc,
138 and don't stash end of glink branch table in rawsize.
139 (ppc_build_one_stub): Rewrite stub size calculations.
140 (build_global_entry_stubs): Use new section.
141 (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops.
142 Build lazy link stubs out to end of section. Build global entry
143 stubs in new section.
145 2018-01-15 Nick Clifton <nickc@redhat.com>
147 * po/uk.po: Updated Ukranian translation.
149 2018-01-13 Nick Clifton <nickc@redhat.com>
151 * po/bfd.pot: Regenerated.
153 2018-01-13 Nick Clifton <nickc@redhat.com>
155 * version.m4: Bump version to 2.30.51
156 * configure: Regenerate.
158 2018-01-13 Nick Clifton <nickc@redhat.com>
162 2018-01-12 Jens Widell <jl@opera.com>
164 * elf.c (setup_group): Optimize search for group by remembering
165 last found group and restarting search at that index.
166 * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field.
168 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
170 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
171 bfd_link_common_skip_none in switch.
173 2018-01-12 Alan Modra <amodra@gmail.com>
176 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
177 references on forced local symbols.
179 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
181 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
182 .reginfo section has wrong size.
184 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
187 * elf.c (_bfd_elf_map_sections_to_segments): When generating
188 separate code and read-only data LOAD segments, create a new
189 LOAD segment if the previous section contains text and the
190 current section doesn't or vice versa. Don't put a writable
191 section in a read-only segment if there is a RELRO segment.
193 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
196 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
197 references on forced local symbols.
199 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
202 * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY,
203 INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section.
205 2017-09-27 Kuan-Lin Chen <kuanlinchentw@gmail.com>
208 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
210 2018-01-03 John Baldwin <jhb@FreeBSD.org>
212 * elf.c (elfcore_grok_freebsd_note): Handle
213 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
214 NT_FREEBSD_PROCSTAT_VMMAP.
216 2018-01-03 Alan Modra <amodra@gmail.com>
218 Update year range in copyright notice of all files.
220 For older changes see ChangeLog-2017
222 Copyright (C) 2018 Free Software Foundation, Inc.
224 Copying and distribution of this file, with or without modification,
225 are permitted in any medium without royalty provided the copyright
226 notice and this notice are preserved.
232 version-control: never