1 2018-02-08 H.J. Lu <hongjiu.lu@intel.com>
3 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
5 (i386_elf32_sol2_vec): Declared.
6 (elf_i386_link_setup_gnu_properties): Set
7 need_global_offset_table with info->output_bfd->xvec.
8 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
10 (x86_64_elf64_sol2_vec): Declared.
11 (elf_x86_64_link_setup_gnu_properties): Set
12 need_global_offset_table with info->output_bfd->xvec.
14 2018-02-08 H.J. Lu <hongjiu.lu@intel.com>
16 * elf32-i386.c (elf32_i386_copy_solaris_special_section_fields):
18 (elf_i386_link_setup_gnu_properties): Set need_global_offset_table
20 * elf64-x86-64.c (elf64_x86_64_copy_solaris_special_section_fields):
22 (elf_x86_64_link_setup_gnu_properties): Set
23 need_global_offset_table for Solaris.
24 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Keep the
25 unused _GLOBAL_OFFSET_TABLE_ for Solaris.
26 (_bfd_x86_elf_link_setup_gnu_properties): Copy
27 need_global_offset_table.
28 * elfxx-x86.h (elf_x86_link_hash_table): Add
29 need_global_offset_table.
30 (elf_x86_init_table): Likewise.
32 2018-02-08 Jim Wilson <jimw@sifive.com>
34 * elfnn-riscv.c (riscv_elf_relocate_section): Add comment for previous
37 2018-02-08 Nick Clifton <nickc@redhat.com>
40 * elf.c (elf_parse_notes): Reject notes with excessuively large
43 2018-02-07 Alan Modra <amodra@gmail.com>
45 Revert 2018-01-17 Alan Modra <amodra@gmail.com>
46 * elf32-ppc.c: Remove speculation barrier support.
47 * elf32-ppc.h: Likewise.
48 * elf64-ppc.c: Likewise.
49 * elf64-ppc.h: Likewise.
51 2018-02-06 Jim Wilson <jimw@sifive.com>
53 * elfnn-riscv.c (riscv_elf_relocate_section): Return TRUE if used
54 callback to report an error.
56 2018-02-06 Eric Botcazou <ebotcazou@adacore.com>
59 * elfxx-sparc.c (sparc_elf_tls_transition): Turn call to bfd_link_pic
60 into call to !bfd_link_executable and tidy up.
61 (_bfd_sparc_elf_check_relocs): Fix formatting and tidy up.
62 <R_SPARC_TLS_LE_HIX22>: Turn call to bfd_link_pic into call to
64 <R_SPARC_TLS_IE_HI22>: Likewise.
65 <GOT relocations>: Remove useless code, tidy and merge related blocks.
66 <R_SPARC_TLS_GD_CALL>: Turn call to bfd_link_pic into call to
68 <R_SPARC_WPLT30>: Tidy up.
69 (_bfd_sparc_elf_gc_mark_hook): Turn call to bfd_link_pic into call to
71 (allocate_dynrelocs): Likewise.
72 (_bfd_sparc_elf_relocate_section): Fix formatting and tidy up.
73 <R_SPARC_TLS_GD_HI22>: Merge into...
74 <R_SPARC_TLS_GD_LO10>: ...this. Adjust 4th argument in call to
75 sparc_elf_tls_transition and remove redundant code.
76 <R_SPARC_TLS_LDM_HI22>: Turn call to bfd_link_pic into call to
78 <R_SPARC_TLS_LDO_HIX22>: Likewise.
79 <R_SPARC_TLS_LE_HIX22>: Likewise. Tidy up.
80 <R_SPARC_TLS_LDM_CALL>: Likewise.
81 <R_SPARC_TLS_GD_CALL>: Likewise. Tidy up.
82 <R_SPARC_TLS_GD_ADD>: Likewise.
83 <R_SPARC_TLS_LDM_ADD>: Likewise.
84 <R_SPARC_TLS_LDO_ADD>: Likewise.
85 <R_SPARC_TLS_IE_LD>: Likewise.
87 2018-02-06 Miloš Stojanović <milos.stojanovic@rt-rk.com>
90 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): If the dwarf
91 functions failed to find the function name, try the generic elf
92 find function instead.
94 2018-02-06 Sergio Durigan Junior <sergiodj@redhat.com>
96 * coff-rs6000.c (xcoff_write_archive_contents_old): Use
97 'memcpy' instead of 'strncpy' when writing the magic number.
99 2018-02-06 Nick Clifton <nickc@redhat.com>
102 * opncls.c (bfd_get_debug_link_info_1): Check the size of the
103 section before attempting to read it in.
104 (bfd_get_alt_debug_link_info): Likewise.
106 2018-02-06 Paul Carroll <pcarroll@codesourcery.com>
108 * bfd/dwarf2.c (find_abstract_name): Modified to return file and
109 line information in addition to name, if they can be found.
111 2018-02-05 Renlin Li <renlin.li@arm.com>
114 * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Relax the
115 R_AARCH64_ABS32 and R_AARCH64_ABS16 for absolute symbol. Apply the
116 check for writeable section as well.
118 2018-02-05 H.J. Lu <hongjiu.lu@intel.com>
121 * elf32-i386.c (elf_i386_check_relocs): Set got_referenced if
122 _GLOBAL_OFFSET_TABLE_ is referenced or GOT is needed to resolve
123 undefined weak symbol to 0.
124 * elf64-x86-64.c (elf_x86_64_check_relocs): Set got_referenced
125 if _GLOBAL_OFFSET_TABLE_ is referenced.
126 * elfxx-x86.c (_bfd_x86_elf_size_dynamic_sections): Check
127 got_referenced instead of ref_regular_nonweak. Remove the
128 unused _GLOBAL_OFFSET_TABLE_ from symbol table.
129 * elfxx-x86.h (elf_x86_link_hash_table): Add got_referenced.
131 2018-02-05 Maciej W. Rozycki <macro@mips.com>
133 * elfnn-riscv.c (_bfd_riscv_relax_pc): Use `memset' to
134 initialize `hi_reloc'.
136 2018-02-05 Maciej W. Rozycki <macro@mips.com>
138 * elfxx-mips.c (_bfd_mips_elf_section_processing): For
139 SHT_MIPS_REGINFO sections don't assert the correct size and
140 report an error instead.
142 2018-02-05 Maciej W. Rozycki <macro@mips.com>
144 * elf.c (_bfd_elf_write_object_contents): Propagate a failure
145 status from `->elf_backend_section_processing'.
147 2018-02-02 Jim Wilson <jimw@sifive.com>
150 * elfnn-riscv.c (riscv_relax_delete_bytes): New parameter link_info.
151 If link_info->wrap_hash, check for a duplicate symbol and ignore.
152 (_bfd_riscv_relax_call, bfd_riscv_relax_lui, _bfd_riscv_relax_tls_le):
153 Pass new argument to riscv_relax_delete_bytes.
154 (_bfd_riscv_relax_align, _bfd_riscv_relax_delete): Likewise. Remove
155 ATTRIBUTE_UNUSED from link_info parameter.
157 2018-02-02 Alan Modra <amodra@gmail.com>
159 * elf64-ppc.c (ppc64_elf_relocate_section): Don't relocate nops
160 emitted for toc sequence optimization. Set and use "howto" later.
162 2018-02-01 Simon Marchi <simon.marchi@ericsson.com>
164 * elf64-ppc.c (ppc64_elf_archive_symbol_lookup): Avoid pointer
165 arithmetic on NULL pointer.
166 * elflink.c (_bfd_elf_archive_symbol_lookup,
167 elf_link_add_archive_symbols): Likewise.
169 2018-01-31 Michael Matz <matz@suse.de>
171 * elflink.c (bfd_elf_define_start_stop): Fix check of
174 2018-01-31 H.J. Lu <hongjiu.lu@intel.com>
177 * elflink.c (bfd_elf_define_start_stop): Check if __start and
178 __stop symbols are referenced by shared objects.
180 2018-01-30 Alan Modra <amodra@gmail.com>
183 * elf.c (_bfd_elf_map_sections_to_segments): Don't start a new
184 segment when demand paged with lma on the same page. Test this
185 before load/non-load, executable/non-executable,
186 writable/non-writable tests and simplify. Delete bogus relro
187 condition in writable/non-writable test. Delete outdated
190 2018-01-30 Alan Modra <amodra@gmail.com>
192 * elflink.c (bfd_elf_define_start_stop): Make __start and __stop
195 2018-01-29 Alan Modra <amodra@gmail.com>
198 * coffgen.c (coff_pointerize_aux): Ensure auxent tagndx is in
199 range before converting to a symbol table pointer.
201 2018-01-27 Nick Clifton <nickc@redhat.com>
203 * po/ru.po: Updated Russian translation.
205 2018-01-26 Alan Modra <amodra@gmail.com>
207 * elflink.c (bfd_elf_define_start_stop): Override symbols when
208 they are defined dynamically.
210 2018-01-26 Alan Modra <amodra@gmail.com>
212 * elf64-ppc.c (ppc64_elf_size_stubs): Iterate sizing when
213 .branch_lt changes size.
215 2018-01-25 Alan Modra <amodra@gmail.com>
218 * elfcode.h (elf_object_p): Avoid integer overflow.
220 2018-01-25 Eric Botcazou <ebotcazou@adacore.com>
223 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs) <R_SPARC_TLS_GD_CALL>:
224 Do a mere lookup of the __tls_get_addr symbol instead of adding it.
227 2017-10-19 H.J. Lu <hongjiu.lu@intel.com>
230 * elfxx-sparc.c (sparc_elf_tls_transition): Replace
231 bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
232 bfd_link_executable for TLS check.
233 (_bfd_sparc_elf_check_relocs): Likewise.
234 (allocate_dynrelocs): Likewise.
235 (_bfd_sparc_elf_relocate_section): Likewise.
237 2018-01-24 Renlin Li <renlin.li@arm.com>
239 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Add support for
240 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
241 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
242 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
243 BFD_RELOC_AARCH64_MOVW_PREL_G3.
244 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
245 (_bfd_aarch64_elf_resolve_relocation): Likewise.
247 2018-01-24 Renlin Li <renlin.li@arm.com>
249 * reloc.c: Add BFD_RELOC_AARCH64_MOVW_PREL_G0,
250 BFD_RELOC_AARCH64_MOVW_PREL_G0_NC, BFD_RELOC_AARCH64_MOVW_PREL_G1,
251 BFD_RELOC_AARCH64_MOVW_PREL_G1_NC, BFD_RELOC_AARCH64_MOVW_PREL_G2,
252 BFD_RELOC_AARCH64_MOVW_PREL_G2_NC, BFD_RELOC_AARCH64_MOVW_PREL_G3.
253 * elfnn-aarch64.c (elfNN_aarch64_howto_table): Add entries for
254 BFD_RELOC_AARCH64_MOVW_PREL_G0, BFD_RELOC_AARCH64_MOVW_PREL_G0_NC,
255 BFD_RELOC_AARCH64_MOVW_PREL_G1, BFD_RELOC_AARCH64_MOVW_PREL_G1_NC,
256 BFD_RELOC_AARCH64_MOVW_PREL_G2, BFD_RELOC_AARCH64_MOVW_PREL_G2_NC,
257 BFD_RELOC_AARCH64_MOVW_PREL_G3.
258 * bfd-in2.h: Regenerate.
259 * libbfd.h: Regenerate.
261 2018-01-23 Maciej W. Rozycki <macro@mips.com>
263 * elfxx-mips.c (_bfd_mips_elf_final_link): Update a stale
264 `mips_elf32_section_processing' comment reference.
266 2018-01-20 H.J. Lu <hongjiu.lu@intel.com>
269 * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Check the
270 versioned __tls_get_addr symbol.
272 2018-01-19 Nick Clifton <nickc@redhat.com>
274 * po/fr.po: Updated French translation.
276 2018-01-18 Alan Modra <amodra@gmail.com>
278 * elf32-ppc.c (ppc_elf_create_glink): Correct alignment of .glink.
279 * elf64-ppc.c (ppc64_elf_size_stubs): Handle negative plt_stub_align.
280 (ppc64_elf_build_stubs): Likewise.
282 2018-01-17 Nick Clifton <nickc@redhat.com>
284 * po/ru.po: Updated Russian translation.
285 * po/uk/po: Updated Ukranian translation.
287 2018-01-17 Alan Modra <amodra@gmail.com>
289 * elf64-ppc.c (ppc64_elf_build_stubs): Silence gcc warning.
291 2018-01-17 Alan Modra <amodra@gmail.com>
293 * elf32-ppc.c (GLINK_ENTRY_SIZE): Handle speculation barrier.
294 (CRSETEQ, BEQCTRM): Define.
295 (is_nonpic_glink_stub): Don't check bctr.
296 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
297 (ppc_elf_relax_section): Size speculation barrier.
298 (output_bctr): New function.
299 (write_glink_stub): Use output_bctr.
300 (ppc_elf_relocate_section): Use output_bctr for long branch stub.
301 (ppc_elf_finish_dynamic_symbol): Likewise.
302 (ppc_elf_finish_dynamic_sections): Use output_bctr.
303 * elf32-ppc.h (struct ppc_elf_params): Add speculate_indirect_jumps.
304 * elf64-ppc.c (CRSETEQ, BEQCTRM, BEQCTRLM): Define.
305 (GLINK_PLTRESOLVE_SIZE): Size speculation barrier.
306 (size_global_entry_stubs): Handle speculation barrier sizing.
307 (plt_stub_size): Likewise.
308 (output_bctr): New function.
309 (build_plt_stub, build_tls_get_addr_stub): Output speculation
311 (ppc_build_one_stub): Likewise for ppc_stub_plt_branch.
312 (ppc_size_one_stub): Size speculation barrier in ppc_stub_plt_branch.
313 (build_global_entry_stubs): Output speculation barrier.
314 (ppc64_elf_build_stubs): Likewise in __glink_PLTresolve stub.
315 * elf64-ppc.h (struct ppc64_elf_params): Add speculate_indirect_jumps.
317 2018-01-17 Alan Modra <amodra@gmail.com>
319 * elf32-ppc.c (GLINK_ENTRY_SIZE): Add parameters, handle
320 __tls_get_addr_opt, and alignment sizing.
321 (TLS_GET_ADDR_GLINK_SIZE): Delete.
322 (is_nonpic_glink_stub): Don't use GLINK_ENTRY_SIZE.
323 (ppc_elf_get_synthetic_symtab): Recognize stubs spaced at 4, 6,
325 (ppc_elf_link_hash_table_create): Init new ppc_elf_params field.
326 (allocate_dynrelocs): Use new GLINK_ENTRY_SIZE.
327 (ppc_elf_size_dynamic_sections): Likewise. Size branch table
329 (write_glink_stub): Handle __tls_get_addr_opt stub.
330 Pad out to size given by GLINK_ENTRY_SIZE.
331 (ppc_elf_relocate_section): Adjust write_glink_stub call.
332 (ppc_elf_finish_dynamic_symbol): Likewise.
333 (ppc_elf_finish_dynamic_sections): Write PLTresolve without using
334 insn array since so many need rewriting.
335 * elf32-ppc.h (struct ppc_elf_params): Add plt_stub_align.
336 * elf64-ppc.c (GLINK_PLTRESOLVE_SIZE): Rename from
337 GLINK_CALL_STUB_SIZE. Add htab param and evaluate to size without
338 nops. Adjust all uses.
339 (ppc64_elf_get_synthetic_symtab): Don't use GLINK_CALL_STUB_SIZE
340 in glink_vma calculation.
341 (struct ppc_link_hash_table): Add global_entry section pointer.
342 (create_linkage_sections): Create separate section for global
344 (PPC_LO, PPC_HI, PPC_HA): Move earlier.
345 (size_global_entry_stubs): Handle sizing for aligned stubs.
346 (ppc64_elf_size_dynamic_sections): Handle global_entry alloc,
347 and don't stash end of glink branch table in rawsize.
348 (ppc_build_one_stub): Rewrite stub size calculations.
349 (build_global_entry_stubs): Use new section.
350 (ppc64_elf_build_stubs): Don't pad __glink_PLTresolve with nops.
351 Build lazy link stubs out to end of section. Build global entry
352 stubs in new section.
354 2018-01-15 Nick Clifton <nickc@redhat.com>
356 * po/uk.po: Updated Ukranian translation.
358 2018-01-13 Nick Clifton <nickc@redhat.com>
360 * po/bfd.pot: Regenerated.
362 2018-01-13 Nick Clifton <nickc@redhat.com>
364 * version.m4: Bump version to 2.30.51
365 * configure: Regenerate.
367 2018-01-13 Nick Clifton <nickc@redhat.com>
371 2018-01-12 Jens Widell <jl@opera.com>
373 * elf.c (setup_group): Optimize search for group by remembering
374 last found group and restarting search at that index.
375 * elf-bfd.h (struct elf_obj_tdata): Add group_search_offset field.
377 2018-01-12 Gunther Nikl <gnikl@users.sourceforge.net>
379 * aoutx.h (aout_link_check_ar_symbols): Remove default and handle
380 bfd_link_common_skip_none in switch.
382 2018-01-12 Alan Modra <amodra@gmail.com>
385 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Ignore dynamic
386 references on forced local symbols.
388 2018-01-12 Vlad Ivanov <vlad@ivanov.email>
390 * elfxx-mips.c (_bfd_mips_elf_final_link): Notify user when
391 .reginfo section has wrong size.
393 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
396 * elf.c (_bfd_elf_map_sections_to_segments): When generating
397 separate code and read-only data LOAD segments, create a new
398 LOAD segment if the previous section contains text and the
399 current section doesn't or vice versa. Don't put a writable
400 section in a read-only segment if there is a RELRO segment.
402 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
405 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Ignore dynamic
406 references on forced local symbols.
408 2018-01-11 H.J. Lu <hongjiu.lu@intel.com>
411 * elflink.c (bfd_elf_gc_sections): Keep all PREINIT_ARRAY,
412 INIT_ARRAY as well as FINI_ARRAY sections for ld -r --gc-section.
414 2017-09-27 Kuan-Lin Chen <kuanlinchentw@gmail.com>
417 * elf32-nds32.c (nds32_elf_relax_loadstore): Fix a typographical error.
419 2018-01-03 John Baldwin <jhb@FreeBSD.org>
421 * elf.c (elfcore_grok_freebsd_note): Handle
422 NT_FREEBSD_PROCSTAT_PROC, NT_FREEBSD_PROCSTAT_FILES, and
423 NT_FREEBSD_PROCSTAT_VMMAP.
425 2018-01-03 Alan Modra <amodra@gmail.com>
427 Update year range in copyright notice of all files.
429 For older changes see ChangeLog-2017
431 Copyright (C) 2018 Free Software Foundation, Inc.
433 Copying and distribution of this file, with or without modification,
434 are permitted in any medium without royalty provided the copyright
435 notice and this notice are preserved.
441 version-control: never