Commit | Line | Data |
---|---|---|
e5713223 MR |
1 | 2017-05-19 Maciej W. Rozycki <macro@imgtec.com> |
2 | ||
3 | * elf64-mips.c (mips_elf64_canonicalize_reloc): Remove prototype | |
4 | and function. | |
5 | (mips_elf64_canonicalize_dynamic_reloc): Likewise. | |
6 | (mips_elf64_slurp_one_reloc_table): Set `reloc_count' to the | |
7 | actual number of internal relocations retrieved. Adjust | |
8 | function description. | |
9 | (bfd_elf64_canonicalize_reloc): Remove macro. | |
10 | (bfd_elf64_canonicalize_dynamic_reloc): Likewise. | |
11 | ||
64517994 JM |
12 | 2017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com> |
13 | ||
14 | * archures.c (bfd_mach_sparc_v9m8): Define. | |
15 | (bfd_mach_sparc_v8plusm8): Likewise. | |
16 | (bfd_mach_sparc_v9_p): Adjust to M8. | |
17 | (bfd_mach_sparc_64bit_p): Likewise. | |
18 | * aoutx.h (machine_type): Handle bfd_mach_sparc_v9m8 and | |
19 | bfd_mach_sparc_v8plusm8. | |
20 | * bfd-in2.h: Regenerated. | |
21 | * cpu-sparc.c (arch_info_struct): Entries for sparc:v9m8 and | |
22 | sparc:v8plusm8. | |
23 | * elfxx-sparc.c (_bfd_sparc_elf_object_p): Handle | |
24 | bfd_mach_sparc_v8plusm8 and bfd_mach_sparc_v9m8 using the new hw | |
25 | capabilities ONADDSUB, ONMUL, ONDIV, DICTUNP, FPCPSHL, RLE and | |
26 | SHA3. | |
27 | * elf32-sparc.c (elf32_sparc_final_write_processing): Handle | |
28 | bfd_mach_sparc_v8plusm8. | |
29 | ||
eb026f09 AM |
30 | 2017-05-19 Alan Modra <amodra@gmail.com> |
31 | ||
32 | * elflink.c (_bfd_elf_gc_mark_extra_sections): Don't keep | |
33 | debug and special sections when no non-note alloc sections in an | |
34 | object are kept. | |
35 | ||
535b785f AM |
36 | 2017-05-18 Alan Modra <amodra@gmail.com> |
37 | ||
38 | * arc-got.h: Don't compare boolean values against TRUE or FALSE. | |
39 | * elf-m10300.c: Likewise. | |
40 | * elf.c: Likewise. | |
41 | * elf32-arc.c: Likewise. | |
42 | * elf32-bfin.c: Likewise. | |
43 | * elf32-m68k.c: Likewise. | |
44 | * elf32-nds32.c: Likewise. | |
45 | * elf32-tilepro.c: Likewise. | |
46 | * elflink.c: Likewise. | |
47 | * elfnn-aarch64.c: Likewise. | |
48 | * elfnn-riscv.c: Likewise. | |
49 | * elfxx-tilegx.c: Likewise. | |
50 | * mach-o.c: Likewise. | |
51 | * peXXigen.c: Likewise. | |
52 | * vms-alpha.c: Likewise. | |
53 | * vms-lib.c: Likewise. | |
54 | ||
b7c871ed L |
55 | 2017-05-17 H.J. Lu <hongjiu.lu@intel.com> |
56 | ||
57 | PR ld/20882 | |
58 | * elflink.c (elf_gc_mark_debug_section): New function. | |
59 | (_bfd_elf_gc_mark_extra_sections): Mark any debug sections | |
60 | referenced by kept debug sections. | |
61 | ||
bc4e12de AM |
62 | 2017-05-16 Alan Modra <amodra@gmail.com> |
63 | ||
64 | * elf-m10300.c: Rename occurrences of non_ir_ref. | |
65 | * elf32-arm.c: Likewise. | |
66 | * elf32-bfin.c: Likewise. | |
67 | * elf32-cr16.c: Likewise. | |
68 | * elf32-cris.c: Likewise. | |
69 | * elf32-d10v.c: Likewise. | |
70 | * elf32-dlx.c: Likewise. | |
71 | * elf32-fr30.c: Likewise. | |
72 | * elf32-frv.c: Likewise. | |
73 | * elf32-hppa.c: Likewise. | |
74 | * elf32-i370.c: Likewise. | |
75 | * elf32-i386.c: Likewise. | |
76 | * elf32-iq2000.c: Likewise. | |
77 | * elf32-lm32.c: Likewise. | |
78 | * elf32-m32c.c: Likewise. | |
79 | * elf32-m32r.c: Likewise. | |
80 | * elf32-m68hc1x.c: Likewise. | |
81 | * elf32-m68k.c: Likewise. | |
82 | * elf32-mcore.c: Likewise. | |
83 | * elf32-metag.c: Likewise. | |
84 | * elf32-microblaze.c: Likewise. | |
85 | * elf32-moxie.c: Likewise. | |
86 | * elf32-msp430.c: Likewise. | |
87 | * elf32-mt.c: Likewise. | |
88 | * elf32-nios2.c: Likewise. | |
89 | * elf32-or1k.c: Likewise. | |
90 | * elf32-ppc.c: Likewise. | |
91 | * elf32-rl78.c: Likewise. | |
92 | * elf32-s390.c: Likewise. | |
93 | * elf32-score.c: Likewise. | |
94 | * elf32-score7.c: Likewise. | |
95 | * elf32-sh.c: Likewise. | |
96 | * elf32-tic6x.c: Likewise. | |
97 | * elf32-tilepro.c: Likewise. | |
98 | * elf32-v850.c: Likewise. | |
99 | * elf32-vax.c: Likewise. | |
100 | * elf32-xstormy16.c: Likewise. | |
101 | * elf32-xtensa.c: Likewise. | |
102 | * elf64-alpha.c: Likewise. | |
103 | * elf64-hppa.c: Likewise. | |
104 | * elf64-ia64-vms.c: Likewise. | |
105 | * elf64-mmix.c: Likewise. | |
106 | * elf64-ppc.c: Likewise. | |
107 | * elf64-s390.c: Likewise. | |
108 | * elf64-sh64.c: Likewise. | |
109 | * elf64-x86-64.c: Likewise. | |
110 | * elflink.c: Likewise. | |
111 | * elfnn-aarch64.c: Likewise. | |
112 | * elfnn-ia64.c: Likewise. | |
113 | * elfnn-riscv.c: Likewise. | |
114 | * elfxx-mips.c: Likewise. | |
115 | * elfxx-sparc.c: Likewise. | |
116 | * elfxx-tilegx.c: Likewise. | |
117 | * linker.c: Likewise. | |
118 | ||
4070765b AM |
119 | 2017-05-16 Alan Modra <amodra@gmail.com> |
120 | ||
121 | * elf64-ppc.c (add_symbol_adjust): Transfer non_ir_ref_dynamic. | |
122 | * elflink.c (elf_link_add_object_symbols): Update to use | |
123 | non_ir_ref_dynamic. | |
124 | (elf_link_input_bfd): Test non_ir_ref_dynamic in addition to | |
125 | non_ir_ref. | |
126 | * linker.c (_bfd_generic_link_add_one_symbol): Likewise. | |
127 | ||
25499ac7 MR |
128 | 2017-05-15 Maciej W. Rozycki <macro@imgtec.com> |
129 | ||
130 | * elfxx-mips.c (print_mips_ases): Handle MIPS16e2 ASE. | |
131 | ||
73caa85d L |
132 | 2017-05-12 H.J. Lu <hongjiu.lu@intel.com> |
133 | ||
134 | * elf32-i386.c (elf_i386_parse_gnu_properties): Merge | |
135 | GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED | |
136 | properties. | |
137 | * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise. | |
138 | ||
f2c29a16 L |
139 | 2017-05-11 H.J. Lu <hongjiu.lu@intel.com> |
140 | ||
141 | * elf64-x86-64.c (elf_x86_64_link_hash_entry): Rename plt_bnd | |
142 | to plt_second. | |
143 | (elf_x86_64_link_hash_table): Rename plt_bnd/plt_bnd_eh_frame | |
144 | to plt_second/plt_second_eh_frame. | |
145 | (elf_x86_64_link_hash_newfunc): Updated. | |
146 | (elf_x86_64_allocate_dynrelocs): Likewise. | |
147 | (elf_x86_64_size_dynamic_sections): Likewise. | |
148 | (elf_x86_64_relocate_section): Likewise. | |
149 | (elf_x86_64_finish_dynamic_symbol): Likewise. | |
150 | (elf_x86_64_finish_dynamic_sections): Likewise. | |
151 | (elf_x86_64_plt_type): Rename plt_bnd to plt_second. | |
152 | (elf_x86_64_get_synthetic_symtab): Updated. Also scan the | |
153 | .plt.sec section. | |
154 | (elf_backend_setup_gnu_properties): Updated. Create the | |
155 | .plt.sec section instead of the .plt.sec section. | |
156 | ||
dc2be3d2 L |
157 | 2017-05-11 H.J. Lu <hongjiu.lu@intel.com> |
158 | ||
159 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Partially revert | |
160 | commit 25070364b0ce33eed46aa5d78ebebbec6accec7e. | |
161 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewse. | |
162 | ||
db84b98a JM |
163 | 2017-05-10 Jose E. Marchesi <jose.marchesi@oracle.com> |
164 | ||
165 | * elf64-sparc.c (elf64_sparc_set_reloc): New function. | |
166 | (bfd_elf64_set_reloc): Define. | |
167 | (elf64_sparc_write_relocs): Use `canon_reloc_count'. | |
168 | ||
23186865 JM |
169 | 2017-05-10 Jose E. Marchesi <jose.marchesi@oracle.com> |
170 | ||
171 | * targets.c (BFD_JUMP_TABLE_RELOCS): Add NAME##_set_reloc. | |
172 | (struct bfd_target): New field _bfd_set_reloc. | |
173 | * bfd.c (bfd_set_reloc): Call backend _set_bfd. | |
174 | * reloc.c (_bfd_generic_set_reloc): New function. | |
175 | * coffcode.h (coff_set_reloc): Define to _bfd_generic_set_reloc. | |
176 | * nlm-target.h (nlm_set_reloc): Likewise. | |
177 | * coff-rs6000.c (_bfd_xcoff_set_reloc): Likewise. | |
178 | * aout-tic30.c (MY_set_reloc): Likewise. | |
179 | * aout-target.h (MY_set_reloc): Likewise. | |
180 | * elfxx-target.h (bfd_elfNN_set_reloc): Likewise. | |
181 | * coff-alpha.c (_bfd_ecoff_set_reloc): Likewise. | |
182 | * mach-o-target.c (bfd_mach_o_set_reloc): Likewise. | |
183 | * vms-alpha.c (alpha_vms_set_reloc): Likewise. | |
184 | * aout-adobe.c (aout_32_set_reloc): Likewise. | |
185 | * bout.c (b_out_set_reloc): Likewise. | |
186 | * coff-mips.c (_bfd_ecoff_set_reloc): Likewise. | |
187 | * i386os9k.c (aout_32_set_reloc): Likewise. | |
188 | * ieee.c (ieee_set_reloc): Likewise. | |
189 | * oasys.c (oasys_set_reloc): Likewise. | |
190 | * som.c (som_set_reloc): Likewise. | |
191 | * versados.c (versados_set_reloc): Likewise. | |
192 | * coff64-rs6000.c (rs6000_xcoff64_vec): Add | |
193 | _bfd_generic_set_reloc. | |
194 | (rs6000_xcoff64_aix_vec): LIkewise. | |
195 | * libbfd.c (_bfd_norelocs_set_reloc): New function. | |
196 | * libbfd-in.h: Prototype for _bfd_norelocs_set_reloc. | |
197 | * i386msdos.c (msdos_set_reloc): Define to | |
198 | _bfd_norelocs_set_reloc. | |
199 | * elfcode.h (elf_set_reloc): Define. | |
200 | * bfd-in2.h: Regenerated. | |
201 | ||
aab82f4c L |
202 | 2017-05-10 H.J. Lu <hongjiu.lu@intel.com> |
203 | ||
204 | PR ld/21481 | |
205 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Use .plt.bnd | |
206 | for IFUNC function address. | |
207 | ||
53a346d8 CZ |
208 | 2017-05-10 Claudiu Zissulescu <claziss@synopsys.com> |
209 | ||
210 | * elf32-arc.c (FEATURE_LIST_NAME): Define. | |
211 | (CONFLICT_LIST): Likewise. | |
212 | (opcode/arc-attrs.h): Include. | |
213 | (arc_elf_print_private_bfd_data): Print OSABI v4 flag. | |
214 | (arc_extract_features): New file. | |
215 | (arc_stralloc): Likewise. | |
216 | (arc_elf_merge_attributes): Likewise. | |
217 | (arc_elf_merge_private_bfd_data): Use object attributes. | |
218 | (bfd_arc_get_mach_from_attributes): New function. | |
219 | (arc_elf_object_p): Use object attributes. | |
220 | (arc_elf_final_write_processing): Likewise. | |
221 | (elf32_arc_obj_attrs_arg_type): New function. | |
222 | (elf32_arc_obj_attrs_handle_unknown): Likewise. | |
223 | (elf32_arc_section_from_shdr): Likewise. | |
224 | (elf_backend_obj_attrs_vendor): Define. | |
225 | (elf_backend_obj_attrs_section): Likewise. | |
226 | (elf_backend_obj_attrs_arg_type): Likewise. | |
227 | (elf_backend_obj_attrs_section_type): Likewise. | |
228 | (elf_backend_obj_attrs_handle_unknown): Likewise. | |
229 | (elf_backend_section_from_shdr): Likewise. | |
230 | ||
e645cf40 AG |
231 | 2017-05-09 Andrew Goedhart <Andrewgoedhart@simplepowersolutions.co.za> |
232 | ||
233 | PR ld/21458 | |
234 | * elf32-arm.c (elf32_arm_final_link_relocate): Set the bottom bit | |
235 | of the value when resolving a R_ARM_THM_ALU_PREL_11_0 relocation | |
236 | and the destination is a Thumb symbol. | |
237 | ||
dd9e66ee L |
238 | 2017-05-08 H.J. Lu <hongjiu.lu@intel.com> |
239 | ||
240 | * elf32-i386.c (elf_i386_get_synthetic_symtab): Add missing | |
241 | initializer to silence GCC 4.2. | |
242 | * lf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Likewise. | |
243 | ||
38b12349 L |
244 | 2017-05-08 H.J. Lu <hongjiu.lu@intel.com> |
245 | ||
246 | * elf64-x86-64.c (PLT_ENTRY_SIZE): Renamed to ... | |
247 | (LAZY_PLT_ENTRY_SIZE): This. | |
248 | (NON_LAZY_PLT_ENTRY_SIZE): New. | |
249 | (elf_x86_64_plt0_entry): Renamed to ... | |
250 | (elf_x86_64_lazy_plt0_entry): This. | |
251 | (elf_x86_64_plt_entry): Renamed to ... | |
252 | (elf_x86_64_lazy_plt_entry): This. | |
253 | (elf_x86_64_bnd_plt0_entry): Renamed to ... | |
254 | (elf_x86_64_lazy_bnd_plt0_entry): This. | |
255 | (elf_x86_64_legacy_plt_entry): Removed. | |
256 | (elf_x86_64_bnd_plt_entry): Renamed to ... | |
257 | (elf_x86_64_lazy_bnd_plt_entry): This. | |
258 | (elf_x86_64_legacy_plt2_entry): Renamed to ... | |
259 | (elf_x86_64_non_lazy_plt_entry): This. | |
260 | (elf_x86_64_bnd_plt2_entry): Renamed to ... | |
261 | (elf_x86_64_non_lazy_bnd_plt_entry): This. | |
262 | (elf_x86_64_eh_frame_plt): Renamed to ... | |
263 | (elf_x86_64_eh_frame_lazy_plt): This. | |
264 | (elf_x86_64_eh_frame_bnd_plt): Renamed to ... | |
265 | (elf_x86_64_eh_frame_lazy_bnd_plt): This. | |
266 | (elf_x86_64_eh_frame_plt_got): Renamed to ... | |
267 | (elf_x86_64_eh_frame_non_lazy_plt): This. | |
268 | (elf_x86_64_lazy_plt_layout): New. | |
269 | (elf_x86_64_non_lazy_plt_layout): Likewise. | |
270 | (elf_x86_64_plt_layout): Likewise. | |
271 | (elf_x86_64_backend_data): Remove PLT layout information. Add | |
272 | os for target system. | |
273 | (GET_PLT_ENTRY_SIZE): Removed. | |
274 | (elf_x86_64_lazy_plt): New. | |
275 | (elf_x86_64_non_lazy_plt): Likewise. | |
276 | (elf_x86_64_lazy_bnd_plt): Likewise. | |
277 | (elf_x86_64_non_lazy_bnd_plt): Likewise. | |
278 | (elf_x86-64_arch_bed): Updated. | |
279 | (elf_x86_64_link_hash_table): Add plt, lazy_plt and non_lazy_plt. | |
280 | (elf_x86_64_create_dynamic_sections): Removed. | |
281 | (elf_x86_64_check_relocs): Don't check elf.dynobj. Don't call | |
282 | _bfd_elf_create_ifunc_sections nor _bfd_elf_create_got_section. | |
283 | (elf_x86-64_adjust_dynamic_symbol): Updated. | |
284 | (elf_x86_64_allocate_dynrelocs): Updated. Pass 0 as PLT header | |
285 | size to _bfd_elf_allocate_ifunc_dyn_relocs and don't allocate | |
286 | size for PLT0 if there is no PLT0. Get plt_entry_size from | |
287 | non_lazy_plt for non-lazy PLT entries. | |
288 | (elf_x86_64_size_dynamic_sections): Updated. Get plt_entry_size | |
289 | from non_lazy_plt for non-lazy PLT entries. | |
290 | (elf_x86-64_relocate_section): Updated. Properly get PLT index | |
291 | if there is no PLT0. | |
292 | (elf_x86_64_finish_dynamic_symbol): Updated. Fill the first slot | |
293 | in the PLT entry with generic PLT layout. Fill the non-lazy PLT | |
294 | entries with non-lazy PLT layout. Don't fill the second and third | |
295 | slots in the PLT entry if there is no PLT0. | |
296 | (elf_x86_64_finish_dynamic_sections): Updated. Don't fill PLT0 | |
297 | if there is no PLT0. Set sh_entsize on the .plt.got section. | |
298 | (compare_relocs): New. | |
299 | (elf_x86_64_plt_type): Likewise. | |
300 | (elf_x86_64_plt): Likewise. | |
301 | (elf_x86_64_nacl_plt): New. Forward declaration. | |
302 | (elf_x86_64_get_plt_sym_val): Removed. | |
303 | (elf_x86_64_get_synthetic_symtab): Rewrite to check PLT sections | |
304 | against all dynamic relocations. | |
305 | (elf_x86_64_link_setup_gnu_properties): New function. | |
306 | (elf_backend_create_dynamic_sections): Updated. | |
307 | (elf_backend_setup_gnu_properties): New. | |
308 | (elf_x86_64_nacl_plt): New. | |
309 | (elf_x86_64_nacl_arch_bed): Updated. | |
310 | ||
f604c2a2 L |
311 | 2017-05-08 H.J. Lu <hongjiu.lu@intel.com> |
312 | ||
313 | * elf32-i386.c (PLT_ENTRY_SIZE): Renamed to ... | |
314 | (LAZY_PLT_ENTRY_SIZE): This. | |
315 | (NON_LAZY_PLT_ENTRY_SIZE): New. | |
316 | (elf_i386_plt0_entry): Renamed to ... | |
317 | (elf_i386_lazy_plt0_entry): This. | |
318 | (elf_i386_plt_entry): Renamed to ... | |
319 | (elf_i386_lazy_plt_entry): This. | |
320 | (elf_i386_pic_plt0_entry): Renamed to ... | |
321 | (elf_i386_pic_lazy_plt0_entry): This. | |
322 | (elf_i386_pic_plt_entry): Renamed to ... | |
323 | (elf_i386_pic_lazy_plt_entry): This. | |
324 | (elf_i386_got_plt_entry): Renamed to ... | |
325 | (elf_i386_non_lazy_plt_entry): This. | |
326 | (elf_i386_pic_got_plt_entry): Renamed to ... | |
327 | (elf_i386_pic_non_lazy_plt_entry): This. | |
328 | (elf_i386_eh_frame_plt): Renamed to ... | |
329 | (elf_i386_eh_frame_lazy_plt): This. | |
330 | (elf_i386_eh_frame_plt_got): Renamed to ... | |
331 | (elf_i386_eh_frame_non_lazy_plt): This. | |
332 | (elf_i386_plt_layout): Renamed to ... | |
333 | (elf_i386_lazy_plt_layout): This. Remove eh_frame_plt_got and | |
334 | eh_frame_plt_got_size. | |
335 | (elf_i386_non_lazy_plt_layout): New. | |
336 | (elf_i386_plt_layout): Likewise. | |
337 | (elf_i386_non_lazy_plt): Likewise. | |
338 | (GET_PLT_ENTRY_SIZE): Removed. | |
339 | (elf_i386_plt): Renamed to ... | |
340 | (elf_i386_lazy_plt): This. | |
341 | (elf_i386_backend_data): Remove plt. Rename is_vxworks to os. | |
342 | (elf_i386_arch_bed): Updated. | |
343 | (elf_i386_link_hash_table): Add plt, lazy_plt and non_lazy_plt. | |
344 | (elf_i386_create_dynamic_sections): Removed. | |
345 | (elf_i386_check_relocs): Don't check elf.dynobj. Don't call | |
346 | _bfd_elf_create_ifunc_sections nor _bfd_elf_create_got_section. | |
347 | (elf_i386_adjust_dynamic_symbol): Updated. | |
348 | (elf_i386_allocate_dynrelocs): Updated. Pass 0 as PLT header | |
349 | size to _bfd_elf_allocate_ifunc_dyn_relocs and don't allocate | |
350 | size for PLT0 if there is no PLT0. | |
351 | (elf_i386_size_dynamic_sections): Updated. Check whether GOT | |
352 | output section is discarded only if GOT isn't empty. | |
353 | (elf_i386_relocate_section): Updated. Properly get PLT index | |
354 | if there is no PLT0. | |
355 | (elf_i386_finish_dynamic_symbol): Updated. Don't fill the | |
356 | second and third slots in the PLT entry if there is no PLT0. | |
357 | (elf_i386_finish_dynamic_sections): Updated. Don't fill PLT0 | |
358 | if there is no PLT0. Set sh_entsize on the .plt.got section. | |
359 | (elf_i386_nacl_plt): Forward declaration. | |
360 | (elf_i386_get_plt_sym_val): Removed. | |
361 | (elf_i386_get_synthetic_symtab): Rewrite to check PLT sections | |
362 | against all dynamic relocations. | |
363 | (elf_i386_link_setup_gnu_properties): New function. | |
364 | (elf_backend_create_dynamic_sections): Updated. | |
365 | (elf_backend_setup_gnu_properties): New. | |
366 | (elf_i386_nacl_plt): Updated. | |
367 | (elf_i386_nacl_arch_bed): Likewise. | |
368 | (elf_i386_vxworks_arch_bed): Likewise. | |
369 | ||
046734ff TP |
370 | 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com> |
371 | ||
372 | * elflink.c (elf_output_implib): Remove executable flag from import | |
373 | library bfd. | |
374 | * elf32-arm.c (elf32_arm_filter_implib_symbols): Assert that the import | |
375 | library is a relocatable object file. | |
376 | ||
b660e9eb SKS |
377 | 2017-05-01 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> |
378 | ||
379 | PR ld/21404 | |
380 | * elf32-avr.c (avr_should_move_sym): New function. | |
381 | (avr_should_reduce_sym_size): Likewise. | |
382 | (avr_should_increase_sym_size): Likewise. | |
383 | (elf32_avr_relax_delete_bytes): Adjust symbol values | |
384 | and sizes by calling new functions. | |
385 | ||
763a5fa4 PD |
386 | 2017-05-01 Palmer Dabbelt <palmer@dabbelt.com> |
387 | ||
388 | * config.bfd (riscv32-*): Enable rv64. | |
389 | ||
73ec947d AM |
390 | 2017-05-02 Alan Modra <amodra@gmail.com> |
391 | ||
392 | PR 21384 | |
393 | * elflink.c (bfd_elf_link_mark_dynamic_symbol): Test h->non_elf | |
394 | rather than h->root.type == bfd_link_hash_new. | |
395 | (bfd_elf_record_link_assignment): Similarly, call | |
396 | bfd_elf_link_mark_dynamic_symbol when h->non_elf. | |
397 | ||
a941291c AM |
398 | 2017-04-29 Alan Modra <amodra@gmail.com> |
399 | ||
400 | PR 21432 | |
401 | * reloc.c (reloc_offset_in_range): New function. | |
402 | (bfd_perform_relocation, bfd_install_relocation): Use it. | |
403 | (_bfd_final_link_relocate): Likewise. | |
404 | ||
750eaa47 L |
405 | 2017-04-28 H.J. Lu <hongjiu.lu@intel.com> |
406 | ||
407 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Check plt_got | |
408 | before using .plt.got. | |
409 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise. | |
410 | ||
5b66fac4 L |
411 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
412 | ||
413 | * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Use "=" | |
414 | instead of "+=" to update 0. | |
415 | ||
de9a3c42 L |
416 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
417 | ||
418 | * elf32-i386.c (elf_i386_create_dynamic_sections): Create the | |
419 | .plt.got section here. | |
420 | (elf_i386_check_relocs): Don't create the .plt.got section. | |
421 | * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Create | |
422 | the .plt.got and .plt.bnd sections here. | |
423 | (elf_x86_64_check_relocs): Don't create the .plt.got nor | |
424 | .plt.bnd sections. | |
425 | ||
da3d25af L |
426 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
427 | ||
428 | * elf64-x86-64.c (elf_x86_64_link_hash_entry): Remove | |
429 | has_bnd_reloc. | |
430 | (elf_x86_64_link_hash_newfunc): Don't clear has_bnd_reloc. | |
431 | (elf_x86_64_copy_indirect_symbol): Don't copy has_bnd_reloc. | |
432 | (elf_x86_64_check_relocs): Don't set has_bnd_reloc. | |
433 | (elf_x86_64_finish_dynamic_symbol): Check bndplt instead of | |
434 | has_bnd_reloc. | |
435 | ||
fba37edd L |
436 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
437 | ||
438 | * elf-bfd.h (elf_backend_data): Change setup_gnu_properties | |
439 | to return bfd *. | |
440 | (_bfd_elf_link_setup_gnu_properties): Return bfd *. | |
441 | * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Return | |
442 | the first relocatable ELF input with GNU properties. | |
443 | ||
1f78f649 L |
444 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
445 | ||
446 | * elf32-i386.c (elf_i386_finish_dynamic_sections): Simplify | |
447 | VxWorks for non-PIC. | |
448 | ||
76c20d54 AM |
449 | 2017-04-27 Alan Modra <amodra@gmail.com> |
450 | ||
451 | * elf-bfd.h (struct elf_backend_data): Make asection param of | |
452 | elf_backend_eh_frame_address_size const. | |
453 | (_bfd_elf_eh_frame_address_size): Likewise. | |
454 | * elf32-m32c.c (_bfd_m32c_elf_eh_frame_address_size): Likewise. | |
455 | * elf32-msp430.c (elf32_msp430_eh_frame_address_size): Likewise. | |
456 | * elfxx-mips.c (_bfd_mips_elf_eh_frame_address_size): Likewise. | |
457 | * elfxx-mips.h (_bfd_mips_elf_eh_frame_address_size): Likewise. | |
458 | * elf-eh-frame.c (_bfd_elf_eh_frame_address_size): Likewise. | |
459 | (next_cie_fde_offset): Constify params. | |
460 | (offset_adjust, adjust_eh_frame_local_symbols): Likewise. | |
461 | ||
d7153c4a AM |
462 | 2017-04-27 Alan Modra <amodra@gmail.com> |
463 | ||
464 | * elf-bfd.h (struct eh_cie_fde): Add aug_str_len and aug_data_len. | |
465 | (_bfd_elf_adjust_eh_frame_global_symbol): Declare. | |
466 | * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Set aug_str_len and | |
467 | aug_data_len. | |
468 | (offset_adjust): New function. | |
469 | (_bfd_elf_adjust_eh_frame_global_symbol): Likewise. | |
470 | (adjust_eh_frame_local_symbols): Likewise. | |
471 | (_bfd_elf_discard_section_eh_frame): Call adjust_eh_frame_local_symbols | |
472 | after changing anything. Return true if anything changed. | |
473 | * elflink.c (bfd_elf_discard_info): If .eh_frame changed, call | |
474 | _bfd_elf_adjust_eh_frame_global_symbol for globals. | |
475 | ||
641338d8 AM |
476 | 2017-04-27 Alan Modra <amodra@gmail.com> |
477 | ||
478 | * elflink.c (_bfd_elf_link_hash_hide_symbol): Clear dynstr_index | |
479 | when force_local. | |
480 | ||
21d68fcd AM |
481 | 2017-04-27 Alan Modra <amodra@gmail.com> |
482 | ||
483 | * elf32-ppc.c (UNDEFWEAK_NO_DYNAMIC_RELOC): Define. | |
484 | (ppc_elf_select_plt_layout, ppc_elf_tls_setup): Use it. | |
485 | (ppc_elf_adjust_dynamic_symbol, allocate_dynrelocs): Likewise. | |
486 | (ppc_elf_relocate_section): Likewise. Delete silly optimisation | |
487 | for undef and undefweak dyn_relocs. | |
488 | * elf64-ppc.c (UNDEFWEAK_NO_DYNAMIC_RELOC): Define. | |
489 | (ppc64_elf_adjust_dynamic_symbol, ppc64_elf_tls_setup): Use it. | |
490 | (allocate_got, allocate_dynrelocs): Likewise. | |
491 | (ppc64_elf_relocate_section): Likewise. | |
492 | ||
97d343d4 L |
493 | 2017-04-26 H.J. Lu <hongjiu.lu@intel.com> |
494 | ||
495 | * elf32-i386.c (elf_i386_size_dynamic_sections): Alwasys add | |
496 | DT_PLTRELSZ, DT_PLTREL and DT_JMPREL for .rel.plt section. | |
497 | * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Alwasys | |
498 | add DT_PLTRELSZ, DT_PLTREL and DT_JMPREL for .rela.plt section. | |
499 | ||
04b31182 NC |
500 | 2017-04-26 Nick Clifton <nickc@redhat.com> |
501 | ||
502 | PR binutils/21434 | |
503 | * reloc.c (bfd_perform_relocation): Check for a negative address | |
504 | in the reloc. | |
505 | ||
23ec1e32 MR |
506 | 2017-04-26 Maciej W. Rozycki <macro@imgtec.com> |
507 | ||
508 | PR ld/21334 | |
509 | * elf-bfd.h (elf_backend_data): Add `always_renumber_dynsyms' | |
510 | member. | |
511 | * elfxx-target.h [!elf_backend_always_renumber_dynsyms] | |
512 | (elf_backend_always_renumber_dynsyms): Define. | |
513 | (elfNN_bed): Initialize `always_renumber_dynsyms' member. | |
514 | * elfxx-mips.h (elf_backend_always_renumber_dynsyms): Define. | |
515 | * elflink.c (bfd_elf_size_dynamic_sections): Also call | |
516 | `_bfd_elf_link_renumber_dynsyms' if the backend has requested | |
517 | it. | |
518 | (bfd_elf_size_dynsym_hash_dynstr): Likewise. | |
519 | ||
c46cec3a MR |
520 | 2017-04-26 Maciej W. Rozycki <macro@imgtec.com> |
521 | ||
522 | * elflink.c (bfd_elf_size_dynamic_sections): Only call | |
523 | `_bfd_elf_link_renumber_dynsyms' after section GC if dynamic | |
524 | sections have been created. | |
525 | ||
e63d1232 NC |
526 | 2017-04-26 Nick Clifton <nickc@redhat.com> |
527 | ||
528 | PR binutils/21431 | |
529 | * compress.c (bfd_init_section_compress_status): Check the return | |
530 | value from bfd_malloc. | |
531 | ||
9e9821dd L |
532 | 2017-04-24 H.J. Lu <hongjiu.lu@intel.com> |
533 | ||
534 | * elf64-x86-64.c (elf_x86_64_link_hash_entry): Add | |
535 | no_finish_dynamic_symbol. | |
536 | (elf_x86_64_link_hash_newfunc): Set no_finish_dynamic_symbol to | |
537 | 0. | |
538 | (elf_x86_64_allocate_dynrelocs): If a symbol isn't undefined | |
539 | weak symbol, don't make it dynamic. | |
540 | (elf_x86_64_relocate_section): If a symbol isn't dynamic in PIC, | |
541 | set no_finish_dynamic_symbol and generate R_X86_64_RELATIVE | |
542 | relocation for GOT reference. | |
543 | (elf_x86_64_finish_dynamic_symbol): Abort if | |
544 | no_finish_dynamic_symbol isn't 0. | |
545 | ||
0dc9a308 L |
546 | 2017-04-24 H.J. Lu <hongjiu.lu@intel.com> |
547 | ||
548 | PR ld/21402 | |
549 | * elf32-i386.c (elf_i386_allocate_dynrelocs): If a symbol isn't | |
550 | undefined weak symbol, don't make it dynamic. | |
551 | (elf_i386_relocate_section): If a symbol isn't dynamic in PIC, | |
552 | set no_finish_dynamic_symbol and generate R_386_RELATIVE | |
553 | relocation for R_386_GOT32. | |
554 | ||
1587442d L |
555 | 2017-04-24 H.J. Lu <hongjiu.lu@intel.com> |
556 | ||
557 | PR ld/21425 | |
558 | * elf32-i386.c (ELF_MAXPAGESIZE): Set to 0x1000 for VxWorks. | |
559 | ||
7eacd66b AM |
560 | 2017-04-23 Alan Modra <amodra@gmail.com> |
561 | ||
562 | PR 21414 | |
563 | * section.c (GLOBAL_SYM_INIT): Make available in bfd.h. | |
564 | * elf.c (lcomm_sym): New. | |
565 | (_bfd_elf_large_com_section): Use lcomm_sym section symbol. | |
566 | * bfd-in2.h: Regenerate. | |
567 | ||
bce964aa AM |
568 | 2017-04-23 Alan Modra <amodra@gmail.com> |
569 | ||
570 | PR 21412 | |
571 | * elf-bfd.h (struct elf_backend_data <get_reloc_section>): Change | |
572 | parameters and comment. | |
573 | (_bfd_elf_get_reloc_section): Delete. | |
574 | (_bfd_elf_plt_get_reloc_section): Declare. | |
575 | * elf.c (_bfd_elf_plt_get_reloc_section, elf_get_reloc_section): | |
576 | New functions. Don't blindly skip over assumed .rel/.rela prefix. | |
577 | Extracted from.. | |
578 | (_bfd_elf_get_reloc_section): ..here. Delete. | |
579 | (assign_section_numbers): Call elf_get_reloc_section. | |
580 | * elf64-ppc.c (elf_backend_get_reloc_section): Define. | |
581 | * elfxx-target.h (elf_backend_get_reloc_section): Update. | |
582 | ||
97e83a10 AM |
583 | 2017-04-23 Alan Modra <amodra@gmail.com> |
584 | ||
585 | PR 21409 | |
586 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Don't segfault when | |
587 | no symbols. | |
588 | ||
e133d005 L |
589 | 2017-04-21 H.J. Lu <hongjiu.lu@intel.com> |
590 | ||
591 | PR ld/21402 | |
592 | * elf32-i386.c (elf_i386_link_hash_entry): Add | |
593 | no_finish_dynamic_symbol. | |
594 | (elf_i386_link_hash_newfunc): Set no_finish_dynamic_symbol to 0. | |
595 | (elf_i386_allocate_dynrelocs): If a symbol isn't undefined weak | |
596 | symbol, don't make it dynamic in PIE. | |
597 | (elf_i386_relocate_section): If a symbol isn't dynamic in PIE, | |
598 | set no_finish_dynamic_symbol and generate R_386_RELATIVE | |
599 | relocation for R_386_GOT32 | |
600 | (elf_i386_finish_dynamic_symbol): Abort if no_finish_dynamic_symbol | |
601 | isn't 0. | |
602 | ||
3c5fce9b L |
603 | 2017-04-21 H.J. Lu <hongjiu.lu@intel.com> |
604 | ||
605 | PR ld/19617 | |
606 | PR ld/21086 | |
607 | * elflink.c (elf_link_add_object_symbols): Require | |
608 | --no-dynamic-linker with -E/--dynamic-list when creating | |
609 | dynamic sections. | |
610 | ||
0fad2956 MR |
611 | 2017-04-20 Maciej W. Rozycki <macro@imgtec.com> |
612 | ||
613 | * elflink.c (_bfd_elf_symbol_refs_local_p): Always return TRUE | |
614 | if forced local. | |
615 | ||
64575f78 MR |
616 | 2017-04-20 Maciej W. Rozycki <macro@imgtec.com> |
617 | ||
618 | * elfxx-mips.c (_bfd_mips_elf_final_link): Reorder comment about | |
619 | dynamic symbol sorting. | |
620 | ||
59fa66c5 L |
621 | 2017-04-20 H.J. Lu <hongjiu.lu@intel.com> |
622 | ||
623 | PR ld/21382 | |
624 | * elflink.c (elf_link_add_object_symbols): Preserve | |
625 | dynamic_ref_after_ir_def when restoring the symbol table for | |
626 | unneeded dynamic object. | |
627 | ||
e492d2f8 L |
628 | 2017-04-19 H.J. Lu <hongjiu.lu@intel.com> |
629 | ||
630 | PR ld/21401 | |
631 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Don't abort | |
632 | on on undefined IFUNC symbol in the second PLT. | |
633 | ||
10169134 WAF |
634 | 2017-04-19 Wedson Almeida Filho <wedsonaf@gmail.com> |
635 | ||
636 | * peXXigen.c (pe_print_reloc): Correct chunk_end. | |
637 | ||
954b63d4 AM |
638 | 2017-04-19 Alan Modra <amodra@gmail.com> |
639 | ||
640 | * elflink.c (_bfd_elf_adjust_dynamic_symbol): Hide undefweak | |
641 | or make dynamic for info->dynamic_undefined_weak 0 and 1. | |
642 | * elf32-ppc.c:Formatting. | |
643 | (ensure_undefweak_dynamic): Don't make dynamic when | |
644 | info->dynamic_undefined_weak is zero. | |
645 | (allocate_dynrelocs): Discard undefweak dyn_relocs for | |
646 | info->dynamic_undefined_weak. Discard undef dyn_relocs when | |
647 | not default visibility. Discard undef and undefweak | |
648 | dyn_relocs earlier. | |
649 | (ppc_elf_relocate_section): Adjust to suit. | |
650 | * elf64-ppc.c: Formatting. | |
651 | (ensure_undefweak_dynamic): Don't make dynamic when | |
652 | info->dynamic_undefined_weak is zero. | |
653 | (allocate_dynrelocs): Discard undefweak dyn_relocs for | |
654 | info->dynamic_undefined_weak. Discard them earlier. | |
655 | ||
e6699019 L |
656 | 2017-04-17 H.J. Lu <hongjiu.lu@intel.com> |
657 | ||
658 | PR ld/21389 | |
659 | * elflink.c (bfd_elf_size_dynamic_sections): Get soname index | |
660 | before generating the version definition section. | |
661 | ||
c5d37467 AM |
662 | 2017-04-17 Alan Modra <amodra@gmail.com> |
663 | ||
664 | * elflink.c (_bfd_elf_merge_symbol): Undo dynamic linking | |
665 | state when a regular object file defines a symbol with | |
666 | incompatible type to that defined by an earlier shared lib. | |
667 | ||
63a5468a AM |
668 | 2017-04-13 Alan Modra <amodra@gmail.com> |
669 | ||
670 | * coffcode.h: Wrap some overly long _bfd_error_handler args. | |
671 | * elf.c: Likewise. | |
672 | * elf32-arm.c: Likewise. | |
673 | * elf32-i386.c: Likewise. | |
674 | * elf32-mep.c: Likewise. | |
675 | * elf64-ia64-vms.c: Likewise. | |
676 | * elf64-x86-64.c: Likewise. | |
677 | * elflink.c: Likewise. | |
678 | * elfnn-ia64.c: Likewise. | |
679 | * elfxx-mips.c: Likewise. | |
680 | ||
dae82561 AM |
681 | 2017-04-13 Alan Modra <amodra@gmail.com> |
682 | ||
683 | * aoutx.h: Use %B and %A in error messages throughout file. | |
684 | * aout-cris.c: Likewise. | |
685 | * archive.c: Likewise. | |
686 | * binary.c: Likewise. | |
687 | * coff-rs6000.c: Likewise. | |
688 | * coff-tic4x.c: Likewise. | |
689 | * coffcode.h: Likewise. | |
690 | * coffgen.c: Likewise. | |
691 | * cofflink.c: Likewise. | |
692 | * coffswap.h: Likewise. | |
693 | * cpu-arm.c: Likewise. | |
694 | * elf-eh-frame.c: Likewise. | |
695 | * elf-m10300.c: Likewise. | |
696 | * elf.c: Likewise. | |
697 | * elf32-arc.c: Likewise. | |
698 | * elf32-arm.c: Likewise. | |
699 | * elf32-bfin.c: Likewise. | |
700 | * elf32-frv.c: Likewise. | |
701 | * elf32-iq2000.c: Likewise. | |
702 | * elf32-m32c.c: Likewise. | |
703 | * elf32-microblaze.c: Likewise. | |
704 | * elf32-nds32.c: Likewise. | |
705 | * elf32-rl78.c: Likewise. | |
706 | * elf32-rx.c: Likewise. | |
707 | * elf32-score.c: Likewise. | |
708 | * elf32-score7.c: Likewise. | |
709 | * elf32-sh64.c: Likewise. | |
710 | * elf32-v850.c: Likewise. | |
711 | * elf32-vax.c: Likewise. | |
712 | * elf32-visium.c: Likewise. | |
713 | * elf64-ia64-vms.c: Likewise. | |
714 | * elf64-mmix.c: Likewise. | |
715 | * elf64-sh64.c: Likewise. | |
716 | * elfcode.h: Likewise. | |
717 | * elfnn-aarch64.c: Likewise. | |
718 | * elfnn-ia64.c: Likewise. | |
719 | * elfxx-mips.c: Likewise. | |
720 | * hpux-core.c: Likewise. | |
721 | * ieee.c: Likewise. | |
722 | * ihex.c: Likewise. | |
723 | * linker.c: Likewise. | |
724 | * merge.c: Likewise. | |
725 | * mmo.c: Likewise. | |
726 | * oasys.c: Likewise. | |
727 | * pdp11.c: Likewise. | |
728 | * peXXigen.c: Likewise. | |
729 | * rs6000-core.c: Likewise. | |
730 | * vms-alpha.c: Likewise. | |
731 | * xcofflink.c: Likewise. | |
732 | ||
c08bb8dd AM |
733 | 2017-04-13 Alan Modra <amodra@gmail.com> |
734 | ||
735 | * bfd.c (PRINT_TYPE): Define. | |
736 | (_doprnt): New function. | |
737 | (error_handler_internal): Use _doprnt. | |
738 | * coff-arm.c: Put %A and %B arguments to _bfd_error_handler | |
739 | calls in their natural order, throughout file. | |
740 | * coff-mcore.c: Likewise. | |
741 | * coff-ppc.c: Likewise. | |
742 | * coff-tic80.c: Likewise. | |
743 | * cofflink.c: Likewise. | |
744 | * elf-s390-common.c: Likewise. | |
745 | * elf.c: Likewise. | |
746 | * elf32-arm.c: Likewise. | |
747 | * elf32-i386.c: Likewise. | |
748 | * elf32-m32r.c: Likewise. | |
749 | * elf32-msp430.c: Likewise. | |
750 | * elf32-spu.c: Likewise. | |
751 | * elf64-ia64-vms.c: Likewise. | |
752 | * elf64-sparc.c: Likewise. | |
753 | * elf64-x86-64.c: Likewise. | |
754 | * elflink.c: Likewise. | |
755 | * elfnn-aarch64.c: Likewise. | |
756 | * elfnn-ia64.c: Likewise. | |
757 | * elfxx-mips.c: Likewise. | |
758 | ||
10463f39 AM |
759 | 2017-04-13 Alan Modra <amodra@gmail.com> |
760 | ||
761 | * elf32-arm.c (arm_type_of_stub): Supply missing args to "long | |
762 | branch veneers" error. Fix double space and format message. | |
763 | * elf32-avr.c (avr_add_stub): Do not pass NULL as %B arg. | |
764 | * elf64-ppc.c (tocsave_find): Supply missing %B arg. | |
765 | ||
4af8774e AM |
766 | 2017-04-13 Alan Modra <amodra@gmail.com> |
767 | ||
768 | * bfd-in2.h: Regenerate. | |
769 | ||
e4097f5e L |
770 | 2017-04-11 H.J. Lu <hongjiu.lu@intel.com> |
771 | ||
772 | * elf-properties.c (_bfd_elf_parse_gnu_properties): Remove the | |
773 | extra `\n' in warning/error messages. | |
774 | * elf32-i386.c (elf_i386_parse_gnu_properties): Likewise. | |
775 | * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise. | |
776 | ||
537616aa L |
777 | 2017-04-11 H.J. Lu <hongjiu.lu@intel.com> |
778 | ||
779 | * elf-properties.c (_bfd_elf_parse_gnu_properties): Ignore | |
780 | processor-specific properties with generic ELF target vector. | |
781 | ||
bb1dd176 QZ |
782 | 2017-04-10 Qing Zhao <qing.zhao@oracle.com> |
783 | ||
784 | * elf32-sparc.c (elf_backend_fixup_symbol): New. | |
785 | * elf64-sparc.c (elf_backend_fixup_symbol): New. | |
786 | * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New. | |
787 | (_bfd_sparc_elf_link_hash_entry): Add has_got_reloc and | |
788 | has_non_got_reloc. | |
789 | (link_hash_newfunc): Initialize has_got_reloc and | |
790 | has_non_got_reloc. | |
791 | (_bfd_sparc_elf_size_dynamic_sections): Set interp to .interp | |
792 | section. | |
793 | (_bfd_sparc_elf_copy_indirect_symbol): Copy has_got_reloc and | |
794 | has_non_got_reloc. | |
795 | (_bfd_sparc_elf_check_relocs): Set has_got_reloc and | |
796 | has_non_got_reloc. | |
797 | (_bfd_sparc_elf_fixup_symbol): New function. | |
798 | (allocate_dynrelocs): Don't allocate space for dynamic | |
799 | relocations and discard relocations against resolved undefined | |
800 | weak symbols in executable. Don't make resolved undefined weak | |
801 | symbols in executable dynamic. Keep dynamic non-GOT/non-PLT | |
802 | relocation against undefined weak symbols in PIE. | |
803 | (_bfd_sparc_elf_relocate_section): Don't generate dynamic | |
804 | relocations against resolved undefined weak symbols in PIE | |
805 | (_bfd_sparc_elf_finish_dynamic_symbol): Keep PLT/GOT entries | |
806 | without ynamic PLT/GOT relocations for resolved undefined weak | |
807 | symbols. | |
808 | Don't generate dynamic relocation against resolved undefined | |
809 | weak symbol in executable. | |
810 | (pie_finish_undefweak_symbol): New function. | |
811 | (_bfd_sparc_elf_finish_dynamic_sections): Call | |
812 | pie_finish_undefweak_symbol on all symbols in PIE. | |
813 | * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add interp. | |
814 | (_bfd_sparc_elf_fixup_symbol): New function. | |
815 | ||
d236cfd4 NC |
816 | 2017-04-10 Nick Clifton <nickc@redhat.com> |
817 | ||
818 | * config.bfd: Remove ns32k from obsolete list. | |
819 | ||
6f9dbcd4 AM |
820 | 2017-04-10 Alan Modra <amodra@gmail.com> |
821 | ||
822 | PR 21287 | |
823 | * elf.c (special_sections_f): Match .fini_array and .fini_array.*. | |
824 | (special_sections_i): Likewise for .init_array. | |
825 | (special_sections_p): Likewise for .preinit_array. | |
826 | ||
8170f769 L |
827 | 2017-04-07 H.J. Lu <hongjiu.lu@intel.com> |
828 | ||
829 | PR ld/19579 | |
830 | PR ld/21306 | |
831 | * elf32-s390.c (elf_s390_finish_dynamic_symbol): Check | |
832 | ELF_COMMON_DEF_P for common symbols. | |
833 | * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise. | |
834 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. | |
835 | * elflink.c (_bfd_elf_merge_symbol): Revert commits | |
836 | 202ac193bbbecc96a4978d1ac3d17148253f9b01 and | |
837 | 07492f668d2173da7a2bda3707ff0985e0f460b6. | |
838 | ||
49f4617b PA |
839 | 2017-04-07 Pedro Alves <palves@redhat.com> |
840 | ||
841 | * opncls.c (bfd_get_debug_link_info): Rename to... | |
842 | (bfd_get_debug_link_info_1): ... this. Change type of second | |
843 | parameter to void pointer. Adjust. | |
844 | (bfd_get_debug_link_info): Reimplement on top of | |
845 | bfd_get_debug_link_info_1. | |
846 | (separate_debug_file_exists, separate_alt_debug_file_exists): | |
847 | Change type of second parameter to void pointer. Adjust. | |
848 | (get_func_type, check_func_type): Change type of second parameter | |
849 | to void pointer. | |
850 | (find_separate_debug_file): Add 'func_data' parameter. Pass it to | |
851 | the callback functions instead of passing the address of a local. | |
852 | (bfd_follow_gnu_debuglink): Pass address of unsigned long local to | |
853 | find_separate_debug_file. | |
854 | (get_alt_debug_link_info_shim): Change type of second parameter to | |
855 | void pointer. Adjust. | |
856 | (bfd_follow_gnu_debugaltlink): Adjust to pass NULL to | |
857 | find_separate_debug_file. | |
858 | (get_build_id_name, bfd_boolean check_build_id_file): Change type | |
859 | of second parameter to void pointer. Adjust. | |
860 | (bfd_follow_build_id_debuglink): Pass address of bfd_build_id | |
861 | pointer local to find_separate_debug_file. | |
862 | ||
863 | 2017-04-07 Tristan Gingold <gingold@gingold-Precision-7510> | |
1fd6d111 TG |
864 | |
865 | * coffgen.c (_bfd_coff_gc_mark_hook): Handle PE weak | |
866 | external symbols with a definition. | |
867 | (_bfd_coff_gc_mark_extra_sections): Fix typo. | |
868 | ||
86abf93a AM |
869 | 2017-04-07 Alan Modra <amodra@gmail.com> |
870 | ||
871 | * po/SRC-POTFILES.in: Regenerate. | |
872 | ||
8dea77f0 AM |
873 | 2017-04-05 Alan Modra <amodra@gmail.com> |
874 | ||
875 | * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Support ELFv2 PLT | |
876 | reference counting. | |
877 | ||
477bdd39 JT |
878 | 2017-04-02 Jon Turney <jon.turney@dronecode.org.uk> |
879 | ||
880 | (_bfd_XXi_swap_aouthdr_out): For clarity, use defines rather than | |
881 | numbers for DataDirectory entry indicies passed to | |
882 | add_data_entry(). | |
883 | ||
a91e1603 L |
884 | 2017-04-04 H.J. Lu <hongjiu.lu@intel.com> |
885 | ||
886 | * elf.c (get_program_header_size): Add a GNU_MBIND segment for | |
887 | each GNU_MBIND section and align GNU_MBIND section to page size. | |
888 | (_bfd_elf_map_sections_to_segments): Create a GNU_MBIND | |
889 | segment for each GNU_MBIND section. | |
890 | (_bfd_elf_init_private_section_data): Copy sh_info from input | |
891 | for GNU_MBIND section. | |
892 | ||
b5292032 PD |
893 | 2017-04-03 Palmer Dabbelt <palmer@dabbelt.com> |
894 | ||
895 | * elfnn-riscv.c (GP_NAME): Delete. | |
896 | (riscv_global_pointer_value): Change GP_NAME to RISCV_GP_SYMBOL. | |
897 | (_bfd_riscv_relax_lui): Likewise. | |
898 | ||
ad32986f NC |
899 | 2017-04-04 Nick Clifton <nickc@redhat.com> |
900 | ||
901 | PR binutils/21342 | |
902 | * elflink.c (_bfd_elf_define_linkage_sym): Prevent null pointer | |
903 | dereference. | |
904 | (bfd_elf_final_link): Only initialize the extended symbol index | |
905 | section if there are extended symbol tables to list. | |
906 | ||
46bed679 L |
907 | 2017-04-03 H.J. Lu <hongjiu.lu@intel.com> |
908 | ||
909 | * Makefile.am (BFD32_BACKENDS): Add elf-properties.lo. | |
910 | (BFD32_BACKENDS_CFILES): Add elf-properties.c. | |
911 | * configure.ac (elf): Add elf-properties.lo. | |
912 | * Makefile.in: Regenerated. | |
913 | * configure: Likewise. | |
914 | * elf-bfd.h (elf_property_kind): New. | |
915 | (elf_property): Likewise. | |
916 | (elf_property_list): Likewise. | |
917 | (elf_properties): Likewise. | |
918 | (_bfd_elf_parse_gnu_properties): Likewise. | |
919 | (_bfd_elf_get_property): Likewise. | |
920 | (_bfd_elf_link_setup_gnu_properties): Likewise. | |
921 | (elf_backend_data): Add parse_gnu_properties, merge_gnu_properties | |
922 | and setup_gnu_properties. | |
923 | (elf_obj_tdata): Add properties. | |
924 | * elf-properties.c: New file. | |
925 | * elf32-i386.c (elf_i386_parse_gnu_properties): New. | |
926 | (elf_i386_merge_gnu_properties): Likewise. | |
927 | (elf_backend_parse_gnu_properties): Likewise. | |
928 | (elf_backend_merge_gnu_properties): Likewise. | |
929 | * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise. | |
930 | (elf_x86_64_merge_gnu_properties): Likewise. | |
931 | (elf_backend_parse_gnu_properties): Likewise. | |
932 | (elf_backend_merge_gnu_properties): Likewise. | |
933 | * elfxx-target.h (elf_backend_merge_gnu_properties): Likewise. | |
934 | (elf_backend_parse_gnu_properties): Likewise. | |
935 | (elf_backend_setup_gnu_properties): Likewise. | |
936 | (elfNN_bed): Add elf_backend_parse_gnu_properties, | |
937 | elf_backend_merge_gnu_properties and | |
938 | elf_backend_setup_gnu_properties. | |
939 | ||
f96bd6c2 PC |
940 | 2017-03-30 Pip Cet <pipcet@gmail.com> |
941 | ||
942 | * elf32-wasm32.c: Add relocation code, two relocs. | |
943 | * reloc.c: Add wasm32 relocations. | |
944 | * libbfd.h: Regenerate. | |
945 | * bfd-in2.h: Regenerate. | |
946 | * bfd/po/bfd.pot: Regenerate. | |
947 | ||
e643cb45 NC |
948 | 2017-03-29 Nick Clifton <nickc@redhat.com> |
949 | ||
950 | PR binutils/18025 | |
951 | * coff-bfd.h (struct coff_section_data): Add new fields: | |
952 | saved_bias and bias. | |
953 | * coffgen.c (coff_find_nearest_line_with_names): Cache the bias | |
954 | computed for PE binaries. | |
955 | * dwarf2.c (scan_unit_for_symbols): Only warn once about each | |
956 | missing abbrev. | |
957 | ||
086554e8 HPN |
958 | 2017-03-28 Hans-Peter Nilsson <hp@axis.com> |
959 | ||
960 | PR ld/16044 | |
961 | * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Adjust BFD_ASSERT | |
962 | to handle a local symbol with a hash-symbol-entry; without PLT. | |
963 | Add BFD_ASSERT for an incidental case with GOT entry present. | |
964 | (cris_elf_check_relocs): Increment PLT refcount only if the symbol | |
965 | isn't forced-or-set local. | |
966 | ||
a6be0538 PC |
967 | 2017-03-27 Pip Cet <pipcet@gmail.com> |
968 | ||
969 | * wasm-module.c: New file to support WebAssembly modules. | |
970 | * wasm-module.h: New file to support WebAssembly modules. | |
971 | * doc/webassembly.texi: Start documenting wasm-module.c. | |
972 | * config.bfd: Add wasm_vec. | |
973 | * targets.c: Likewise. | |
974 | * configure.ac: Likewise. | |
975 | * Makefile.am: Add entries for wasm-module.c. | |
976 | * Makefile.in: Regenerate. | |
977 | * configure: Regenerate. | |
978 | * po/SRC-POTFILES.in: Regenerate. | |
979 | ||
79b1d3cb PC |
980 | 2017-03-27 Pip Cet <pipcet@gmail.com> |
981 | ||
982 | * cpu-wasm32.c: New file to support wasm32 architecture. | |
983 | * elf32-wasm32.c: New file to support wasm32 architecture. | |
984 | * Makefile.am: Add wasm32 architecture. | |
985 | * archures.c: Likewise. | |
986 | * config.bfd: Likewise. | |
987 | * configure.ac: Likewise. | |
988 | * targets.c: Likewise. | |
989 | * Makefile.in: Regenerate. | |
990 | * bfd-in2.h: Regenerate. | |
991 | * configure: Regenerate. | |
992 | * po/SRC-POTFILES.in: Regenerate. | |
993 | ||
aaed6f5b AM |
994 | 2017-03-20 Alan Modra <amodra@gmail.com> |
995 | ||
996 | PR 21266 | |
997 | * elf64-ppc.c (compare_symbols): Stabilize sort. | |
998 | ||
82e66161 AM |
999 | 2017-03-18 Alan Modra <amodra@gmail.com> |
1000 | ||
1001 | * elf64-ppc.c (struct ppc_link_hash_table): Add | |
1002 | local_ifunc_resolver and maybe_local_ifunc_resolver. | |
1003 | (ppc_build_one_stub): Set flags on emitting dynamic | |
1004 | relocation to ifunc. | |
1005 | (ppc64_elf_relocate_section): Likewise. | |
1006 | (ppc64_elf_finish_dynamic_symbol): Likewise. | |
1007 | (ppc64_elf_finish_dynamic_sections): Error on DT_TEXTREL with | |
1008 | local dynamic relocs to ifuncs. | |
1009 | * elf32-ppc.c (struct ppc_elf_link_hash_table): Add | |
1010 | local_ifunc_resolver and maybe_local_ifunc_resolver. | |
1011 | (ppc_elf_relocate_section): Set flag on emitting dynamic | |
1012 | relocation to ifuncs. | |
1013 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
1014 | (ppc_elf_finish_dynamic_sections): Error on DT_TEXTREL with local | |
1015 | dynamic relocs to ifuncs. | |
1016 | ||
f955cccf NC |
1017 | 2017-03-13 Nick Clifton <nickc@redhat.com> |
1018 | ||
1019 | PR binutils/21202 | |
1020 | * reloc.c (BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC): Rename to | |
1021 | BFD_RELOC_AARCH64_TLSDESC_LD64_LO12. | |
1022 | (BFD_RELOC_AARCH64_TLSDESC_ADD_LO12_NC): Rename to | |
1023 | BFD_RELOC_AARCH64_TLSDESC_ADD_LO12. | |
1024 | * bfd-in2.h: Regenerate. | |
1025 | * libbfd.h: Regenerate. | |
1026 | * elfnn-aarch64.c (IS_AARCH64_TLS_RELAX_RELOC): Update reloc | |
1027 | names. | |
1028 | (IS_AARCH64_TLSDESC_RELOC): Likewise. | |
1029 | (elfNN_aarch64_howto_table): Likewise. | |
1030 | (aarch64_tls_transition_without_check): Likewise. | |
1031 | (aarch64_reloc_got_type): Likewise. | |
1032 | (elfNN_aarch64_final_link_relocate): Likewise. | |
1033 | (elfNN_aarch64_tls_relax): Likewise. | |
1034 | (elfNN_aarch64_relocate_section): Likewise. | |
1035 | (elfNN_aarch64_gc_sweep_hook): Likewise. | |
1036 | (elfNN_aarch64_check_relocs): Likewise. | |
1037 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise. | |
1038 | (_bfd_aarch64_elf_resolve_relocation): Likewise. | |
1039 | ||
4aef7643 AM |
1040 | 2017-03-11 Alan Modra <amodra@gmail.com> |
1041 | ||
1042 | * elf32-ppc.c: Remove ATTRIBUTE_UNUSED throughout when function | |
1043 | parameter is in fact used. Whitespace fixes. | |
1044 | * elf64-ppc.c: Likewise. | |
1045 | ||
f03265d9 ST |
1046 | 2017-03-09 Sam Thursfield <sam.thursfield@codethink.co.uk> |
1047 | ||
1048 | * rs6000-core.c (CORE_NEW): Simplify macro when | |
1049 | AIX_CORE_DUMPX_CORE and BFD64 are true to avoid compile warning. | |
1050 | ||
b1b07054 AM |
1051 | 2017-03-07 Alan Modra <amodra@gmail.com> |
1052 | ||
1053 | PR 21224 | |
1054 | PR 20519 | |
1055 | * elf64-ppc.c (ppc64_elf_relocate_section): Add missing | |
1056 | dyn_relocs check. | |
1057 | ||
2e0ce1c8 AM |
1058 | 2017-03-05 Alan Modra <amodra@gmail.com> |
1059 | ||
1060 | * elf-bfd.h (struct eh_cie_fde): Add u.cie.per_encoding_aligned8. | |
1061 | * elf-eh-frame.c (size_of_output_cie_fde): Don't align here. | |
1062 | (next_cie_fde_offset): New function. | |
1063 | (_bfd_elf_parse_eh_frame): Set u.cie.per_encoding_aligned8. | |
1064 | (_bfd_elf_discard_section_eh_frame): Align zero terminator to | |
1065 | four bytes. Align CIEs to four or eight bytes depending on | |
1066 | per_encoding_aligned8. Align FDEs according to their encoding. | |
1067 | Pad last FDE to output section alignment. | |
1068 | (_bfd_elf_write_section_eh_frame): Adjust to suit. Remove | |
1069 | assertion. | |
1070 | * elf64-ppc.c (glink_eh_frame_cie): Delete padding. | |
1071 | (ppc64_elf_size_stubs): Pad glink eh_frame as per elf-eh-frame.c. | |
1072 | (ppc64_elf_finish_dynamic_sections): Adjust to suit. | |
1073 | ||
f98450c6 NC |
1074 | 2017-03-02 Martin Bickel <binutils@ineranves.de> |
1075 | ||
1076 | PR ld/21212 | |
1077 | * elf.c (rewrite_elf_program_header): Do not issue a warning for | |
d20928fa | 1078 | empty segments which have a zero filesz, but a non-zero memsz. |
f98450c6 | 1079 | |
673cff9b AM |
1080 | 2017-03-02 Alan Modra <amodra@gmail.com> |
1081 | ||
1082 | * elf32-ppc.c (ppc_elf_vle_split16): Correct insn mask typo. | |
1083 | ||
3de43e7b AM |
1084 | 2017-02-28 Alan Modra <amodra@gmail.com> |
1085 | ||
1086 | * elf64-ppc.c (ppc64_elf_ha_reloc): Revert last change. | |
1087 | (ppc64_elf_relocate_section): Likewise. | |
1088 | ||
4ef97a1b AM |
1089 | 2017-02-28 Alan Modra <amodra@gmail.com> |
1090 | ||
1091 | PR 20995 | |
1092 | * elf32-nios2.c (nios2_elf32_relocate_section): Use htab | |
1093 | rather than elf32_nios2_hash_table or elf_hash_table. | |
1094 | (create_got_section): Likewise. | |
1095 | (nios2_elf32_finish_dynamic_symbol): Likewise. | |
1096 | (nios2_elf32_adjust_dynamic_symbol): Likewise. | |
1097 | (nios2_elf32_size_dynamic_sections): Likewise. | |
1098 | (nios2_elf32_check_relocs): Delete dynobj, sgot, and srelgot | |
1099 | vars. Use htab equivalents directly instead. Don't create | |
1100 | all dynamic sections on needing just the GOT. Use a goto | |
1101 | rather than a fall-through with reloc test. Ensure | |
1102 | htab->dynobj is set when making dynamic sreloc section. | |
1103 | (nios2_elf32_finish_dynamic_sections): Delete dynobj, use htab | |
1104 | equivalent directly instead. Don't segfault on looking for | |
1105 | .dynamic when dynamic sections have not been created. Don't | |
1106 | segfault on .got.plt being discarded. | |
1107 | (nios2_elf32_size_dynamic_sections): Delete plt and got vars. | |
1108 | Don't set "relocs" on .rela.plt. Do handle .sbss. Delete | |
1109 | fixme and another not so relevant comment. | |
1110 | (nios2_elf_add_symbol_hook): Delete dynobj var. If not | |
1111 | already set, set hash table dynobj on creating .sbss. | |
1112 | ||
7ba71655 AM |
1113 | 2017-02-28 Alan Modra <amodra@gmail.com> |
1114 | ||
1115 | * reloc.c (BFD_RELOC_PPC_16DX_HA): New. | |
1116 | * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_16DX_HA>): New howto. | |
1117 | (ppc64_elf_reloc_type_lookup): Translate new bfd reloc. | |
1118 | (ppc64_elf_ha_reloc): Correct overflow test on REL16DX_HA. | |
1119 | (ppc64_elf_relocate_section): Likewise. | |
1120 | * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_16DX_HA>): New howto. | |
1121 | (ppc_elf_reloc_type_lookup): Translate new bfd reloc. | |
1122 | (ppc_elf_check_relocs): Handle R_PPC_16DX_HA to pacify gcc. | |
1123 | * libbfd.h: Regenerate. | |
1124 | * bfd-in2.h: Regenerate. | |
1125 | ||
afbf7e8e AM |
1126 | 2017-02-28 Alan Modra <amodra@gmail.com> |
1127 | ||
1128 | * elflink.c (_bfd_elf_create_dynamic_sections): Don't make | |
1129 | dynamic .data.rel.ro read-only. | |
1130 | * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Compare section | |
1131 | rather than section flags when deciding where copy reloc goes. | |
1132 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise. | |
1133 | * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise. | |
1134 | * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise. | |
1135 | * elf32-metag.c (elf_metag_finish_dynamic_symbol): Likewise. | |
1136 | * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Likewise. | |
1137 | * elf32-nios2.c (nios2_elf32_finish_dynamic_symbol): Likewise. | |
1138 | * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Likewise. | |
1139 | * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Likewise. | |
1140 | * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise. | |
1141 | * elf32-tic6x.c (elf32_tic6x_finish_dynamic_symbol): Likewise. | |
1142 | * elf32-tilepro.c (tilepro_elf_finish_dynamic_symbol): Likewise. | |
1143 | * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Likewise. | |
1144 | * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise. | |
1145 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise. | |
1146 | * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Likewise. | |
1147 | * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Likewise. | |
1148 | * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise. | |
1149 | * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. | |
1150 | * elfxx-tilegx.c (tilegx_elf_finish_dynamic_symbol): Likewise. | |
1151 | ||
0e392101 MR |
1152 | 2017-02-28 Maciej W. Rozycki <macro@imgtec.com> |
1153 | ||
1154 | * elfxx-mips.c (mips_elf_perform_relocation): Also handle the | |
1155 | `jalr $0, $25' instruction encoding. | |
1156 | ||
bd757ca7 NC |
1157 | 2017-02-27 Nick Clifton <nickc@redhat.com> |
1158 | ||
1159 | PR ld/21180 | |
1160 | * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Avoid | |
1161 | generating a seg-fault when encountering a symbol that has been | |
1162 | deleted by garbage collection. | |
1163 | ||
034fed0b AM |
1164 | 2017-02-25 Alan Modra <amodra@gmail.com> |
1165 | ||
1166 | * elf32-arc.c (struct dynamic_sections): Delete. | |
1167 | (enum dyn_section_types): Delete. | |
1168 | (dyn_section_names): Delete. | |
1169 | (arc_create_dynamic_sections): Delete. | |
1170 | (elf_arc_finish_dynamic_sections): Don't call the above. Don't | |
1171 | segfault on discarded .rela.plt section. | |
1172 | (elf_arc_size_dynamic_sections): Formatting. Don't call | |
1173 | arc_create_dynamic_sections. Don't allocate memory for sections | |
1174 | handled by the generic linker. Correct code finding relocs in | |
1175 | read-only sections. Set SEC_EXCLUDE on zero size .got, | |
1176 | .got.plt, and .dynbss sections. Do set .interp for pies. | |
1177 | ||
d0f744f9 AW |
1178 | 2017-02-24 Andrew Waterman <andrew@sifive.com> |
1179 | ||
1180 | * elfnn-riscv.c (GP_NAME): New macro. | |
1181 | (riscv_global_pointer_value): Use it. | |
1182 | (_bfd_riscv_relax_lui): If symbol and global pointer are in same | |
1183 | output section, consider only that section's alignment. | |
1184 | ||
5d58c733 MR |
1185 | 2017-02-23 Maciej W. Rozycki <macro@imgtec.com> |
1186 | ||
1187 | * elfxx-mips.h (_bfd_mips_relax_section): Remove prototype. | |
1188 | * elfxx-mips.c (_bfd_mips_relax_section): Remove function. | |
1189 | * elf64-mips.c (bfd_elf64_bfd_relax_section): Remove macro. | |
1190 | * elfn32-mips.c (bfd_elf32_bfd_relax_section): Likewise. | |
1191 | ||
c1556ecd MR |
1192 | 2017-02-23 Maciej W. Rozycki <macro@imgtec.com> |
1193 | ||
1194 | * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_JALR> | |
1195 | <R_MICROMIPS_JALR>: Discard relocation if `cross_mode_jump_p' | |
1196 | or misaligned. | |
1197 | ||
5499c7c7 AM |
1198 | 2017-02-23 Alan Modra <amodra@gmail.com> |
1199 | ||
1200 | PR 20744 | |
1201 | * elf32-ppc.c (ppc_elf_howto_raw): Correct dst_mask on all VLE | |
1202 | 16D relocations. | |
1203 | (ppc_elf_vle_split16): Correct field mask and shift for 16D relocs. | |
1204 | (ppc_elf_relocate_section): Correct calculation for VLE SDAREL | |
1205 | relocs. | |
1206 | ||
902e9fc7 MR |
1207 | 2017-02-22 Maciej W. Rozycki <macro@imgtec.com> |
1208 | ||
1209 | PR ld/20828 | |
1210 | * elflink.c (bfd_elf_size_dynamic_sections): Move symbol version | |
1211 | processing ahead of the call to `elf_gc_sweep_symbol'. | |
1212 | ||
758d96d8 NC |
1213 | 2017-02-22 Nick Clifton <nickc@redhat.com> |
1214 | ||
1215 | PR binutils/21193 | |
1216 | * opncls.c (bfd_create_gnu_debuglink_section): Give the newly | |
1217 | created section 4-byte alignment. | |
1218 | ||
6528b6eb AM |
1219 | 2017-02-22 Alan Modra <amodra@gmail.com> |
1220 | ||
1221 | * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Don't segfault | |
1222 | on .got or .plt output section being discarded by script. | |
1223 | * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Likewise. Move | |
1224 | vxworks splt temp. | |
1225 | ||
24f1a751 AM |
1226 | 2017-02-21 Alan Modra <amodra@gmail.com> |
1227 | ||
1228 | * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only emit | |
1229 | DT_RELA, DT_RELASZ, and DT_RELAENT when DT_RELASZ is non-zero. | |
1230 | ||
64487780 AM |
1231 | 2017-02-20 Alan Modra <amodra@gmail.com> |
1232 | ||
1233 | PR 21181 | |
1234 | * elflink.c (bfd_elf_final_link): Make DT_REL/DT_RELA zero | |
1235 | if DT_RELSZ/DT_RELASZ is zero. | |
1236 | ||
6438d1be NC |
1237 | 2017-02-17 Nick Clifton <nickc@redhat.com> |
1238 | ||
1239 | * compress.c (bfd_get_full_section_contents): Remember to reduce | |
1240 | compressed size by the sizeof the compression header when | |
1241 | decompressing the contents. | |
1242 | ||
4bc26c69 PA |
1243 | 2017-02-17 Pedro Alves <palves@redhat.com> |
1244 | ||
1245 | * srec.c (Chunk): Rename to ... | |
1246 | (_bfd_srec_len): ... this. | |
1247 | (S3Forced): Rename to ... | |
1248 | (_bfd_srec_forceS3): ... this. | |
1249 | * objcopy.c: Adjust all references. | |
1250 | ||
7ec22e0f PA |
1251 | 2017-02-17 Pedro Alves <palves@redhat.com> |
1252 | ||
1253 | * archive.c (bsd_write_armap): Rename to ... | |
1254 | (_bfd_bsd_write_armap): ... this. | |
1255 | (coff_write_armap): Rename to ... | |
1256 | (_bfd_coff_write_armap): ... this. | |
1257 | * libbfd-in.h (bsd_write_armap): Rename to ... | |
1258 | (_bfd_bsd_write_armap): ... this. | |
1259 | (coff_write_armap): Rename to ... | |
1260 | (_bfd_coff_write_armap): ... this. | |
1261 | * aout-target.h, aout-tic30.c: Adjust all users. | |
1262 | * libbfd.h: Regenerate. | |
1263 | ||
8c8402cc PA |
1264 | 2017-02-17 Pedro Alves <palves@redhat.com> |
1265 | ||
1266 | * bfd-in.h (bfd_read, bfd_write): Adjust to rename. | |
1267 | (warn_deprecated): Rename to ... | |
1268 | (_bfd_warn_deprecated): ... this. | |
1269 | * libbfd.c (warn_deprecated): Rename to ... | |
1270 | (_bfd_warn_deprecated): ... this. | |
1271 | * bfd-in2.h: Regenerate. | |
1272 | ||
c7c3d11b PA |
1273 | 2017-02-17 Pedro Alves <palves@redhat.com> |
1274 | ||
1275 | * bfdio.c (real_ftell): Rename to ... | |
1276 | (_bfd_real_ftell): ... this. | |
1277 | (real_fseek): Rename to ... | |
1278 | (_bfd_real_fseek): ... this. | |
1279 | (real_fopen): Rename to ... | |
1280 | (_bfd_real_fopen): ... this. | |
1281 | * libbfd-in.h (real_ftell): Rename to ... | |
1282 | (_bfd_real_ftell): ... this. | |
1283 | (real_fseek): Rename to ... | |
1284 | (_bfd_real_fseek): ... this. | |
1285 | (real_fopen): Rename to ... | |
1286 | (_bfd_real_fopen): ... this. | |
1287 | * cache.c, dwarf2.c, opncls.c: Adjust all callers. | |
1288 | * libbfd.h: Regenerate. | |
1289 | ||
4265548c PA |
1290 | 2017-02-17 Pedro Alves <palves@redhat.com> |
1291 | ||
1292 | * dwarf2.c, elf-attrs.c, elf32-nds32.c: Adjust all callers. | |
1293 | * libbfd.c (read_unsigned_leb128): Rename to ... | |
1294 | (_bfd_read_unsigned_leb128): ... this. | |
1295 | (read_signed_leb128): Rename to ... | |
1296 | (_bfd_read_signed_leb128): ... this. | |
1297 | (safe_read_leb128): Rename to ... | |
1298 | (_bfd_safe_read_leb128): ... this. | |
1299 | * libbfd-in.h (read_unsigned_leb128): Rename to ... | |
1300 | (_bfd_read_unsigned_leb128): ... this. | |
1301 | (read_signed_leb128): Rename to ... | |
1302 | (_bfd_read_signed_leb128): ... this. | |
1303 | (safe_read_leb128): Rename to ... | |
1304 | (_bfd_safe_read_leb128): ... this. | |
1305 | * libbfd.h: Renegerate. | |
1306 | ||
3239a423 AB |
1307 | 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com> |
1308 | ||
1309 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Perform symbol lookup | |
1310 | before trying to fine matching file and line information. | |
1311 | ||
90ed9b8b AB |
1312 | 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com> |
1313 | ||
1314 | * dwarf2.c (struct dwarf2_debug): Add orig_bfd member. | |
1315 | (_bfd_dwarf2_slurp_debug_info): If stashed debug information does | |
1316 | not match current bfd, then reload debug information. Record bfd | |
1317 | we're loading debug info for in the stash. If we have debug | |
1318 | informatin in the cache then perform section placement before | |
1319 | returning. | |
1320 | ||
a8c75b76 AM |
1321 | 2017-02-16 Alan Modra <amodra@gmail.com> |
1322 | ||
1323 | PR 21000 | |
1324 | * elf-bfd.h (struct elf_backend_data): Add no_page_alias. | |
1325 | * elfxx-target.h (elf_backend_no_page_alias): Define. | |
1326 | (elfNN_bed): Init new field. | |
1327 | * elf.c (assign_file_positions_for_load_sections): If no_page_alias | |
1328 | ensure PT_LOAD segment starts on a new page. | |
1329 | * elf32-hppa.c (elf_backend_no_page_alias): Define. | |
1330 | ||
247d6c4c AM |
1331 | 2017-02-16 Alan Modra <amodra@gmail.com> |
1332 | ||
1333 | PR 21132 | |
1334 | * elf32-hppa.c (allocate_plt_static): Allocate space for relocs | |
1335 | if pic. | |
1336 | ||
90571206 JW |
1337 | 2017-02-16 Jiong Wang <jiong.wang@arm.com> |
1338 | ||
1339 | * bfd.c (BFD_FLAGS_SAVED): Add BFD_LINKER_CREATED. | |
1340 | * bfd-in2.h: Regenerated. | |
1341 | ||
2a568401 L |
1342 | 2017-02-15 H.J. Lu <hongjiu.lu@intel.com> |
1343 | ||
1344 | PR ld/21168 | |
1345 | * elf32-i386.c (elf_i386_relocate_section): Allow | |
1346 | "lea foo@GOT, %reg" in PIC. | |
1347 | ||
a5def14f L |
1348 | 2017-02-15 H.J. Lu <hongjiu.lu@intel.com> |
1349 | ||
1350 | PR ld/20244 | |
1351 | * elf32-i386.c (elf_i386_relocate_section): Properly get IFUNC | |
1352 | symbol name when reporting R_386_GOT32/R_386_GOT32X relocation | |
1353 | error against local IFUNC symbol without a base register for | |
1354 | PIC. | |
1355 | ||
174d0a74 MR |
1356 | 2017-02-15 Maciej W. Rozycki <macro@imgtec.com> |
1357 | ||
1358 | * elf32-ppc.c (ppc_elf_check_relocs): Use `%H:' rather than | |
1359 | `%P: %H:' with `info->callbacks->einfo'. | |
1360 | (ppc_elf_relocate_section): Likewise. | |
1361 | * elf64-ppc.c (ppc64_elf_check_relocs): Likewise. | |
1362 | (ppc64_elf_edit_toc): Likewise. | |
1363 | (ppc64_elf_relocate_section): Likewise. | |
1364 | ||
e278ae05 AM |
1365 | 2017-02-14 Alan Modra <amodra@gmail.com> |
1366 | ||
1367 | * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Support | |
1368 | --gc-keep-exported, and test versioned field of sym rather than | |
1369 | looking for @ in name. | |
1370 | ||
10ddfe62 PD |
1371 | 2017-02-13 Palmer Dabbelt <palmer@dabbelt.com> |
1372 | ||
1373 | * elfnn-riscv.c (riscv_global_pointer_value): Change _gp to | |
1374 | __global_pointer$. | |
1375 | ||
d11135f5 NC |
1376 | 2017-02-13 Nick Clifton <nickc@redhat.com> |
1377 | ||
1378 | PR binutils/21151 | |
1379 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Check for an invalid | |
1380 | unit length field. | |
1381 | ||
cc162427 AW |
1382 | 2017-02-07 Andrew Waterman <andrew@sifive.com> |
1383 | ||
1384 | * elfnn-riscv.c (riscv_elf_finish_dynamic_sections): Only write PLT | |
1385 | entry size if PLT header is written. | |
1386 | ||
3d044c0c SL |
1387 | 2017-02-06 Sheldon Lobo <sheldon.lobo@oracle.com> |
1388 | ||
1389 | Fix sparc64 dynamic relocation processing to use the dynamic | |
1390 | symbol count. | |
1391 | * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Use 'dynamic' | |
1392 | to determine if bfd_get_symcount() or bfd_get_dynamic_symcount() | |
1393 | should be used. | |
1394 | ||
1b7e3d2f NC |
1395 | 2017-02-03 Nick Clifton <nickc@redhat.com> |
1396 | ||
1397 | PR 21096 | |
1398 | * coffcode.h (coff_write_object_contents): Enlarge size of | |
1399 | s_name_buf in order to avoid compile time warning about possible | |
1400 | integer truncation. | |
1401 | * elf32-nds32.c (nds32_elf_ex9_import_table): Mask off lower | |
1402 | 32-bits of insn value before printing into buffer. | |
1403 | ||
e17b0c35 MR |
1404 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
1405 | ||
1406 | * elfxx-mips.c (mips_elf_hash_sort_data): Add | |
1407 | `max_local_dynindx'. | |
1408 | (mips_elf_sort_hash_table): Handle it. | |
1409 | (mips_elf_sort_hash_table_f) <GGA_NONE>: For forced local | |
1410 | symbols bump up `max_local_dynindx' rather than | |
1411 | `max_non_got_dynindx'. | |
1412 | ||
55f8b9d2 MR |
1413 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
1414 | ||
1415 | * elfxx-mips.c (mips_elf_hash_sort_data): Convert the | |
1416 | `min_got_dynindx', `max_unref_got_dynindx' and | |
1417 | `max_non_got_dynindx' members to the `bfd_size_type' data type. | |
1418 | (mips_elf_sort_hash_table): Adjust accordingly. | |
1419 | ||
0f8c4b60 MR |
1420 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
1421 | ||
1422 | * elfxx-mips.c (mips_elf_sort_hash_table): Use `htab' throughout | |
1423 | to access the hash table. | |
1424 | ||
17a80fa8 MR |
1425 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
1426 | ||
1427 | * elfxx-mips.c (mips_elf_sort_hash_table): Move assertion on | |
1428 | non-NULL `htab' to the beginning. | |
1429 | ||
8f56d4fd MR |
1430 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
1431 | ||
1432 | * elflink.c (elf_gc_sweep): Wrap overlong line. | |
1433 | ||
8b10b0b3 MR |
1434 | 2017-01-30 Maciej W. Rozycki <macro@imgtec.com> |
1435 | ||
1436 | * elfxx-mips.h (_bfd_mips_elf_insn32): Rename prototype to... | |
1437 | (_bfd_mips_elf_linker_flags): ... this. Add another parameter. | |
1438 | * elfxx-mips.c (mips_elf_link_hash_table): Add | |
1439 | `ignore_branch_isa' member. | |
1440 | (mips_elf_perform_relocation): Do not treat an ISA mode mismatch | |
1441 | in branch relocation calculation as an error if | |
1442 | `ignore_branch_isa' has been set. | |
1443 | (_bfd_mips_elf_insn32): Rename to... | |
1444 | (_bfd_mips_elf_linker_flags): ... this. Rename the `on' | |
1445 | parameter to `insn32' and add an `ignore_branch_isa' parameter. | |
1446 | Handle the new parameter. | |
1447 | ||
1fbd05e1 HPN |
1448 | 2017-01-27 Hans-Peter Nilsson <hp@axis.com> |
1449 | ||
22d9a0de HPN |
1450 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Remove now unused |
1451 | local variable dynobj. | |
1452 | ||
1fbd05e1 HPN |
1453 | PR ld/20995 |
1454 | * elf32-cris.c (elf_cris_size_dynamic_sections): Handle sdynrelro. | |
1455 | (elf_cris_adjust_dynamic_symbol): Place variables copied into the | |
1456 | executable from read-only sections into sdynrelro. | |
1457 | (elf_cris_finish_dynamic_symbol): Select sreldynrelro for | |
1458 | dynamic relocs in sdynrelro. | |
1459 | (elf_backend_want_dynrelro): Define. | |
1460 | ||
4a7324e1 SH |
1461 | 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de> |
1462 | ||
1463 | * config.bfd (*-*-rtemsaout*): Mark as removed. | |
1464 | ||
c75b4ebd SH |
1465 | 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de> |
1466 | ||
1467 | * config.bfd (powerpcle-*-rtems*): Do not mark as removed. | |
1468 | (arm-*-rtems*): Move to (arm*-*-eabi*). | |
1469 | (i[3-7]86-*-rtems*): Move to (i[3-7]86-*-elf*). | |
1470 | (m68-*-rtems*): Move to (m68*-*-elf*). | |
1471 | ||
850d84f6 SH |
1472 | 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de> |
1473 | ||
1474 | * config.bfd (*-*-rtemscoff*): Mark as removed. | |
1475 | ||
b531344c MR |
1476 | 2017-01-24 Maciej W. Rozycki <macro@imgtec.com> |
1477 | ||
1478 | PR ld/20828 | |
1479 | * elflink.c (bfd_elf_record_link_assignment): Revert last | |
1480 | change and don't ever clear `forced_local'. Set `mark' | |
1481 | unconditionally. | |
1482 | (elf_gc_sweep_symbol_info, elf_gc_sweep_symbol): Reorder within | |
1483 | file. | |
1484 | (elf_gc_sweep): Move the call to `elf_gc_sweep_symbol'... | |
1485 | (bfd_elf_size_dynamic_sections): ... here. | |
1486 | * elf32-ppc.c (ppc_elf_tls_setup): Don't clear `forced_local' | |
1487 | and set `mark' instead in `__tls_get_addr_opt' processing. | |
1488 | * elf64-ppc.c (ppc64_elf_tls_setup): Likewise. | |
1489 | ||
f0158f44 AM |
1490 | 2017-01-24 Alan Modra <amodra@gmail.com> |
1491 | ||
1492 | * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Merge two cases | |
1493 | where dynamic relocs are preferable. Allow ifunc too. | |
1494 | (ensure_undefweak_dynamic): New function. | |
1495 | (allocate_dynrelocs): Use it here. Move plt handling last and | |
1496 | don't make symbols dynamic, simplifying loop. Only make undef | |
1497 | weak symbols with GOT entries dynamic. Correct condition | |
1498 | for GOT relocs. Handle dynamic relocs on ifuncs. Correct | |
1499 | comments. Remove goto. | |
1500 | (ppc_elf_relocate_section): Correct test for using dynamic | |
1501 | symbol on GOT relocs. Rearrange test for emitting GOT relocs | |
1502 | to suit. Set up explicit tls_index entries and implicit GOT | |
1503 | tls_index entries resolvable at link time for | |
1504 | __tls_get_addr_opt. Simplify test to clear mem for prelink. | |
1505 | * elf64-ppc.c (allocate_got): Correct condition for GOT relocs. | |
1506 | (ensure_undefweak_dynamic): New function. | |
1507 | (allocate_dynrelocs): Use it here. Only make undef weak symbols | |
1508 | with GOT entries dynamic. Remove unnecessary test of | |
1509 | WILL_CALL_FINISH_DYNAMIC_SYMBOL in PLT handling. | |
1510 | (ppc64_elf_relocate_section): Correct test for using dynamic | |
1511 | symbol on GOT relocs. Rearrange test for emitting GOT relocs | |
1512 | to suit. Set up explicit tls_index entries and implicit GOT | |
1513 | tls_index entries resolvable at link time for __tls_get_addr_opt. | |
1514 | Simplify expression to clear mem for prelink. | |
1515 | ||
2d0ca824 YN |
1516 | 2017-01-23 Yury Norov <ynorov@caviumnetworks.com> |
1517 | ||
1518 | * elfnn-aarch64.c: Fix relaxations for ILP32 mode. | |
1519 | ||
7f784814 JW |
1520 | 2017-01-20 Jiong Wang <jiong.wang@arm.com> |
1521 | ||
1522 | * elfnn-aarch64.c (elf_aarch64_hash_symbol): New function. | |
1523 | (elf_backend_hash_symbol): Define. | |
1524 | ||
81ff47b3 MR |
1525 | 2017-01-18 Maciej W. Rozycki <macro@imgtec.com> |
1526 | ||
1527 | PR ld/20828 | |
1528 | * elflink.c (bfd_elf_record_link_assignment): Clear any | |
1529 | `forced_local' marking for DSO symbols that are not being | |
1530 | provided. | |
1531 | ||
640d6bfd KLC |
1532 | 2017-01-17 Kuan-Lin Chen <kuanlinchentw@gmail.com> |
1533 | ||
1534 | * elfnn-riscv.c (riscv_elf_object_p): New function. | |
1535 | ||
8361ed4d L |
1536 | 2017-01-12 H.J. Lu <hongjiu.lu@intel.com> |
1537 | ||
1538 | PR ld/21038 | |
1539 | * elf64-x86-64.c (elf_x86_64_link_hash_table): Add | |
1540 | plt_bnd_eh_frame. | |
1541 | (elf_x86_64_check_relocs): Create .eh_frame section for the | |
1542 | .plt.bnd section. | |
1543 | (elf_x86_64_size_dynamic_sections): Allocate and initialize | |
1544 | .eh_frame section for the .plt.bnd section. | |
1545 | (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section | |
1546 | for the .plt.bnd section. | |
1547 | ||
2425a30e NC |
1548 | 2017-01-12 Nick Clifton <nickc@redhat.com> |
1549 | ||
1550 | PR binutils/20876 | |
1551 | * opncls.c (find_separate_debug_file): Add include_dirs | |
1552 | parameter. Only include the directory part of the bfd's filename | |
1553 | in search paths if include_dirs is true. Add a couple of extra | |
1554 | locations for looking for debug files. | |
1555 | ( bfd_follow_gnu_debuglink): Update invocation of | |
1556 | find_separate_debug_file. | |
1557 | (bfd_follow_gnu_debugaltlink): Likewise. | |
1558 | (get_build_id): New function: Finds the build-id of the given bfd. | |
1559 | (get_build_id_name): New function: Computes the name of the | |
1560 | separate debug info file for a bfd, based upon its build-id. | |
1561 | (check_build_id_file): New function: Checks to see if a separate | |
1562 | debug info file exists at the given location, and that its | |
1563 | build-id matches that of the original bfd. | |
1564 | (bfd_follow_build_id_debuglink): New function: Finds a separate | |
1565 | debug info file for a given bfd by using the build-id method. | |
1566 | * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Try using the build-id | |
1567 | method of locating a separate debug info file before using the | |
1568 | debuglink method. | |
1569 | * bfd-in2.h: Regenerate. | |
1570 | ||
9e659176 L |
1571 | 2017-01-11 H.J. Lu <hongjiu.lu@intel.com> |
1572 | ||
1573 | PR ld/21038 | |
1574 | * elf64-x86-64.c (elf_x86_64_eh_frame_bnd_plt): New. | |
1575 | (elf_x86_64_bnd_arch_bed): Use elf_x86_64_eh_frame_bnd_plt and | |
1576 | elf_x86_64_eh_frame_plt_got. | |
1577 | (elf_x86_64_size_dynamic_sections): Get unwind info from | |
1578 | elf_x86_64_bnd_arch_bed for the BND PLT. | |
1579 | ||
f2e2d2f5 JS |
1580 | 2017-01-11 Jeremy Soller <jackpot51@gmail.com> |
1581 | ||
1582 | * config.bfd: Add entries for i686-redox and x86_64-redox. | |
1583 | ||
52b232b3 L |
1584 | 2017-01-10 H.J. Lu <hongjiu.lu@intel.com> |
1585 | ||
1586 | * elf32-i386.c (elf_i386_check_relocs): Align .eh_frame section | |
1587 | to 4 bytes. | |
1588 | * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Align | |
1589 | .eh_frame section to 4 bytes for x32. | |
1590 | (elf_x86_64_check_relocs): Likewise. | |
1591 | ||
fff53dae L |
1592 | 2017-01-10 H.J. Lu <hongjiu.lu@intel.com> |
1593 | ||
1594 | PR ld/20830 | |
1595 | * elf32-i386.c (elf_i386_eh_frame_plt_got): New. | |
1596 | (PLT_GOT_FDE_LENGTH): Likewise. | |
1597 | (elf_i386_plt_layout): Add eh_frame_plt_got and | |
1598 | eh_frame_plt_got_size. | |
1599 | (elf_i386_plt): Updated. | |
1600 | (elf_i386_link_hash_table): Add plt_got_eh_frame. | |
1601 | (elf_i386_check_relocs): Create .eh_frame section for .plt.got. | |
1602 | (elf_i386_size_dynamic_sections): Allocate and initialize | |
1603 | .eh_frame section for .plt.got. | |
1604 | (elf_i386_finish_dynamic_sections): Adjust .eh_frame section for | |
1605 | .plt.got. | |
1606 | (elf_i386_nacl_plt): Add FIXME for eh_frame_plt_got and | |
1607 | eh_frame_plt_got_size. | |
1608 | * elf64-x86-64.c (elf_x86_64_eh_frame_plt_got): New. | |
1609 | (PLT_GOT_FDE_LENGTH): Likewise. | |
1610 | (elf_x86_64_backend_data): Add eh_frame_plt_got and | |
1611 | eh_frame_plt_got_size. | |
1612 | (elf_x86_64_arch_bed): Updated. | |
1613 | (elf_x86_64_bnd_arch_bed): Add FIXME for eh_frame_plt_got and | |
1614 | eh_frame_plt_got_size. | |
1615 | (elf_x86_64_nacl_arch_bed): Likewise. | |
1616 | (elf_x86_64_link_hash_table): Add plt_got_eh_frame. | |
1617 | (elf_x86_64_check_relocs): Create .eh_frame section for .plt.got. | |
1618 | (elf_x86_64_size_dynamic_sections): Allocate and initialize | |
1619 | .eh_frame section for .plt.got. | |
1620 | (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section | |
1621 | for .plt.got. | |
1622 | ||
f129e49f L |
1623 | 2017-01-10 H.J. Lu <hongjiu.lu@intel.com> |
1624 | ||
1625 | * elf32-i386.c (elf_i386_size_dynamic_sections): Set | |
1626 | plt_eh_frame->size to eh_frame_plt_size and use eh_frame_plt. | |
1627 | ||
cd6581da NC |
1628 | 2017-01-09 Nick Clifton <nickc@redhat.com> |
1629 | ||
1630 | * dwarf2.c (lookup_address_in_function_table): Return early if | |
1631 | there are no functions in the given comp unit, or if the high | |
1632 | address of the last function in the comp unit is less than the | |
1633 | desired address. | |
1634 | ||
98f02962 NC |
1635 | 2017-01-09 Nick Clifton <nickc@redhat.com> |
1636 | ||
1637 | PR binutils/21013 | |
1638 | * coffgen.c (_bfd_coff_get_external_symbols): Generate an error | |
1639 | message if there are too many symbols to load. | |
1640 | ||
ae4fda66 JC |
1641 | 2017-01-04 James Clarke <jrtc27@jrtc27.com> |
1642 | ||
1643 | * elf64-alpha.c (elf64_alpha_relax_opt_call): Don't set tsec_free | |
1644 | if relocs are cached. | |
1645 | ||
de1010f4 RF |
1646 | 2017-01-03 Rich Felker <bugdal@aerifal.cx> |
1647 | ||
1648 | PR ld/21017 | |
1649 | * elf32-microblaze.c (microblaze_elf_check_relocs): Add an entry | |
1650 | for R_MICROBLAZE_GOTOFF_64. | |
1651 | ||
09fe2662 NC |
1652 | 2017-01-03 Nick Clifton <nickc@redhat.com> |
1653 | ||
1654 | * mach-o.c (bfd_mach_o_lookup_uuid_command): Fix compile time | |
1655 | warning about using a possibly uninitialised variable. | |
1656 | ||
595e0a47 AM |
1657 | 2017-01-02 Alan Modra <amodra@gmail.com> |
1658 | ||
1659 | * elf32-hppa.c (ensure_undef_weak_dynamic): New function. | |
1660 | (allocate_plt_static, allocate_dynrelocs): Use it. | |
1661 | ||
7bd9df3b AM |
1662 | 2017-01-02 Alan Modra <amodra@gmail.com> |
1663 | ||
1664 | * elf-hppa.h (elf_hppa_fake_sections): Set SHF_INFO_LINK for | |
1665 | .PARISC.unwind section. | |
1666 | ||
5b86074c AM |
1667 | 2017-01-02 Alan Modra <amodra@gmail.com> |
1668 | ||
1669 | PR ld/20989 | |
1670 | * elfxx-sparc.c (gdop_relative_offset_ok): New function. | |
1671 | (_bfd_sparc_elf_relocate_section): Use it to validate GOT | |
1672 | indirect to GOT pointer relative code edit. | |
1673 | ||
2571583a AM |
1674 | 2017-01-02 Alan Modra <amodra@gmail.com> |
1675 | ||
1676 | Update year range in copyright notice of all files. | |
1677 | ||
5c1ad6b5 | 1678 | For older changes see ChangeLog-2016 |
3499769a | 1679 | \f |
5c1ad6b5 | 1680 | Copyright (C) 2017 Free Software Foundation, Inc. |
3499769a AM |
1681 | |
1682 | Copying and distribution of this file, with or without modification, | |
1683 | are permitted in any medium without royalty provided the copyright | |
1684 | notice and this notice are preserved. | |
1685 | ||
1686 | Local Variables: | |
1687 | mode: change-log | |
1688 | left-margin: 8 | |
1689 | fill-column: 74 | |
1690 | version-control: never | |
1691 | End: |