Commit | Line | Data |
---|---|---|
adce5b39 NC |
1 | 2017-07-10 Nick Clifton <nickc@redhat.com> |
2 | ||
3 | * coffcode.h (coff_slurp_symbol_table): Do not include an entry | |
4 | for C_AIX_WEAKEXT if it has the same value as C_WEAKEXT. | |
5 | ||
e6f3b9c3 JB |
6 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
7 | ||
8 | * elf.c (elfcore_grok_freebsd_note): Handle NT_FREEBSD_PTLWPINFO. | |
9 | ||
532cc313 AM |
10 | 2017-07-07 Alan Modra <amodra@gmail.com> |
11 | ||
12 | * coffcode.h (coff_slurp_symbol_table): Handle C_AIX_WEAKEXT. | |
13 | ||
1cf9552b AM |
14 | 2017-07-07 Alan Modra <amodra@gmail.com> |
15 | ||
16 | * bfd.c (_doprnt): Replace "L" with "ll" when printing bfd_vma | |
17 | as long long. Move code replacing "ll" with "I64", and simplify. | |
18 | ||
a0b7b105 L |
19 | 2017-07-06 H.J. Lu <hongjiu.lu@intel.com> |
20 | ||
21 | * bfd.c (_doprnt): Convert 'L' to 'l' when setting wide_width | |
22 | to 1. | |
23 | ||
1d827a72 L |
24 | 2017-07-05 H.J. Lu <hongjiu.lu@intel.com> |
25 | ||
26 | * dwarf2.c (line_info_add_include_dir_stub): Replace time with | |
27 | xtime. | |
28 | (line_info_add_file_name): Likewise. | |
29 | (decode_line_info): Likewise. | |
30 | ||
0d702cfe TG |
31 | 2017-07-04 Tristan Gingold <gingold@adacore.com> |
32 | ||
33 | * version.m4: Bump version to 2.29.51 | |
34 | * configure: Regenerate. | |
35 | ||
564e46b7 JW |
36 | 2017-07-04 Jiong Wang <jiong.wang@arm.com> |
37 | ||
38 | * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Remove the | |
39 | sanity check at the head of this function. | |
40 | ||
0041f7df JK |
41 | 2017-07-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
42 | ||
43 | * dwarf2.c (struct dwarf2_debug): Add fields dwarf_line_str_buffer and | |
44 | dwarf_line_str_size. | |
45 | (struct attr_abbrev): Add field implicit_const. | |
46 | (dwarf_debug_sections): Add .debug_line_str. | |
47 | (enum dwarf_debug_section_enum): Add debug_line_str and debug_max. | |
48 | (dwarf_debug_section_assert): Add static assertion. | |
49 | (read_indirect_line_string): New. | |
50 | (read_abbrevs): Support DW_FORM_implicit_const. | |
51 | (is_str_attr): Support DW_FORM_line_strp. | |
52 | (read_attribute_value): Support DW_FORM_line_strp and | |
53 | DW_FORM_implicit_const. | |
54 | (read_attribute): Support DW_FORM_implicit_const. | |
55 | (line_info_add_include_dir, line_info_add_include_dir_stub): | |
56 | (line_info_add_file_name, read_formatted_entries): New. | |
57 | (decode_line_info, parse_comp_unit): Support DWARF 5. | |
58 | (_bfd_dwarf2_cleanup_debug_info): Free dwarf_line_str_buffer. | |
59 | ||
d8cd8c1f EB |
60 | 2017-07-03 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com> |
61 | ||
62 | * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove the | |
63 | abort statement that was put for symbols that are not dynamic. | |
64 | ||
15e6ed8c TG |
65 | 2017-07-03 Tristan Gingold <gingold@adacore.com> |
66 | ||
67 | * po/bfd.pot: Regenerate | |
68 | ||
76cfced5 AM |
69 | 2017-07-03 Alan Modra <amodra@gmail.com> |
70 | ||
71 | * bfd.c (_doprnt): Rewrite "ll" and "L" modifiers to "I64" for | |
72 | __MSVCRT__. Support "L" modifier for bfd_vma. Formatting. | |
73 | * elf.c (setup_group): Use "Lx" to print sh_size. | |
74 | (_bfd_elf_setup_sections): Remove unnecessary cast and print | |
75 | unknown section type in hex. | |
76 | (copy_special_section_fields): Style fix. | |
77 | (bfd_section_from_shdr): Correct format for sh_link. Use a | |
78 | common error message for all the variants of unrecognized | |
79 | section types. | |
80 | (assign_file_positions_for_load_sections): Use "Lx" for lma | |
81 | adjust error message. | |
82 | (assign_file_positions_for_non_load_sections): Formatting. | |
83 | (rewrite_elf_program_header): Formatting. Use "Lx" for | |
84 | bfd_vma values in error messages. | |
85 | * elfcode.h (elf_slurp_reloc_table_from_section): Cast | |
86 | ELF_R_SYM value to type expected by format. | |
87 | * elflink.c (elf_link_read_relocs_from_section): Use "Lx" | |
88 | in error messages. | |
89 | (elf_link_add_object_symbols): Use "Lu" for symbol sizes. | |
90 | (elf_link_input_bfd): Use "Lx" for r_info. | |
91 | (bfd_elf_gc_record_vtinherit): Use "Lx" for offset. | |
92 | ||
ce9116fd AM |
93 | 2017-07-03 Alan Modra <amodra@gmail.com> |
94 | ||
95 | * bfd.c (bfd_scan_vma): Don't use long long unless HAVE_LONG_LONG. | |
96 | * coff-rs6000.c (FMT20): Handle hosts with 64-bit long and | |
97 | Microsoft C library variant of long long format specifier. | |
98 | (PRINT20): Cast value to bfd_uint64_t not long long. | |
99 | * coffcode.h (coff_print_aux): Use BFD_VMA_FMT. | |
100 | * coff-x86_64.c (coff_amd64_reloc): Use bfd_uint64_t rather than | |
101 | long long. Don't cast to bfd_vma. | |
102 | * elf32-score.c (score3_bfd_getl48): Likewise. | |
103 | * vms-alpha.c (_bfd_vms_slurp_eisd): Likewise. | |
104 | ||
cd9af601 AM |
105 | 2017-07-03 Alan Modra <amodra@gmail.com> |
106 | ||
107 | * elf.c (_bfd_elf_print_private_bfd_data): Use BFD_VMA_FMT to | |
108 | print d_tag. | |
109 | (bfd_elf_print_symbol): Don't cast symbol->flags. | |
110 | (_bfd_elf_symbol_from_bfd_symbol): Likewise. | |
111 | * elf32-ppc.c (ppc_elf_begin_write_processing): Correct | |
112 | _bfd_error_handler argument order. | |
113 | (ppc_elf_merge_private_bfd_data): Don't cast flags. | |
114 | ||
33c734b2 AM |
115 | 2017-07-03 Alan Modra <amodra@gmail.com> |
116 | ||
117 | * configure.ac: Invoke AC_CHECK_TYPES for long long. Invoke | |
118 | AC_TYPE_LONG_DOUBLE. | |
119 | * configure: Regenerate. | |
120 | * config.in: Regenerate. | |
121 | ||
3df5cd13 AW |
122 | 2017-06-29 Andrew Waterman <andrew@sifive.com> |
123 | ||
124 | * elfnn-riscv.c (riscv_elf_adjust_dynamic_symbol): Fix TLS copy | |
125 | relocs. | |
126 | ||
ec1acaba EB |
127 | 2017-06-29 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com> |
128 | ||
129 | * elfxx-sparc.c (allocate_dynrelocs): Don't make a symbol dynamic | |
130 | unless it is undefined weak. | |
131 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Set the flag | |
132 | relative_reloc to direct non-dynamic symbols to R_SPARC_RELATIVE | |
133 | relocation. | |
134 | * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): If symbol | |
135 | is not dynamic in PIC, abort. | |
136 | ||
ff07562f JW |
137 | 2017-06-29 Jiong Wang <jiong.wang@arm.com> |
138 | ||
139 | PR ld/21402 | |
140 | * elfnn-aarch64.c (elfNN_aarch64_allocate_dynrelocs): Only make | |
141 | undefined weak symbols into dynamic. | |
142 | (elfNN_aarch64_final_link_relocate): Generate runtime RELATIVE | |
143 | relocation for non-dynamic symbols. | |
144 | (elfNN_aarch64_finish_dynamic_symbol): Add sanity check. | |
145 | ||
2aff25ba JW |
146 | 2017-06-29 Jiong Wang <jiong.wang@arm.com> |
147 | ||
148 | * elfnn-aarch64.c (aarch64_relocation_aginst_gp_p): New function. | |
149 | (elfNN_aarch64_final_link_relocate): Delete duplicated code for | |
150 | BFD_RELOC_AARCH64_LD64_GOTOFF_LO15, BFD_RELOC_AARCH64_MOVW_GOTOFF_G0_NC, | |
151 | BFD_RELOC_AARCH64_MOVW_GOTOFF_G1. | |
152 | * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Optimize the | |
153 | support for them. | |
154 | ||
88ab90e8 AA |
155 | 2017-06-29 Andreas Arnez <arnez@linux.vnet.ibm.com> |
156 | ||
157 | * elf-bfd.h (elfcore_write_s390_gs_cb): Add prototype. | |
158 | (elfcore_write_s390_gs_bc): Likewise. | |
159 | * elf.c (elfcore_grok_s390_gs_cb): New function. | |
160 | (elfcore_grok_s390_gs_bc): New function. | |
161 | (elfcore_grok_note): Call them. | |
162 | (elfcore_write_s390_gs_cb): New function. | |
163 | (elfcore_write_s390_gs_bc): New function. | |
164 | (elfcore_write_register_note): Call them. | |
165 | ||
328ce951 L |
166 | 2017-06-28 H.J. Lu <hongjiu.lu@intel.com> |
167 | ||
168 | * libbfd.c (_bfd_generic_get_section_contents): Don't call | |
169 | bfd_get_file_size. Check archive element size. | |
170 | (_bfd_generic_get_section_contents_in_window): Likewise. | |
171 | ||
47fdcf63 L |
172 | 2017-06-28 H.J. Lu <hongjiu.lu@intel.com> |
173 | ||
174 | * bfd-in2.h: Regenerated. | |
175 | * bfdio.c (bfd_get_size): Change return type to ufile_ptr. | |
176 | (bfd_get_file_size): Likewise. | |
177 | ||
38bf472a MR |
178 | 2017-06-28 Maciej W. Rozycki <macro@imgtec.com> |
179 | Matthew Fortune <matthew.fortune@imgtec.com> | |
180 | ||
181 | * archures.c (bfd_mach_mips_interaptiv_mr2): New macro. | |
182 | * cpu-mips.c (I_interaptiv_mr2): New enum value. | |
183 | (arch_info_struct): Add "mips:interaptiv-mr2" entry. | |
184 | * elfxx-mips.c (_bfd_elf_mips_mach) <E_MIPS_MACH_IAMR2>: New | |
185 | case. | |
186 | (mips_set_isa_flags) <bfd_mach_mips_interaptiv_mr2>: Likewise. | |
187 | (bfd_mips_isa_ext) <bfd_mach_mips_interaptiv_mr2>: Likewise. | |
188 | (print_mips_isa_ext) <AFL_EXT_INTERAPTIV_MR2>: Likewise. | |
189 | (mips_mach_extensions): Add `bfd_mach_mipsisa32r3' and | |
190 | `bfd_mach_mips_interaptiv_mr2' entries. | |
191 | * bfd-in2.h: Regenerate. | |
192 | ||
2d68166e NC |
193 | 2017-06-27 Nick Clifton <nickc@redhat.com> |
194 | ||
195 | * tekhex.c (pass_over): Revert accidental conversion of a local | |
196 | array to a static array. | |
197 | ||
68063779 SKS |
198 | 2017-06-27 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> |
199 | ||
200 | PR ld/13402 | |
201 | * elf32-avr.c (elf32_avr_adjust_diff_reloc_value): Adjust | |
202 | reloc addend if necessary. Adjust diff only if | |
203 | shrinked_insn_address < end_address. | |
204 | ||
ea9aafc4 AM |
205 | 2017-06-27 Alan Modra <amodra@gmail.com> |
206 | ||
207 | PR binutils/21665 | |
208 | * libbfd.c (_bfd_generic_get_section_contents): Warning fix. | |
209 | (_bfd_generic_get_section_contents_in_window): Likewise. | |
210 | ||
a6cbf936 KLC |
211 | 2017-06-26 Kuan-Lin Chen <rufus@andestech.com> |
212 | ||
213 | * elfnn-riscv.c (perform_relocation): Support the new | |
214 | R_RISCV_32_PCREL relocation. | |
215 | (riscv_elf_relocate_section): Likewise. | |
216 | * elfxx-riscv.c (howto_table): Likewise. | |
217 | (riscv_reloc_map): Likewise. | |
218 | * bfd-in2.h (BFD_RELOC_RISCV_32_PCREL): New relocation. | |
219 | * libbfd.h: Regenerate. | |
220 | ||
7211ae50 AM |
221 | 2017-06-27 Alan Modra <amodra@gmail.com> |
222 | ||
223 | PR binutils/21665 | |
224 | * libbfd.c (_bfd_generic_get_section_contents): Delete abort. | |
225 | Use unsigned file pointer type, and remove cast. | |
226 | * libbfd.c (_bfd_generic_get_section_contents_in_window): Likewise. | |
227 | Add "count", not "sz". | |
228 | ||
ab27f80c PA |
229 | 2017-06-26 Pedro Alves <palves@redhat.com> |
230 | ||
231 | PR binutils/21665 | |
232 | * libbfd.c (_bfd_generic_get_section_contents): Add "count", not | |
233 | "sz". | |
234 | ||
1f473e3d L |
235 | 2017-06-26 H.J. Lu <hongjiu.lu@intel.com> |
236 | ||
237 | PR binutils/21665 | |
238 | * libbfd.c (_bfd_generic_get_section_contents_in_window): Add | |
239 | a missing line. | |
240 | ||
b417536f MR |
241 | 2017-06-26 Maciej W. Rozycki <macro@imgtec.com> |
242 | ||
243 | * cpu-mips.c (arch_info_struct): Mark the 4010 32-bit. | |
244 | * elfxx-mips.c (mips_set_isa_flags) <bfd_mach_mips4010>: Set | |
245 | E_MIPS_ARCH_2 rather than E_MIPS_ARCH_3 in `e_flags'. | |
246 | (mips_mach_extensions): Mark `bfd_mach_mips4010' as extending | |
247 | `bfd_mach_mips6000' rather than `bfd_mach_mips4000'. | |
248 | ||
0630b49c L |
249 | 2017-06-26 H.J. Lu <hongjiu.lu@intel.com> |
250 | ||
251 | PR binutils/21665 | |
252 | * compress.c (bfd_get_full_section_contents): Don't check the | |
253 | file size here. | |
254 | * libbfd.c (_bfd_generic_get_section_contents): Check for and | |
ea9aafc4 | 255 | reject a section whose size + offset is greater than the size |
0630b49c L |
256 | of the entire file. |
257 | (_bfd_generic_get_section_contents_in_window): Likewise. | |
515a4464 | 258 | |
04e15b4a NC |
259 | 2017-06-26 Nick Clifton <nickc@redhat.com> |
260 | ||
261 | PR binutils/21670 | |
262 | * tekhex.c (getvalue): Check for the source pointer exceeding the | |
263 | end pointer before the first byte is read. | |
264 | ||
cfd14a50 NC |
265 | 2017-06-26 Nick Clifton <nickc@redhat.com> |
266 | ||
267 | PR binutils/21665 | |
ea9aafc4 | 268 | * opncls.c (get_build_id): Check that the section is big enough |
cfd14a50 NC |
269 | to contain the whole note. |
270 | * compress.c (bfd_get_full_section_contents): Check for and reject | |
ea9aafc4 | 271 | a section whose size is greater than the size of the entire file. |
cfd14a50 NC |
272 | * elf32-v850.c (v850_elf_copy_notes): Allow for the ouput to not |
273 | contain a notes section. | |
274 | ||
93ec5e23 AK |
275 | 2017-06-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com> |
276 | ||
277 | * elf64-s390.c (elf_s390_additional_program_headers): Add NULL | |
278 | pointer checks. | |
279 | (elf_s390_modify_segment_map): Likewise. | |
280 | (bfd_elf_s390_set_options): Lisewise. | |
281 | ||
57963c05 AM |
282 | 2017-06-26 Alan Modra <amodra@gmail.com> |
283 | ||
284 | * elflink.c (_bfd_elf_link_create_dynstrtab): Don't make dynobj | |
285 | a --just-syms bfd. | |
286 | (_bfd_elf_size_group_sections): Skip --just-syms bfds. | |
287 | (bfd_elf_size_dynamic_sections): Ignore .note.GNU-stack and | |
288 | .preinit_array on --just-syms bfds. | |
289 | (_bfd_elf_gc_mark_extra_sections): Skip --just-syms bfds. | |
290 | (elf_gc_sweep, bfd_elf_parse_eh_frame_entries): Likewise. | |
291 | (bfd_elf_gc_sections, bfd_elf_discard_info): Likewise. | |
292 | ||
5cc4ca83 ST |
293 | 2017-06-25 Sergei Trofimovich <slyfox@gentoo.org> |
294 | ||
295 | * elf.c (find_link): Bounds check "hint". | |
296 | ||
bff0500d TP |
297 | 2017-06-24 Thomas Preud'homme <thomas.preudhomme@arm.com> |
298 | ||
299 | * elf32-arm.c (using_thumb_only): Update list of architectures in | |
300 | BFD_ASSERT for which the logic is valid. | |
301 | (using_thumb2_bl): Likewise. | |
302 | (using_thumb2): Likewise and return true for ARMv8-R. | |
303 | (arch_has_arm_nop): Likewise. | |
304 | (tag_cpu_arch_combine): New v8r table for ARMv8-R Tag_CPU_arch | |
305 | merging logic. Update commentis for value 15 of v8m_baseline, | |
306 | v8m_mainline and v4t_plus_v6_m arrays. Use v8r array to decide | |
307 | merging of value 15 of Tag_CPU_arch. | |
308 | ||
4aa57d6a JW |
309 | 2017-06-23 Jiong Wang <jiong.wang@arm.com> |
310 | ||
311 | * reloc.c (BFD_RELOC_AARCH64_ADR_GOTPAGE): Rename to | |
312 | BFD_RELOC_AARCH64_ADR_GOT_PAGE | |
313 | * bfd-in2.h: Regenerate. | |
314 | ||
5d8763a3 L |
315 | 2017-06-22 H.J. Lu <hongjiu.lu@intel.com> |
316 | ||
317 | * elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): Move | |
318 | the error_alignment label forward. Properly align program | |
319 | property note section. | |
320 | ||
e652757b EC |
321 | 2017-06-22 Eric Christopher <echristo@gmail.com> |
322 | ||
323 | * elf32-arm.c (elf32_arm_final_link_relocate): Use labs rather than | |
324 | abs to fix a truncation warning. | |
325 | ||
84da4cf8 L |
326 | 2017-06-22 H.J. Lu <hongjiu.lu@intel.com> |
327 | ||
328 | * elf32-i386.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Resolve | |
329 | local undefined weak symbol to 0. | |
330 | * elf64-x86-64.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Likewise. | |
331 | ||
48580982 L |
332 | 2017-06-22 H.J. Lu <hongjiu.lu@intel.com> |
333 | ||
334 | * elf32-i386.c (elf_i386_merge_gnu_properties): If info->shstk | |
335 | is set, turn on GNU_PROPERTY_X86_FEATURE_1_SHSTK. | |
336 | (elf_i386_link_setup_gnu_properties): If info->shstk is set, | |
337 | turn on GNU_PROPERTY_X86_FEATURE_1_IBT. | |
338 | * elf64-x86-64.c (elf_x86_64_merge_gnu_properties): If | |
339 | info->shstk is set, turn on GNU_PROPERTY_X86_FEATURE_1_SHSTK. | |
340 | (elf_x86_64_link_setup_gnu_properties): If info->shstk is set, | |
341 | turn on GNU_PROPERTY_X86_FEATURE_1_IBT. | |
342 | ||
ee2fdd6f L |
343 | 2017-06-22 H.J. Lu <hongjiu.lu@intel.com> |
344 | ||
345 | * elf32-i386.c (elf_i386_lazy_ibt_plt0_entry): New. | |
346 | (elf_i386_lazy_ibt_plt_entry): Likewise. | |
347 | (elf_i386_pic_lazy_ibt_plt0_entry): Likewise. | |
348 | (elf_i386_non_lazy_ibt_plt_entry): Likewise. | |
349 | (elf_i386_pic_non_lazy_ibt_plt_entry): Likewise. | |
350 | (elf_i386_eh_frame_lazy_ibt_plt): Likewise. | |
351 | (elf_i386_lazy_plt_layout): Likewise. | |
352 | (elf_i386_non_lazy_plt_layout): Likewise. | |
353 | (elf_i386_link_hash_entry): Add plt_second. | |
354 | (elf_i386_link_hash_table): Add plt_second and | |
355 | plt_second_eh_frame. | |
356 | (elf_i386_allocate_dynrelocs): Use the second PLT if needed. | |
357 | (elf_i386_size_dynamic_sections): Use .plt.got unwind info for | |
358 | the second PLT. Check the second PLT. | |
359 | (elf_i386_relocate_section): Use the second PLT to resolve | |
360 | PLT reference if needed. | |
361 | (elf_i386_finish_dynamic_symbol): Fill and use the second PLT if | |
362 | needed. | |
363 | (elf_i386_finish_dynamic_sections): Set sh_entsize on the | |
364 | second PLT. Generate unwind info for the second PLT. | |
365 | (elf_i386_plt_type): Add plt_second. | |
366 | (elf_i386_get_synthetic_symtab): Support the second PLT. | |
367 | (elf_i386_parse_gnu_properties): Support | |
368 | GNU_PROPERTY_X86_FEATURE_1_AND. | |
369 | (elf_i386_merge_gnu_properties): Support | |
370 | GNU_PROPERTY_X86_FEATURE_1_AND. If info->ibt is set, turn | |
371 | on GNU_PROPERTY_X86_FEATURE_1_IBT | |
372 | (elf_i386_link_setup_gnu_properties): If info->ibt is set, | |
373 | turn on GNU_PROPERTY_X86_FEATURE_1_IBT. Use IBT-enabled PLT | |
374 | for info->ibtplt, info->ibt or GNU_PROPERTY_X86_FEATURE_1_IBT | |
375 | is set on all relocatable inputs. | |
376 | * elf64-x86-64.c (elf_x86_64_lazy_ibt_plt_entry): New. | |
377 | (elf_x32_lazy_ibt_plt_entry): Likewise. | |
378 | (elf_x86_64_non_lazy_ibt_plt_entry): Likewise. | |
379 | (elf_x32_non_lazy_ibt_plt_entry): Likewise. | |
380 | (elf_x86_64_eh_frame_lazy_ibt_plt): Likewise. | |
381 | (elf_x32_eh_frame_lazy_ibt_plt): Likewise. | |
382 | (elf_x86_64_lazy_ibt_plt): Likewise. | |
383 | (elf_x32_lazy_ibt_plt): Likewise. | |
384 | (elf_x86_64_non_lazy_ibt_plt): Likewise. | |
385 | (elf_x32_non_lazy_ibt_plt): Likewise. | |
386 | (elf_x86_64_get_synthetic_symtab): Support the second PLT. | |
387 | (elf_x86_64_parse_gnu_properties): Support | |
388 | GNU_PROPERTY_X86_FEATURE_1_AND. | |
389 | (elf_x86_64_merge_gnu_properties): Support | |
390 | GNU_PROPERTY_X86_FEATURE_1_AND. If info->ibt is set, turn | |
391 | on GNU_PROPERTY_X86_FEATURE_1_IBT | |
392 | (elf_x86_64_link_setup_gnu_properties): If info->ibt is set, | |
393 | turn on GNU_PROPERTY_X86_FEATURE_1_IBT. Use IBT-enabled PLT | |
394 | for info->ibtplt, info->ibt or GNU_PROPERTY_X86_FEATURE_1_IBT | |
395 | is set on all relocatable inputs. | |
396 | ||
d19237d9 NC |
397 | 2017-06-22 Nick Clifton <nickc@redhat.com> |
398 | ||
399 | PR binutils/21649 | |
400 | * som.c (setup_sections): NUL terminate the space_strings buffer. | |
401 | Check that the space.name field does not index beyond the end of | |
402 | the space_strings buffer. | |
403 | ||
6879f5a9 NC |
404 | 2017-06-21 Nick Clifton <nickc@redhat.com> |
405 | ||
406 | PR binutils/21646 | |
407 | * coff-sh.c (sh_reloc): Check for an out of range reloc. | |
408 | ||
7adc0a81 NC |
409 | 2017-06-21 Nick Clifton <nickc@redhat.com> |
410 | ||
411 | PR binutils/21639 | |
412 | * vms-misc.c (_bfd_vms_save_sized_string): Use unsigned int as | |
413 | type of the size parameter. | |
414 | (_bfd_vms_save_counted_string): Add second parameter - the maximum | |
415 | length of the counted string. | |
416 | * vms.h (_bfd_vms_save_sized_string): Update prototype. | |
417 | (_bfd_vms_save_counted_string): Likewise. | |
418 | * vms-alpha.c (_bfd_vms_slurp_eisd): Update calls to | |
419 | _bfd_vms_save_counted_string. | |
420 | (_bfd_vms_slurp_ehdr): Likewise. | |
421 | (_bfd_vms_slurp_egsd): Likewise. | |
422 | (Parse_module): Likewise. | |
423 | ||
6e1816be AM |
424 | 2017-06-21 Alan Modra <amodra@gmail.com> |
425 | ||
426 | * elf64-ppc.c (ppc64_elf_size_stubs): Test for localentry:0 plt | |
427 | calls before tocsave calls. | |
428 | (ppc64_elf_relocate_section): Allow localentry:0 plt calls without | |
429 | following nop. | |
430 | ||
20bd1b6b NC |
431 | 2017-06-21 Nick Clifton <nickc@redhat.com> |
432 | ||
433 | PR binutils/21645 | |
434 | * reloc.c (bfd_generic_get_relocated_section_contents): Fail if | |
435 | bfd_get_full_section_contents returns no contents. | |
436 | ||
3de58d95 NC |
437 | 2017-06-21 Nick Clifton <nickc@redhat.com> |
438 | ||
439 | PR binutils/21638 | |
440 | * vms-alpha.c (_bfd_vms_slurp_egsd): Check for an undersized | |
441 | record. | |
442 | ||
cb06d03a NC |
443 | 2017-06-21 Nick Clifton <nickc@redhat.com> |
444 | ||
445 | PR binutils/21637 | |
446 | * vms-alpha.c (_bfd_vms_slurp_egsd): Check for an empty section | |
447 | list. | |
448 | (image_set_ptr): Likewise. | |
449 | (alpha_vms_fix_sec_rel): Likewise. | |
450 | (alpha_vms_slurp_relocs): Likewise. | |
451 | ||
c458d007 NC |
452 | 2017-06-21 Nick Clifton <nickc@redhat.com> |
453 | ||
454 | PR binutils/21633 | |
455 | * ieee.c (ieee_slurp_sections): Check for a NULL return from | |
456 | read_id. | |
457 | (ieee_archive_p): Likewise. | |
458 | (ieee_object_p): Likewise. | |
459 | ||
ce497010 NC |
460 | 2017-06-21 Nick Clifton <nickc@redhat.com> |
461 | ||
462 | PR binutils/21640 | |
463 | * elf.c (setup_group): Zero the group section pointer list after | |
464 | allocation so that loops can be caught. Check for NULL pointers | |
465 | when processing a group list. | |
466 | ||
fd52715c AK |
467 | 2017-06-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com> |
468 | ||
469 | * elf-s390.h: New file. | |
470 | * elf64-s390.c (struct elf_s390_link_hash_table): Add params | |
471 | field. | |
472 | (elf_s390_additional_program_headers): New function. | |
473 | (elf_s390_modify_segment_map): New function. | |
474 | (bfd_elf_s390_set_options): New function. | |
475 | (elf_backend_additional_program_headers) | |
476 | (elf_backend_modify_segment_map): Add macro definitions. | |
477 | ||
abfa390d L |
478 | 2017-06-19 H.J. Lu <hongjiu.lu@intel.com> |
479 | ||
480 | PR ld/21626 | |
481 | * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Check | |
482 | the DYNAMIC bit instead of bfd_count_sections. | |
483 | ||
bc21b167 NC |
484 | 2017-06-19 Nick Clifton <nickc@redhat.com> |
485 | ||
486 | PR binutils/21618 | |
487 | * vms-alpha.c (evax_bfd_print_emh): Check for insufficient record | |
488 | length. | |
489 | (evax_bfd_print_eeom): Likewise. | |
490 | (evax_bfd_print_egsd): Check for an overlarge record length. | |
491 | (evax_bfd_print_etir): Likewise. | |
492 | ||
acb56a83 NC |
493 | 2017-06-19 Nick Clifton <nickc@redhat.com> |
494 | ||
495 | PR binutils/21612 | |
496 | * libieee.h (struct common_header_type): Add end_p field. | |
497 | * ieee.c (this_byte_and_next): Do not advance input_p beyond | |
498 | end_p. | |
499 | (read_id): Check for a length that exceeds the remaining bytes in | |
500 | the input buffer. | |
501 | (ieee_seek): Initialise end_p. | |
502 | (ieee_archive_p): Likewise. | |
503 | (ieee_object_p): Likewise. | |
504 | ||
72e84f96 NC |
505 | 2017-06-19 Nick Clifton <nickc@redhat.com> |
506 | ||
80053e46 NC |
507 | PR binutils/21611 |
508 | * vms-alpha.c (_bfd_vms_slurp_eihs): Check for invalid offset | |
509 | before reading the EIHS structure entries. | |
510 | ||
511 | 2017-06-19 Nick Clifton <nickc@redhat.com> | |
512 | ||
513 | PR binutils/21615 | |
72e84f96 NC |
514 | * vms-alpha.c (_bfd_vms_slurp_egsd): Use unsigned int for |
515 | gsd_size. Check that there are enough bytes remaining to read the | |
516 | type and size of the next egsd. Check that the size of the egsd | |
517 | does not exceed the size of the record. | |
518 | ||
875ffa3e AM |
519 | 2017-06-19 Alan Modra <amodra@gmail.com> |
520 | ||
521 | * config.bfd: Correct targ_underscore for cris. | |
522 | ||
bdd32e03 AM |
523 | 2017-06-18 Alan Modra <amodra@gmail.com> |
524 | ||
525 | * config.bfd: Correct targ_underscore for epiphany, ip2k, | |
526 | m32c, mn10200, pru, rl78, rx, crisv32 and v850. | |
527 | ||
4b48e2f6 NC |
528 | 2017-06-16 Nick Clifton <nickc@redhat.com> |
529 | ||
530 | * elflink.c (bfd_elf_size_dynsym_hash_dynstr): Do not fail if the | |
531 | bucketlist is empty because there are no symbols to add to the | |
532 | list. | |
533 | ||
7dba9362 AM |
534 | 2017-06-16 Alan Modra <amodra@gmail.com> |
535 | ||
536 | PR ld/20022 | |
537 | PR ld/21557 | |
538 | PR ld/21562 | |
539 | PR ld/21571 | |
540 | * targets.c (struct bfd_target): Add _bfd_define_start_stop. | |
541 | (BFD_JUMP_TABLE_LINK): Likewise. | |
542 | * elf-bfd.h (bfd_elf_define_start_stop): Declare. | |
543 | * elflink.c (_bfd_elf_gc_mark_rsec): Update comment. | |
544 | (bfd_elf_define_start_stop): New function. | |
545 | * linker.c (bfd_generic_define_start_stop): New function. | |
546 | * coff64-rs6000.c (rs6000_xcoff64_vec, rs6000_xcoff64_aix_vec): Init | |
547 | new field. | |
548 | * aout-adobe.c (aout_32_bfd_define_start_stop): Define. | |
549 | * aout-target.h (MY_bfd_define_start_stop): Define. | |
550 | * aout-tic30.c (MY_bfd_define_start_stop): Define. | |
551 | * binary.c (binary_bfd_define_start_stop): Define. | |
552 | * bout.c (b_out_bfd_define_start_stop): Define. | |
553 | * coff-alpha.c (_bfd_ecoff_bfd_define_start_stop): Define. | |
554 | * coff-mips.c (_bfd_ecoff_bfd_define_start_stop): Define. | |
555 | * coff-rs6000.c (_bfd_xcoff_bfd_define_start_stop): Define. | |
556 | * coffcode.h (coff_bfd_define_start_stop): Define. | |
557 | * elfxx-target.h (bfd_elfNN_bfd_define_start_stop): Define. | |
558 | * i386msdos.c (msdos_bfd_define_start_stop): Define. | |
559 | * i386os9k.c (os9k_bfd_define_start_stop): Define. | |
560 | * ieee.c (ieee_bfd_define_start_stop): Define. | |
561 | * ihex.c (ihex_bfd_define_start_stop): Define. | |
562 | * libbfd-in.h (_bfd_nolink_bfd_define_start_stop): Define. | |
563 | * mach-o-target.c (bfd_mach_o_bfd_define_start_stop): Define. | |
564 | * mmo.c (mmo_bfd_define_start_stop): Define. | |
565 | * nlm-target.h (nlm_bfd_define_start_stop): Define. | |
566 | * oasys.c (oasys_bfd_define_start_stop): Define. | |
567 | * pef.c (bfd_pef_bfd_define_start_stop): Define. | |
568 | * plugin.c (bfd_plugin_bfd_define_start_stop): Define. | |
569 | * ppcboot.c (ppcboot_bfd_define_start_stop): Define. | |
570 | * som.c (som_bfd_define_start_stop): Define. | |
571 | * srec.c (srec_bfd_define_start_stop): Define. | |
572 | * tekhex.c (tekhex_bfd_define_start_stop): Define. | |
573 | * versados.c (versados_bfd_define_start_stop): Define. | |
574 | * vms-alpha.c (vms_bfd_define_start_stop): Define. | |
575 | (alpha_vms_bfd_define_start_stop): Define. | |
576 | * xsym.c (bfd_sym_bfd_define_start_stop): Define. | |
577 | * bfd-in2.h: Regenerate. | |
578 | * libbfd.h: Regenerate. | |
579 | ||
d68f1976 JW |
580 | 2017-06-16 Jiong Wang <jiong.wang@arm.com> |
581 | ||
582 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Use | |
583 | SYMBOL_REFERENCES_LOCAL. | |
584 | ||
6353d82b JW |
585 | 2017-06-15 Jiong Wang <jiong.wang@arm.com> |
586 | ||
587 | PR ld/21532 | |
588 | * elfnn-aarch64.c (ELIMINATE_COPY_RELOCS): Set to 1. | |
589 | (elfNN_aarch64_final_link_relocate): Also propagate relocations to | |
590 | runtime for if there needs copy relocation elimination. | |
591 | (need_copy_relocation_p): New function. Return true for symbol with | |
592 | pc-relative references and if it's against read-only sections. | |
593 | (elfNN_aarch64_adjust_dynamic_symbol): Use need_copy_relocation_p. | |
594 | (elfNN_aarch64_check_relocs): Allocate dynrelocs for relocation types | |
595 | that are related with accessing external objects. | |
596 | (elfNN_aarch64_gc_sweep_hook): Sync the relocation types with the change | |
597 | in elfNN_aarch64_check_relocs. | |
598 | ||
63634bb4 NC |
599 | 2017-06-15 Nick Clifton <nickc@redhat.com> |
600 | ||
601 | PR binutils/21582 | |
602 | * ieee.c (ieee_object_p): Use a static buffer to avoid compiler | |
603 | bugs. | |
62b76e4b NC |
604 | PR binutils/21581 |
605 | (ieee_archive_p): Likewise. | |
63634bb4 | 606 | |
76800cba NC |
607 | 2017-06-15 Nick Clifton <nickc@redhat.com> |
608 | ||
609 | PR binutils/21579 | |
610 | * vms-alpha.c (_bfd_vms_slurp_etir): Extend check of cmd_length. | |
611 | ||
f7e16c2a MF |
612 | 2017-06-14 Max Filippov <jcmvbkbc@gmail.com> |
613 | ||
614 | * elf32-xtensa.c (elf_xtensa_be_plt_entry, | |
615 | elf_xtensa_le_plt_entry): Add dimension for the ABI to arrays, | |
616 | keep both windowed and call0 ABI PLT definitions. | |
617 | (elf_xtensa_create_plt_entry): Use selected ABI to choose upper | |
618 | elf_xtensa_*_plt_entry endex. | |
619 | (ELF_MAXPAGESIZE): Fix at minimal supported MMU page size. | |
620 | ||
f461bbd8 NC |
621 | 2017-06-14 Nick Clifton <nickc@redhat.com> |
622 | ||
623 | PR binutils/21578 | |
624 | * elf32-sh.c (sh_elf_set_mach_from_flags): Fix check for invalid | |
625 | flag value. | |
626 | ||
c53d2e6d NC |
627 | 2017-06-14 Nick Clifton <nickc@redhat.com> |
628 | ||
629 | PR binutils/21589 | |
630 | * vms-alpha.c (_bfd_vms_get_value): Add an extra parameter - the | |
631 | maximum value for the ascic pointer. Check that name processing | |
632 | does not read beyond this value. | |
633 | (_bfd_vms_slurp_etir): Add checks for attempts to read beyond the | |
634 | end of etir record. | |
635 | ||
04f963fd NC |
636 | 2017-06-14 Nick Clifton <nickc@redhat.com> |
637 | ||
638 | PR binutils/21591 | |
639 | * versados.c (versados_mkobject): Zero the allocated tdata structure. | |
640 | (process_otr): Check for an invalid offset in the otr structure. | |
641 | ||
319c2dbe SH |
642 | 2017-06-14 Sebastian Huber <sebastian.huber@embedded-brains.de> |
643 | ||
644 | * config.bfd (epiphany-*-elf): Accept epiphany-*-*. | |
645 | ||
cbd0eecf L |
646 | 2017-06-13 H.J. Lu <hongjiu.lu@intel.com> |
647 | ||
648 | PR ld/20022 | |
649 | PR ld/21557 | |
650 | PR ld/21562 | |
651 | PR ld/21571 | |
652 | * elf-bfd.h (elf_link_hash_entry): Add start_stop. Change the | |
653 | vtable field to a union. | |
654 | (_bfd_elf_is_start_stop): Removed. | |
655 | * elf32-i386.c (elf_i386_convert_load_reloc): Also check for | |
656 | __start_SECNAME and __stop_SECNAME symbols. | |
657 | * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Likewise. | |
658 | * elflink.c (_bfd_elf_is_start_stop): Removed. | |
659 | (_bfd_elf_gc_mark_rsec): Check start_stop instead of calling | |
660 | _bfd_elf_is_start_stop. | |
661 | (elf_gc_propagate_vtable_entries_used): Skip __start_SECNAME and | |
662 | __stop_SECNAME symbols. Updated. | |
663 | (elf_gc_smash_unused_vtentry_relocs): Likewise. | |
664 | (bfd_elf_gc_record_vtinherit): Likewise. | |
665 | (bfd_elf_gc_record_vtentry): Likewise. | |
666 | ||
10bbbc1d NC |
667 | 2017-06-13 Nick Clifton <nickc@redhat.com> |
668 | ||
669 | PR ld/21524 | |
670 | * elflink.c (elf_link_adjust_relocs): Generate an error when | |
671 | encountering a reloc against a symbol removed by garbage | |
672 | collection. | |
673 | ||
5c3ce2bc L |
674 | 2017-06-12 H.J. Lu <hongjiu.lu@intel.com> |
675 | ||
676 | * elf-bfd.h (elf_backend_data): Add struct bfd_link_info * | |
677 | to merge_gnu_properties. | |
678 | * elf-properties.c (elf_merge_gnu_properties): Add struct | |
679 | bfd_link_info * and pass it to merge_gnu_properties. | |
680 | (elf_merge_gnu_property_list): Add struct bfd_link_info * | |
681 | and pass it to elf_merge_gnu_properties. | |
682 | (_bfd_elf_link_setup_gnu_properties): Pass info to | |
683 | elf_merge_gnu_property_list. | |
684 | * elf32-i386.c (elf_i386_merge_gnu_properties): Add struct | |
685 | bfd_link_info *. | |
686 | * elf64-x86-64.c (elf_x86_64_merge_gnu_properties): Likewise. | |
687 | ||
9b97dfbf AM |
688 | 2017-06-11 Joe Zbiciak <joe.zbiciak@leftturnonly.info> |
689 | ||
690 | PR 21564 | |
691 | * binary.c (binary_set_section_contents): Scale lma by octets | |
692 | per byte to set filepos. | |
693 | ||
e3d1d408 CM |
694 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
695 | ||
696 | * elf32-arc.c (elf_arc_check_relocs): Fixed conditions to generate | |
697 | dynamic sections. | |
698 | ||
64aa8e03 CM |
699 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
700 | ||
701 | * elf32-arc.c (elf_arc_size_dynamic_sections): Changed condition to | |
702 | require TEXTREL. | |
703 | ||
a0abe743 CM |
704 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
705 | ||
706 | * arc-got.h (relocate_fix_got_relocs_for_got_info): Added TCB_SIZE to | |
707 | patched section contents for TLS IE reloc. | |
708 | * elf32-arc.c: Remove TCB_SIZE preprocessor macro. | |
709 | ||
f4e6805f CM |
710 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
711 | ||
712 | * elf32-arc.c (elf_arc_relocate_section): Added "call" to | |
713 | RELOC_FOR_GLOBAL_SYMBOL macro. | |
714 | ||
cd640291 CM |
715 | 2018-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
716 | ||
717 | * elf32-arc.c (elf_arc_relocate_section): Small refactor and condition | |
718 | changes. | |
719 | ||
7ef0acc1 VG |
720 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
721 | ||
722 | * config/tc-arc.c (md_undefined_symbol): Changed. | |
723 | * config/tc-arc.h (DYNAMIC_STRUCT_NAME): Removed. | |
724 | ||
cc89d0b3 CM |
725 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
726 | ||
727 | * elf32-arc.c (elf_arc_relocate_section): Fixed reassign of indirect | |
728 | symbols. | |
729 | ||
9d5c718b CM |
730 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
731 | ||
732 | * elf32-arc.c (elf_arc_check_relocs): Added condition to disable | |
733 | warning and "Bad value" for local symbols ARC_32 or ARC_32_ME relocs. | |
734 | ||
be9e3704 CM |
735 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
736 | ||
737 | * elf32-arc.c (ADD_RELA): Changed to only work when dynamic | |
738 | object is created. | |
739 | ||
4ec192e6 RE |
740 | 2017-06-08 Richard Earnshaw <rearnsha@arm.com> |
741 | ||
742 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Remove assertion | |
743 | that the input bfd has Tag_FP_ARCH non-zero if Tag_ABI_HardFP_use | |
744 | is non-zero. Add clarifying comments. | |
745 | ||
51fa2693 L |
746 | 2017-06-08 H.J. Lu <hongjiu.lu@intel.com> |
747 | ||
748 | * elf32-i386.c (elf_i386_check_relocs): Set local IFUNC symbol | |
749 | name. Use local IFUNC symbol name string to report unsupported | |
750 | non-PIC call to IFUNC function. | |
751 | (elf_i386_relocate_section): Dump local IFUNC name with minfo | |
752 | when generating R_386_IRELATIVE relocation. | |
753 | (elf_i386_finish_dynamic_symbol): Likewise. | |
754 | * elf_x86_64_check_relocs (elf_x86_64_check_relocs): Set local | |
755 | IFUNC symbol name. | |
756 | (elf_x86_64_relocate_section): Dump local IFUNC name with minfo | |
757 | when generating R_X86_64_IRELATIVE relocation. | |
758 | (elf_x86_64_finish_dynamic_symbol): Likewise. | |
759 | ||
78e8a2ff JM |
760 | 2017-06-06 Jose E. Marchesi <jose.marchesi@oracle.com> |
761 | ||
762 | * elf.c (setup_group): Make sure BFD sections are created for all | |
763 | group sections in the input file when processing SHF_GROUP | |
764 | sections. | |
765 | (bfd_section_from_shdr): Avoid duplicating logic already | |
766 | implemented in `setup_group'. | |
767 | ||
9949827b DBR |
768 | 2017-06-06 Daniel Bonniot de Ruisselet <bonniot@gmail.com> |
769 | ||
770 | PR binutils/21546 | |
771 | * peXXigen.c (pe_print_idata): Use the address of the first thunk | |
772 | if the hint address is zero. | |
773 | ||
0ee3a6db JC |
774 | 2017-06-06 James Clarke <jrtc27@jrtc27.com> |
775 | ||
776 | PR ld/19579 | |
777 | * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Check | |
778 | ELF_COMMON_DEF_P for common symbols. | |
779 | ||
7bdf4127 AB |
780 | 2017-06-06 Andrew Burgess <andrew.burgess@embecosm.com> |
781 | ||
782 | * elf.c (_bfd_elf_make_section_from_shdr): Don't initially mark | |
783 | SEC_GROUP sections as SEC_EXCLUDE. | |
784 | (bfd_elf_set_group_contents): Replace use of abort with an assert. | |
785 | (assign_section_numbers): Use resolve_section_groups flag instead | |
786 | of relocatable link type. | |
787 | (_bfd_elf_init_private_section_data): Use resolve_section_groups | |
788 | flag instead of checking the final_link flag for part of the | |
789 | checks in here. Fix white space as a result. | |
790 | * elflink.c (elf_link_input_bfd): Use resolve_section_groups flag | |
791 | instead of relocatable link type. | |
792 | (bfd_elf_final_link): Likewise. | |
793 | ||
458ad2b8 JM |
794 | 2017-06-06 Jose E. Marchesi <jose.marchesi@oracle.com> |
795 | ||
796 | * elfxx-mips.c (_bfd_mips_elf_relocate_section): Remove unused | |
797 | variable `bed'. | |
798 | * elf32-score.c (score_elf_final_link_relocate): Likewise. | |
799 | (s3_bfd_score_elf_check_relocs): Likewise. | |
800 | * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise. | |
801 | (score_elf_final_link_relocate): Likewise. | |
802 | (s7_bfd_score_elf_check_relocs): Likewise. | |
803 | ||
fbebaf4a JM |
804 | 2017-06-06 Jose E. Marchesi <jose.marchesi@oracle.com> |
805 | ||
806 | * elflink.c (init_reloc_cookie_rels): Remove unused variable | |
807 | `bed'. | |
808 | ||
056bafd4 MR |
809 | 2017-06-06 Maciej W. Rozycki <macro@imgtec.com> |
810 | ||
811 | * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Subtract `count' | |
812 | from `reloc_count' rather than decrementing it. | |
813 | * elf.c (bfd_section_from_shdr): Multiply the adjustment to | |
814 | `reloc_count' by `int_rels_per_ext_rel'. | |
815 | * elf32-score.c (score_elf_final_link_relocate): Do not multiply | |
816 | `reloc_count' by `int_rels_per_ext_rel' for last relocation | |
817 | entry determination. | |
818 | (s3_bfd_score_elf_check_relocs): Likewise. | |
819 | * elf32-score7.c (score_elf_final_link_relocate): Likewise. | |
820 | (s7_bfd_score_elf_relocate_section): Likewise. | |
821 | (s7_bfd_score_elf_check_relocs): Likewise. | |
822 | * elf64-mips.c (mips_elf64_get_reloc_upper_bound): Remove | |
823 | prototype and function. | |
824 | (mips_elf64_slurp_one_reloc_table): Do not update `reloc_count'. | |
825 | (mips_elf64_slurp_reloc_table): Assert that `reloc_count' is | |
826 | triple rather than once the sum of REL and RELA relocation entry | |
827 | counts. | |
828 | (bfd_elf64_get_reloc_upper_bound): Remove macro. | |
829 | * elflink.c (_bfd_elf_link_read_relocs): Do not multiply | |
830 | `reloc_count' by `int_rels_per_ext_rel' for internal relocation | |
831 | storage allocation size determination. | |
832 | (elf_link_input_bfd): Multiply `.ctors' and `.dtors' section's | |
833 | size by `int_rels_per_ext_rel'. Do not multiply `reloc_count' | |
834 | by `int_rels_per_ext_rel' for last relocation entry | |
835 | determination. | |
836 | (bfd_elf_final_link): Do not multiply `reloc_count' by | |
837 | `int_rels_per_ext_rel' for internal relocation storage | |
838 | allocation size determination. | |
839 | (init_reloc_cookie_rels): Do not multiply `reloc_count' by | |
840 | `int_rels_per_ext_rel' for last relocation entry determination. | |
841 | (elf_gc_smash_unused_vtentry_relocs): Likewise. | |
842 | * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise. | |
843 | (_bfd_mips_elf_relocate_section): Likewise. | |
844 | ||
af54f0eb AM |
845 | 2017-06-05 Alan Modra <amodra@gmail.com> |
846 | ||
847 | PR 21529 | |
848 | * linker.c (_bfd_generic_link_output_symbols): Handle BSF_GNU_UNIQUE. | |
849 | ||
6cf3bf88 | 850 | 2017-06-01 John Baldwin <jhb@FreeBSD.org> |
b5430a3c JB |
851 | |
852 | * elf.c (elfcore_grok_freebsd_psinfo): Use ELF header class to | |
853 | determine structure sizes. | |
854 | (elfcore_grok_freebsd_prstatus): Likewise. | |
855 | ||
f378ab09 AM |
856 | 2017-06-01 Alan Modra <amodra@gmail.com> |
857 | ||
858 | * elf64-ppc.c (struct ppc_link_hash_table): Add has_plt_localentry0. | |
859 | (ppc64_elf_merge_symbol_attribute): Merge localentry bits from | |
860 | dynamic objects. | |
861 | (is_elfv2_localentry0): New function. | |
862 | (ppc64_elf_tls_setup): Default params->plt_localentry0. | |
863 | (plt_stub_size): Adjust size for tls_get_addr_opt stub. | |
864 | (build_tls_get_addr_stub): Use a simpler stub when r2 is not saved. | |
865 | (ppc64_elf_size_stubs): Leave stub_type as ppc_stub_plt_call for | |
866 | optimized localentry:0 stubs. | |
867 | (ppc64_elf_build_stubs): Save r2 in ELFv2 __glink_PLTresolve. | |
868 | (ppc64_elf_relocate_section): Leave nop unchanged for optimized | |
869 | localentry:0 stubs. | |
870 | (ppc64_elf_finish_dynamic_sections): Set PPC64_OPT_LOCALENTRY in | |
871 | DT_PPC64_OPT. | |
872 | * elf64-ppc.h (struct ppc64_elf_params): Add plt_localentry0. | |
873 | ||
8c65b54f CS |
874 | 2017-05-30 Casey Smith <clegg89@gmail.com> |
875 | ||
876 | PR ld/21523 | |
877 | * elf32-arm.c (elf32_arm_final_link_relocate): Install an absolute | |
878 | value when processing the R_ARM_THM_ALU_PREL_11_0 reloc. | |
879 | ||
64984c22 AK |
880 | 2017-05-30 Anton Kolesov Anton.Kolesov@synopsys.com |
881 | ||
882 | * cpu-arc.c (arc_compatible): New function. | |
883 | ||
37cd3877 AK |
884 | 2017-05-30 Anton Kolesov <anton.kolesov@synopsys.com> |
885 | ||
886 | * cpu-arc.c (arch_info_struct): Remove duplicate ARC600 entry. | |
887 | ||
8e2f54bc L |
888 | 2017-05-30 H.J. Lu <hongjiu.lu@intel.com> |
889 | ||
890 | PR binutils/21519 | |
891 | * bfdio.c (bfd_get_file_size): New function. | |
892 | * bfd-in2.h: Regenerated. | |
893 | ||
8e7f04f1 | 894 | 2017-05-23 Dilian Palauzov <git-dpa@aegee.org> |
895 | ||
896 | * elf32-arc.c (arc_elf_merge_attributes): Add fall through | |
897 | comments. | |
898 | ||
25f94347 L |
899 | 2017-05-22 H.J. Lu <hongjiu.lu@intel.com> |
900 | ||
901 | * elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): Use | |
902 | dynobj instead of htab->elf.dynobj. | |
903 | ||
e5713223 MR |
904 | 2017-05-19 Maciej W. Rozycki <macro@imgtec.com> |
905 | ||
906 | * elf64-mips.c (mips_elf64_canonicalize_reloc): Remove prototype | |
907 | and function. | |
908 | (mips_elf64_canonicalize_dynamic_reloc): Likewise. | |
909 | (mips_elf64_slurp_one_reloc_table): Set `reloc_count' to the | |
910 | actual number of internal relocations retrieved. Adjust | |
911 | function description. | |
912 | (bfd_elf64_canonicalize_reloc): Remove macro. | |
913 | (bfd_elf64_canonicalize_dynamic_reloc): Likewise. | |
914 | ||
64517994 JM |
915 | 2017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com> |
916 | ||
917 | * archures.c (bfd_mach_sparc_v9m8): Define. | |
918 | (bfd_mach_sparc_v8plusm8): Likewise. | |
919 | (bfd_mach_sparc_v9_p): Adjust to M8. | |
920 | (bfd_mach_sparc_64bit_p): Likewise. | |
921 | * aoutx.h (machine_type): Handle bfd_mach_sparc_v9m8 and | |
922 | bfd_mach_sparc_v8plusm8. | |
923 | * bfd-in2.h: Regenerated. | |
924 | * cpu-sparc.c (arch_info_struct): Entries for sparc:v9m8 and | |
925 | sparc:v8plusm8. | |
926 | * elfxx-sparc.c (_bfd_sparc_elf_object_p): Handle | |
927 | bfd_mach_sparc_v8plusm8 and bfd_mach_sparc_v9m8 using the new hw | |
928 | capabilities ONADDSUB, ONMUL, ONDIV, DICTUNP, FPCPSHL, RLE and | |
929 | SHA3. | |
930 | * elf32-sparc.c (elf32_sparc_final_write_processing): Handle | |
931 | bfd_mach_sparc_v8plusm8. | |
932 | ||
eb026f09 AM |
933 | 2017-05-19 Alan Modra <amodra@gmail.com> |
934 | ||
935 | * elflink.c (_bfd_elf_gc_mark_extra_sections): Don't keep | |
936 | debug and special sections when no non-note alloc sections in an | |
937 | object are kept. | |
938 | ||
535b785f AM |
939 | 2017-05-18 Alan Modra <amodra@gmail.com> |
940 | ||
941 | * arc-got.h: Don't compare boolean values against TRUE or FALSE. | |
942 | * elf-m10300.c: Likewise. | |
943 | * elf.c: Likewise. | |
944 | * elf32-arc.c: Likewise. | |
945 | * elf32-bfin.c: Likewise. | |
946 | * elf32-m68k.c: Likewise. | |
947 | * elf32-nds32.c: Likewise. | |
948 | * elf32-tilepro.c: Likewise. | |
949 | * elflink.c: Likewise. | |
950 | * elfnn-aarch64.c: Likewise. | |
951 | * elfnn-riscv.c: Likewise. | |
952 | * elfxx-tilegx.c: Likewise. | |
953 | * mach-o.c: Likewise. | |
954 | * peXXigen.c: Likewise. | |
955 | * vms-alpha.c: Likewise. | |
956 | * vms-lib.c: Likewise. | |
957 | ||
b7c871ed L |
958 | 2017-05-17 H.J. Lu <hongjiu.lu@intel.com> |
959 | ||
960 | PR ld/20882 | |
961 | * elflink.c (elf_gc_mark_debug_section): New function. | |
962 | (_bfd_elf_gc_mark_extra_sections): Mark any debug sections | |
963 | referenced by kept debug sections. | |
964 | ||
bc4e12de AM |
965 | 2017-05-16 Alan Modra <amodra@gmail.com> |
966 | ||
967 | * elf-m10300.c: Rename occurrences of non_ir_ref. | |
968 | * elf32-arm.c: Likewise. | |
969 | * elf32-bfin.c: Likewise. | |
970 | * elf32-cr16.c: Likewise. | |
971 | * elf32-cris.c: Likewise. | |
972 | * elf32-d10v.c: Likewise. | |
973 | * elf32-dlx.c: Likewise. | |
974 | * elf32-fr30.c: Likewise. | |
975 | * elf32-frv.c: Likewise. | |
976 | * elf32-hppa.c: Likewise. | |
977 | * elf32-i370.c: Likewise. | |
978 | * elf32-i386.c: Likewise. | |
979 | * elf32-iq2000.c: Likewise. | |
980 | * elf32-lm32.c: Likewise. | |
981 | * elf32-m32c.c: Likewise. | |
982 | * elf32-m32r.c: Likewise. | |
983 | * elf32-m68hc1x.c: Likewise. | |
984 | * elf32-m68k.c: Likewise. | |
985 | * elf32-mcore.c: Likewise. | |
986 | * elf32-metag.c: Likewise. | |
987 | * elf32-microblaze.c: Likewise. | |
988 | * elf32-moxie.c: Likewise. | |
989 | * elf32-msp430.c: Likewise. | |
990 | * elf32-mt.c: Likewise. | |
991 | * elf32-nios2.c: Likewise. | |
992 | * elf32-or1k.c: Likewise. | |
993 | * elf32-ppc.c: Likewise. | |
994 | * elf32-rl78.c: Likewise. | |
995 | * elf32-s390.c: Likewise. | |
996 | * elf32-score.c: Likewise. | |
997 | * elf32-score7.c: Likewise. | |
998 | * elf32-sh.c: Likewise. | |
999 | * elf32-tic6x.c: Likewise. | |
1000 | * elf32-tilepro.c: Likewise. | |
1001 | * elf32-v850.c: Likewise. | |
1002 | * elf32-vax.c: Likewise. | |
1003 | * elf32-xstormy16.c: Likewise. | |
1004 | * elf32-xtensa.c: Likewise. | |
1005 | * elf64-alpha.c: Likewise. | |
1006 | * elf64-hppa.c: Likewise. | |
1007 | * elf64-ia64-vms.c: Likewise. | |
1008 | * elf64-mmix.c: Likewise. | |
1009 | * elf64-ppc.c: Likewise. | |
1010 | * elf64-s390.c: Likewise. | |
1011 | * elf64-sh64.c: Likewise. | |
1012 | * elf64-x86-64.c: Likewise. | |
1013 | * elflink.c: Likewise. | |
1014 | * elfnn-aarch64.c: Likewise. | |
1015 | * elfnn-ia64.c: Likewise. | |
1016 | * elfnn-riscv.c: Likewise. | |
1017 | * elfxx-mips.c: Likewise. | |
1018 | * elfxx-sparc.c: Likewise. | |
1019 | * elfxx-tilegx.c: Likewise. | |
1020 | * linker.c: Likewise. | |
1021 | ||
4070765b AM |
1022 | 2017-05-16 Alan Modra <amodra@gmail.com> |
1023 | ||
1024 | * elf64-ppc.c (add_symbol_adjust): Transfer non_ir_ref_dynamic. | |
1025 | * elflink.c (elf_link_add_object_symbols): Update to use | |
1026 | non_ir_ref_dynamic. | |
1027 | (elf_link_input_bfd): Test non_ir_ref_dynamic in addition to | |
1028 | non_ir_ref. | |
1029 | * linker.c (_bfd_generic_link_add_one_symbol): Likewise. | |
1030 | ||
25499ac7 MR |
1031 | 2017-05-15 Maciej W. Rozycki <macro@imgtec.com> |
1032 | ||
1033 | * elfxx-mips.c (print_mips_ases): Handle MIPS16e2 ASE. | |
1034 | ||
73caa85d L |
1035 | 2017-05-12 H.J. Lu <hongjiu.lu@intel.com> |
1036 | ||
1037 | * elf32-i386.c (elf_i386_parse_gnu_properties): Merge | |
1038 | GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED | |
1039 | properties. | |
1040 | * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise. | |
1041 | ||
f2c29a16 L |
1042 | 2017-05-11 H.J. Lu <hongjiu.lu@intel.com> |
1043 | ||
1044 | * elf64-x86-64.c (elf_x86_64_link_hash_entry): Rename plt_bnd | |
1045 | to plt_second. | |
1046 | (elf_x86_64_link_hash_table): Rename plt_bnd/plt_bnd_eh_frame | |
1047 | to plt_second/plt_second_eh_frame. | |
1048 | (elf_x86_64_link_hash_newfunc): Updated. | |
1049 | (elf_x86_64_allocate_dynrelocs): Likewise. | |
1050 | (elf_x86_64_size_dynamic_sections): Likewise. | |
1051 | (elf_x86_64_relocate_section): Likewise. | |
1052 | (elf_x86_64_finish_dynamic_symbol): Likewise. | |
1053 | (elf_x86_64_finish_dynamic_sections): Likewise. | |
1054 | (elf_x86_64_plt_type): Rename plt_bnd to plt_second. | |
1055 | (elf_x86_64_get_synthetic_symtab): Updated. Also scan the | |
1056 | .plt.sec section. | |
1057 | (elf_backend_setup_gnu_properties): Updated. Create the | |
1058 | .plt.sec section instead of the .plt.sec section. | |
1059 | ||
dc2be3d2 L |
1060 | 2017-05-11 H.J. Lu <hongjiu.lu@intel.com> |
1061 | ||
1062 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Partially revert | |
1063 | commit 25070364b0ce33eed46aa5d78ebebbec6accec7e. | |
1064 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewse. | |
1065 | ||
db84b98a JM |
1066 | 2017-05-10 Jose E. Marchesi <jose.marchesi@oracle.com> |
1067 | ||
1068 | * elf64-sparc.c (elf64_sparc_set_reloc): New function. | |
1069 | (bfd_elf64_set_reloc): Define. | |
1070 | (elf64_sparc_write_relocs): Use `canon_reloc_count'. | |
1071 | ||
23186865 JM |
1072 | 2017-05-10 Jose E. Marchesi <jose.marchesi@oracle.com> |
1073 | ||
1074 | * targets.c (BFD_JUMP_TABLE_RELOCS): Add NAME##_set_reloc. | |
1075 | (struct bfd_target): New field _bfd_set_reloc. | |
1076 | * bfd.c (bfd_set_reloc): Call backend _set_bfd. | |
1077 | * reloc.c (_bfd_generic_set_reloc): New function. | |
1078 | * coffcode.h (coff_set_reloc): Define to _bfd_generic_set_reloc. | |
1079 | * nlm-target.h (nlm_set_reloc): Likewise. | |
1080 | * coff-rs6000.c (_bfd_xcoff_set_reloc): Likewise. | |
1081 | * aout-tic30.c (MY_set_reloc): Likewise. | |
1082 | * aout-target.h (MY_set_reloc): Likewise. | |
1083 | * elfxx-target.h (bfd_elfNN_set_reloc): Likewise. | |
1084 | * coff-alpha.c (_bfd_ecoff_set_reloc): Likewise. | |
1085 | * mach-o-target.c (bfd_mach_o_set_reloc): Likewise. | |
1086 | * vms-alpha.c (alpha_vms_set_reloc): Likewise. | |
1087 | * aout-adobe.c (aout_32_set_reloc): Likewise. | |
1088 | * bout.c (b_out_set_reloc): Likewise. | |
1089 | * coff-mips.c (_bfd_ecoff_set_reloc): Likewise. | |
1090 | * i386os9k.c (aout_32_set_reloc): Likewise. | |
1091 | * ieee.c (ieee_set_reloc): Likewise. | |
1092 | * oasys.c (oasys_set_reloc): Likewise. | |
1093 | * som.c (som_set_reloc): Likewise. | |
1094 | * versados.c (versados_set_reloc): Likewise. | |
1095 | * coff64-rs6000.c (rs6000_xcoff64_vec): Add | |
1096 | _bfd_generic_set_reloc. | |
1097 | (rs6000_xcoff64_aix_vec): LIkewise. | |
1098 | * libbfd.c (_bfd_norelocs_set_reloc): New function. | |
1099 | * libbfd-in.h: Prototype for _bfd_norelocs_set_reloc. | |
1100 | * i386msdos.c (msdos_set_reloc): Define to | |
1101 | _bfd_norelocs_set_reloc. | |
1102 | * elfcode.h (elf_set_reloc): Define. | |
1103 | * bfd-in2.h: Regenerated. | |
1104 | ||
aab82f4c L |
1105 | 2017-05-10 H.J. Lu <hongjiu.lu@intel.com> |
1106 | ||
1107 | PR ld/21481 | |
1108 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Use .plt.bnd | |
1109 | for IFUNC function address. | |
1110 | ||
53a346d8 CZ |
1111 | 2017-05-10 Claudiu Zissulescu <claziss@synopsys.com> |
1112 | ||
1113 | * elf32-arc.c (FEATURE_LIST_NAME): Define. | |
1114 | (CONFLICT_LIST): Likewise. | |
1115 | (opcode/arc-attrs.h): Include. | |
1116 | (arc_elf_print_private_bfd_data): Print OSABI v4 flag. | |
1117 | (arc_extract_features): New file. | |
1118 | (arc_stralloc): Likewise. | |
1119 | (arc_elf_merge_attributes): Likewise. | |
1120 | (arc_elf_merge_private_bfd_data): Use object attributes. | |
1121 | (bfd_arc_get_mach_from_attributes): New function. | |
1122 | (arc_elf_object_p): Use object attributes. | |
1123 | (arc_elf_final_write_processing): Likewise. | |
1124 | (elf32_arc_obj_attrs_arg_type): New function. | |
1125 | (elf32_arc_obj_attrs_handle_unknown): Likewise. | |
1126 | (elf32_arc_section_from_shdr): Likewise. | |
1127 | (elf_backend_obj_attrs_vendor): Define. | |
1128 | (elf_backend_obj_attrs_section): Likewise. | |
1129 | (elf_backend_obj_attrs_arg_type): Likewise. | |
1130 | (elf_backend_obj_attrs_section_type): Likewise. | |
1131 | (elf_backend_obj_attrs_handle_unknown): Likewise. | |
1132 | (elf_backend_section_from_shdr): Likewise. | |
1133 | ||
e645cf40 AG |
1134 | 2017-05-09 Andrew Goedhart <Andrewgoedhart@simplepowersolutions.co.za> |
1135 | ||
1136 | PR ld/21458 | |
1137 | * elf32-arm.c (elf32_arm_final_link_relocate): Set the bottom bit | |
1138 | of the value when resolving a R_ARM_THM_ALU_PREL_11_0 relocation | |
1139 | and the destination is a Thumb symbol. | |
1140 | ||
dd9e66ee L |
1141 | 2017-05-08 H.J. Lu <hongjiu.lu@intel.com> |
1142 | ||
1143 | * elf32-i386.c (elf_i386_get_synthetic_symtab): Add missing | |
1144 | initializer to silence GCC 4.2. | |
1145 | * lf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Likewise. | |
1146 | ||
38b12349 L |
1147 | 2017-05-08 H.J. Lu <hongjiu.lu@intel.com> |
1148 | ||
1149 | * elf64-x86-64.c (PLT_ENTRY_SIZE): Renamed to ... | |
1150 | (LAZY_PLT_ENTRY_SIZE): This. | |
1151 | (NON_LAZY_PLT_ENTRY_SIZE): New. | |
1152 | (elf_x86_64_plt0_entry): Renamed to ... | |
1153 | (elf_x86_64_lazy_plt0_entry): This. | |
1154 | (elf_x86_64_plt_entry): Renamed to ... | |
1155 | (elf_x86_64_lazy_plt_entry): This. | |
1156 | (elf_x86_64_bnd_plt0_entry): Renamed to ... | |
1157 | (elf_x86_64_lazy_bnd_plt0_entry): This. | |
1158 | (elf_x86_64_legacy_plt_entry): Removed. | |
1159 | (elf_x86_64_bnd_plt_entry): Renamed to ... | |
1160 | (elf_x86_64_lazy_bnd_plt_entry): This. | |
1161 | (elf_x86_64_legacy_plt2_entry): Renamed to ... | |
1162 | (elf_x86_64_non_lazy_plt_entry): This. | |
1163 | (elf_x86_64_bnd_plt2_entry): Renamed to ... | |
1164 | (elf_x86_64_non_lazy_bnd_plt_entry): This. | |
1165 | (elf_x86_64_eh_frame_plt): Renamed to ... | |
1166 | (elf_x86_64_eh_frame_lazy_plt): This. | |
1167 | (elf_x86_64_eh_frame_bnd_plt): Renamed to ... | |
1168 | (elf_x86_64_eh_frame_lazy_bnd_plt): This. | |
1169 | (elf_x86_64_eh_frame_plt_got): Renamed to ... | |
1170 | (elf_x86_64_eh_frame_non_lazy_plt): This. | |
1171 | (elf_x86_64_lazy_plt_layout): New. | |
1172 | (elf_x86_64_non_lazy_plt_layout): Likewise. | |
1173 | (elf_x86_64_plt_layout): Likewise. | |
1174 | (elf_x86_64_backend_data): Remove PLT layout information. Add | |
1175 | os for target system. | |
1176 | (GET_PLT_ENTRY_SIZE): Removed. | |
1177 | (elf_x86_64_lazy_plt): New. | |
1178 | (elf_x86_64_non_lazy_plt): Likewise. | |
1179 | (elf_x86_64_lazy_bnd_plt): Likewise. | |
1180 | (elf_x86_64_non_lazy_bnd_plt): Likewise. | |
1181 | (elf_x86-64_arch_bed): Updated. | |
1182 | (elf_x86_64_link_hash_table): Add plt, lazy_plt and non_lazy_plt. | |
1183 | (elf_x86_64_create_dynamic_sections): Removed. | |
1184 | (elf_x86_64_check_relocs): Don't check elf.dynobj. Don't call | |
1185 | _bfd_elf_create_ifunc_sections nor _bfd_elf_create_got_section. | |
1186 | (elf_x86-64_adjust_dynamic_symbol): Updated. | |
1187 | (elf_x86_64_allocate_dynrelocs): Updated. Pass 0 as PLT header | |
1188 | size to _bfd_elf_allocate_ifunc_dyn_relocs and don't allocate | |
1189 | size for PLT0 if there is no PLT0. Get plt_entry_size from | |
1190 | non_lazy_plt for non-lazy PLT entries. | |
1191 | (elf_x86_64_size_dynamic_sections): Updated. Get plt_entry_size | |
1192 | from non_lazy_plt for non-lazy PLT entries. | |
1193 | (elf_x86-64_relocate_section): Updated. Properly get PLT index | |
1194 | if there is no PLT0. | |
1195 | (elf_x86_64_finish_dynamic_symbol): Updated. Fill the first slot | |
1196 | in the PLT entry with generic PLT layout. Fill the non-lazy PLT | |
1197 | entries with non-lazy PLT layout. Don't fill the second and third | |
1198 | slots in the PLT entry if there is no PLT0. | |
1199 | (elf_x86_64_finish_dynamic_sections): Updated. Don't fill PLT0 | |
1200 | if there is no PLT0. Set sh_entsize on the .plt.got section. | |
1201 | (compare_relocs): New. | |
1202 | (elf_x86_64_plt_type): Likewise. | |
1203 | (elf_x86_64_plt): Likewise. | |
1204 | (elf_x86_64_nacl_plt): New. Forward declaration. | |
1205 | (elf_x86_64_get_plt_sym_val): Removed. | |
1206 | (elf_x86_64_get_synthetic_symtab): Rewrite to check PLT sections | |
1207 | against all dynamic relocations. | |
1208 | (elf_x86_64_link_setup_gnu_properties): New function. | |
1209 | (elf_backend_create_dynamic_sections): Updated. | |
1210 | (elf_backend_setup_gnu_properties): New. | |
1211 | (elf_x86_64_nacl_plt): New. | |
1212 | (elf_x86_64_nacl_arch_bed): Updated. | |
1213 | ||
f604c2a2 L |
1214 | 2017-05-08 H.J. Lu <hongjiu.lu@intel.com> |
1215 | ||
1216 | * elf32-i386.c (PLT_ENTRY_SIZE): Renamed to ... | |
1217 | (LAZY_PLT_ENTRY_SIZE): This. | |
1218 | (NON_LAZY_PLT_ENTRY_SIZE): New. | |
1219 | (elf_i386_plt0_entry): Renamed to ... | |
1220 | (elf_i386_lazy_plt0_entry): This. | |
1221 | (elf_i386_plt_entry): Renamed to ... | |
1222 | (elf_i386_lazy_plt_entry): This. | |
1223 | (elf_i386_pic_plt0_entry): Renamed to ... | |
1224 | (elf_i386_pic_lazy_plt0_entry): This. | |
1225 | (elf_i386_pic_plt_entry): Renamed to ... | |
1226 | (elf_i386_pic_lazy_plt_entry): This. | |
1227 | (elf_i386_got_plt_entry): Renamed to ... | |
1228 | (elf_i386_non_lazy_plt_entry): This. | |
1229 | (elf_i386_pic_got_plt_entry): Renamed to ... | |
1230 | (elf_i386_pic_non_lazy_plt_entry): This. | |
1231 | (elf_i386_eh_frame_plt): Renamed to ... | |
1232 | (elf_i386_eh_frame_lazy_plt): This. | |
1233 | (elf_i386_eh_frame_plt_got): Renamed to ... | |
1234 | (elf_i386_eh_frame_non_lazy_plt): This. | |
1235 | (elf_i386_plt_layout): Renamed to ... | |
1236 | (elf_i386_lazy_plt_layout): This. Remove eh_frame_plt_got and | |
1237 | eh_frame_plt_got_size. | |
1238 | (elf_i386_non_lazy_plt_layout): New. | |
1239 | (elf_i386_plt_layout): Likewise. | |
1240 | (elf_i386_non_lazy_plt): Likewise. | |
1241 | (GET_PLT_ENTRY_SIZE): Removed. | |
1242 | (elf_i386_plt): Renamed to ... | |
1243 | (elf_i386_lazy_plt): This. | |
1244 | (elf_i386_backend_data): Remove plt. Rename is_vxworks to os. | |
1245 | (elf_i386_arch_bed): Updated. | |
1246 | (elf_i386_link_hash_table): Add plt, lazy_plt and non_lazy_plt. | |
1247 | (elf_i386_create_dynamic_sections): Removed. | |
1248 | (elf_i386_check_relocs): Don't check elf.dynobj. Don't call | |
1249 | _bfd_elf_create_ifunc_sections nor _bfd_elf_create_got_section. | |
1250 | (elf_i386_adjust_dynamic_symbol): Updated. | |
1251 | (elf_i386_allocate_dynrelocs): Updated. Pass 0 as PLT header | |
1252 | size to _bfd_elf_allocate_ifunc_dyn_relocs and don't allocate | |
1253 | size for PLT0 if there is no PLT0. | |
1254 | (elf_i386_size_dynamic_sections): Updated. Check whether GOT | |
1255 | output section is discarded only if GOT isn't empty. | |
1256 | (elf_i386_relocate_section): Updated. Properly get PLT index | |
1257 | if there is no PLT0. | |
1258 | (elf_i386_finish_dynamic_symbol): Updated. Don't fill the | |
1259 | second and third slots in the PLT entry if there is no PLT0. | |
1260 | (elf_i386_finish_dynamic_sections): Updated. Don't fill PLT0 | |
1261 | if there is no PLT0. Set sh_entsize on the .plt.got section. | |
1262 | (elf_i386_nacl_plt): Forward declaration. | |
1263 | (elf_i386_get_plt_sym_val): Removed. | |
1264 | (elf_i386_get_synthetic_symtab): Rewrite to check PLT sections | |
1265 | against all dynamic relocations. | |
1266 | (elf_i386_link_setup_gnu_properties): New function. | |
1267 | (elf_backend_create_dynamic_sections): Updated. | |
1268 | (elf_backend_setup_gnu_properties): New. | |
1269 | (elf_i386_nacl_plt): Updated. | |
1270 | (elf_i386_nacl_arch_bed): Likewise. | |
1271 | (elf_i386_vxworks_arch_bed): Likewise. | |
1272 | ||
046734ff TP |
1273 | 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com> |
1274 | ||
1275 | * elflink.c (elf_output_implib): Remove executable flag from import | |
1276 | library bfd. | |
1277 | * elf32-arm.c (elf32_arm_filter_implib_symbols): Assert that the import | |
1278 | library is a relocatable object file. | |
1279 | ||
b660e9eb SKS |
1280 | 2017-05-01 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> |
1281 | ||
1282 | PR ld/21404 | |
1283 | * elf32-avr.c (avr_should_move_sym): New function. | |
1284 | (avr_should_reduce_sym_size): Likewise. | |
1285 | (avr_should_increase_sym_size): Likewise. | |
1286 | (elf32_avr_relax_delete_bytes): Adjust symbol values | |
1287 | and sizes by calling new functions. | |
1288 | ||
763a5fa4 PD |
1289 | 2017-05-01 Palmer Dabbelt <palmer@dabbelt.com> |
1290 | ||
1291 | * config.bfd (riscv32-*): Enable rv64. | |
1292 | ||
73ec947d AM |
1293 | 2017-05-02 Alan Modra <amodra@gmail.com> |
1294 | ||
1295 | PR 21384 | |
1296 | * elflink.c (bfd_elf_link_mark_dynamic_symbol): Test h->non_elf | |
1297 | rather than h->root.type == bfd_link_hash_new. | |
1298 | (bfd_elf_record_link_assignment): Similarly, call | |
1299 | bfd_elf_link_mark_dynamic_symbol when h->non_elf. | |
1300 | ||
a941291c AM |
1301 | 2017-04-29 Alan Modra <amodra@gmail.com> |
1302 | ||
1303 | PR 21432 | |
1304 | * reloc.c (reloc_offset_in_range): New function. | |
1305 | (bfd_perform_relocation, bfd_install_relocation): Use it. | |
1306 | (_bfd_final_link_relocate): Likewise. | |
1307 | ||
750eaa47 L |
1308 | 2017-04-28 H.J. Lu <hongjiu.lu@intel.com> |
1309 | ||
1310 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Check plt_got | |
1311 | before using .plt.got. | |
1312 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise. | |
1313 | ||
5b66fac4 L |
1314 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
1315 | ||
1316 | * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Use "=" | |
1317 | instead of "+=" to update 0. | |
1318 | ||
de9a3c42 L |
1319 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
1320 | ||
1321 | * elf32-i386.c (elf_i386_create_dynamic_sections): Create the | |
1322 | .plt.got section here. | |
1323 | (elf_i386_check_relocs): Don't create the .plt.got section. | |
1324 | * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Create | |
1325 | the .plt.got and .plt.bnd sections here. | |
1326 | (elf_x86_64_check_relocs): Don't create the .plt.got nor | |
1327 | .plt.bnd sections. | |
1328 | ||
da3d25af L |
1329 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
1330 | ||
1331 | * elf64-x86-64.c (elf_x86_64_link_hash_entry): Remove | |
1332 | has_bnd_reloc. | |
1333 | (elf_x86_64_link_hash_newfunc): Don't clear has_bnd_reloc. | |
1334 | (elf_x86_64_copy_indirect_symbol): Don't copy has_bnd_reloc. | |
1335 | (elf_x86_64_check_relocs): Don't set has_bnd_reloc. | |
1336 | (elf_x86_64_finish_dynamic_symbol): Check bndplt instead of | |
1337 | has_bnd_reloc. | |
1338 | ||
fba37edd L |
1339 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
1340 | ||
1341 | * elf-bfd.h (elf_backend_data): Change setup_gnu_properties | |
1342 | to return bfd *. | |
1343 | (_bfd_elf_link_setup_gnu_properties): Return bfd *. | |
1344 | * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Return | |
1345 | the first relocatable ELF input with GNU properties. | |
1346 | ||
1f78f649 L |
1347 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
1348 | ||
1349 | * elf32-i386.c (elf_i386_finish_dynamic_sections): Simplify | |
1350 | VxWorks for non-PIC. | |
1351 | ||
76c20d54 AM |
1352 | 2017-04-27 Alan Modra <amodra@gmail.com> |
1353 | ||
1354 | * elf-bfd.h (struct elf_backend_data): Make asection param of | |
1355 | elf_backend_eh_frame_address_size const. | |
1356 | (_bfd_elf_eh_frame_address_size): Likewise. | |
1357 | * elf32-m32c.c (_bfd_m32c_elf_eh_frame_address_size): Likewise. | |
1358 | * elf32-msp430.c (elf32_msp430_eh_frame_address_size): Likewise. | |
1359 | * elfxx-mips.c (_bfd_mips_elf_eh_frame_address_size): Likewise. | |
1360 | * elfxx-mips.h (_bfd_mips_elf_eh_frame_address_size): Likewise. | |
1361 | * elf-eh-frame.c (_bfd_elf_eh_frame_address_size): Likewise. | |
1362 | (next_cie_fde_offset): Constify params. | |
1363 | (offset_adjust, adjust_eh_frame_local_symbols): Likewise. | |
1364 | ||
d7153c4a AM |
1365 | 2017-04-27 Alan Modra <amodra@gmail.com> |
1366 | ||
1367 | * elf-bfd.h (struct eh_cie_fde): Add aug_str_len and aug_data_len. | |
1368 | (_bfd_elf_adjust_eh_frame_global_symbol): Declare. | |
1369 | * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Set aug_str_len and | |
1370 | aug_data_len. | |
1371 | (offset_adjust): New function. | |
1372 | (_bfd_elf_adjust_eh_frame_global_symbol): Likewise. | |
1373 | (adjust_eh_frame_local_symbols): Likewise. | |
1374 | (_bfd_elf_discard_section_eh_frame): Call adjust_eh_frame_local_symbols | |
1375 | after changing anything. Return true if anything changed. | |
1376 | * elflink.c (bfd_elf_discard_info): If .eh_frame changed, call | |
1377 | _bfd_elf_adjust_eh_frame_global_symbol for globals. | |
1378 | ||
641338d8 AM |
1379 | 2017-04-27 Alan Modra <amodra@gmail.com> |
1380 | ||
1381 | * elflink.c (_bfd_elf_link_hash_hide_symbol): Clear dynstr_index | |
1382 | when force_local. | |
1383 | ||
21d68fcd AM |
1384 | 2017-04-27 Alan Modra <amodra@gmail.com> |
1385 | ||
1386 | * elf32-ppc.c (UNDEFWEAK_NO_DYNAMIC_RELOC): Define. | |
1387 | (ppc_elf_select_plt_layout, ppc_elf_tls_setup): Use it. | |
1388 | (ppc_elf_adjust_dynamic_symbol, allocate_dynrelocs): Likewise. | |
1389 | (ppc_elf_relocate_section): Likewise. Delete silly optimisation | |
1390 | for undef and undefweak dyn_relocs. | |
1391 | * elf64-ppc.c (UNDEFWEAK_NO_DYNAMIC_RELOC): Define. | |
1392 | (ppc64_elf_adjust_dynamic_symbol, ppc64_elf_tls_setup): Use it. | |
1393 | (allocate_got, allocate_dynrelocs): Likewise. | |
1394 | (ppc64_elf_relocate_section): Likewise. | |
1395 | ||
97d343d4 L |
1396 | 2017-04-26 H.J. Lu <hongjiu.lu@intel.com> |
1397 | ||
1398 | * elf32-i386.c (elf_i386_size_dynamic_sections): Alwasys add | |
1399 | DT_PLTRELSZ, DT_PLTREL and DT_JMPREL for .rel.plt section. | |
1400 | * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Alwasys | |
1401 | add DT_PLTRELSZ, DT_PLTREL and DT_JMPREL for .rela.plt section. | |
1402 | ||
04b31182 NC |
1403 | 2017-04-26 Nick Clifton <nickc@redhat.com> |
1404 | ||
1405 | PR binutils/21434 | |
1406 | * reloc.c (bfd_perform_relocation): Check for a negative address | |
1407 | in the reloc. | |
1408 | ||
23ec1e32 MR |
1409 | 2017-04-26 Maciej W. Rozycki <macro@imgtec.com> |
1410 | ||
1411 | PR ld/21334 | |
1412 | * elf-bfd.h (elf_backend_data): Add `always_renumber_dynsyms' | |
1413 | member. | |
1414 | * elfxx-target.h [!elf_backend_always_renumber_dynsyms] | |
1415 | (elf_backend_always_renumber_dynsyms): Define. | |
1416 | (elfNN_bed): Initialize `always_renumber_dynsyms' member. | |
1417 | * elfxx-mips.h (elf_backend_always_renumber_dynsyms): Define. | |
1418 | * elflink.c (bfd_elf_size_dynamic_sections): Also call | |
1419 | `_bfd_elf_link_renumber_dynsyms' if the backend has requested | |
1420 | it. | |
1421 | (bfd_elf_size_dynsym_hash_dynstr): Likewise. | |
1422 | ||
c46cec3a MR |
1423 | 2017-04-26 Maciej W. Rozycki <macro@imgtec.com> |
1424 | ||
1425 | * elflink.c (bfd_elf_size_dynamic_sections): Only call | |
1426 | `_bfd_elf_link_renumber_dynsyms' after section GC if dynamic | |
1427 | sections have been created. | |
1428 | ||
e63d1232 NC |
1429 | 2017-04-26 Nick Clifton <nickc@redhat.com> |
1430 | ||
1431 | PR binutils/21431 | |
1432 | * compress.c (bfd_init_section_compress_status): Check the return | |
1433 | value from bfd_malloc. | |
1434 | ||
9e9821dd L |
1435 | 2017-04-24 H.J. Lu <hongjiu.lu@intel.com> |
1436 | ||
1437 | * elf64-x86-64.c (elf_x86_64_link_hash_entry): Add | |
1438 | no_finish_dynamic_symbol. | |
1439 | (elf_x86_64_link_hash_newfunc): Set no_finish_dynamic_symbol to | |
1440 | 0. | |
1441 | (elf_x86_64_allocate_dynrelocs): If a symbol isn't undefined | |
1442 | weak symbol, don't make it dynamic. | |
1443 | (elf_x86_64_relocate_section): If a symbol isn't dynamic in PIC, | |
1444 | set no_finish_dynamic_symbol and generate R_X86_64_RELATIVE | |
1445 | relocation for GOT reference. | |
1446 | (elf_x86_64_finish_dynamic_symbol): Abort if | |
1447 | no_finish_dynamic_symbol isn't 0. | |
1448 | ||
0dc9a308 L |
1449 | 2017-04-24 H.J. Lu <hongjiu.lu@intel.com> |
1450 | ||
1451 | PR ld/21402 | |
1452 | * elf32-i386.c (elf_i386_allocate_dynrelocs): If a symbol isn't | |
1453 | undefined weak symbol, don't make it dynamic. | |
1454 | (elf_i386_relocate_section): If a symbol isn't dynamic in PIC, | |
1455 | set no_finish_dynamic_symbol and generate R_386_RELATIVE | |
1456 | relocation for R_386_GOT32. | |
1457 | ||
1587442d L |
1458 | 2017-04-24 H.J. Lu <hongjiu.lu@intel.com> |
1459 | ||
1460 | PR ld/21425 | |
1461 | * elf32-i386.c (ELF_MAXPAGESIZE): Set to 0x1000 for VxWorks. | |
1462 | ||
7eacd66b AM |
1463 | 2017-04-23 Alan Modra <amodra@gmail.com> |
1464 | ||
1465 | PR 21414 | |
1466 | * section.c (GLOBAL_SYM_INIT): Make available in bfd.h. | |
1467 | * elf.c (lcomm_sym): New. | |
1468 | (_bfd_elf_large_com_section): Use lcomm_sym section symbol. | |
1469 | * bfd-in2.h: Regenerate. | |
1470 | ||
bce964aa AM |
1471 | 2017-04-23 Alan Modra <amodra@gmail.com> |
1472 | ||
1473 | PR 21412 | |
1474 | * elf-bfd.h (struct elf_backend_data <get_reloc_section>): Change | |
1475 | parameters and comment. | |
1476 | (_bfd_elf_get_reloc_section): Delete. | |
1477 | (_bfd_elf_plt_get_reloc_section): Declare. | |
1478 | * elf.c (_bfd_elf_plt_get_reloc_section, elf_get_reloc_section): | |
1479 | New functions. Don't blindly skip over assumed .rel/.rela prefix. | |
1480 | Extracted from.. | |
1481 | (_bfd_elf_get_reloc_section): ..here. Delete. | |
1482 | (assign_section_numbers): Call elf_get_reloc_section. | |
1483 | * elf64-ppc.c (elf_backend_get_reloc_section): Define. | |
1484 | * elfxx-target.h (elf_backend_get_reloc_section): Update. | |
1485 | ||
97e83a10 AM |
1486 | 2017-04-23 Alan Modra <amodra@gmail.com> |
1487 | ||
1488 | PR 21409 | |
1489 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Don't segfault when | |
1490 | no symbols. | |
1491 | ||
e133d005 L |
1492 | 2017-04-21 H.J. Lu <hongjiu.lu@intel.com> |
1493 | ||
1494 | PR ld/21402 | |
1495 | * elf32-i386.c (elf_i386_link_hash_entry): Add | |
1496 | no_finish_dynamic_symbol. | |
1497 | (elf_i386_link_hash_newfunc): Set no_finish_dynamic_symbol to 0. | |
1498 | (elf_i386_allocate_dynrelocs): If a symbol isn't undefined weak | |
1499 | symbol, don't make it dynamic in PIE. | |
1500 | (elf_i386_relocate_section): If a symbol isn't dynamic in PIE, | |
1501 | set no_finish_dynamic_symbol and generate R_386_RELATIVE | |
1502 | relocation for R_386_GOT32 | |
1503 | (elf_i386_finish_dynamic_symbol): Abort if no_finish_dynamic_symbol | |
1504 | isn't 0. | |
1505 | ||
3c5fce9b L |
1506 | 2017-04-21 H.J. Lu <hongjiu.lu@intel.com> |
1507 | ||
1508 | PR ld/19617 | |
1509 | PR ld/21086 | |
1510 | * elflink.c (elf_link_add_object_symbols): Require | |
1511 | --no-dynamic-linker with -E/--dynamic-list when creating | |
1512 | dynamic sections. | |
1513 | ||
0fad2956 MR |
1514 | 2017-04-20 Maciej W. Rozycki <macro@imgtec.com> |
1515 | ||
1516 | * elflink.c (_bfd_elf_symbol_refs_local_p): Always return TRUE | |
1517 | if forced local. | |
1518 | ||
64575f78 MR |
1519 | 2017-04-20 Maciej W. Rozycki <macro@imgtec.com> |
1520 | ||
1521 | * elfxx-mips.c (_bfd_mips_elf_final_link): Reorder comment about | |
1522 | dynamic symbol sorting. | |
1523 | ||
59fa66c5 L |
1524 | 2017-04-20 H.J. Lu <hongjiu.lu@intel.com> |
1525 | ||
1526 | PR ld/21382 | |
1527 | * elflink.c (elf_link_add_object_symbols): Preserve | |
1528 | dynamic_ref_after_ir_def when restoring the symbol table for | |
1529 | unneeded dynamic object. | |
1530 | ||
e492d2f8 L |
1531 | 2017-04-19 H.J. Lu <hongjiu.lu@intel.com> |
1532 | ||
1533 | PR ld/21401 | |
1534 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Don't abort | |
1535 | on on undefined IFUNC symbol in the second PLT. | |
1536 | ||
10169134 WAF |
1537 | 2017-04-19 Wedson Almeida Filho <wedsonaf@gmail.com> |
1538 | ||
1539 | * peXXigen.c (pe_print_reloc): Correct chunk_end. | |
1540 | ||
954b63d4 AM |
1541 | 2017-04-19 Alan Modra <amodra@gmail.com> |
1542 | ||
1543 | * elflink.c (_bfd_elf_adjust_dynamic_symbol): Hide undefweak | |
1544 | or make dynamic for info->dynamic_undefined_weak 0 and 1. | |
1545 | * elf32-ppc.c:Formatting. | |
1546 | (ensure_undefweak_dynamic): Don't make dynamic when | |
1547 | info->dynamic_undefined_weak is zero. | |
1548 | (allocate_dynrelocs): Discard undefweak dyn_relocs for | |
1549 | info->dynamic_undefined_weak. Discard undef dyn_relocs when | |
1550 | not default visibility. Discard undef and undefweak | |
1551 | dyn_relocs earlier. | |
1552 | (ppc_elf_relocate_section): Adjust to suit. | |
1553 | * elf64-ppc.c: Formatting. | |
1554 | (ensure_undefweak_dynamic): Don't make dynamic when | |
1555 | info->dynamic_undefined_weak is zero. | |
1556 | (allocate_dynrelocs): Discard undefweak dyn_relocs for | |
1557 | info->dynamic_undefined_weak. Discard them earlier. | |
1558 | ||
e6699019 L |
1559 | 2017-04-17 H.J. Lu <hongjiu.lu@intel.com> |
1560 | ||
1561 | PR ld/21389 | |
1562 | * elflink.c (bfd_elf_size_dynamic_sections): Get soname index | |
1563 | before generating the version definition section. | |
1564 | ||
c5d37467 AM |
1565 | 2017-04-17 Alan Modra <amodra@gmail.com> |
1566 | ||
1567 | * elflink.c (_bfd_elf_merge_symbol): Undo dynamic linking | |
1568 | state when a regular object file defines a symbol with | |
1569 | incompatible type to that defined by an earlier shared lib. | |
1570 | ||
63a5468a AM |
1571 | 2017-04-13 Alan Modra <amodra@gmail.com> |
1572 | ||
1573 | * coffcode.h: Wrap some overly long _bfd_error_handler args. | |
1574 | * elf.c: Likewise. | |
1575 | * elf32-arm.c: Likewise. | |
1576 | * elf32-i386.c: Likewise. | |
1577 | * elf32-mep.c: Likewise. | |
1578 | * elf64-ia64-vms.c: Likewise. | |
1579 | * elf64-x86-64.c: Likewise. | |
1580 | * elflink.c: Likewise. | |
1581 | * elfnn-ia64.c: Likewise. | |
1582 | * elfxx-mips.c: Likewise. | |
1583 | ||
dae82561 AM |
1584 | 2017-04-13 Alan Modra <amodra@gmail.com> |
1585 | ||
1586 | * aoutx.h: Use %B and %A in error messages throughout file. | |
1587 | * aout-cris.c: Likewise. | |
1588 | * archive.c: Likewise. | |
1589 | * binary.c: Likewise. | |
1590 | * coff-rs6000.c: Likewise. | |
1591 | * coff-tic4x.c: Likewise. | |
1592 | * coffcode.h: Likewise. | |
1593 | * coffgen.c: Likewise. | |
1594 | * cofflink.c: Likewise. | |
1595 | * coffswap.h: Likewise. | |
1596 | * cpu-arm.c: Likewise. | |
1597 | * elf-eh-frame.c: Likewise. | |
1598 | * elf-m10300.c: Likewise. | |
1599 | * elf.c: Likewise. | |
1600 | * elf32-arc.c: Likewise. | |
1601 | * elf32-arm.c: Likewise. | |
1602 | * elf32-bfin.c: Likewise. | |
1603 | * elf32-frv.c: Likewise. | |
1604 | * elf32-iq2000.c: Likewise. | |
1605 | * elf32-m32c.c: Likewise. | |
1606 | * elf32-microblaze.c: Likewise. | |
1607 | * elf32-nds32.c: Likewise. | |
1608 | * elf32-rl78.c: Likewise. | |
1609 | * elf32-rx.c: Likewise. | |
1610 | * elf32-score.c: Likewise. | |
1611 | * elf32-score7.c: Likewise. | |
1612 | * elf32-sh64.c: Likewise. | |
1613 | * elf32-v850.c: Likewise. | |
1614 | * elf32-vax.c: Likewise. | |
1615 | * elf32-visium.c: Likewise. | |
1616 | * elf64-ia64-vms.c: Likewise. | |
1617 | * elf64-mmix.c: Likewise. | |
1618 | * elf64-sh64.c: Likewise. | |
1619 | * elfcode.h: Likewise. | |
1620 | * elfnn-aarch64.c: Likewise. | |
1621 | * elfnn-ia64.c: Likewise. | |
1622 | * elfxx-mips.c: Likewise. | |
1623 | * hpux-core.c: Likewise. | |
1624 | * ieee.c: Likewise. | |
1625 | * ihex.c: Likewise. | |
1626 | * linker.c: Likewise. | |
1627 | * merge.c: Likewise. | |
1628 | * mmo.c: Likewise. | |
1629 | * oasys.c: Likewise. | |
1630 | * pdp11.c: Likewise. | |
1631 | * peXXigen.c: Likewise. | |
1632 | * rs6000-core.c: Likewise. | |
1633 | * vms-alpha.c: Likewise. | |
1634 | * xcofflink.c: Likewise. | |
1635 | ||
c08bb8dd AM |
1636 | 2017-04-13 Alan Modra <amodra@gmail.com> |
1637 | ||
1638 | * bfd.c (PRINT_TYPE): Define. | |
1639 | (_doprnt): New function. | |
1640 | (error_handler_internal): Use _doprnt. | |
1641 | * coff-arm.c: Put %A and %B arguments to _bfd_error_handler | |
1642 | calls in their natural order, throughout file. | |
1643 | * coff-mcore.c: Likewise. | |
1644 | * coff-ppc.c: Likewise. | |
1645 | * coff-tic80.c: Likewise. | |
1646 | * cofflink.c: Likewise. | |
1647 | * elf-s390-common.c: Likewise. | |
1648 | * elf.c: Likewise. | |
1649 | * elf32-arm.c: Likewise. | |
1650 | * elf32-i386.c: Likewise. | |
1651 | * elf32-m32r.c: Likewise. | |
1652 | * elf32-msp430.c: Likewise. | |
1653 | * elf32-spu.c: Likewise. | |
1654 | * elf64-ia64-vms.c: Likewise. | |
1655 | * elf64-sparc.c: Likewise. | |
1656 | * elf64-x86-64.c: Likewise. | |
1657 | * elflink.c: Likewise. | |
1658 | * elfnn-aarch64.c: Likewise. | |
1659 | * elfnn-ia64.c: Likewise. | |
1660 | * elfxx-mips.c: Likewise. | |
1661 | ||
10463f39 AM |
1662 | 2017-04-13 Alan Modra <amodra@gmail.com> |
1663 | ||
1664 | * elf32-arm.c (arm_type_of_stub): Supply missing args to "long | |
1665 | branch veneers" error. Fix double space and format message. | |
1666 | * elf32-avr.c (avr_add_stub): Do not pass NULL as %B arg. | |
1667 | * elf64-ppc.c (tocsave_find): Supply missing %B arg. | |
1668 | ||
4af8774e AM |
1669 | 2017-04-13 Alan Modra <amodra@gmail.com> |
1670 | ||
1671 | * bfd-in2.h: Regenerate. | |
1672 | ||
e4097f5e L |
1673 | 2017-04-11 H.J. Lu <hongjiu.lu@intel.com> |
1674 | ||
1675 | * elf-properties.c (_bfd_elf_parse_gnu_properties): Remove the | |
1676 | extra `\n' in warning/error messages. | |
1677 | * elf32-i386.c (elf_i386_parse_gnu_properties): Likewise. | |
1678 | * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise. | |
1679 | ||
537616aa L |
1680 | 2017-04-11 H.J. Lu <hongjiu.lu@intel.com> |
1681 | ||
1682 | * elf-properties.c (_bfd_elf_parse_gnu_properties): Ignore | |
1683 | processor-specific properties with generic ELF target vector. | |
1684 | ||
bb1dd176 QZ |
1685 | 2017-04-10 Qing Zhao <qing.zhao@oracle.com> |
1686 | ||
1687 | * elf32-sparc.c (elf_backend_fixup_symbol): New. | |
1688 | * elf64-sparc.c (elf_backend_fixup_symbol): New. | |
1689 | * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New. | |
1690 | (_bfd_sparc_elf_link_hash_entry): Add has_got_reloc and | |
1691 | has_non_got_reloc. | |
1692 | (link_hash_newfunc): Initialize has_got_reloc and | |
1693 | has_non_got_reloc. | |
1694 | (_bfd_sparc_elf_size_dynamic_sections): Set interp to .interp | |
1695 | section. | |
1696 | (_bfd_sparc_elf_copy_indirect_symbol): Copy has_got_reloc and | |
1697 | has_non_got_reloc. | |
1698 | (_bfd_sparc_elf_check_relocs): Set has_got_reloc and | |
1699 | has_non_got_reloc. | |
1700 | (_bfd_sparc_elf_fixup_symbol): New function. | |
1701 | (allocate_dynrelocs): Don't allocate space for dynamic | |
1702 | relocations and discard relocations against resolved undefined | |
1703 | weak symbols in executable. Don't make resolved undefined weak | |
1704 | symbols in executable dynamic. Keep dynamic non-GOT/non-PLT | |
1705 | relocation against undefined weak symbols in PIE. | |
1706 | (_bfd_sparc_elf_relocate_section): Don't generate dynamic | |
1707 | relocations against resolved undefined weak symbols in PIE | |
1708 | (_bfd_sparc_elf_finish_dynamic_symbol): Keep PLT/GOT entries | |
1709 | without ynamic PLT/GOT relocations for resolved undefined weak | |
1710 | symbols. | |
1711 | Don't generate dynamic relocation against resolved undefined | |
1712 | weak symbol in executable. | |
1713 | (pie_finish_undefweak_symbol): New function. | |
1714 | (_bfd_sparc_elf_finish_dynamic_sections): Call | |
1715 | pie_finish_undefweak_symbol on all symbols in PIE. | |
1716 | * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add interp. | |
1717 | (_bfd_sparc_elf_fixup_symbol): New function. | |
1718 | ||
d236cfd4 NC |
1719 | 2017-04-10 Nick Clifton <nickc@redhat.com> |
1720 | ||
1721 | * config.bfd: Remove ns32k from obsolete list. | |
1722 | ||
6f9dbcd4 AM |
1723 | 2017-04-10 Alan Modra <amodra@gmail.com> |
1724 | ||
1725 | PR 21287 | |
1726 | * elf.c (special_sections_f): Match .fini_array and .fini_array.*. | |
1727 | (special_sections_i): Likewise for .init_array. | |
1728 | (special_sections_p): Likewise for .preinit_array. | |
1729 | ||
8170f769 L |
1730 | 2017-04-07 H.J. Lu <hongjiu.lu@intel.com> |
1731 | ||
1732 | PR ld/19579 | |
1733 | PR ld/21306 | |
1734 | * elf32-s390.c (elf_s390_finish_dynamic_symbol): Check | |
1735 | ELF_COMMON_DEF_P for common symbols. | |
1736 | * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise. | |
1737 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. | |
1738 | * elflink.c (_bfd_elf_merge_symbol): Revert commits | |
1739 | 202ac193bbbecc96a4978d1ac3d17148253f9b01 and | |
1740 | 07492f668d2173da7a2bda3707ff0985e0f460b6. | |
1741 | ||
49f4617b PA |
1742 | 2017-04-07 Pedro Alves <palves@redhat.com> |
1743 | ||
1744 | * opncls.c (bfd_get_debug_link_info): Rename to... | |
1745 | (bfd_get_debug_link_info_1): ... this. Change type of second | |
1746 | parameter to void pointer. Adjust. | |
1747 | (bfd_get_debug_link_info): Reimplement on top of | |
1748 | bfd_get_debug_link_info_1. | |
1749 | (separate_debug_file_exists, separate_alt_debug_file_exists): | |
1750 | Change type of second parameter to void pointer. Adjust. | |
1751 | (get_func_type, check_func_type): Change type of second parameter | |
1752 | to void pointer. | |
1753 | (find_separate_debug_file): Add 'func_data' parameter. Pass it to | |
1754 | the callback functions instead of passing the address of a local. | |
1755 | (bfd_follow_gnu_debuglink): Pass address of unsigned long local to | |
1756 | find_separate_debug_file. | |
1757 | (get_alt_debug_link_info_shim): Change type of second parameter to | |
1758 | void pointer. Adjust. | |
1759 | (bfd_follow_gnu_debugaltlink): Adjust to pass NULL to | |
1760 | find_separate_debug_file. | |
1761 | (get_build_id_name, bfd_boolean check_build_id_file): Change type | |
1762 | of second parameter to void pointer. Adjust. | |
1763 | (bfd_follow_build_id_debuglink): Pass address of bfd_build_id | |
1764 | pointer local to find_separate_debug_file. | |
1765 | ||
1766 | 2017-04-07 Tristan Gingold <gingold@gingold-Precision-7510> | |
1fd6d111 TG |
1767 | |
1768 | * coffgen.c (_bfd_coff_gc_mark_hook): Handle PE weak | |
1769 | external symbols with a definition. | |
1770 | (_bfd_coff_gc_mark_extra_sections): Fix typo. | |
1771 | ||
86abf93a AM |
1772 | 2017-04-07 Alan Modra <amodra@gmail.com> |
1773 | ||
1774 | * po/SRC-POTFILES.in: Regenerate. | |
1775 | ||
8dea77f0 AM |
1776 | 2017-04-05 Alan Modra <amodra@gmail.com> |
1777 | ||
1778 | * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Support ELFv2 PLT | |
1779 | reference counting. | |
1780 | ||
477bdd39 JT |
1781 | 2017-04-02 Jon Turney <jon.turney@dronecode.org.uk> |
1782 | ||
1783 | (_bfd_XXi_swap_aouthdr_out): For clarity, use defines rather than | |
1784 | numbers for DataDirectory entry indicies passed to | |
1785 | add_data_entry(). | |
1786 | ||
a91e1603 L |
1787 | 2017-04-04 H.J. Lu <hongjiu.lu@intel.com> |
1788 | ||
1789 | * elf.c (get_program_header_size): Add a GNU_MBIND segment for | |
1790 | each GNU_MBIND section and align GNU_MBIND section to page size. | |
1791 | (_bfd_elf_map_sections_to_segments): Create a GNU_MBIND | |
1792 | segment for each GNU_MBIND section. | |
1793 | (_bfd_elf_init_private_section_data): Copy sh_info from input | |
1794 | for GNU_MBIND section. | |
1795 | ||
b5292032 PD |
1796 | 2017-04-03 Palmer Dabbelt <palmer@dabbelt.com> |
1797 | ||
1798 | * elfnn-riscv.c (GP_NAME): Delete. | |
1799 | (riscv_global_pointer_value): Change GP_NAME to RISCV_GP_SYMBOL. | |
1800 | (_bfd_riscv_relax_lui): Likewise. | |
1801 | ||
ad32986f NC |
1802 | 2017-04-04 Nick Clifton <nickc@redhat.com> |
1803 | ||
1804 | PR binutils/21342 | |
1805 | * elflink.c (_bfd_elf_define_linkage_sym): Prevent null pointer | |
1806 | dereference. | |
1807 | (bfd_elf_final_link): Only initialize the extended symbol index | |
1808 | section if there are extended symbol tables to list. | |
1809 | ||
46bed679 L |
1810 | 2017-04-03 H.J. Lu <hongjiu.lu@intel.com> |
1811 | ||
1812 | * Makefile.am (BFD32_BACKENDS): Add elf-properties.lo. | |
1813 | (BFD32_BACKENDS_CFILES): Add elf-properties.c. | |
1814 | * configure.ac (elf): Add elf-properties.lo. | |
1815 | * Makefile.in: Regenerated. | |
1816 | * configure: Likewise. | |
1817 | * elf-bfd.h (elf_property_kind): New. | |
1818 | (elf_property): Likewise. | |
1819 | (elf_property_list): Likewise. | |
1820 | (elf_properties): Likewise. | |
1821 | (_bfd_elf_parse_gnu_properties): Likewise. | |
1822 | (_bfd_elf_get_property): Likewise. | |
1823 | (_bfd_elf_link_setup_gnu_properties): Likewise. | |
1824 | (elf_backend_data): Add parse_gnu_properties, merge_gnu_properties | |
1825 | and setup_gnu_properties. | |
1826 | (elf_obj_tdata): Add properties. | |
1827 | * elf-properties.c: New file. | |
1828 | * elf32-i386.c (elf_i386_parse_gnu_properties): New. | |
1829 | (elf_i386_merge_gnu_properties): Likewise. | |
1830 | (elf_backend_parse_gnu_properties): Likewise. | |
1831 | (elf_backend_merge_gnu_properties): Likewise. | |
1832 | * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise. | |
1833 | (elf_x86_64_merge_gnu_properties): Likewise. | |
1834 | (elf_backend_parse_gnu_properties): Likewise. | |
1835 | (elf_backend_merge_gnu_properties): Likewise. | |
1836 | * elfxx-target.h (elf_backend_merge_gnu_properties): Likewise. | |
1837 | (elf_backend_parse_gnu_properties): Likewise. | |
1838 | (elf_backend_setup_gnu_properties): Likewise. | |
1839 | (elfNN_bed): Add elf_backend_parse_gnu_properties, | |
1840 | elf_backend_merge_gnu_properties and | |
1841 | elf_backend_setup_gnu_properties. | |
1842 | ||
f96bd6c2 PC |
1843 | 2017-03-30 Pip Cet <pipcet@gmail.com> |
1844 | ||
1845 | * elf32-wasm32.c: Add relocation code, two relocs. | |
1846 | * reloc.c: Add wasm32 relocations. | |
1847 | * libbfd.h: Regenerate. | |
1848 | * bfd-in2.h: Regenerate. | |
1849 | * bfd/po/bfd.pot: Regenerate. | |
1850 | ||
e643cb45 NC |
1851 | 2017-03-29 Nick Clifton <nickc@redhat.com> |
1852 | ||
1853 | PR binutils/18025 | |
1854 | * coff-bfd.h (struct coff_section_data): Add new fields: | |
1855 | saved_bias and bias. | |
1856 | * coffgen.c (coff_find_nearest_line_with_names): Cache the bias | |
1857 | computed for PE binaries. | |
1858 | * dwarf2.c (scan_unit_for_symbols): Only warn once about each | |
1859 | missing abbrev. | |
1860 | ||
086554e8 HPN |
1861 | 2017-03-28 Hans-Peter Nilsson <hp@axis.com> |
1862 | ||
1863 | PR ld/16044 | |
1864 | * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Adjust BFD_ASSERT | |
1865 | to handle a local symbol with a hash-symbol-entry; without PLT. | |
1866 | Add BFD_ASSERT for an incidental case with GOT entry present. | |
1867 | (cris_elf_check_relocs): Increment PLT refcount only if the symbol | |
1868 | isn't forced-or-set local. | |
1869 | ||
a6be0538 PC |
1870 | 2017-03-27 Pip Cet <pipcet@gmail.com> |
1871 | ||
1872 | * wasm-module.c: New file to support WebAssembly modules. | |
1873 | * wasm-module.h: New file to support WebAssembly modules. | |
1874 | * doc/webassembly.texi: Start documenting wasm-module.c. | |
1875 | * config.bfd: Add wasm_vec. | |
1876 | * targets.c: Likewise. | |
1877 | * configure.ac: Likewise. | |
1878 | * Makefile.am: Add entries for wasm-module.c. | |
1879 | * Makefile.in: Regenerate. | |
1880 | * configure: Regenerate. | |
1881 | * po/SRC-POTFILES.in: Regenerate. | |
1882 | ||
79b1d3cb PC |
1883 | 2017-03-27 Pip Cet <pipcet@gmail.com> |
1884 | ||
1885 | * cpu-wasm32.c: New file to support wasm32 architecture. | |
1886 | * elf32-wasm32.c: New file to support wasm32 architecture. | |
1887 | * Makefile.am: Add wasm32 architecture. | |
1888 | * archures.c: Likewise. | |
1889 | * config.bfd: Likewise. | |
1890 | * configure.ac: Likewise. | |
1891 | * targets.c: Likewise. | |
1892 | * Makefile.in: Regenerate. | |
1893 | * bfd-in2.h: Regenerate. | |
1894 | * configure: Regenerate. | |
1895 | * po/SRC-POTFILES.in: Regenerate. | |
1896 | ||
aaed6f5b AM |
1897 | 2017-03-20 Alan Modra <amodra@gmail.com> |
1898 | ||
1899 | PR 21266 | |
1900 | * elf64-ppc.c (compare_symbols): Stabilize sort. | |
1901 | ||
82e66161 AM |
1902 | 2017-03-18 Alan Modra <amodra@gmail.com> |
1903 | ||
1904 | * elf64-ppc.c (struct ppc_link_hash_table): Add | |
1905 | local_ifunc_resolver and maybe_local_ifunc_resolver. | |
1906 | (ppc_build_one_stub): Set flags on emitting dynamic | |
1907 | relocation to ifunc. | |
1908 | (ppc64_elf_relocate_section): Likewise. | |
1909 | (ppc64_elf_finish_dynamic_symbol): Likewise. | |
1910 | (ppc64_elf_finish_dynamic_sections): Error on DT_TEXTREL with | |
1911 | local dynamic relocs to ifuncs. | |
1912 | * elf32-ppc.c (struct ppc_elf_link_hash_table): Add | |
1913 | local_ifunc_resolver and maybe_local_ifunc_resolver. | |
1914 | (ppc_elf_relocate_section): Set flag on emitting dynamic | |
1915 | relocation to ifuncs. | |
1916 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
1917 | (ppc_elf_finish_dynamic_sections): Error on DT_TEXTREL with local | |
1918 | dynamic relocs to ifuncs. | |
1919 | ||
f955cccf NC |
1920 | 2017-03-13 Nick Clifton <nickc@redhat.com> |
1921 | ||
1922 | PR binutils/21202 | |
1923 | * reloc.c (BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC): Rename to | |
1924 | BFD_RELOC_AARCH64_TLSDESC_LD64_LO12. | |
1925 | (BFD_RELOC_AARCH64_TLSDESC_ADD_LO12_NC): Rename to | |
1926 | BFD_RELOC_AARCH64_TLSDESC_ADD_LO12. | |
1927 | * bfd-in2.h: Regenerate. | |
1928 | * libbfd.h: Regenerate. | |
1929 | * elfnn-aarch64.c (IS_AARCH64_TLS_RELAX_RELOC): Update reloc | |
1930 | names. | |
1931 | (IS_AARCH64_TLSDESC_RELOC): Likewise. | |
1932 | (elfNN_aarch64_howto_table): Likewise. | |
1933 | (aarch64_tls_transition_without_check): Likewise. | |
1934 | (aarch64_reloc_got_type): Likewise. | |
1935 | (elfNN_aarch64_final_link_relocate): Likewise. | |
1936 | (elfNN_aarch64_tls_relax): Likewise. | |
1937 | (elfNN_aarch64_relocate_section): Likewise. | |
1938 | (elfNN_aarch64_gc_sweep_hook): Likewise. | |
1939 | (elfNN_aarch64_check_relocs): Likewise. | |
1940 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise. | |
1941 | (_bfd_aarch64_elf_resolve_relocation): Likewise. | |
1942 | ||
4aef7643 AM |
1943 | 2017-03-11 Alan Modra <amodra@gmail.com> |
1944 | ||
1945 | * elf32-ppc.c: Remove ATTRIBUTE_UNUSED throughout when function | |
1946 | parameter is in fact used. Whitespace fixes. | |
1947 | * elf64-ppc.c: Likewise. | |
1948 | ||
f03265d9 ST |
1949 | 2017-03-09 Sam Thursfield <sam.thursfield@codethink.co.uk> |
1950 | ||
1951 | * rs6000-core.c (CORE_NEW): Simplify macro when | |
1952 | AIX_CORE_DUMPX_CORE and BFD64 are true to avoid compile warning. | |
1953 | ||
b1b07054 AM |
1954 | 2017-03-07 Alan Modra <amodra@gmail.com> |
1955 | ||
1956 | PR 21224 | |
1957 | PR 20519 | |
1958 | * elf64-ppc.c (ppc64_elf_relocate_section): Add missing | |
1959 | dyn_relocs check. | |
1960 | ||
2e0ce1c8 AM |
1961 | 2017-03-05 Alan Modra <amodra@gmail.com> |
1962 | ||
1963 | * elf-bfd.h (struct eh_cie_fde): Add u.cie.per_encoding_aligned8. | |
1964 | * elf-eh-frame.c (size_of_output_cie_fde): Don't align here. | |
1965 | (next_cie_fde_offset): New function. | |
1966 | (_bfd_elf_parse_eh_frame): Set u.cie.per_encoding_aligned8. | |
1967 | (_bfd_elf_discard_section_eh_frame): Align zero terminator to | |
1968 | four bytes. Align CIEs to four or eight bytes depending on | |
1969 | per_encoding_aligned8. Align FDEs according to their encoding. | |
1970 | Pad last FDE to output section alignment. | |
1971 | (_bfd_elf_write_section_eh_frame): Adjust to suit. Remove | |
1972 | assertion. | |
1973 | * elf64-ppc.c (glink_eh_frame_cie): Delete padding. | |
1974 | (ppc64_elf_size_stubs): Pad glink eh_frame as per elf-eh-frame.c. | |
1975 | (ppc64_elf_finish_dynamic_sections): Adjust to suit. | |
1976 | ||
f98450c6 NC |
1977 | 2017-03-02 Martin Bickel <binutils@ineranves.de> |
1978 | ||
1979 | PR ld/21212 | |
1980 | * elf.c (rewrite_elf_program_header): Do not issue a warning for | |
d20928fa | 1981 | empty segments which have a zero filesz, but a non-zero memsz. |
f98450c6 | 1982 | |
673cff9b AM |
1983 | 2017-03-02 Alan Modra <amodra@gmail.com> |
1984 | ||
1985 | * elf32-ppc.c (ppc_elf_vle_split16): Correct insn mask typo. | |
1986 | ||
3de43e7b AM |
1987 | 2017-02-28 Alan Modra <amodra@gmail.com> |
1988 | ||
1989 | * elf64-ppc.c (ppc64_elf_ha_reloc): Revert last change. | |
1990 | (ppc64_elf_relocate_section): Likewise. | |
1991 | ||
4ef97a1b AM |
1992 | 2017-02-28 Alan Modra <amodra@gmail.com> |
1993 | ||
1994 | PR 20995 | |
1995 | * elf32-nios2.c (nios2_elf32_relocate_section): Use htab | |
1996 | rather than elf32_nios2_hash_table or elf_hash_table. | |
1997 | (create_got_section): Likewise. | |
1998 | (nios2_elf32_finish_dynamic_symbol): Likewise. | |
1999 | (nios2_elf32_adjust_dynamic_symbol): Likewise. | |
2000 | (nios2_elf32_size_dynamic_sections): Likewise. | |
2001 | (nios2_elf32_check_relocs): Delete dynobj, sgot, and srelgot | |
2002 | vars. Use htab equivalents directly instead. Don't create | |
2003 | all dynamic sections on needing just the GOT. Use a goto | |
2004 | rather than a fall-through with reloc test. Ensure | |
2005 | htab->dynobj is set when making dynamic sreloc section. | |
2006 | (nios2_elf32_finish_dynamic_sections): Delete dynobj, use htab | |
2007 | equivalent directly instead. Don't segfault on looking for | |
2008 | .dynamic when dynamic sections have not been created. Don't | |
2009 | segfault on .got.plt being discarded. | |
2010 | (nios2_elf32_size_dynamic_sections): Delete plt and got vars. | |
2011 | Don't set "relocs" on .rela.plt. Do handle .sbss. Delete | |
2012 | fixme and another not so relevant comment. | |
2013 | (nios2_elf_add_symbol_hook): Delete dynobj var. If not | |
2014 | already set, set hash table dynobj on creating .sbss. | |
2015 | ||
7ba71655 AM |
2016 | 2017-02-28 Alan Modra <amodra@gmail.com> |
2017 | ||
2018 | * reloc.c (BFD_RELOC_PPC_16DX_HA): New. | |
2019 | * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_16DX_HA>): New howto. | |
2020 | (ppc64_elf_reloc_type_lookup): Translate new bfd reloc. | |
2021 | (ppc64_elf_ha_reloc): Correct overflow test on REL16DX_HA. | |
2022 | (ppc64_elf_relocate_section): Likewise. | |
2023 | * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_16DX_HA>): New howto. | |
2024 | (ppc_elf_reloc_type_lookup): Translate new bfd reloc. | |
2025 | (ppc_elf_check_relocs): Handle R_PPC_16DX_HA to pacify gcc. | |
2026 | * libbfd.h: Regenerate. | |
2027 | * bfd-in2.h: Regenerate. | |
2028 | ||
afbf7e8e AM |
2029 | 2017-02-28 Alan Modra <amodra@gmail.com> |
2030 | ||
2031 | * elflink.c (_bfd_elf_create_dynamic_sections): Don't make | |
2032 | dynamic .data.rel.ro read-only. | |
2033 | * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Compare section | |
2034 | rather than section flags when deciding where copy reloc goes. | |
2035 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise. | |
2036 | * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise. | |
2037 | * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise. | |
2038 | * elf32-metag.c (elf_metag_finish_dynamic_symbol): Likewise. | |
2039 | * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Likewise. | |
2040 | * elf32-nios2.c (nios2_elf32_finish_dynamic_symbol): Likewise. | |
2041 | * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Likewise. | |
2042 | * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Likewise. | |
2043 | * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise. | |
2044 | * elf32-tic6x.c (elf32_tic6x_finish_dynamic_symbol): Likewise. | |
2045 | * elf32-tilepro.c (tilepro_elf_finish_dynamic_symbol): Likewise. | |
2046 | * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Likewise. | |
2047 | * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise. | |
2048 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise. | |
2049 | * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Likewise. | |
2050 | * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Likewise. | |
2051 | * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise. | |
2052 | * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. | |
2053 | * elfxx-tilegx.c (tilegx_elf_finish_dynamic_symbol): Likewise. | |
2054 | ||
0e392101 MR |
2055 | 2017-02-28 Maciej W. Rozycki <macro@imgtec.com> |
2056 | ||
2057 | * elfxx-mips.c (mips_elf_perform_relocation): Also handle the | |
2058 | `jalr $0, $25' instruction encoding. | |
2059 | ||
bd757ca7 NC |
2060 | 2017-02-27 Nick Clifton <nickc@redhat.com> |
2061 | ||
2062 | PR ld/21180 | |
2063 | * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Avoid | |
2064 | generating a seg-fault when encountering a symbol that has been | |
2065 | deleted by garbage collection. | |
2066 | ||
034fed0b AM |
2067 | 2017-02-25 Alan Modra <amodra@gmail.com> |
2068 | ||
2069 | * elf32-arc.c (struct dynamic_sections): Delete. | |
2070 | (enum dyn_section_types): Delete. | |
2071 | (dyn_section_names): Delete. | |
2072 | (arc_create_dynamic_sections): Delete. | |
2073 | (elf_arc_finish_dynamic_sections): Don't call the above. Don't | |
2074 | segfault on discarded .rela.plt section. | |
2075 | (elf_arc_size_dynamic_sections): Formatting. Don't call | |
2076 | arc_create_dynamic_sections. Don't allocate memory for sections | |
2077 | handled by the generic linker. Correct code finding relocs in | |
2078 | read-only sections. Set SEC_EXCLUDE on zero size .got, | |
2079 | .got.plt, and .dynbss sections. Do set .interp for pies. | |
2080 | ||
d0f744f9 AW |
2081 | 2017-02-24 Andrew Waterman <andrew@sifive.com> |
2082 | ||
2083 | * elfnn-riscv.c (GP_NAME): New macro. | |
2084 | (riscv_global_pointer_value): Use it. | |
2085 | (_bfd_riscv_relax_lui): If symbol and global pointer are in same | |
2086 | output section, consider only that section's alignment. | |
2087 | ||
5d58c733 MR |
2088 | 2017-02-23 Maciej W. Rozycki <macro@imgtec.com> |
2089 | ||
2090 | * elfxx-mips.h (_bfd_mips_relax_section): Remove prototype. | |
2091 | * elfxx-mips.c (_bfd_mips_relax_section): Remove function. | |
2092 | * elf64-mips.c (bfd_elf64_bfd_relax_section): Remove macro. | |
2093 | * elfn32-mips.c (bfd_elf32_bfd_relax_section): Likewise. | |
2094 | ||
c1556ecd MR |
2095 | 2017-02-23 Maciej W. Rozycki <macro@imgtec.com> |
2096 | ||
2097 | * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_JALR> | |
2098 | <R_MICROMIPS_JALR>: Discard relocation if `cross_mode_jump_p' | |
2099 | or misaligned. | |
2100 | ||
5499c7c7 AM |
2101 | 2017-02-23 Alan Modra <amodra@gmail.com> |
2102 | ||
2103 | PR 20744 | |
2104 | * elf32-ppc.c (ppc_elf_howto_raw): Correct dst_mask on all VLE | |
2105 | 16D relocations. | |
2106 | (ppc_elf_vle_split16): Correct field mask and shift for 16D relocs. | |
2107 | (ppc_elf_relocate_section): Correct calculation for VLE SDAREL | |
2108 | relocs. | |
2109 | ||
902e9fc7 MR |
2110 | 2017-02-22 Maciej W. Rozycki <macro@imgtec.com> |
2111 | ||
2112 | PR ld/20828 | |
2113 | * elflink.c (bfd_elf_size_dynamic_sections): Move symbol version | |
2114 | processing ahead of the call to `elf_gc_sweep_symbol'. | |
2115 | ||
758d96d8 NC |
2116 | 2017-02-22 Nick Clifton <nickc@redhat.com> |
2117 | ||
2118 | PR binutils/21193 | |
2119 | * opncls.c (bfd_create_gnu_debuglink_section): Give the newly | |
2120 | created section 4-byte alignment. | |
2121 | ||
6528b6eb AM |
2122 | 2017-02-22 Alan Modra <amodra@gmail.com> |
2123 | ||
2124 | * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Don't segfault | |
2125 | on .got or .plt output section being discarded by script. | |
2126 | * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Likewise. Move | |
2127 | vxworks splt temp. | |
2128 | ||
24f1a751 AM |
2129 | 2017-02-21 Alan Modra <amodra@gmail.com> |
2130 | ||
2131 | * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only emit | |
2132 | DT_RELA, DT_RELASZ, and DT_RELAENT when DT_RELASZ is non-zero. | |
2133 | ||
64487780 AM |
2134 | 2017-02-20 Alan Modra <amodra@gmail.com> |
2135 | ||
2136 | PR 21181 | |
2137 | * elflink.c (bfd_elf_final_link): Make DT_REL/DT_RELA zero | |
2138 | if DT_RELSZ/DT_RELASZ is zero. | |
2139 | ||
6438d1be NC |
2140 | 2017-02-17 Nick Clifton <nickc@redhat.com> |
2141 | ||
2142 | * compress.c (bfd_get_full_section_contents): Remember to reduce | |
2143 | compressed size by the sizeof the compression header when | |
2144 | decompressing the contents. | |
2145 | ||
4bc26c69 PA |
2146 | 2017-02-17 Pedro Alves <palves@redhat.com> |
2147 | ||
2148 | * srec.c (Chunk): Rename to ... | |
2149 | (_bfd_srec_len): ... this. | |
2150 | (S3Forced): Rename to ... | |
2151 | (_bfd_srec_forceS3): ... this. | |
2152 | * objcopy.c: Adjust all references. | |
2153 | ||
7ec22e0f PA |
2154 | 2017-02-17 Pedro Alves <palves@redhat.com> |
2155 | ||
2156 | * archive.c (bsd_write_armap): Rename to ... | |
2157 | (_bfd_bsd_write_armap): ... this. | |
2158 | (coff_write_armap): Rename to ... | |
2159 | (_bfd_coff_write_armap): ... this. | |
2160 | * libbfd-in.h (bsd_write_armap): Rename to ... | |
2161 | (_bfd_bsd_write_armap): ... this. | |
2162 | (coff_write_armap): Rename to ... | |
2163 | (_bfd_coff_write_armap): ... this. | |
2164 | * aout-target.h, aout-tic30.c: Adjust all users. | |
2165 | * libbfd.h: Regenerate. | |
2166 | ||
8c8402cc PA |
2167 | 2017-02-17 Pedro Alves <palves@redhat.com> |
2168 | ||
2169 | * bfd-in.h (bfd_read, bfd_write): Adjust to rename. | |
2170 | (warn_deprecated): Rename to ... | |
2171 | (_bfd_warn_deprecated): ... this. | |
2172 | * libbfd.c (warn_deprecated): Rename to ... | |
2173 | (_bfd_warn_deprecated): ... this. | |
2174 | * bfd-in2.h: Regenerate. | |
2175 | ||
c7c3d11b PA |
2176 | 2017-02-17 Pedro Alves <palves@redhat.com> |
2177 | ||
2178 | * bfdio.c (real_ftell): Rename to ... | |
2179 | (_bfd_real_ftell): ... this. | |
2180 | (real_fseek): Rename to ... | |
2181 | (_bfd_real_fseek): ... this. | |
2182 | (real_fopen): Rename to ... | |
2183 | (_bfd_real_fopen): ... this. | |
2184 | * libbfd-in.h (real_ftell): Rename to ... | |
2185 | (_bfd_real_ftell): ... this. | |
2186 | (real_fseek): Rename to ... | |
2187 | (_bfd_real_fseek): ... this. | |
2188 | (real_fopen): Rename to ... | |
2189 | (_bfd_real_fopen): ... this. | |
2190 | * cache.c, dwarf2.c, opncls.c: Adjust all callers. | |
2191 | * libbfd.h: Regenerate. | |
2192 | ||
4265548c PA |
2193 | 2017-02-17 Pedro Alves <palves@redhat.com> |
2194 | ||
2195 | * dwarf2.c, elf-attrs.c, elf32-nds32.c: Adjust all callers. | |
2196 | * libbfd.c (read_unsigned_leb128): Rename to ... | |
2197 | (_bfd_read_unsigned_leb128): ... this. | |
2198 | (read_signed_leb128): Rename to ... | |
2199 | (_bfd_read_signed_leb128): ... this. | |
2200 | (safe_read_leb128): Rename to ... | |
2201 | (_bfd_safe_read_leb128): ... this. | |
2202 | * libbfd-in.h (read_unsigned_leb128): Rename to ... | |
2203 | (_bfd_read_unsigned_leb128): ... this. | |
2204 | (read_signed_leb128): Rename to ... | |
2205 | (_bfd_read_signed_leb128): ... this. | |
2206 | (safe_read_leb128): Rename to ... | |
2207 | (_bfd_safe_read_leb128): ... this. | |
2208 | * libbfd.h: Renegerate. | |
2209 | ||
3239a423 AB |
2210 | 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com> |
2211 | ||
2212 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Perform symbol lookup | |
2213 | before trying to fine matching file and line information. | |
2214 | ||
90ed9b8b AB |
2215 | 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com> |
2216 | ||
2217 | * dwarf2.c (struct dwarf2_debug): Add orig_bfd member. | |
2218 | (_bfd_dwarf2_slurp_debug_info): If stashed debug information does | |
2219 | not match current bfd, then reload debug information. Record bfd | |
2220 | we're loading debug info for in the stash. If we have debug | |
2221 | informatin in the cache then perform section placement before | |
2222 | returning. | |
2223 | ||
a8c75b76 AM |
2224 | 2017-02-16 Alan Modra <amodra@gmail.com> |
2225 | ||
2226 | PR 21000 | |
2227 | * elf-bfd.h (struct elf_backend_data): Add no_page_alias. | |
2228 | * elfxx-target.h (elf_backend_no_page_alias): Define. | |
2229 | (elfNN_bed): Init new field. | |
2230 | * elf.c (assign_file_positions_for_load_sections): If no_page_alias | |
2231 | ensure PT_LOAD segment starts on a new page. | |
2232 | * elf32-hppa.c (elf_backend_no_page_alias): Define. | |
2233 | ||
247d6c4c AM |
2234 | 2017-02-16 Alan Modra <amodra@gmail.com> |
2235 | ||
2236 | PR 21132 | |
2237 | * elf32-hppa.c (allocate_plt_static): Allocate space for relocs | |
2238 | if pic. | |
2239 | ||
90571206 JW |
2240 | 2017-02-16 Jiong Wang <jiong.wang@arm.com> |
2241 | ||
2242 | * bfd.c (BFD_FLAGS_SAVED): Add BFD_LINKER_CREATED. | |
2243 | * bfd-in2.h: Regenerated. | |
2244 | ||
2a568401 L |
2245 | 2017-02-15 H.J. Lu <hongjiu.lu@intel.com> |
2246 | ||
2247 | PR ld/21168 | |
2248 | * elf32-i386.c (elf_i386_relocate_section): Allow | |
2249 | "lea foo@GOT, %reg" in PIC. | |
2250 | ||
a5def14f L |
2251 | 2017-02-15 H.J. Lu <hongjiu.lu@intel.com> |
2252 | ||
2253 | PR ld/20244 | |
2254 | * elf32-i386.c (elf_i386_relocate_section): Properly get IFUNC | |
2255 | symbol name when reporting R_386_GOT32/R_386_GOT32X relocation | |
2256 | error against local IFUNC symbol without a base register for | |
2257 | PIC. | |
2258 | ||
174d0a74 MR |
2259 | 2017-02-15 Maciej W. Rozycki <macro@imgtec.com> |
2260 | ||
2261 | * elf32-ppc.c (ppc_elf_check_relocs): Use `%H:' rather than | |
2262 | `%P: %H:' with `info->callbacks->einfo'. | |
2263 | (ppc_elf_relocate_section): Likewise. | |
2264 | * elf64-ppc.c (ppc64_elf_check_relocs): Likewise. | |
2265 | (ppc64_elf_edit_toc): Likewise. | |
2266 | (ppc64_elf_relocate_section): Likewise. | |
2267 | ||
e278ae05 AM |
2268 | 2017-02-14 Alan Modra <amodra@gmail.com> |
2269 | ||
2270 | * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Support | |
2271 | --gc-keep-exported, and test versioned field of sym rather than | |
2272 | looking for @ in name. | |
2273 | ||
10ddfe62 PD |
2274 | 2017-02-13 Palmer Dabbelt <palmer@dabbelt.com> |
2275 | ||
2276 | * elfnn-riscv.c (riscv_global_pointer_value): Change _gp to | |
2277 | __global_pointer$. | |
2278 | ||
d11135f5 NC |
2279 | 2017-02-13 Nick Clifton <nickc@redhat.com> |
2280 | ||
2281 | PR binutils/21151 | |
2282 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Check for an invalid | |
2283 | unit length field. | |
2284 | ||
cc162427 AW |
2285 | 2017-02-07 Andrew Waterman <andrew@sifive.com> |
2286 | ||
2287 | * elfnn-riscv.c (riscv_elf_finish_dynamic_sections): Only write PLT | |
2288 | entry size if PLT header is written. | |
2289 | ||
3d044c0c SL |
2290 | 2017-02-06 Sheldon Lobo <sheldon.lobo@oracle.com> |
2291 | ||
2292 | Fix sparc64 dynamic relocation processing to use the dynamic | |
2293 | symbol count. | |
2294 | * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Use 'dynamic' | |
2295 | to determine if bfd_get_symcount() or bfd_get_dynamic_symcount() | |
2296 | should be used. | |
2297 | ||
1b7e3d2f NC |
2298 | 2017-02-03 Nick Clifton <nickc@redhat.com> |
2299 | ||
2300 | PR 21096 | |
2301 | * coffcode.h (coff_write_object_contents): Enlarge size of | |
2302 | s_name_buf in order to avoid compile time warning about possible | |
2303 | integer truncation. | |
2304 | * elf32-nds32.c (nds32_elf_ex9_import_table): Mask off lower | |
2305 | 32-bits of insn value before printing into buffer. | |
2306 | ||
e17b0c35 MR |
2307 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
2308 | ||
2309 | * elfxx-mips.c (mips_elf_hash_sort_data): Add | |
2310 | `max_local_dynindx'. | |
2311 | (mips_elf_sort_hash_table): Handle it. | |
2312 | (mips_elf_sort_hash_table_f) <GGA_NONE>: For forced local | |
2313 | symbols bump up `max_local_dynindx' rather than | |
2314 | `max_non_got_dynindx'. | |
2315 | ||
55f8b9d2 MR |
2316 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
2317 | ||
2318 | * elfxx-mips.c (mips_elf_hash_sort_data): Convert the | |
2319 | `min_got_dynindx', `max_unref_got_dynindx' and | |
2320 | `max_non_got_dynindx' members to the `bfd_size_type' data type. | |
2321 | (mips_elf_sort_hash_table): Adjust accordingly. | |
2322 | ||
0f8c4b60 MR |
2323 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
2324 | ||
2325 | * elfxx-mips.c (mips_elf_sort_hash_table): Use `htab' throughout | |
2326 | to access the hash table. | |
2327 | ||
17a80fa8 MR |
2328 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
2329 | ||
2330 | * elfxx-mips.c (mips_elf_sort_hash_table): Move assertion on | |
2331 | non-NULL `htab' to the beginning. | |
2332 | ||
8f56d4fd MR |
2333 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
2334 | ||
2335 | * elflink.c (elf_gc_sweep): Wrap overlong line. | |
2336 | ||
8b10b0b3 MR |
2337 | 2017-01-30 Maciej W. Rozycki <macro@imgtec.com> |
2338 | ||
2339 | * elfxx-mips.h (_bfd_mips_elf_insn32): Rename prototype to... | |
2340 | (_bfd_mips_elf_linker_flags): ... this. Add another parameter. | |
2341 | * elfxx-mips.c (mips_elf_link_hash_table): Add | |
2342 | `ignore_branch_isa' member. | |
2343 | (mips_elf_perform_relocation): Do not treat an ISA mode mismatch | |
2344 | in branch relocation calculation as an error if | |
2345 | `ignore_branch_isa' has been set. | |
2346 | (_bfd_mips_elf_insn32): Rename to... | |
2347 | (_bfd_mips_elf_linker_flags): ... this. Rename the `on' | |
2348 | parameter to `insn32' and add an `ignore_branch_isa' parameter. | |
2349 | Handle the new parameter. | |
2350 | ||
1fbd05e1 HPN |
2351 | 2017-01-27 Hans-Peter Nilsson <hp@axis.com> |
2352 | ||
22d9a0de HPN |
2353 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Remove now unused |
2354 | local variable dynobj. | |
2355 | ||
1fbd05e1 HPN |
2356 | PR ld/20995 |
2357 | * elf32-cris.c (elf_cris_size_dynamic_sections): Handle sdynrelro. | |
2358 | (elf_cris_adjust_dynamic_symbol): Place variables copied into the | |
2359 | executable from read-only sections into sdynrelro. | |
2360 | (elf_cris_finish_dynamic_symbol): Select sreldynrelro for | |
2361 | dynamic relocs in sdynrelro. | |
2362 | (elf_backend_want_dynrelro): Define. | |
2363 | ||
4a7324e1 SH |
2364 | 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de> |
2365 | ||
2366 | * config.bfd (*-*-rtemsaout*): Mark as removed. | |
2367 | ||
c75b4ebd SH |
2368 | 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de> |
2369 | ||
2370 | * config.bfd (powerpcle-*-rtems*): Do not mark as removed. | |
2371 | (arm-*-rtems*): Move to (arm*-*-eabi*). | |
2372 | (i[3-7]86-*-rtems*): Move to (i[3-7]86-*-elf*). | |
2373 | (m68-*-rtems*): Move to (m68*-*-elf*). | |
2374 | ||
850d84f6 SH |
2375 | 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de> |
2376 | ||
2377 | * config.bfd (*-*-rtemscoff*): Mark as removed. | |
2378 | ||
b531344c MR |
2379 | 2017-01-24 Maciej W. Rozycki <macro@imgtec.com> |
2380 | ||
2381 | PR ld/20828 | |
2382 | * elflink.c (bfd_elf_record_link_assignment): Revert last | |
2383 | change and don't ever clear `forced_local'. Set `mark' | |
2384 | unconditionally. | |
2385 | (elf_gc_sweep_symbol_info, elf_gc_sweep_symbol): Reorder within | |
2386 | file. | |
2387 | (elf_gc_sweep): Move the call to `elf_gc_sweep_symbol'... | |
2388 | (bfd_elf_size_dynamic_sections): ... here. | |
2389 | * elf32-ppc.c (ppc_elf_tls_setup): Don't clear `forced_local' | |
2390 | and set `mark' instead in `__tls_get_addr_opt' processing. | |
2391 | * elf64-ppc.c (ppc64_elf_tls_setup): Likewise. | |
2392 | ||
f0158f44 AM |
2393 | 2017-01-24 Alan Modra <amodra@gmail.com> |
2394 | ||
2395 | * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Merge two cases | |
2396 | where dynamic relocs are preferable. Allow ifunc too. | |
2397 | (ensure_undefweak_dynamic): New function. | |
2398 | (allocate_dynrelocs): Use it here. Move plt handling last and | |
2399 | don't make symbols dynamic, simplifying loop. Only make undef | |
2400 | weak symbols with GOT entries dynamic. Correct condition | |
2401 | for GOT relocs. Handle dynamic relocs on ifuncs. Correct | |
2402 | comments. Remove goto. | |
2403 | (ppc_elf_relocate_section): Correct test for using dynamic | |
2404 | symbol on GOT relocs. Rearrange test for emitting GOT relocs | |
2405 | to suit. Set up explicit tls_index entries and implicit GOT | |
2406 | tls_index entries resolvable at link time for | |
2407 | __tls_get_addr_opt. Simplify test to clear mem for prelink. | |
2408 | * elf64-ppc.c (allocate_got): Correct condition for GOT relocs. | |
2409 | (ensure_undefweak_dynamic): New function. | |
2410 | (allocate_dynrelocs): Use it here. Only make undef weak symbols | |
2411 | with GOT entries dynamic. Remove unnecessary test of | |
2412 | WILL_CALL_FINISH_DYNAMIC_SYMBOL in PLT handling. | |
2413 | (ppc64_elf_relocate_section): Correct test for using dynamic | |
2414 | symbol on GOT relocs. Rearrange test for emitting GOT relocs | |
2415 | to suit. Set up explicit tls_index entries and implicit GOT | |
2416 | tls_index entries resolvable at link time for __tls_get_addr_opt. | |
2417 | Simplify expression to clear mem for prelink. | |
2418 | ||
2d0ca824 YN |
2419 | 2017-01-23 Yury Norov <ynorov@caviumnetworks.com> |
2420 | ||
2421 | * elfnn-aarch64.c: Fix relaxations for ILP32 mode. | |
2422 | ||
7f784814 JW |
2423 | 2017-01-20 Jiong Wang <jiong.wang@arm.com> |
2424 | ||
2425 | * elfnn-aarch64.c (elf_aarch64_hash_symbol): New function. | |
2426 | (elf_backend_hash_symbol): Define. | |
2427 | ||
81ff47b3 MR |
2428 | 2017-01-18 Maciej W. Rozycki <macro@imgtec.com> |
2429 | ||
2430 | PR ld/20828 | |
2431 | * elflink.c (bfd_elf_record_link_assignment): Clear any | |
2432 | `forced_local' marking for DSO symbols that are not being | |
2433 | provided. | |
2434 | ||
640d6bfd KLC |
2435 | 2017-01-17 Kuan-Lin Chen <kuanlinchentw@gmail.com> |
2436 | ||
2437 | * elfnn-riscv.c (riscv_elf_object_p): New function. | |
2438 | ||
8361ed4d L |
2439 | 2017-01-12 H.J. Lu <hongjiu.lu@intel.com> |
2440 | ||
2441 | PR ld/21038 | |
2442 | * elf64-x86-64.c (elf_x86_64_link_hash_table): Add | |
2443 | plt_bnd_eh_frame. | |
2444 | (elf_x86_64_check_relocs): Create .eh_frame section for the | |
2445 | .plt.bnd section. | |
2446 | (elf_x86_64_size_dynamic_sections): Allocate and initialize | |
2447 | .eh_frame section for the .plt.bnd section. | |
2448 | (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section | |
2449 | for the .plt.bnd section. | |
2450 | ||
2425a30e NC |
2451 | 2017-01-12 Nick Clifton <nickc@redhat.com> |
2452 | ||
2453 | PR binutils/20876 | |
2454 | * opncls.c (find_separate_debug_file): Add include_dirs | |
2455 | parameter. Only include the directory part of the bfd's filename | |
2456 | in search paths if include_dirs is true. Add a couple of extra | |
2457 | locations for looking for debug files. | |
2458 | ( bfd_follow_gnu_debuglink): Update invocation of | |
2459 | find_separate_debug_file. | |
2460 | (bfd_follow_gnu_debugaltlink): Likewise. | |
2461 | (get_build_id): New function: Finds the build-id of the given bfd. | |
2462 | (get_build_id_name): New function: Computes the name of the | |
2463 | separate debug info file for a bfd, based upon its build-id. | |
2464 | (check_build_id_file): New function: Checks to see if a separate | |
2465 | debug info file exists at the given location, and that its | |
2466 | build-id matches that of the original bfd. | |
2467 | (bfd_follow_build_id_debuglink): New function: Finds a separate | |
2468 | debug info file for a given bfd by using the build-id method. | |
2469 | * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Try using the build-id | |
2470 | method of locating a separate debug info file before using the | |
2471 | debuglink method. | |
2472 | * bfd-in2.h: Regenerate. | |
2473 | ||
9e659176 L |
2474 | 2017-01-11 H.J. Lu <hongjiu.lu@intel.com> |
2475 | ||
2476 | PR ld/21038 | |
2477 | * elf64-x86-64.c (elf_x86_64_eh_frame_bnd_plt): New. | |
2478 | (elf_x86_64_bnd_arch_bed): Use elf_x86_64_eh_frame_bnd_plt and | |
2479 | elf_x86_64_eh_frame_plt_got. | |
2480 | (elf_x86_64_size_dynamic_sections): Get unwind info from | |
2481 | elf_x86_64_bnd_arch_bed for the BND PLT. | |
2482 | ||
f2e2d2f5 JS |
2483 | 2017-01-11 Jeremy Soller <jackpot51@gmail.com> |
2484 | ||
2485 | * config.bfd: Add entries for i686-redox and x86_64-redox. | |
2486 | ||
52b232b3 L |
2487 | 2017-01-10 H.J. Lu <hongjiu.lu@intel.com> |
2488 | ||
2489 | * elf32-i386.c (elf_i386_check_relocs): Align .eh_frame section | |
2490 | to 4 bytes. | |
2491 | * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Align | |
2492 | .eh_frame section to 4 bytes for x32. | |
2493 | (elf_x86_64_check_relocs): Likewise. | |
2494 | ||
fff53dae L |
2495 | 2017-01-10 H.J. Lu <hongjiu.lu@intel.com> |
2496 | ||
2497 | PR ld/20830 | |
2498 | * elf32-i386.c (elf_i386_eh_frame_plt_got): New. | |
2499 | (PLT_GOT_FDE_LENGTH): Likewise. | |
2500 | (elf_i386_plt_layout): Add eh_frame_plt_got and | |
2501 | eh_frame_plt_got_size. | |
2502 | (elf_i386_plt): Updated. | |
2503 | (elf_i386_link_hash_table): Add plt_got_eh_frame. | |
2504 | (elf_i386_check_relocs): Create .eh_frame section for .plt.got. | |
2505 | (elf_i386_size_dynamic_sections): Allocate and initialize | |
2506 | .eh_frame section for .plt.got. | |
2507 | (elf_i386_finish_dynamic_sections): Adjust .eh_frame section for | |
2508 | .plt.got. | |
2509 | (elf_i386_nacl_plt): Add FIXME for eh_frame_plt_got and | |
2510 | eh_frame_plt_got_size. | |
2511 | * elf64-x86-64.c (elf_x86_64_eh_frame_plt_got): New. | |
2512 | (PLT_GOT_FDE_LENGTH): Likewise. | |
2513 | (elf_x86_64_backend_data): Add eh_frame_plt_got and | |
2514 | eh_frame_plt_got_size. | |
2515 | (elf_x86_64_arch_bed): Updated. | |
2516 | (elf_x86_64_bnd_arch_bed): Add FIXME for eh_frame_plt_got and | |
2517 | eh_frame_plt_got_size. | |
2518 | (elf_x86_64_nacl_arch_bed): Likewise. | |
2519 | (elf_x86_64_link_hash_table): Add plt_got_eh_frame. | |
2520 | (elf_x86_64_check_relocs): Create .eh_frame section for .plt.got. | |
2521 | (elf_x86_64_size_dynamic_sections): Allocate and initialize | |
2522 | .eh_frame section for .plt.got. | |
2523 | (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section | |
2524 | for .plt.got. | |
2525 | ||
f129e49f L |
2526 | 2017-01-10 H.J. Lu <hongjiu.lu@intel.com> |
2527 | ||
2528 | * elf32-i386.c (elf_i386_size_dynamic_sections): Set | |
2529 | plt_eh_frame->size to eh_frame_plt_size and use eh_frame_plt. | |
2530 | ||
cd6581da NC |
2531 | 2017-01-09 Nick Clifton <nickc@redhat.com> |
2532 | ||
2533 | * dwarf2.c (lookup_address_in_function_table): Return early if | |
2534 | there are no functions in the given comp unit, or if the high | |
2535 | address of the last function in the comp unit is less than the | |
2536 | desired address. | |
2537 | ||
98f02962 NC |
2538 | 2017-01-09 Nick Clifton <nickc@redhat.com> |
2539 | ||
2540 | PR binutils/21013 | |
2541 | * coffgen.c (_bfd_coff_get_external_symbols): Generate an error | |
2542 | message if there are too many symbols to load. | |
2543 | ||
ae4fda66 JC |
2544 | 2017-01-04 James Clarke <jrtc27@jrtc27.com> |
2545 | ||
2546 | * elf64-alpha.c (elf64_alpha_relax_opt_call): Don't set tsec_free | |
2547 | if relocs are cached. | |
2548 | ||
de1010f4 RF |
2549 | 2017-01-03 Rich Felker <bugdal@aerifal.cx> |
2550 | ||
2551 | PR ld/21017 | |
2552 | * elf32-microblaze.c (microblaze_elf_check_relocs): Add an entry | |
2553 | for R_MICROBLAZE_GOTOFF_64. | |
2554 | ||
09fe2662 NC |
2555 | 2017-01-03 Nick Clifton <nickc@redhat.com> |
2556 | ||
2557 | * mach-o.c (bfd_mach_o_lookup_uuid_command): Fix compile time | |
2558 | warning about using a possibly uninitialised variable. | |
2559 | ||
595e0a47 AM |
2560 | 2017-01-02 Alan Modra <amodra@gmail.com> |
2561 | ||
2562 | * elf32-hppa.c (ensure_undef_weak_dynamic): New function. | |
2563 | (allocate_plt_static, allocate_dynrelocs): Use it. | |
2564 | ||
7bd9df3b AM |
2565 | 2017-01-02 Alan Modra <amodra@gmail.com> |
2566 | ||
2567 | * elf-hppa.h (elf_hppa_fake_sections): Set SHF_INFO_LINK for | |
2568 | .PARISC.unwind section. | |
2569 | ||
5b86074c AM |
2570 | 2017-01-02 Alan Modra <amodra@gmail.com> |
2571 | ||
2572 | PR ld/20989 | |
2573 | * elfxx-sparc.c (gdop_relative_offset_ok): New function. | |
2574 | (_bfd_sparc_elf_relocate_section): Use it to validate GOT | |
2575 | indirect to GOT pointer relative code edit. | |
2576 | ||
2571583a AM |
2577 | 2017-01-02 Alan Modra <amodra@gmail.com> |
2578 | ||
2579 | Update year range in copyright notice of all files. | |
2580 | ||
5c1ad6b5 | 2581 | For older changes see ChangeLog-2016 |
3499769a | 2582 | \f |
5c1ad6b5 | 2583 | Copyright (C) 2017 Free Software Foundation, Inc. |
3499769a AM |
2584 | |
2585 | Copying and distribution of this file, with or without modification, | |
2586 | are permitted in any medium without royalty provided the copyright | |
2587 | notice and this notice are preserved. | |
2588 | ||
2589 | Local Variables: | |
2590 | mode: change-log | |
2591 | left-margin: 8 | |
2592 | fill-column: 74 | |
2593 | version-control: never | |
2594 | End: |