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