Fix compile time warnings building the binutils with clang.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2018-02-01 Simon Marchi <simon.marchi@ericsson.com>
2
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.
7
8 2018-01-31 Michael Matz <matz@suse.de>
9
10 * elflink.c (bfd_elf_define_start_stop): Fix check of
11 def_dynamic.
12
13 2018-01-31 H.J. Lu <hongjiu.lu@intel.com>
14
15 PR ld/21964
16 * elflink.c (bfd_elf_define_start_stop): Check if __start and
17 __stop symbols are referenced by shared objects.
18
19 2018-01-30 Alan Modra <amodra@gmail.com>
20
21 PR 22758
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
27 comment. Formatting.
28
29 2018-01-30 Alan Modra <amodra@gmail.com>
30
31 * elflink.c (bfd_elf_define_start_stop): Make __start and __stop
32 symbols dynamic.
33
34 2018-01-29 Alan Modra <amodra@gmail.com>
35
36 PR 22741
37 * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in
38 range before converting to a symbol table pointer.
39
40 2018-01-27 Nick Clifton <nickc@redhat.com>
41
42 * po/ru.po: Updated Russian translation.
43
44 2018-01-26 Alan Modra <amodra@gmail.com>
45
46 * elflink.c (bfd_elf_define_start_stop): Override symbols when
47 they are defined dynamically.
48
49 2018-01-26 Alan Modra <amodra@gmail.com>
50
51 * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when
52 .branch_lt changes size.
53
54 2018-01-25 Alan Modra <amodra@gmail.com>
55
56 PR 22746
57 * elfcode.h (elf_object_p): Avoid integer overflow.
58
59 2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
60
61 PR ld/22727
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.
64
65 Revert
66 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
67
68 PR ld/22263
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.
75
76 2018-01-24 Renlin Li <renlin.li@arm.com>
77
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.
85
86 2018-01-24 Renlin Li <renlin.li@arm.com>
87
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.
99
100 2018-01-23 Maciej W. Rozycki <macro@mips.com>
101
102 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale
103 `mips_elf32_section_processing' comment reference.
104
105 2018-01-20 H.J. Lu <hongjiu.lu@intel.com>
106
107 PR ld/22721
108 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
109 versioned __tls_get_addr symbol.
110
111 2018-01-19 Nick Clifton <nickc@redhat.com>
112
113 * po/fr.po: Updated French translation.
114
115 2018-01-18 Alan Modra <amodra@gmail.com>
116
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.
120
121 2018-01-17 Nick Clifton <nickc@redhat.com>
122
123 * po/ru.po: Updated Russian translation.
124 * po/uk/po: Updated Ukranian translation.
125
126 2018-01-17 Alan Modra <amodra@gmail.com>
127
128 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
129
130 2018-01-17 Alan Modra <amodra@gmail.com>
131
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
149 barrier.
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.
155
156 2018-01-17 Alan Modra <amodra@gmail.com>
157
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,
163 or 8 insns.
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
167 by PLT reloc count.
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
182 entry stubs.
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.
192
193 2018-01-15 Nick Clifton <nickc@redhat.com>
194
195 * po/uk.po: Updated Ukranian translation.
196
197 2018-01-13 Nick Clifton <nickc@redhat.com>
198
199 * po/bfd.pot: Regenerated.
200
201 2018-01-13 Nick Clifton <nickc@redhat.com>
202
203 * version.m4: Bump version to 2.30.51
204 * configure: Regenerate.
205
206 2018-01-13 Nick Clifton <nickc@redhat.com>
207
208 2.30 branch created.
209
210 2018-01-12 Jens Widell <jl@opera.com>
211
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.
215
216 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
217
218 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
219 bfd_link_common_skip_none in switch.
220
221 2018-01-12 Alan Modra <amodra@gmail.com>
222
223 PR ld/22649
224 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
225 references on forced local symbols.
226
227 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
228
229 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
230 .reginfo section has wrong size.
231
232 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
233
234 PR ld/22393
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.
240
241 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
242
243 PR ld/22649
244 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
245 references on forced local symbols.
246
247 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
248
249 PR ld/22677
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.
252
253 2017-09-27 Kuan-Lin Chen <kuanlinchentw@gmail.com>
254
255 PR 22662
256 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
257
258 2018-01-03 John Baldwin <jhb@FreeBSD.org>
259
260 * elf.c (elfcore_grok_freebsd_note): Handle
261 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
262 NT_FREEBSD_PROCSTAT_VMMAP.
263
264 2018-01-03 Alan Modra <amodra@gmail.com>
265
266 Update year range in copyright notice of all files.
267
268 For older changes see ChangeLog-2017
269 \f
270 Copyright (C) 2018 Free Software Foundation, Inc.
271
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.
275
276 Local Variables:
277 mode: change-log
278 left-margin: 8
279 fill-column: 74
280 version-control: never
281 End:
This page took 0.041622 seconds and 5 git commands to generate.