4ad0127b21315a3ce28758cb1f7c81b9050229e8
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2018-01-26 Alan Modra <amodra@gmail.com>
2
3 * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when
4 .branch_lt changes size.
5
6 2018-01-25 Alan Modra <amodra@gmail.com>
7
8 PR 22746
9 * elfcode.h (elf_object_p): Avoid integer overflow.
10
11 2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
12
13 PR ld/22727
14 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
15 Do a mere lookup of the __tls_get_addr symbol instead of adding it.
16
17 Revert
18 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
19
20 PR ld/22263
21 * elfxx-sparc.c (sparc_elf_tls_transition): Replace
22 bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
23 bfd_link_executable for TLS check.
24 (_bfd_sparc_elf_check_relocs): Likewise.
25 (allocate_dynrelocs): Likewise.
26 (_bfd_sparc_elf_relocate_section): Likewise.
27
28 2018-01-24 Renlin Li <renlin.li@arm.com>
29
30 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for
31 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
32 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
33 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
34 BFD_RELOC_AARCH64_MOVW_PREL_G3.
35 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
36 (_bfd_aarch64_elf_resolve_relocation): Likewise.
37
38 2018-01-24 Renlin Li <renlin.li@arm.com>
39
40 * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0,
41 BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1,
42 BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2,
43 BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3.
44 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for
45 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
46 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
47 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
48 BFD_RELOC_AARCH64_MOVW_PREL_G3.
49 * bfd-in2.h: Regenerate.
50 * libbfd.h: Regenerate.
51
52 2018-01-23 Maciej W. Rozycki <macro@mips.com>
53
54 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale
55 `mips_elf32_section_processing' comment reference.
56
57 2018-01-20 H.J. Lu <hongjiu.lu@intel.com>
58
59 PR ld/22721
60 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
61 versioned __tls_get_addr symbol.
62
63 2018-01-19 Nick Clifton <nickc@redhat.com>
64
65 * po/fr.po: Updated French translation.
66
67 2018-01-18 Alan Modra <amodra@gmail.com>
68
69 * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink.
70 * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align.
71 (ppc64_elf_build_stubs): Likewise.
72
73 2018-01-17 Nick Clifton <nickc@redhat.com>
74
75 * po/ru.po: Updated Russian translation.
76 * po/uk/po: Updated Ukranian translation.
77
78 2018-01-17 Alan Modra <amodra@gmail.com>
79
80 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
81
82 2018-01-17 Alan Modra <amodra@gmail.com>
83
84 * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier.
85 (CRSETEQ, BEQCTRM): Define.
86 (is_nonpic_glink_stub): Don't check bctr.
87 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
88 (ppc_elf_relax_section): Size speculation barrier.
89 (output_bctr): New function.
90 (write_glink_stub): Use output_bctr.
91 (ppc_elf_relocate_section): Use output_bctr for long branch stub.
92 (ppc_elf_finish_dynamic_symbol): Likewise.
93 (ppc_elf_finish_dynamic_sections): Use output_bctr.
94 * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps.
95 * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define.
96 (GLINK_PLTRESOLVE_SIZE): Size speculation barrier.
97 (size_global_entry_stubs): Handle speculation barrier sizing.
98 (plt_stub_size): Likewise.
99 (output_bctr): New function.
100 (build_plt_stub, build_tls_get_addr_stub): Output speculation
101 barrier.
102 (ppc_build_one_stub): Likewise for ppc_stub_plt_branch.
103 (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch.
104 (build_global_entry_stubs): Output speculation barrier.
105 (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub.
106 * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps.
107
108 2018-01-17 Alan Modra <amodra@gmail.com>
109
110 * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle
111 __tls_get_addr_opt, and alignment sizing.
112 (TLS_GET_ADDR_GLINK_SIZE): Delete.
113 (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE.
114 (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6,
115 or 8 insns.
116 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
117 (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE.
118 (ppc_elf_size_dynamic_sections): Likewise. Size branch table
119 by PLT reloc count.
120 (write_glink_stub): Handle __tls_get_addr_opt stub.
121 Pad out to size given by GLINK_ENTRY_SIZE.
122 (ppc_elf_relocate_section): Adjust write_glink_stub call.
123 (ppc_elf_finish_dynamic_symbol): Likewise.
124 (ppc_elf_finish_dynamic_sections): Write PLTresolve without using
125 insn array since so many need rewriting.
126 * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align.
127 * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from
128 GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without
129 nops. Adjust all uses.
130 (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE
131 in glink_vma calculation.
132 (struct ppc_link_hash_table): Add global_entry section pointer.
133 (create_linkage_sections): Create separate section for global
134 entry stubs.
135 (PPC_LO, PPC_HI, PPC_HA): Move earlier.
136 (size_global_entry_stubs): Handle sizing for aligned stubs.
137 (ppc64_elf_size_dynamic_sections): Handle global_entry alloc,
138 and don't stash end of glink branch table in rawsize.
139 (ppc_build_one_stub): Rewrite stub size calculations.
140 (build_global_entry_stubs): Use new section.
141 (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops.
142 Build lazy link stubs out to end of section. Build global entry
143 stubs in new section.
144
145 2018-01-15 Nick Clifton <nickc@redhat.com>
146
147 * po/uk.po: Updated Ukranian translation.
148
149 2018-01-13 Nick Clifton <nickc@redhat.com>
150
151 * po/bfd.pot: Regenerated.
152
153 2018-01-13 Nick Clifton <nickc@redhat.com>
154
155 * version.m4: Bump version to 2.30.51
156 * configure: Regenerate.
157
158 2018-01-13 Nick Clifton <nickc@redhat.com>
159
160 2.30 branch created.
161
162 2018-01-12 Jens Widell <jl@opera.com>
163
164 * elf.c (setup_group): Optimize search for group by remembering
165 last found group and restarting search at that index.
166 * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field.
167
168 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
169
170 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
171 bfd_link_common_skip_none in switch.
172
173 2018-01-12 Alan Modra <amodra@gmail.com>
174
175 PR ld/22649
176 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
177 references on forced local symbols.
178
179 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
180
181 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
182 .reginfo section has wrong size.
183
184 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
185
186 PR ld/22393
187 * elf.c (_bfd_elf_map_sections_to_segments): When generating
188 separate code and read-only data LOAD segments, create a new
189 LOAD segment if the previous section contains text and the
190 current section doesn't or vice versa. Don't put a writable
191 section in a read-only segment if there is a RELRO segment.
192
193 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
194
195 PR ld/22649
196 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
197 references on forced local symbols.
198
199 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
200
201 PR ld/22677
202 * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY,
203 INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section.
204
205 2017-09-27 Kuan-Lin Chen <kuanlinchentw@gmail.com>
206
207 PR 22662
208 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
209
210 2018-01-03 John Baldwin <jhb@FreeBSD.org>
211
212 * elf.c (elfcore_grok_freebsd_note): Handle
213 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
214 NT_FREEBSD_PROCSTAT_VMMAP.
215
216 2018-01-03 Alan Modra <amodra@gmail.com>
217
218 Update year range in copyright notice of all files.
219
220 For older changes see ChangeLog-2017
221 \f
222 Copyright (C) 2018 Free Software Foundation, Inc.
223
224 Copying and distribution of this file, with or without modification,
225 are permitted in any medium without royalty provided the copyright
226 notice and this notice are preserved.
227
228 Local Variables:
229 mode: change-log
230 left-margin: 8
231 fill-column: 74
232 version-control: never
233 End:
This page took 0.034934 seconds and 3 git commands to generate.