x86: Add is_solaris to elf_x86_target_os
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2018-02-09 H.J. Lu <hongjiu.lu@intel.com>
2
3 * elf32-i386.c (elf_i386_get_synthetic_symtab): Also handle
4 is_solaris.
5 (i386_elf32_sol2_vec): Don't declare.
6 (elf_i386_link_setup_gnu_properties): Also handle is_solaris.
7 Don't set need_global_offset_table.
8 (elf_i386_solaris_arch_bed): New.
9 (elf_backend_arch_data): Set to elf_i386_solaris_arch_bed for
10 Solaris.
11 * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Check
12 target_os != is_nacl instead of target_os == is_normal.
13 (x86_64_elf64_sol2_vec): Don't declare.
14 (elf_x86_64_link_setup_gnu_properties): Check target_os !=
15 is_nacl instead of target_os == is_normal. Don't set
16 need_global_offset_table.
17 (elf_x86_64_solaris_arch_bed): New.
18 (elf_backend_arch_data): Set to elf_x86_64_solaris_arch_bed for
19 Solaris.
20 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep
21 _GLOBAL_OFFSET_TABLE_ for Solaris.
22 (_bfd_x86_elf_link_setup_gnu_properties): Don't copy
23 need_global_offset_table.
24 * elfxx-x86.h (elf_x86_target_os): Add is_solaris.
25 (elf_x86_link_hash_table): Remove need_global_offset_table.
26 (elf_x86_init_table): Likewise.
27
28 2018-02-08 H.J. Lu <hongjiu.lu@intel.com>
29
30 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
31 Remove prototype.
32 (i386_elf32_sol2_vec): Declared.
33 (elf_i386_link_setup_gnu_properties): Set
34 need_global_offset_table with info->output_bfd->xvec.
35 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
36 Remove prototype.
37 (x86_64_elf64_sol2_vec): Declared.
38 (elf_x86_64_link_setup_gnu_properties): Set
39 need_global_offset_table with info->output_bfd->xvec.
40
41 2018-02-08 H.J. Lu <hongjiu.lu@intel.com>
42
43 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
44 New prototype.
45 (elf_i386_link_setup_gnu_properties): Set need_global_offset_table
46 for Solaris.
47 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
48 New prototype.
49 (elf_x86_64_link_setup_gnu_properties): Set
50 need_global_offset_table for Solaris.
51 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep the
52 unused _GLOBAL_OFFSET_TABLE_ for Solaris.
53 (_bfd_x86_elf_link_setup_gnu_properties): Copy
54 need_global_offset_table.
55 * elfxx-x86.h (elf_x86_link_hash_table): Add
56 need_global_offset_table.
57 (elf_x86_init_table): Likewise.
58
59 2018-02-08 Jim Wilson <jimw@sifive.com>
60
61 * elfnn-riscv.c (riscv_elf_relocate_section): Add comment for previous
62 change.
63
64 2018-02-08 Nick Clifton <nickc@redhat.com>
65
66 PR 22788
67 * elf.c (elf_parse_notes): Reject notes with excessuively large
68 alignments.
69
70 2018-02-07 Alan Modra <amodra@gmail.com>
71
72 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
73 * elf32-ppc.c: Remove speculation barrier support.
74 * elf32-ppc.h: Likewise.
75 * elf64-ppc.c: Likewise.
76 * elf64-ppc.h: Likewise.
77
78 2018-02-06 Jim Wilson <jimw@sifive.com>
79
80 * elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used
81 callback to report an error.
82
83 2018-02-06 Eric Botcazou <ebotcazou@adacore.com>
84
85 PR ld/22263
86 * elfxx-sparc.c (sparc_elf_tls_transition): Turn call to bfd_link_pic
87 into call to !bfd_link_executable and tidy up.
88 (_bfd_sparc_elf_check_relocs): Fix formatting and tidy up.
89 <R_SPARC_TLS_LE_HIX22>: Turn call to bfd_link_pic into call to
90 !bfd_link_executable.
91 <R_SPARC_TLS_IE_HI22>: Likewise.
92 <GOT relocations>: Remove useless code, tidy and merge related blocks.
93 <R_SPARC_TLS_GD_CALL>: Turn call to bfd_link_pic into call to
94 !bfd_link_executable.
95 <R_SPARC_WPLT30>: Tidy up.
96 (_bfd_sparc_elf_gc_mark_hook): Turn call to bfd_link_pic into call to
97 !bfd_link_executable.
98 (allocate_dynrelocs): Likewise.
99 (_bfd_sparc_elf_relocate_section): Fix formatting and tidy up.
100 <R_SPARC_TLS_GD_HI22>: Merge into...
101 <R_SPARC_TLS_GD_LO10>: ...this. Adjust 4th argument in call to
102 sparc_elf_tls_transition and remove redundant code.
103 <R_SPARC_TLS_LDM_HI22>: Turn call to bfd_link_pic into call to
104 !bfd_link_executable.
105 <R_SPARC_TLS_LDO_HIX22>: Likewise.
106 <R_SPARC_TLS_LE_HIX22>: Likewise. Tidy up.
107 <R_SPARC_TLS_LDM_CALL>: Likewise.
108 <R_SPARC_TLS_GD_CALL>: Likewise. Tidy up.
109 <R_SPARC_TLS_GD_ADD>: Likewise.
110 <R_SPARC_TLS_LDM_ADD>: Likewise.
111 <R_SPARC_TLS_LDO_ADD>: Likewise.
112 <R_SPARC_TLS_IE_LD>: Likewise.
113
114 2018-02-06 Miloš Stojanović <milos.stojanovic@rt-rk.com>
115
116 PR 22789
117 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): If the dwarf
118 functions failed to find the function name, try the generic elf
119 find function instead.
120
121 2018-02-06 Sergio Durigan Junior <sergiodj@redhat.com>
122
123 * coff-rs6000.c (xcoff_write_archive_contents_old): Use
124 'memcpy' instead of 'strncpy' when writing the magic number.
125
126 2018-02-06 Nick Clifton <nickc@redhat.com>
127
128 PR 22794
129 * opncls.c (bfd_get_debug_link_info_1): Check the size of the
130 section before attempting to read it in.
131 (bfd_get_alt_debug_link_info): Likewise.
132
133 2018-02-06 Paul Carroll <pcarroll@codesourcery.com>
134
135 * bfd/dwarf2.c (find_abstract_name): Modified to return file and
136 line information in addition to name, if they can be found.
137
138 2018-02-05 Renlin Li <renlin.li@arm.com>
139
140 PR ld/22764
141 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Relax the
142 R_AARCH64_ABS32 and R_AARCH64_ABS16 for absolute symbol. Apply the
143 check for writeable section as well.
144
145 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
146
147 PR ld/22782
148 * elf32-i386.c (elf_i386_check_relocs): Set got_referenced if
149 _GLOBAL_OFFSET_TABLE_ is referenced or GOT is needed to resolve
150 undefined weak symbol to 0.
151 * elf64-x86-64.c (elf_x86_64_check_relocs): Set got_referenced
152 if _GLOBAL_OFFSET_TABLE_ is referenced.
153 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Check
154 got_referenced instead of ref_regular_nonweak. Remove the
155 unused _GLOBAL_OFFSET_TABLE_ from symbol table.
156 * elfxx-x86.h (elf_x86_link_hash_table): Add got_referenced.
157
158 2018-02-05 Maciej W. Rozycki <macro@mips.com>
159
160 * elfnn-riscv.c (_bfd_riscv_relax_pc): Use `memset' to
161 initialize `hi_reloc'.
162
163 2018-02-05 Maciej W. Rozycki <macro@mips.com>
164
165 * elfxx-mips.c (_bfd_mips_elf_section_processing): For
166 SHT_MIPS_REGINFO sections don't assert the correct size and
167 report an error instead.
168
169 2018-02-05 Maciej W. Rozycki <macro@mips.com>
170
171 * elf.c (_bfd_elf_write_object_contents): Propagate a failure
172 status from `->elf_backend_section_processing'.
173
174 2018-02-02 Jim Wilson <jimw@sifive.com>
175
176 PR ld/22756
177 * elfnn-riscv.c (riscv_relax_delete_bytes): New parameter link_info.
178 If link_info->wrap_hash, check for a duplicate symbol and ignore.
179 (_bfd_riscv_relax_call, bfd_riscv_relax_lui, _bfd_riscv_relax_tls_le):
180 Pass new argument to riscv_relax_delete_bytes.
181 (_bfd_riscv_relax_align, _bfd_riscv_relax_delete): Likewise. Remove
182 ATTRIBUTE_UNUSED from link_info parameter.
183
184 2018-02-02 Alan Modra <amodra@gmail.com>
185
186 * elf64-ppc.c (ppc64_elf_relocate_section): Don't relocate nops
187 emitted for toc sequence optimization. Set and use "howto" later.
188
189 2018-02-01 Simon Marchi <simon.marchi@ericsson.com>
190
191 * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Avoid pointer
192 arithmetic on NULL pointer.
193 * elflink.c (_bfd_elf_archive_symbol_lookup,
194 elf_link_add_archive_symbols): Likewise.
195
196 2018-01-31 Michael Matz <matz@suse.de>
197
198 * elflink.c (bfd_elf_define_start_stop): Fix check of
199 def_dynamic.
200
201 2018-01-31 H.J. Lu <hongjiu.lu@intel.com>
202
203 PR ld/21964
204 * elflink.c (bfd_elf_define_start_stop): Check if __start and
205 __stop symbols are referenced by shared objects.
206
207 2018-01-30 Alan Modra <amodra@gmail.com>
208
209 PR 22758
210 * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new
211 segment when demand paged with lma on the same page. Test this
212 before load/non-load, executable/non-executable,
213 writable/non-writable tests and simplify. Delete bogus relro
214 condition in writable/non-writable test. Delete outdated
215 comment. Formatting.
216
217 2018-01-30 Alan Modra <amodra@gmail.com>
218
219 * elflink.c (bfd_elf_define_start_stop): Make __start and __stop
220 symbols dynamic.
221
222 2018-01-29 Alan Modra <amodra@gmail.com>
223
224 PR 22741
225 * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in
226 range before converting to a symbol table pointer.
227
228 2018-01-27 Nick Clifton <nickc@redhat.com>
229
230 * po/ru.po: Updated Russian translation.
231
232 2018-01-26 Alan Modra <amodra@gmail.com>
233
234 * elflink.c (bfd_elf_define_start_stop): Override symbols when
235 they are defined dynamically.
236
237 2018-01-26 Alan Modra <amodra@gmail.com>
238
239 * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when
240 .branch_lt changes size.
241
242 2018-01-25 Alan Modra <amodra@gmail.com>
243
244 PR 22746
245 * elfcode.h (elf_object_p): Avoid integer overflow.
246
247 2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
248
249 PR ld/22727
250 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
251 Do a mere lookup of the __tls_get_addr symbol instead of adding it.
252
253 Revert
254 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
255
256 PR ld/22263
257 * elfxx-sparc.c (sparc_elf_tls_transition): Replace
258 bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
259 bfd_link_executable for TLS check.
260 (_bfd_sparc_elf_check_relocs): Likewise.
261 (allocate_dynrelocs): Likewise.
262 (_bfd_sparc_elf_relocate_section): Likewise.
263
264 2018-01-24 Renlin Li <renlin.li@arm.com>
265
266 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for
267 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
268 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
269 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
270 BFD_RELOC_AARCH64_MOVW_PREL_G3.
271 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
272 (_bfd_aarch64_elf_resolve_relocation): Likewise.
273
274 2018-01-24 Renlin Li <renlin.li@arm.com>
275
276 * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0,
277 BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1,
278 BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2,
279 BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3.
280 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for
281 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
282 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
283 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
284 BFD_RELOC_AARCH64_MOVW_PREL_G3.
285 * bfd-in2.h: Regenerate.
286 * libbfd.h: Regenerate.
287
288 2018-01-23 Maciej W. Rozycki <macro@mips.com>
289
290 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale
291 `mips_elf32_section_processing' comment reference.
292
293 2018-01-20 H.J. Lu <hongjiu.lu@intel.com>
294
295 PR ld/22721
296 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
297 versioned __tls_get_addr symbol.
298
299 2018-01-19 Nick Clifton <nickc@redhat.com>
300
301 * po/fr.po: Updated French translation.
302
303 2018-01-18 Alan Modra <amodra@gmail.com>
304
305 * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink.
306 * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align.
307 (ppc64_elf_build_stubs): Likewise.
308
309 2018-01-17 Nick Clifton <nickc@redhat.com>
310
311 * po/ru.po: Updated Russian translation.
312 * po/uk/po: Updated Ukranian translation.
313
314 2018-01-17 Alan Modra <amodra@gmail.com>
315
316 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
317
318 2018-01-17 Alan Modra <amodra@gmail.com>
319
320 * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier.
321 (CRSETEQ, BEQCTRM): Define.
322 (is_nonpic_glink_stub): Don't check bctr.
323 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
324 (ppc_elf_relax_section): Size speculation barrier.
325 (output_bctr): New function.
326 (write_glink_stub): Use output_bctr.
327 (ppc_elf_relocate_section): Use output_bctr for long branch stub.
328 (ppc_elf_finish_dynamic_symbol): Likewise.
329 (ppc_elf_finish_dynamic_sections): Use output_bctr.
330 * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps.
331 * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define.
332 (GLINK_PLTRESOLVE_SIZE): Size speculation barrier.
333 (size_global_entry_stubs): Handle speculation barrier sizing.
334 (plt_stub_size): Likewise.
335 (output_bctr): New function.
336 (build_plt_stub, build_tls_get_addr_stub): Output speculation
337 barrier.
338 (ppc_build_one_stub): Likewise for ppc_stub_plt_branch.
339 (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch.
340 (build_global_entry_stubs): Output speculation barrier.
341 (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub.
342 * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps.
343
344 2018-01-17 Alan Modra <amodra@gmail.com>
345
346 * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle
347 __tls_get_addr_opt, and alignment sizing.
348 (TLS_GET_ADDR_GLINK_SIZE): Delete.
349 (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE.
350 (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6,
351 or 8 insns.
352 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
353 (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE.
354 (ppc_elf_size_dynamic_sections): Likewise. Size branch table
355 by PLT reloc count.
356 (write_glink_stub): Handle __tls_get_addr_opt stub.
357 Pad out to size given by GLINK_ENTRY_SIZE.
358 (ppc_elf_relocate_section): Adjust write_glink_stub call.
359 (ppc_elf_finish_dynamic_symbol): Likewise.
360 (ppc_elf_finish_dynamic_sections): Write PLTresolve without using
361 insn array since so many need rewriting.
362 * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align.
363 * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from
364 GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without
365 nops. Adjust all uses.
366 (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE
367 in glink_vma calculation.
368 (struct ppc_link_hash_table): Add global_entry section pointer.
369 (create_linkage_sections): Create separate section for global
370 entry stubs.
371 (PPC_LO, PPC_HI, PPC_HA): Move earlier.
372 (size_global_entry_stubs): Handle sizing for aligned stubs.
373 (ppc64_elf_size_dynamic_sections): Handle global_entry alloc,
374 and don't stash end of glink branch table in rawsize.
375 (ppc_build_one_stub): Rewrite stub size calculations.
376 (build_global_entry_stubs): Use new section.
377 (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops.
378 Build lazy link stubs out to end of section. Build global entry
379 stubs in new section.
380
381 2018-01-15 Nick Clifton <nickc@redhat.com>
382
383 * po/uk.po: Updated Ukranian translation.
384
385 2018-01-13 Nick Clifton <nickc@redhat.com>
386
387 * po/bfd.pot: Regenerated.
388
389 2018-01-13 Nick Clifton <nickc@redhat.com>
390
391 * version.m4: Bump version to 2.30.51
392 * configure: Regenerate.
393
394 2018-01-13 Nick Clifton <nickc@redhat.com>
395
396 2.30 branch created.
397
398 2018-01-12 Jens Widell <jl@opera.com>
399
400 * elf.c (setup_group): Optimize search for group by remembering
401 last found group and restarting search at that index.
402 * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field.
403
404 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
405
406 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
407 bfd_link_common_skip_none in switch.
408
409 2018-01-12 Alan Modra <amodra@gmail.com>
410
411 PR ld/22649
412 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
413 references on forced local symbols.
414
415 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
416
417 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
418 .reginfo section has wrong size.
419
420 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
421
422 PR ld/22393
423 * elf.c (_bfd_elf_map_sections_to_segments): When generating
424 separate code and read-only data LOAD segments, create a new
425 LOAD segment if the previous section contains text and the
426 current section doesn't or vice versa. Don't put a writable
427 section in a read-only segment if there is a RELRO segment.
428
429 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
430
431 PR ld/22649
432 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
433 references on forced local symbols.
434
435 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
436
437 PR ld/22677
438 * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY,
439 INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section.
440
441 2017-09-27 Kuan-Lin Chen <kuanlinchentw@gmail.com>
442
443 PR 22662
444 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
445
446 2018-01-03 John Baldwin <jhb@FreeBSD.org>
447
448 * elf.c (elfcore_grok_freebsd_note): Handle
449 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
450 NT_FREEBSD_PROCSTAT_VMMAP.
451
452 2018-01-03 Alan Modra <amodra@gmail.com>
453
454 Update year range in copyright notice of all files.
455
456 For older changes see ChangeLog-2017
457 \f
458 Copyright (C) 2018 Free Software Foundation, Inc.
459
460 Copying and distribution of this file, with or without modification,
461 are permitted in any medium without royalty provided the copyright
462 notice and this notice are preserved.
463
464 Local Variables:
465 mode: change-log
466 left-margin: 8
467 fill-column: 74
468 version-control: never
469 End:
This page took 0.052479 seconds and 5 git commands to generate.