1 2018-02-01 Simon Marchi <simon.marchi@ericsson.com>
3 * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Avoid pointer
4 arithmetic on NULL pointer.
5 * elflink.c (_bfd_elf_archive_symbol_lookup,
6 elf_link_add_archive_symbols): Likewise.
8 2018-01-31 Michael Matz <matz@suse.de>
10 * elflink.c (bfd_elf_define_start_stop): Fix check of
13 2018-01-31 H.J. Lu <hongjiu.lu@intel.com>
16 * elflink.c (bfd_elf_define_start_stop): Check if __start and
17 __stop symbols are referenced by shared objects.
19 2018-01-30 Alan Modra <amodra@gmail.com>
22 * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new
23 segment when demand paged with lma on the same page. Test this
24 before load/non-load, executable/non-executable,
25 writable/non-writable tests and simplify. Delete bogus relro
26 condition in writable/non-writable test. Delete outdated
29 2018-01-30 Alan Modra <amodra@gmail.com>
31 * elflink.c (bfd_elf_define_start_stop): Make __start and __stop
34 2018-01-29 Alan Modra <amodra@gmail.com>
37 * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in
38 range before converting to a symbol table pointer.
40 2018-01-27 Nick Clifton <nickc@redhat.com>
42 * po/ru.po: Updated Russian translation.
44 2018-01-26 Alan Modra <amodra@gmail.com>
46 * elflink.c (bfd_elf_define_start_stop): Override symbols when
47 they are defined dynamically.
49 2018-01-26 Alan Modra <amodra@gmail.com>
51 * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when
52 .branch_lt changes size.
54 2018-01-25 Alan Modra <amodra@gmail.com>
57 * elfcode.h (elf_object_p): Avoid integer overflow.
59 2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
62 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
63 Do a mere lookup of the __tls_get_addr symbol instead of adding it.
66 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
69 * elfxx-sparc.c (sparc_elf_tls_transition): Replace
70 bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
71 bfd_link_executable for TLS check.
72 (_bfd_sparc_elf_check_relocs): Likewise.
73 (allocate_dynrelocs): Likewise.
74 (_bfd_sparc_elf_relocate_section): Likewise.
76 2018-01-24 Renlin Li <renlin.li@arm.com>
78 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for
79 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
80 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
81 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
82 BFD_RELOC_AARCH64_MOVW_PREL_G3.
83 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
84 (_bfd_aarch64_elf_resolve_relocation): Likewise.
86 2018-01-24 Renlin Li <renlin.li@arm.com>
88 * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0,
89 BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1,
90 BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2,
91 BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3.
92 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for
93 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
94 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
95 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
96 BFD_RELOC_AARCH64_MOVW_PREL_G3.
97 * bfd-in2.h: Regenerate.
98 * libbfd.h: Regenerate.
100 2018-01-23 Maciej W. Rozycki <macro@mips.com>
102 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale
103 `mips_elf32_section_processing' comment reference.
105 2018-01-20 H.J. Lu <hongjiu.lu@intel.com>
108 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
109 versioned __tls_get_addr symbol.
111 2018-01-19 Nick Clifton <nickc@redhat.com>
113 * po/fr.po: Updated French translation.
115 2018-01-18 Alan Modra <amodra@gmail.com>
117 * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink.
118 * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align.
119 (ppc64_elf_build_stubs): Likewise.
121 2018-01-17 Nick Clifton <nickc@redhat.com>
123 * po/ru.po: Updated Russian translation.
124 * po/uk/po: Updated Ukranian translation.
126 2018-01-17 Alan Modra <amodra@gmail.com>
128 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
130 2018-01-17 Alan Modra <amodra@gmail.com>
132 * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier.
133 (CRSETEQ, BEQCTRM): Define.
134 (is_nonpic_glink_stub): Don't check bctr.
135 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
136 (ppc_elf_relax_section): Size speculation barrier.
137 (output_bctr): New function.
138 (write_glink_stub): Use output_bctr.
139 (ppc_elf_relocate_section): Use output_bctr for long branch stub.
140 (ppc_elf_finish_dynamic_symbol): Likewise.
141 (ppc_elf_finish_dynamic_sections): Use output_bctr.
142 * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps.
143 * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define.
144 (GLINK_PLTRESOLVE_SIZE): Size speculation barrier.
145 (size_global_entry_stubs): Handle speculation barrier sizing.
146 (plt_stub_size): Likewise.
147 (output_bctr): New function.
148 (build_plt_stub, build_tls_get_addr_stub): Output speculation
150 (ppc_build_one_stub): Likewise for ppc_stub_plt_branch.
151 (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch.
152 (build_global_entry_stubs): Output speculation barrier.
153 (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub.
154 * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps.
156 2018-01-17 Alan Modra <amodra@gmail.com>
158 * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle
159 __tls_get_addr_opt, and alignment sizing.
160 (TLS_GET_ADDR_GLINK_SIZE): Delete.
161 (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE.
162 (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6,
164 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
165 (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE.
166 (ppc_elf_size_dynamic_sections): Likewise. Size branch table
168 (write_glink_stub): Handle __tls_get_addr_opt stub.
169 Pad out to size given by GLINK_ENTRY_SIZE.
170 (ppc_elf_relocate_section): Adjust write_glink_stub call.
171 (ppc_elf_finish_dynamic_symbol): Likewise.
172 (ppc_elf_finish_dynamic_sections): Write PLTresolve without using
173 insn array since so many need rewriting.
174 * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align.
175 * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from
176 GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without
177 nops. Adjust all uses.
178 (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE
179 in glink_vma calculation.
180 (struct ppc_link_hash_table): Add global_entry section pointer.
181 (create_linkage_sections): Create separate section for global
183 (PPC_LO, PPC_HI, PPC_HA): Move earlier.
184 (size_global_entry_stubs): Handle sizing for aligned stubs.
185 (ppc64_elf_size_dynamic_sections): Handle global_entry alloc,
186 and don't stash end of glink branch table in rawsize.
187 (ppc_build_one_stub): Rewrite stub size calculations.
188 (build_global_entry_stubs): Use new section.
189 (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops.
190 Build lazy link stubs out to end of section. Build global entry
191 stubs in new section.
193 2018-01-15 Nick Clifton <nickc@redhat.com>
195 * po/uk.po: Updated Ukranian translation.
197 2018-01-13 Nick Clifton <nickc@redhat.com>
199 * po/bfd.pot: Regenerated.
201 2018-01-13 Nick Clifton <nickc@redhat.com>
203 * version.m4: Bump version to 2.30.51
204 * configure: Regenerate.
206 2018-01-13 Nick Clifton <nickc@redhat.com>
210 2018-01-12 Jens Widell <jl@opera.com>
212 * elf.c (setup_group): Optimize search for group by remembering
213 last found group and restarting search at that index.
214 * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field.
216 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
218 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
219 bfd_link_common_skip_none in switch.
221 2018-01-12 Alan Modra <amodra@gmail.com>
224 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
225 references on forced local symbols.
227 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
229 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
230 .reginfo section has wrong size.
232 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
235 * elf.c (_bfd_elf_map_sections_to_segments): When generating
236 separate code and read-only data LOAD segments, create a new
237 LOAD segment if the previous section contains text and the
238 current section doesn't or vice versa. Don't put a writable
239 section in a read-only segment if there is a RELRO segment.
241 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
244 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
245 references on forced local symbols.
247 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
250 * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY,
251 INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section.
253 2017-09-27 Kuan-Lin Chen <kuanlinchentw@gmail.com>
256 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
258 2018-01-03 John Baldwin <jhb@FreeBSD.org>
260 * elf.c (elfcore_grok_freebsd_note): Handle
261 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
262 NT_FREEBSD_PROCSTAT_VMMAP.
264 2018-01-03 Alan Modra <amodra@gmail.com>
266 Update year range in copyright notice of all files.
268 For older changes see ChangeLog-2017
270 Copyright (C) 2018 Free Software Foundation, Inc.
272 Copying and distribution of this file, with or without modification,
273 are permitted in any medium without royalty provided the copyright
274 notice and this notice are preserved.
280 version-control: never