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