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