1 2017-01-24 Maciej W. Rozycki <macro@imgtec.com>
4 * elflink.c (bfd_elf_record_link_assignment): Revert last
5 change and don't ever clear `forced_local'. Set `mark'
7 (elf_gc_sweep_symbol_info, elf_gc_sweep_symbol): Reorder within
9 (elf_gc_sweep): Move the call to `elf_gc_sweep_symbol'...
10 (bfd_elf_size_dynamic_sections): ... here.
11 * elf32-ppc.c (ppc_elf_tls_setup): Don't clear `forced_local'
12 and set `mark' instead in `__tls_get_addr_opt' processing.
13 * elf64-ppc.c (ppc64_elf_tls_setup): Likewise.
15 2017-01-24 Alan Modra <amodra@gmail.com>
17 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Merge two cases
18 where dynamic relocs are preferable. Allow ifunc too.
19 (ensure_undefweak_dynamic): New function.
20 (allocate_dynrelocs): Use it here. Move plt handling last and
21 don't make symbols dynamic, simplifying loop. Only make undef
22 weak symbols with GOT entries dynamic. Correct condition
23 for GOT relocs. Handle dynamic relocs on ifuncs. Correct
24 comments. Remove goto.
25 (ppc_elf_relocate_section): Correct test for using dynamic
26 symbol on GOT relocs. Rearrange test for emitting GOT relocs
27 to suit. Set up explicit tls_index entries and implicit GOT
28 tls_index entries resolvable at link time for
29 __tls_get_addr_opt. Simplify test to clear mem for prelink.
30 * elf64-ppc.c (allocate_got): Correct condition for GOT relocs.
31 (ensure_undefweak_dynamic): New function.
32 (allocate_dynrelocs): Use it here. Only make undef weak symbols
33 with GOT entries dynamic. Remove unnecessary test of
34 WILL_CALL_FINISH_DYNAMIC_SYMBOL in PLT handling.
35 (ppc64_elf_relocate_section): Correct test for using dynamic
36 symbol on GOT relocs. Rearrange test for emitting GOT relocs
37 to suit. Set up explicit tls_index entries and implicit GOT
38 tls_index entries resolvable at link time for __tls_get_addr_opt.
39 Simplify expression to clear mem for prelink.
41 2017-01-23 Yury Norov <ynorov@caviumnetworks.com>
43 * elfnn-aarch64.c: Fix relaxations for ILP32 mode.
45 2017-01-20 Jiong Wang <jiong.wang@arm.com>
47 * elfnn-aarch64.c (elf_aarch64_hash_symbol): New function.
48 (elf_backend_hash_symbol): Define.
50 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
53 * elflink.c (bfd_elf_record_link_assignment): Clear any
54 `forced_local' marking for DSO symbols that are not being
57 2017-01-17 Kuan-Lin Chen <kuanlinchentw@gmail.com>
59 * elfnn-riscv.c (riscv_elf_object_p): New function.
61 2017-01-12 H.J. Lu <hongjiu.lu@intel.com>
64 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add
66 (elf_x86_64_check_relocs): Create .eh_frame section for the
68 (elf_x86_64_size_dynamic_sections): Allocate and initialize
69 .eh_frame section for the .plt.bnd section.
70 (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section
71 for the .plt.bnd section.
73 2017-01-12 Nick Clifton <nickc@redhat.com>
76 * opncls.c (find_separate_debug_file): Add include_dirs
77 parameter. Only include the directory part of the bfd's filename
78 in search paths if include_dirs is true. Add a couple of extra
79 locations for looking for debug files.
80 ( bfd_follow_gnu_debuglink): Update invocation of
81 find_separate_debug_file.
82 (bfd_follow_gnu_debugaltlink): Likewise.
83 (get_build_id): New function: Finds the build-id of the given bfd.
84 (get_build_id_name): New function: Computes the name of the
85 separate debug info file for a bfd, based upon its build-id.
86 (check_build_id_file): New function: Checks to see if a separate
87 debug info file exists at the given location, and that its
88 build-id matches that of the original bfd.
89 (bfd_follow_build_id_debuglink): New function: Finds a separate
90 debug info file for a given bfd by using the build-id method.
91 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Try using the build-id
92 method of locating a separate debug info file before using the
94 * bfd-in2.h: Regenerate.
96 2017-01-11 H.J. Lu <hongjiu.lu@intel.com>
99 * elf64-x86-64.c (elf_x86_64_eh_frame_bnd_plt): New.
100 (elf_x86_64_bnd_arch_bed): Use elf_x86_64_eh_frame_bnd_plt and
101 elf_x86_64_eh_frame_plt_got.
102 (elf_x86_64_size_dynamic_sections): Get unwind info from
103 elf_x86_64_bnd_arch_bed for the BND PLT.
105 2017-01-11 Jeremy Soller <jackpot51@gmail.com>
107 * config.bfd: Add entries for i686-redox and x86_64-redox.
109 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
111 * elf32-i386.c (elf_i386_check_relocs): Align .eh_frame section
113 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Align
114 .eh_frame section to 4 bytes for x32.
115 (elf_x86_64_check_relocs): Likewise.
117 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
120 * elf32-i386.c (elf_i386_eh_frame_plt_got): New.
121 (PLT_GOT_FDE_LENGTH): Likewise.
122 (elf_i386_plt_layout): Add eh_frame_plt_got and
123 eh_frame_plt_got_size.
124 (elf_i386_plt): Updated.
125 (elf_i386_link_hash_table): Add plt_got_eh_frame.
126 (elf_i386_check_relocs): Create .eh_frame section for .plt.got.
127 (elf_i386_size_dynamic_sections): Allocate and initialize
128 .eh_frame section for .plt.got.
129 (elf_i386_finish_dynamic_sections): Adjust .eh_frame section for
131 (elf_i386_nacl_plt): Add FIXME for eh_frame_plt_got and
132 eh_frame_plt_got_size.
133 * elf64-x86-64.c (elf_x86_64_eh_frame_plt_got): New.
134 (PLT_GOT_FDE_LENGTH): Likewise.
135 (elf_x86_64_backend_data): Add eh_frame_plt_got and
136 eh_frame_plt_got_size.
137 (elf_x86_64_arch_bed): Updated.
138 (elf_x86_64_bnd_arch_bed): Add FIXME for eh_frame_plt_got and
139 eh_frame_plt_got_size.
140 (elf_x86_64_nacl_arch_bed): Likewise.
141 (elf_x86_64_link_hash_table): Add plt_got_eh_frame.
142 (elf_x86_64_check_relocs): Create .eh_frame section for .plt.got.
143 (elf_x86_64_size_dynamic_sections): Allocate and initialize
144 .eh_frame section for .plt.got.
145 (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section
148 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
150 * elf32-i386.c (elf_i386_size_dynamic_sections): Set
151 plt_eh_frame->size to eh_frame_plt_size and use eh_frame_plt.
153 2017-01-09 Nick Clifton <nickc@redhat.com>
155 * dwarf2.c (lookup_address_in_function_table): Return early if
156 there are no functions in the given comp unit, or if the high
157 address of the last function in the comp unit is less than the
160 2017-01-09 Nick Clifton <nickc@redhat.com>
163 * coffgen.c (_bfd_coff_get_external_symbols): Generate an error
164 message if there are too many symbols to load.
166 2017-01-04 James Clarke <jrtc27@jrtc27.com>
168 * elf64-alpha.c (elf64_alpha_relax_opt_call): Don't set tsec_free
169 if relocs are cached.
171 2017-01-03 Rich Felker <bugdal@aerifal.cx>
174 * elf32-microblaze.c (microblaze_elf_check_relocs): Add an entry
175 for R_MICROBLAZE_GOTOFF_64.
177 2017-01-03 Nick Clifton <nickc@redhat.com>
179 * mach-o.c (bfd_mach_o_lookup_uuid_command): Fix compile time
180 warning about using a possibly uninitialised variable.
182 2017-01-02 Alan Modra <amodra@gmail.com>
184 * elf32-hppa.c (ensure_undef_weak_dynamic): New function.
185 (allocate_plt_static, allocate_dynrelocs): Use it.
187 2017-01-02 Alan Modra <amodra@gmail.com>
189 * elf-hppa.h (elf_hppa_fake_sections): Set SHF_INFO_LINK for
190 .PARISC.unwind section.
192 2017-01-02 Alan Modra <amodra@gmail.com>
195 * elfxx-sparc.c (gdop_relative_offset_ok): New function.
196 (_bfd_sparc_elf_relocate_section): Use it to validate GOT
197 indirect to GOT pointer relative code edit.
199 2017-01-02 Alan Modra <amodra@gmail.com>
201 Update year range in copyright notice of all files.
203 For older changes see ChangeLog-2016
205 Copyright (C) 2017 Free Software Foundation, Inc.
207 Copying and distribution of this file, with or without modification,
208 are permitted in any medium without royalty provided the copyright
209 notice and this notice are preserved.
215 version-control: never