Commit | Line | Data |
---|---|---|
cd048363 L |
1 | 2018-02-05 H.J. Lu <hongjiu.lu@intel.com> |
2 | ||
3 | PR ld/22782 | |
4 | * elf32-i386.c (elf_i386_check_relocs): Set got_referenced if | |
5 | _GLOBAL_OFFSET_TABLE_ is referenced or GOT is needed to resolve | |
6 | undefined weak symbol to 0. | |
7 | * elf64-x86-64.c (elf_x86_64_check_relocs): Set got_referenced | |
8 | if _GLOBAL_OFFSET_TABLE_ is referenced. | |
9 | * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Check | |
10 | got_referenced instead of ref_regular_nonweak. Remove the | |
11 | unused _GLOBAL_OFFSET_TABLE_ from symbol table. | |
12 | * elfxx-x86.h (elf_x86_link_hash_table): Add got_referenced. | |
13 | ||
e65b1a78 MR |
14 | 2018-02-05 Maciej W. Rozycki <macro@mips.com> |
15 | ||
16 | * elfnn-riscv.c (_bfd_riscv_relax_pc): Use `memset' to | |
17 | initialize `hi_reloc'. | |
18 | ||
2d6dda71 MR |
19 | 2018-02-05 Maciej W. Rozycki <macro@mips.com> |
20 | ||
21 | * elfxx-mips.c (_bfd_mips_elf_section_processing): For | |
22 | SHT_MIPS_REGINFO sections don't assert the correct size and | |
23 | report an error instead. | |
24 | ||
75506100 MR |
25 | 2018-02-05 Maciej W. Rozycki <macro@mips.com> |
26 | ||
27 | * elf.c (_bfd_elf_write_object_contents): Propagate a failure | |
28 | status from `->elf_backend_section_processing'. | |
29 | ||
7f02625e JW |
30 | 2018-02-02 Jim Wilson <jimw@sifive.com> |
31 | ||
32 | PR ld/22756 | |
33 | * elfnn-riscv.c (riscv_relax_delete_bytes): New parameter link_info. | |
34 | If link_info->wrap_hash, check for a duplicate symbol and ignore. | |
35 | (_bfd_riscv_relax_call, bfd_riscv_relax_lui, _bfd_riscv_relax_tls_le): | |
36 | Pass new argument to riscv_relax_delete_bytes. | |
37 | (_bfd_riscv_relax_align, _bfd_riscv_relax_delete): Likewise. Remove | |
38 | ATTRIBUTE_UNUSED from link_info parameter. | |
39 | ||
d830549d AM |
40 | 2018-02-02 Alan Modra <amodra@gmail.com> |
41 | ||
42 | * elf64-ppc.c (ppc64_elf_relocate_section): Don't relocate nops | |
43 | emitted for toc sequence optimization. Set and use "howto" later. | |
44 | ||
e99955cd SM |
45 | 2018-02-01 Simon Marchi <simon.marchi@ericsson.com> |
46 | ||
47 | * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Avoid pointer | |
48 | arithmetic on NULL pointer. | |
49 | * elflink.c (_bfd_elf_archive_symbol_lookup, | |
50 | elf_link_add_archive_symbols): Likewise. | |
51 | ||
bf3077a6 MM |
52 | 2018-01-31 Michael Matz <matz@suse.de> |
53 | ||
54 | * elflink.c (bfd_elf_define_start_stop): Fix check of | |
55 | def_dynamic. | |
56 | ||
823143c6 L |
57 | 2018-01-31 H.J. Lu <hongjiu.lu@intel.com> |
58 | ||
59 | PR ld/21964 | |
60 | * elflink.c (bfd_elf_define_start_stop): Check if __start and | |
61 | __stop symbols are referenced by shared objects. | |
62 | ||
76cb3a89 AM |
63 | 2018-01-30 Alan Modra <amodra@gmail.com> |
64 | ||
65 | PR 22758 | |
66 | * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new | |
67 | segment when demand paged with lma on the same page. Test this | |
68 | before load/non-load, executable/non-executable, | |
69 | writable/non-writable tests and simplify. Delete bogus relro | |
70 | condition in writable/non-writable test. Delete outdated | |
71 | comment. Formatting. | |
72 | ||
36b8fda5 AM |
73 | 2018-01-30 Alan Modra <amodra@gmail.com> |
74 | ||
75 | * elflink.c (bfd_elf_define_start_stop): Make __start and __stop | |
76 | symbols dynamic. | |
77 | ||
eb77f6a4 AM |
78 | 2018-01-29 Alan Modra <amodra@gmail.com> |
79 | ||
80 | PR 22741 | |
81 | * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in | |
82 | range before converting to a symbol table pointer. | |
83 | ||
7d73b4c8 NC |
84 | 2018-01-27 Nick Clifton <nickc@redhat.com> |
85 | ||
86 | * po/ru.po: Updated Russian translation. | |
87 | ||
32253bb7 AM |
88 | 2018-01-26 Alan Modra <amodra@gmail.com> |
89 | ||
90 | * elflink.c (bfd_elf_define_start_stop): Override symbols when | |
91 | they are defined dynamically. | |
92 | ||
ba21f564 AM |
93 | 2018-01-26 Alan Modra <amodra@gmail.com> |
94 | ||
95 | * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when | |
96 | .branch_lt changes size. | |
97 | ||
38e64b0e AM |
98 | 2018-01-25 Alan Modra <amodra@gmail.com> |
99 | ||
100 | PR 22746 | |
101 | * elfcode.h (elf_object_p): Avoid integer overflow. | |
102 | ||
bb363086 EB |
103 | 2018-01-25 Eric Botcazou <ebotcazou@adacore.com> |
104 | ||
105 | PR ld/22727 | |
106 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>: | |
107 | Do a mere lookup of the __tls_get_addr symbol instead of adding it. | |
108 | ||
109 | Revert | |
110 | 2017-10-19 H.J. Lu <hongjiu.lu@intel.com> | |
111 | ||
112 | PR ld/22263 | |
113 | * elfxx-sparc.c (sparc_elf_tls_transition): Replace | |
114 | bfd_link_pic with !bfd_link_executable, !bfd_link_pic with | |
115 | bfd_link_executable for TLS check. | |
116 | (_bfd_sparc_elf_check_relocs): Likewise. | |
117 | (allocate_dynrelocs): Likewise. | |
118 | (_bfd_sparc_elf_relocate_section): Likewise. | |
119 | ||
1daf502a RL |
120 | 2018-01-24 Renlin Li <renlin.li@arm.com> |
121 | ||
122 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for | |
123 | BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, | |
124 | BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, | |
125 | BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, | |
126 | BFD_RELOC_AARCH64_MOVW_PREL_G3. | |
127 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise. | |
128 | (_bfd_aarch64_elf_resolve_relocation): Likewise. | |
129 | ||
32247401 RL |
130 | 2018-01-24 Renlin Li <renlin.li@arm.com> |
131 | ||
132 | * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0, | |
133 | BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1, | |
134 | BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2, | |
135 | BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3. | |
136 | * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for | |
137 | BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, | |
138 | BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, | |
139 | BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, | |
140 | BFD_RELOC_AARCH64_MOVW_PREL_G3. | |
141 | * bfd-in2.h: Regenerate. | |
142 | * libbfd.h: Regenerate. | |
143 | ||
1c5e4ee9 MR |
144 | 2018-01-23 Maciej W. Rozycki <macro@mips.com> |
145 | ||
146 | * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale | |
147 | `mips_elf32_section_processing' comment reference. | |
148 | ||
8a1b824a L |
149 | 2018-01-20 H.J. Lu <hongjiu.lu@intel.com> |
150 | ||
151 | PR ld/22721 | |
152 | * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the | |
153 | versioned __tls_get_addr symbol. | |
154 | ||
ee3fbc1e NC |
155 | 2018-01-19 Nick Clifton <nickc@redhat.com> |
156 | ||
157 | * po/fr.po: Updated French translation. | |
158 | ||
691d2e9a AM |
159 | 2018-01-18 Alan Modra <amodra@gmail.com> |
160 | ||
161 | * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink. | |
162 | * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align. | |
163 | (ppc64_elf_build_stubs): Likewise. | |
164 | ||
4bfce128 NC |
165 | 2018-01-17 Nick Clifton <nickc@redhat.com> |
166 | ||
167 | * po/ru.po: Updated Russian translation. | |
168 | * po/uk/po: Updated Ukranian translation. | |
169 | ||
c75bc4f7 AM |
170 | 2018-01-17 Alan Modra <amodra@gmail.com> |
171 | ||
172 | * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning. | |
173 | ||
1be5d8d3 AM |
174 | 2018-01-17 Alan Modra <amodra@gmail.com> |
175 | ||
176 | * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier. | |
177 | (CRSETEQ, BEQCTRM): Define. | |
178 | (is_nonpic_glink_stub): Don't check bctr. | |
179 | (ppc_elf_link_hash_table_create): Init new ppc_elf_params field. | |
180 | (ppc_elf_relax_section): Size speculation barrier. | |
181 | (output_bctr): New function. | |
182 | (write_glink_stub): Use output_bctr. | |
183 | (ppc_elf_relocate_section): Use output_bctr for long branch stub. | |
184 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
185 | (ppc_elf_finish_dynamic_sections): Use output_bctr. | |
186 | * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps. | |
187 | * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define. | |
188 | (GLINK_PLTRESOLVE_SIZE): Size speculation barrier. | |
189 | (size_global_entry_stubs): Handle speculation barrier sizing. | |
190 | (plt_stub_size): Likewise. | |
191 | (output_bctr): New function. | |
192 | (build_plt_stub, build_tls_get_addr_stub): Output speculation | |
193 | barrier. | |
194 | (ppc_build_one_stub): Likewise for ppc_stub_plt_branch. | |
195 | (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch. | |
196 | (build_global_entry_stubs): Output speculation barrier. | |
197 | (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub. | |
198 | * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps. | |
199 | ||
9e390558 AM |
200 | 2018-01-17 Alan Modra <amodra@gmail.com> |
201 | ||
202 | * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle | |
203 | __tls_get_addr_opt, and alignment sizing. | |
204 | (TLS_GET_ADDR_GLINK_SIZE): Delete. | |
205 | (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE. | |
206 | (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6, | |
207 | or 8 insns. | |
208 | (ppc_elf_link_hash_table_create): Init new ppc_elf_params field. | |
209 | (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE. | |
210 | (ppc_elf_size_dynamic_sections): Likewise. Size branch table | |
211 | by PLT reloc count. | |
212 | (write_glink_stub): Handle __tls_get_addr_opt stub. | |
213 | Pad out to size given by GLINK_ENTRY_SIZE. | |
214 | (ppc_elf_relocate_section): Adjust write_glink_stub call. | |
215 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
216 | (ppc_elf_finish_dynamic_sections): Write PLTresolve without using | |
217 | insn array since so many need rewriting. | |
218 | * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align. | |
219 | * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from | |
220 | GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without | |
221 | nops. Adjust all uses. | |
222 | (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE | |
223 | in glink_vma calculation. | |
224 | (struct ppc_link_hash_table): Add global_entry section pointer. | |
225 | (create_linkage_sections): Create separate section for global | |
226 | entry stubs. | |
227 | (PPC_LO, PPC_HI, PPC_HA): Move earlier. | |
228 | (size_global_entry_stubs): Handle sizing for aligned stubs. | |
229 | (ppc64_elf_size_dynamic_sections): Handle global_entry alloc, | |
230 | and don't stash end of glink branch table in rawsize. | |
231 | (ppc_build_one_stub): Rewrite stub size calculations. | |
232 | (build_global_entry_stubs): Use new section. | |
233 | (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops. | |
234 | Build lazy link stubs out to end of section. Build global entry | |
235 | stubs in new section. | |
236 | ||
616dcb87 NC |
237 | 2018-01-15 Nick Clifton <nickc@redhat.com> |
238 | ||
239 | * po/uk.po: Updated Ukranian translation. | |
240 | ||
3957a496 NC |
241 | 2018-01-13 Nick Clifton <nickc@redhat.com> |
242 | ||
243 | * po/bfd.pot: Regenerated. | |
244 | ||
769c7ea5 NC |
245 | 2018-01-13 Nick Clifton <nickc@redhat.com> |
246 | ||
247 | * version.m4: Bump version to 2.30.51 | |
248 | * configure: Regenerate. | |
249 | ||
faf766e3 NC |
250 | 2018-01-13 Nick Clifton <nickc@redhat.com> |
251 | ||
252 | 2.30 branch created. | |
253 | ||
564e11c9 JW |
254 | 2018-01-12 Jens Widell <jl@opera.com> |
255 | ||
256 | * elf.c (setup_group): Optimize search for group by remembering | |
257 | last found group and restarting search at that index. | |
258 | * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field. | |
259 | ||
a78eea16 AM |
260 | 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net> |
261 | ||
262 | * aoutx.h (aout_link_check_ar_symbols): Remove default and handle | |
263 | bfd_link_common_skip_none in switch. | |
264 | ||
87e79a65 AM |
265 | 2018-01-12 Alan Modra <amodra@gmail.com> |
266 | ||
267 | PR ld/22649 | |
268 | * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic | |
269 | references on forced local symbols. | |
270 | ||
58807c48 VI |
271 | 2018-01-12 Vlad Ivanov <vlad@ivanov.email> |
272 | ||
273 | * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when | |
274 | .reginfo section has wrong size. | |
275 | ||
2888249f L |
276 | 2018-01-11 H.J. Lu <hongjiu.lu@intel.com> |
277 | ||
278 | PR ld/22393 | |
279 | * elf.c (_bfd_elf_map_sections_to_segments): When generating | |
280 | separate code and read-only data LOAD segments, create a new | |
281 | LOAD segment if the previous section contains text and the | |
282 | current section doesn't or vice versa. Don't put a writable | |
283 | section in a read-only segment if there is a RELRO segment. | |
284 | ||
d664fd41 L |
285 | 2018-01-11 H.J. Lu <hongjiu.lu@intel.com> |
286 | ||
287 | PR ld/22649 | |
288 | * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic | |
289 | references on forced local symbols. | |
290 | ||
8b6f4cd3 L |
291 | 2018-01-11 H.J. Lu <hongjiu.lu@intel.com> |
292 | ||
293 | PR ld/22677 | |
294 | * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY, | |
295 | INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section. | |
296 | ||
6cef73f9 KLC |
297 | 2017-09-27 Kuan-Lin Chen <kuanlinchentw@gmail.com> |
298 | ||
299 | PR 22662 | |
300 | * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error. | |
301 | ||
ddb2bbcf JB |
302 | 2018-01-03 John Baldwin <jhb@FreeBSD.org> |
303 | ||
304 | * elf.c (elfcore_grok_freebsd_note): Handle | |
305 | NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and | |
306 | NT_FREEBSD_PROCSTAT_VMMAP. | |
307 | ||
219d1afa AM |
308 | 2018-01-03 Alan Modra <amodra@gmail.com> |
309 | ||
310 | Update year range in copyright notice of all files. | |
311 | ||
1e563868 | 312 | For older changes see ChangeLog-2017 |
3499769a | 313 | \f |
1e563868 | 314 | Copyright (C) 2018 Free Software Foundation, Inc. |
3499769a AM |
315 | |
316 | Copying and distribution of this file, with or without modification, | |
317 | are permitted in any medium without royalty provided the copyright | |
318 | notice and this notice are preserved. | |
319 | ||
320 | Local Variables: | |
321 | mode: change-log | |
322 | left-margin: 8 | |
323 | fill-column: 74 | |
324 | version-control: never | |
325 | End: |