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