PowerPC PLT speculative execution barriers
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2018-01-17 Alan Modra <amodra@gmail.com>
2
3 * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier.
4 (CRSETEQ, BEQCTRM): Define.
5 (is_nonpic_glink_stub): Don't check bctr.
6 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
7 (ppc_elf_relax_section): Size speculation barrier.
8 (output_bctr): New function.
9 (write_glink_stub): Use output_bctr.
10 (ppc_elf_relocate_section): Use output_bctr for long branch stub.
11 (ppc_elf_finish_dynamic_symbol): Likewise.
12 (ppc_elf_finish_dynamic_sections): Use output_bctr.
13 * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps.
14 * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define.
15 (GLINK_PLTRESOLVE_SIZE): Size speculation barrier.
16 (size_global_entry_stubs): Handle speculation barrier sizing.
17 (plt_stub_size): Likewise.
18 (output_bctr): New function.
19 (build_plt_stub, build_tls_get_addr_stub): Output speculation
20 barrier.
21 (ppc_build_one_stub): Likewise for ppc_stub_plt_branch.
22 (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch.
23 (build_global_entry_stubs): Output speculation barrier.
24 (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub.
25 * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps.
26
27 2018-01-17 Alan Modra <amodra@gmail.com>
28
29 * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle
30 __tls_get_addr_opt, and alignment sizing.
31 (TLS_GET_ADDR_GLINK_SIZE): Delete.
32 (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE.
33 (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6,
34 or 8 insns.
35 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
36 (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE.
37 (ppc_elf_size_dynamic_sections): Likewise. Size branch table
38 by PLT reloc count.
39 (write_glink_stub): Handle __tls_get_addr_opt stub.
40 Pad out to size given by GLINK_ENTRY_SIZE.
41 (ppc_elf_relocate_section): Adjust write_glink_stub call.
42 (ppc_elf_finish_dynamic_symbol): Likewise.
43 (ppc_elf_finish_dynamic_sections): Write PLTresolve without using
44 insn array since so many need rewriting.
45 * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align.
46 * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from
47 GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without
48 nops. Adjust all uses.
49 (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE
50 in glink_vma calculation.
51 (struct ppc_link_hash_table): Add global_entry section pointer.
52 (create_linkage_sections): Create separate section for global
53 entry stubs.
54 (PPC_LO, PPC_HI, PPC_HA): Move earlier.
55 (size_global_entry_stubs): Handle sizing for aligned stubs.
56 (ppc64_elf_size_dynamic_sections): Handle global_entry alloc,
57 and don't stash end of glink branch table in rawsize.
58 (ppc_build_one_stub): Rewrite stub size calculations.
59 (build_global_entry_stubs): Use new section.
60 (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops.
61 Build lazy link stubs out to end of section. Build global entry
62 stubs in new section.
63
64 2018-01-15 Nick Clifton <nickc@redhat.com>
65
66 * po/uk.po: Updated Ukranian translation.
67
68 2018-01-13 Nick Clifton <nickc@redhat.com>
69
70 * po/bfd.pot: Regenerated.
71
72 2018-01-13 Nick Clifton <nickc@redhat.com>
73
74 * version.m4: Bump version to 2.30.51
75 * configure: Regenerate.
76
77 2018-01-13 Nick Clifton <nickc@redhat.com>
78
79 2.30 branch created.
80
81 2018-01-12 Jens Widell <jl@opera.com>
82
83 * elf.c (setup_group): Optimize search for group by remembering
84 last found group and restarting search at that index.
85 * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field.
86
87 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
88
89 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
90 bfd_link_common_skip_none in switch.
91
92 2018-01-12 Alan Modra <amodra@gmail.com>
93
94 PR ld/22649
95 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
96 references on forced local symbols.
97
98 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
99
100 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
101 .reginfo section has wrong size.
102
103 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
104
105 PR ld/22393
106 * elf.c (_bfd_elf_map_sections_to_segments): When generating
107 separate code and read-only data LOAD segments, create a new
108 LOAD segment if the previous section contains text and the
109 current section doesn't or vice versa. Don't put a writable
110 section in a read-only segment if there is a RELRO segment.
111
112 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
113
114 PR ld/22649
115 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
116 references on forced local symbols.
117
118 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
119
120 PR ld/22677
121 * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY,
122 INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section.
123
124 2017-09-27 Kuan-Lin Chen <kuanlinchentw@gmail.com>
125
126 PR 22662
127 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
128
129 2018-01-03 John Baldwin <jhb@FreeBSD.org>
130
131 * elf.c (elfcore_grok_freebsd_note): Handle
132 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
133 NT_FREEBSD_PROCSTAT_VMMAP.
134
135 2018-01-03 Alan Modra <amodra@gmail.com>
136
137 Update year range in copyright notice of all files.
138
139 For older changes see ChangeLog-2017
140 \f
141 Copyright (C) 2018 Free Software Foundation, Inc.
142
143 Copying and distribution of this file, with or without modification,
144 are permitted in any medium without royalty provided the copyright
145 notice and this notice are preserved.
146
147 Local Variables:
148 mode: change-log
149 left-margin: 8
150 fill-column: 74
151 version-control: never
152 End:
This page took 0.05232 seconds and 5 git commands to generate.