e71a53a32081487afe84dabad404472c38d34892
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2018-01-31 Michael Matz <matz@suse.de>
2
3 * elflink.c (bfd_elf_define_start_stop): Fix check of
4 def_dynamic.
5
6 2018-01-31 H.J. Lu <hongjiu.lu@intel.com>
7
8 PR ld/21964
9 * elflink.c (bfd_elf_define_start_stop): Check if __start and
10 __stop symbols are referenced by shared objects.
11
12 2018-01-30 Alan Modra <amodra@gmail.com>
13
14 PR 22758
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
20 comment. Formatting.
21
22 2018-01-30 Alan Modra <amodra@gmail.com>
23
24 * elflink.c (bfd_elf_define_start_stop): Make __start and __stop
25 symbols dynamic.
26
27 2018-01-29 Alan Modra <amodra@gmail.com>
28
29 PR 22741
30 * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in
31 range before converting to a symbol table pointer.
32
33 2018-01-27 Nick Clifton <nickc@redhat.com>
34
35 * po/ru.po: Updated Russian translation.
36
37 2018-01-26 Alan Modra <amodra@gmail.com>
38
39 * elflink.c (bfd_elf_define_start_stop): Override symbols when
40 they are defined dynamically.
41
42 2018-01-26 Alan Modra <amodra@gmail.com>
43
44 * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when
45 .branch_lt changes size.
46
47 2018-01-25 Alan Modra <amodra@gmail.com>
48
49 PR 22746
50 * elfcode.h (elf_object_p): Avoid integer overflow.
51
52 2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
53
54 PR ld/22727
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.
57
58 Revert
59 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
60
61 PR ld/22263
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.
68
69 2018-01-24 Renlin Li <renlin.li@arm.com>
70
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.
78
79 2018-01-24 Renlin Li <renlin.li@arm.com>
80
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.
92
93 2018-01-23 Maciej W. Rozycki <macro@mips.com>
94
95 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale
96 `mips_elf32_section_processing' comment reference.
97
98 2018-01-20 H.J. Lu <hongjiu.lu@intel.com>
99
100 PR ld/22721
101 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
102 versioned __tls_get_addr symbol.
103
104 2018-01-19 Nick Clifton <nickc@redhat.com>
105
106 * po/fr.po: Updated French translation.
107
108 2018-01-18 Alan Modra <amodra@gmail.com>
109
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.
113
114 2018-01-17 Nick Clifton <nickc@redhat.com>
115
116 * po/ru.po: Updated Russian translation.
117 * po/uk/po: Updated Ukranian translation.
118
119 2018-01-17 Alan Modra <amodra@gmail.com>
120
121 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
122
123 2018-01-17 Alan Modra <amodra@gmail.com>
124
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
142 barrier.
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.
148
149 2018-01-17 Alan Modra <amodra@gmail.com>
150
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,
156 or 8 insns.
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
160 by PLT reloc count.
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
175 entry stubs.
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.
185
186 2018-01-15 Nick Clifton <nickc@redhat.com>
187
188 * po/uk.po: Updated Ukranian translation.
189
190 2018-01-13 Nick Clifton <nickc@redhat.com>
191
192 * po/bfd.pot: Regenerated.
193
194 2018-01-13 Nick Clifton <nickc@redhat.com>
195
196 * version.m4: Bump version to 2.30.51
197 * configure: Regenerate.
198
199 2018-01-13 Nick Clifton <nickc@redhat.com>
200
201 2.30 branch created.
202
203 2018-01-12 Jens Widell <jl@opera.com>
204
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.
208
209 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
210
211 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
212 bfd_link_common_skip_none in switch.
213
214 2018-01-12 Alan Modra <amodra@gmail.com>
215
216 PR ld/22649
217 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
218 references on forced local symbols.
219
220 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
221
222 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
223 .reginfo section has wrong size.
224
225 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
226
227 PR ld/22393
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.
233
234 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
235
236 PR ld/22649
237 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
238 references on forced local symbols.
239
240 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
241
242 PR ld/22677
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.
245
246 2017-09-27 Kuan-Lin Chen <kuanlinchentw@gmail.com>
247
248 PR 22662
249 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
250
251 2018-01-03 John Baldwin <jhb@FreeBSD.org>
252
253 * elf.c (elfcore_grok_freebsd_note): Handle
254 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
255 NT_FREEBSD_PROCSTAT_VMMAP.
256
257 2018-01-03 Alan Modra <amodra@gmail.com>
258
259 Update year range in copyright notice of all files.
260
261 For older changes see ChangeLog-2017
262 \f
263 Copyright (C) 2018 Free Software Foundation, Inc.
264
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.
268
269 Local Variables:
270 mode: change-log
271 left-margin: 8
272 fill-column: 74
273 version-control: never
274 End:
This page took 0.052558 seconds and 4 git commands to generate.