Commit | Line | Data |
---|---|---|
cf1070f1 L |
1 | 2017-10-06 H.J. Lu <hongjiu.lu@intel.com> |
2 | ||
3 | * elfxx-x86.h (POINTER_LOCAL_IFUNC_P): New. | |
4 | (PLT_LOCAL_IFUNC_P): Likewise. | |
5 | * elf32-i386.c (elf_i386_relocate_section): Use them. | |
6 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. | |
7 | ||
f70656b2 L |
8 | 2017-10-06 H.J. Lu <hongjiu.lu@intel.com> |
9 | ||
10 | * elfxx-x86.h (GENERATE_RELATIVE_RELOC_P): New. | |
11 | * elf32-i386.c (elf_i386_relocate_section): Use it. | |
12 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. | |
13 | ||
1f92404c L |
14 | 2017-10-06 H.J. Lu <hongjiu.lu@intel.com> |
15 | ||
16 | * elfxx-x86.h (RESOLVED_LOCALLY_P): New. | |
17 | * elf32-i386.c (elf_i386_relocate_section): Use it. | |
18 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. | |
19 | ||
daf1c414 L |
20 | 2017-10-06 H.J. Lu <hongjiu.lu@intel.com> |
21 | ||
22 | * elf32-i386.c (X86_PCREL_TYPE_P): New. | |
23 | (elf_i386_check_relocs): Use NEED_DYNAMIC_RELOCATION_P. | |
24 | * elf64-x86-64.c (IS_X86_64_PCREL_TYPE): Renamed to ... | |
25 | (X86_PCREL_TYPE_P): This. | |
26 | (elf_x86_64_check_relocs): Use NEED_DYNAMIC_RELOCATION_P. | |
27 | Replace IS_X86_64_PCREL_TYPE with X86_PCREL_TYPE_P. | |
28 | (elf_x86_64_relocate_section): Replace IS_X86_64_PCREL_TYPE with | |
29 | X86_PCREL_TYPE_P. | |
30 | * elfxx-x86.h (NEED_DYNAMIC_RELOCATION_P): New. | |
31 | ||
51537393 L |
32 | 2017-10-06 H.J. Lu <hongjiu.lu@intel.com> |
33 | ||
34 | * elfxx-x86.h (TLS_TRANSITION_IE_TO_LE_P): New. | |
35 | * elf32-i386.c (elf_i386_tls_transition): Use it. | |
36 | * elf64-x86-64.c (elf_x86_64_tls_transition): Likewise. | |
37 | ||
0caf6c82 L |
38 | 2017-10-05 H.J. Lu <hongjiu.lu@intel.com> |
39 | ||
40 | * elf32-ppc.c (readonly_dynrelocs): Add a link_info argument. | |
41 | Dump dynamic relocation in read-only section with minfo if | |
42 | needed. | |
43 | (ppc_elf_adjust_dynamic_symbol): Pass NULL to readonly_dynrelocs. | |
44 | (maybe_set_textrel): Likewise. | |
45 | (ppc_elf_size_dynamic_sections): Dump dynamic relocation in | |
46 | read-only section with minfo. | |
47 | ||
6d5be5d6 JB |
48 | 2017-10-05 John Baldwin <jhb@FreeBSD.org> |
49 | ||
50 | * elf.c (elfcore_grok_freebsd_note): Handle NT_ARM_VFP. | |
51 | ||
007873f5 L |
52 | 2017-10-05 H.J. Lu <hongjiu.lu@intel.com> |
53 | ||
54 | * elf32-tilepro.c (readonly_dynrelocs): Dump dynamic relocation | |
55 | in read-only section with minfo. | |
56 | (tilepro_elf_size_dynamic_sections): Likewise. | |
57 | * elfxx-tilegx.c (readonly_dynrelocs): Likewise. | |
58 | (tilegx_elf_size_dynamic_sections): Likewise. | |
59 | ||
2ca7de37 PA |
60 | 2017-10-05 Pedro Alves <palves@redhat.com> |
61 | ||
62 | PR 22245 | |
63 | * bfd.c (bfd_set_error): Revert 2017-10-04 change. Remove | |
64 | ellipsis parameter. Split out bfd_error_on_input code to.. | |
65 | (bfd_set_input_error): .. New function. | |
66 | * archive.c (_bfd_write_archive_contents): Use bfd_set_input_error. | |
67 | * vms-lib.c (_bfd_vms_lib_write_archive_contents): Likewise. | |
68 | * bfd-in2.h: Regenerate. | |
69 | ||
8c6716e5 AM |
70 | 2017-10-05 Alan Modra <amodra@gmail.com> |
71 | ||
72 | * elflink.c (elf_link_input_bfd): Correct ctor/dtor in init_array/ | |
73 | fini_array error value. | |
74 | ||
db4677b8 AM |
75 | 2017-10-05 Alan Modra <amodra@gmail.com> |
76 | ||
77 | PR 21167 | |
78 | * elf.c (_bfd_elf_setup_sections): Don't trim reloc sections from | |
79 | groups. | |
80 | (_bfd_elf_init_reloc_shdr): Pass sec_hdr, use it to copy SHF_GROUP | |
81 | flag from section. | |
82 | (elf_fake_sections): Adjust calls. Exit immediately on failure. | |
83 | (bfd_elf_set_group_contents): Add associated reloc section indices | |
84 | to group contents. | |
85 | ||
a5259595 AM |
86 | 2017-10-04 Alan Modra <amodra@gmail.com> |
87 | ||
88 | * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't sort or | |
89 | classify symbols for ELFv2. | |
90 | ||
9ba5f27c PK |
91 | 2017-10-04 Pavel I. Kryukov <kryukov@frtk.ru> |
92 | ||
93 | PR 22245 | |
94 | * bfd.c (bfd_set_error): Avoid UB on passing arg to va_start that | |
95 | undergoes default promotion. | |
96 | * bfd-in2.h: Regenerate. | |
97 | ||
dcd2b8a0 AM |
98 | 2017-10-02 Alan Modra <amodra@gmail.com> |
99 | ||
100 | * elf32-ppc.c (ppc_elf_relocate_section): Fix comment typo. | |
101 | * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. | |
102 | ||
20230942 AM |
103 | 2017-10-01 Alan Modra <amodra@gmail.com> |
104 | ||
105 | PR 21957 | |
106 | * dwarf2.c (new_line_sorts_after): Remove end_sequence comparison. | |
107 | (add_line_info): Always put end_sequence last. | |
108 | ||
4b04bba2 AM |
109 | 2017-10-01 Alan Modra <amodra@gmail.com> |
110 | ||
111 | PR 22047 | |
112 | * dwarf2.c (read_section): Allocate buffer with extra byte for | |
113 | bfd_simple_get_relocated_section_contents rather than copying | |
114 | afterwards. | |
115 | ||
f6ac8c52 AM |
116 | 2017-09-29 Alan Modra <amodra@gmail.com> |
117 | ||
118 | * merge.c (merge_strings): Return FALSE on malloc failure. | |
119 | (_bfd_merge_sections): Return failures from record_section and | |
120 | merge_strings. | |
121 | ||
1a3b5c34 AM |
122 | 2017-09-28 Alan Modra <amodra@gmail.com> |
123 | ||
124 | PR 22220 | |
125 | * elflink.c (_bfd_elf_merge_symbol): Set non_ir_ref_dynamic in | |
126 | a case where plugin_notice isn't called. | |
127 | ||
cd28e7aa KLC |
128 | 2017-09-27 Kuan-Lin Chen <kuanlinchentw@gmail.com> |
129 | ||
130 | * elf32-nds32.c (nds32_elf_relax_section): Fix a tautological | |
131 | comparison. | |
132 | ||
ac69a0d7 L |
133 | 2017-09-26 H.J. Lu <hongjiu.lu@intel.com> |
134 | ||
135 | PR ld/22199 | |
136 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Don't pass | |
137 | output_bfd to info->callbacks->minfo. | |
138 | ||
262c0a87 NC |
139 | 2017-09-26 Nick Clifton <nickc@redhat.com> |
140 | ||
141 | PR 22172 | |
142 | * elf64-x86-64.c (elf_x86_64_info_to_howto): Do not trigger an | |
143 | assertion failure if elf_x86_64_rtype_to_howto has already issued | |
144 | an error message. | |
145 | ||
33e0a9a0 AM |
146 | 2017-09-26 Alan Modra <amodra@gmail.com> |
147 | ||
148 | PR 22210 | |
149 | * dwarf2.c (read_formatted_entries): Use read_attribute_value to | |
150 | read data. | |
151 | ||
30d0157a NC |
152 | 2017-09-26 Nick Clifton <nickc@redhat.com> |
153 | ||
154 | PR 22210 | |
155 | * dwarf2.c (read_formatted_entries): Fail early if we know that | |
156 | the loop parsing data entries will overflow the end of the | |
157 | section. | |
158 | ||
1b86808a AM |
159 | 2017-09-26 Alan Modra <amodra@gmail.com> |
160 | ||
161 | PR 22209 | |
162 | * dwarf2.c (struct comp_unit): Delete sec_info_ptr field. | |
163 | (find_abstract_instance_name): Calculate DW_FORM_ref_addr relative | |
164 | to stash->info_ptr_memory, and check die_ref is within that memory. | |
165 | Set info_ptr_end correctly when another CU is refd. Check die_ref | |
166 | for DW_FORM_ref4 etc. is within CU. | |
167 | ||
a54018b7 AM |
168 | 2017-09-26 Alan Modra <amodra@gmail.com> |
169 | ||
170 | PR 22205 | |
171 | * dwarf2.c (concat_filename): Return "<unknown>" on NULL filename. | |
172 | (read_formatted_entries): Init "fe". | |
173 | (decode_line_info <DW_LNE_define_file>): Use line_info_add_file_name. | |
174 | ||
e338894d AM |
175 | 2017-09-26 Alan Modra <amodra@gmail.com> |
176 | ||
177 | PR 22204 | |
178 | * dwarf2.c (decode_line_info): Ensure line_ptr stays within | |
179 | bounds in inner loop. | |
180 | ||
1da5c9a4 AM |
181 | 2017-09-25 Alan Modra <amodra@gmail.com> |
182 | ||
183 | PR 22202 | |
184 | * dwarf1.c (parse_die): Sanity check pointer against section limit | |
185 | before dereferencing. | |
186 | (parse_line_table): Likewise. | |
187 | ||
11855d8a AM |
188 | 2017-09-25 Alan Modra <amodra@gmail.com> |
189 | ||
190 | PR 22201 | |
191 | * dwarf2.c (scan_unit_for_symbols): Ignore DW_AT_name unless it | |
192 | has string form. | |
193 | (parse_comp_unit): Likewise. | |
194 | ||
c361faae AM |
195 | 2017-09-25 Alan Modra <amodra@gmail.com> |
196 | ||
197 | PR 22200 | |
198 | * dwarf2.c (read_formatted_entries): Error on format_count zero. | |
199 | ||
52b36c51 AM |
200 | 2017-09-24 Alan Modra <amodra@gmail.com> |
201 | ||
202 | PR 22197 | |
203 | * opncls.c (bfd_get_debug_link_info_1): Properly check that crc is | |
204 | within section bounds. | |
205 | ||
a26a013f AM |
206 | 2017-09-24 Alan Modra <amodra@gmail.com> |
207 | ||
208 | PR 22191 | |
209 | * dwarf2.c (decode_line_info): Properly free line sequences on error. | |
210 | ||
52a93b95 AM |
211 | 2017-09-24 Alan Modra <amodra@gmail.com> |
212 | ||
213 | PR 22187 | |
214 | * dwarf2.c (find_abstract_instance_name): Add orig_info_ptr and | |
215 | pname param. Return status. Make name const. Don't abort, | |
216 | return an error. Formatting. Exit if current info_ptr matches | |
217 | orig_info_ptr. Update callers. | |
218 | (scan_unit_for_symbols): Start at nesting_level of zero. Make | |
219 | nested_funcs an array of structs for extensibility. Formatting. | |
220 | ||
d8010d3e AM |
221 | 2017-09-24 Alan Modra <amodra@gmail.com> |
222 | ||
223 | PR 22186 | |
224 | * dwarf2.c (decode_line_info): Fail on lh.line_range of zero | |
225 | rather than dividing by zero. | |
226 | ||
515f23e6 AM |
227 | 2017-09-24 Alan Modra <amodra@gmail.com> |
228 | ||
229 | PR 22169 | |
230 | * dwarf2.c (decode_line_info): Correct .debug_line unit_length check. | |
231 | ||
0d76029f AM |
232 | 2017-09-24 Alan Modra <amodra@gmail.com> |
233 | ||
234 | PR 22167 | |
235 | * dwarf2.c (scan_unit_for_symbols): Check u.blk->data is non-NULL. | |
236 | ||
bd61e135 AM |
237 | 2017-09-24 Alan Modra <amodra@gmail.com> |
238 | ||
239 | PR 22166 | |
240 | * elf.c (_bfd_elf_slurp_version_tables): Test sh_info on | |
241 | SHT_GNU_verneed section for sanity. Don't zalloc memory for | |
242 | verref. | |
243 | ||
61e3bf5f L |
244 | 2017-09-22 H.J. Lu <hongjiu.lu@intel.com> |
245 | ||
246 | PR binutils/22170 | |
247 | * elfxx-x86.c (_bfd_x86_elf_get_synthetic_symtab): Guard against | |
248 | corrupted PLT. | |
249 | ||
b69e9267 L |
250 | 2017-09-22 H.J. Lu <hongjiu.lu@intel.com> |
251 | ||
59ca4c1b | 252 | PR binutils/22163 |
b69e9267 L |
253 | * elfxx-x86.c (_bfd_x86_elf_get_synthetic_symtab): Also return |
254 | -1 if bfd_canonicalize_dynamic_reloc returns 0. | |
255 | ||
b877d21f PA |
256 | 2017-09-22 Pedro Alves <palves@redhat.com> |
257 | Alan Modra <amodra@gmail.com> | |
258 | ||
259 | * version.h: Add comment. | |
260 | ||
8fe09d74 AA |
261 | 2017-09-21 Andreas Arnez <arnez@linux.vnet.ibm.com> |
262 | ||
263 | * elf.c (elfcore_grok_note): For the cases NT_S390_GS_CB and | |
264 | NT_S390_GS_BC, correct the previously swapped invocations of | |
265 | elfcore_grok_s390_gs_bc and elfcore_grok_s390_gs_cb. | |
266 | ||
25516cc5 AM |
267 | 2017-09-19 Alan Modra <amodra@gmail.com> |
268 | ||
269 | PR 21441 | |
270 | * elf64-ppc.c (ppc64_elf_build_stubs): Don't check glink_eh_frame | |
271 | size. | |
272 | ||
3d13f3e9 AM |
273 | 2017-09-19 Alan Modra <amodra@gmail.com> |
274 | ||
275 | PR 22150 | |
276 | * elflink.c (bfd_elf_size_dynamic_sections): Garbage collect | |
277 | symbols before calculating verrefs. Don't renumber dynsyms | |
278 | after gc. Exclude .gnu.version when zero or one dynsym. | |
279 | Localize some vars and reindent. | |
280 | ||
94670f6c L |
281 | 2017-09-18 H.J. Lu <hongjiu.lu@intel.com> |
282 | ||
283 | PR ld/22148 | |
284 | * elfxx-x86.c (_bfd_x86_elf_get_synthetic_symtab): Check error | |
285 | return from bfd_canonicalize_dynamic_reloc. | |
286 | ||
21d0a606 AM |
287 | 2017-09-15 Alan Modra <amodra@gmail.com> |
288 | ||
289 | PR 22116 | |
290 | * archive.c (bfd_ar_hdr_from_filesystem): Detect when status.st_size | |
291 | overflows bfd_size_type. | |
292 | ||
5e5e02ae L |
293 | 2017-09-14 H.J. Lu <hongjiu.lu@intel.com> |
294 | ||
295 | PR ld/22135 | |
296 | * elf32-i386.c (elf_i386_convert_load_reloc): Add an argument | |
297 | to indicate if conversion is performed. | |
298 | (elf_i386_check_relocs): Cache section contents and relocations | |
299 | if conversion is performed. | |
300 | * elf64-x86-64.c (elf_x86_64_check_relocs): Cache section | |
301 | contents and relocations if conversion is performed. | |
302 | ||
4d465c68 NC |
303 | 2017-09-14 Nick Clifton <nickc@redhat.com> |
304 | ||
305 | PR binutils/22113 | |
306 | * peXXigen.c (pe_print_idata): Extend check for HintName vector | |
307 | entries. | |
308 | ||
f47432d4 L |
309 | 2017-09-13 H.J. Lu <hongjiu.lu@intel.com> |
310 | ||
311 | * elfxx-x86.h: Fix a typo in comments. | |
312 | ||
4ec521f2 KLC |
313 | 2017-09-09 Kamil Rytarowski <n54@gmx.com> |
314 | ||
315 | * elf32-nds32.c: Rename __BIT() to N32_BIT(). | |
316 | ||
2420fff6 AM |
317 | 2017-09-09 Alan Modra <amodra@gmail.com> |
318 | ||
319 | * elf64-ppp.c (plt_stub_pad): Handle positive and negative | |
320 | plt_stub_align. | |
321 | ||
c5bce5c6 L |
322 | 2017-09-09 H.J. Lu <hongjiu.lu@intel.com> |
323 | ||
324 | * elf32-i386.c (elf_i386_relocate_section): Update usage of | |
325 | UNDEFINED_WEAK_RESOLVED_TO_ZERO. | |
326 | (elf_i386_finish_dynamic_symbol): Likewise. | |
327 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. | |
328 | (elf_x86_64_finish_dynamic_symbol): Likewise. | |
329 | * elfxx-x86.c (elf_x86_allocate_dynrelocs): Likewise. | |
330 | (_bfd_x86_elf_fixup_symbol): Likewise. | |
331 | ||
8fbf0ba1 L |
332 | 2017-09-09 H.J. Lu <hongjiu.lu@intel.com> |
333 | ||
334 | * elfxx-x86.c (_bfd_x86_elf_link_symbol_references_local): Don't | |
335 | check has_non_got_reloc. | |
336 | ||
0a27fed7 L |
337 | 2017-09-09 H.J. Lu <hongjiu.lu@intel.com> |
338 | ||
339 | PR ld/22115 | |
340 | * elf32-i386.c (elf_i386_convert_load_reloc): Check linker_def. | |
341 | Don't use UNDEFINED_WEAK_RESOLVED_TO_ZERO. | |
342 | * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Check | |
343 | linker_def. Don't use UNDEFINED_WEAK_RESOLVED_TO_ZERO. | |
344 | * elfxx-x86.c (_bfd_x86_elf_link_check_relocs): Set local_ref | |
345 | and linker_def on __ehdr_start if it is referenced and not | |
346 | defined. | |
347 | (_bfd_x86_elf_link_symbol_references_local): Also set local_ref | |
348 | and return TRUE when building executable, if a symbol has | |
349 | non-GOT/non-PLT relocations in text section or there is no | |
350 | dynamic linker. | |
351 | * elfxx-x86.h (elf_x86_link_hash_entry): Add linker_def. | |
352 | ||
c7df954f L |
353 | 2017-09-08 H.J. Lu <hongjiu.lu@intel.com> |
354 | ||
355 | * elfxx-x86.h: Update comments. | |
356 | ||
1de031c8 L |
357 | 2017-09-08 H.J. Lu <hongjiu.lu@intel.com> |
358 | ||
359 | * elf32-i386.c (elf_i386_link_setup_gnu_properties): Replace | |
360 | elf_x86_plt_layout_table with elf_x86_init_table. | |
361 | * elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): | |
362 | Likewise. | |
363 | * elfxx-x86.c (_bfd_x86_elf_link_setup_gnu_properties): | |
364 | Likewise. | |
365 | * elfxx-x86.h (elf_x86_plt_layout_table): Renamed to ... | |
366 | (elf_x86_init_table): This. | |
367 | (_bfd_x86_elf_link_setup_gnu_properties): Replace | |
368 | elf_x86_plt_layout_table with elf_x86_init_table. | |
369 | ||
7a382c1c L |
370 | 2017-09-07 H.J. Lu <hongjiu.lu@intel.com> |
371 | ||
372 | * configure.ac (bfd_backends): Don't add elf64-x86-64.lo nor | |
373 | elf64.lo together with elfxx-x86.lo for 64-bit BFD. | |
374 | * configure: Regenerated. | |
375 | * elf32-i386.c (elf_i386_link_setup_gnu_properties): Set r_info | |
376 | and r_sym fields of plt_layout. | |
377 | * elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): | |
378 | Likewise. | |
379 | * elfxx-x86.c (elf_x86_64_is_reloc_section): Remove BFD64 check. | |
380 | (_bfd_x86_elf_link_hash_table_create): Likewise. Don't set | |
381 | r_info nor r_sym fields. | |
382 | (_bfd_x86_elf_link_setup_gnu_properties): Set r_info and r_sym | |
383 | fields of htab. | |
384 | * elfxx-x86.h (elf_x86_plt_layout_table): Add r_info and r_sym. | |
385 | ||
9eb7b0ac PD |
386 | 2017-09-07 Palmer Dabbelt <palmer@dabbelt.com> |
387 | ||
388 | * (_bfd_riscv_relax_align): Call bfd_set_error and | |
389 | print an error message when unable to relax a .align directive. | |
390 | ||
b1308d2c PD |
391 | 2017-09-07 Palmer Dabbelt <palmer@dabbelt.com> |
392 | ||
393 | * elfnn-riscv.c (riscv_zero_pcrel_hi_reloc): New function. | |
394 | (riscv_record_pcrel_hi_reloc): Add absolute argument. | |
395 | (riscv_elf_relocate_section): Call riscv_zero_pcrel_hi_reloc for | |
396 | R_RISCV_PCREL_HI20 relocs, and pass the result to | |
397 | riscv_record_pcrel_hi_reloc. | |
398 | ||
6999821f L |
399 | 2017-09-07 H.J. Lu <hongjiu.lu@intel.com> |
400 | ||
401 | * elf32-i386.c (elf_i386_convert_load_reloc): Add an argument, | |
402 | r_type_p. Remove the converted argument. Replace | |
403 | SYMBOL_REFERENCES_LOCAL with SYMBOL_REFERENCES_LOCAL_P. Return | |
404 | the new relocation type via r_type_p. | |
405 | (elf_i386_relocate_section): Likewise. | |
406 | (elf_i386_finish_dynamic_symbol): Likewise. | |
407 | (need_convert_load): Removed. | |
408 | (check_relocs_failed): Updated. | |
409 | (elf_i386_check_relocs): Call elf_i386_convert_load_reloc, | |
410 | instead of setting need_convert_load. | |
411 | (_bfd_i386_elf_convert_load): Removed. | |
412 | * elf64-x86-64.c (need_convert_load): Removed. | |
413 | (check_relocs_failed): Updated. | |
414 | (elf_x86_64_convert_load_reloc): Add an argument, r_type_p. | |
415 | Replace SYMBOL_REFERENCES_LOCAL with SYMBOL_REFERENCES_LOCAL_P. | |
416 | Return the new relocation type via r_type_p. | |
417 | (elf_x86_64_check_relocs): Call elf_x86_64_convert_load_reloc, | |
418 | instead of setting need_convert_load. | |
419 | (elf_x86_64_check_relocs): Don't check PIC if relocation has | |
420 | been converted. | |
421 | (_bfd_x86_64_elf_convert_load): Removed. | |
422 | (elf_x86_64_relocate_section): Replace SYMBOL_REFERENCES_LOCAL | |
423 | with SYMBOL_REFERENCES_LOCAL_P. | |
424 | (elf_x86_64_finish_dynamic_symbol): Likewise. | |
425 | * elfxx-x86.c (_bfd_x86_elf_link_hash_table_create): Don't | |
426 | set convert_load. | |
427 | (_bfd_x86_elf_size_dynamic_sections): Don't call convert_load. | |
428 | (_bfd_x86_elf_link_symbol_references_local): New function. | |
429 | * elfxx-x86.h (SYMBOL_REFERENCES_LOCAL_P): New. | |
430 | (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Replace elf.forced_local with | |
431 | SYMBOL_REFERENCES_LOCAL_P. | |
432 | (elf_x86_link_hash_entry): Add local_ref. | |
433 | (elf_x86_link_hash_table): Remove convert_load. | |
434 | (_bfd_i386_elf_convert_load): Removed. | |
435 | (_bfd_x86_64_elf_convert_load): Likewise. | |
436 | (_bfd_x86_elf_link_symbol_references_local): New. | |
437 | ||
78984959 L |
438 | 2017-09-06 H.J. Lu <hongjiu.lu@intel.com> |
439 | ||
440 | * elf64-x86-64.c (R_X86_64_converted_reloc_bit): New. | |
441 | (elf_x86_64_info_to_howto): Get the real relocation type by | |
442 | masking out R_X86_64_converted_reloc_bit. | |
443 | (elf_x86_64_check_tls_transition): Get the real relocation type | |
444 | by masking out R_X86_64_converted_reloc_bit. | |
445 | (elf_x86_64_convert_load_reloc): Set R_X86_64_converted_reloc_bit | |
446 | instead of setting converted_reloc. | |
447 | (elf_x86_64_relocate_section): Check R_X86_64_converted_reloc_bit | |
448 | instead of converted_reloc. Get the real relocation type by | |
449 | masking out R_X86_64_converted_reloc_bit. | |
450 | (elf_x86_64_link_setup_gnu_properties): Verify that the value of | |
451 | R_X86_64_converted_reloc_bit is valid. | |
452 | * elfxx-x86.h (converted_reloc): Removed. | |
453 | ||
419414ea L |
454 | 2017-09-06 H.J. Lu <hongjiu.lu@intel.com> |
455 | ||
456 | * elf32-i386.c (elf_i386_relocate_section): Don't change r_type | |
457 | when calling elf_i386_tls_transition. Don't use ELF32_R_TYPE | |
458 | to get the relocation type again. | |
459 | * elf64-x86-64.c (elf_x86_64_relocate_section): Don't change | |
460 | r_type when calling elf_x86_64_tls_transition. Don't use | |
461 | ELF32_R_TYPE to get the relocation type again. | |
462 | ||
dc089072 L |
463 | 2017-09-05 H.J. Lu <hongjiu.lu@intel.com> |
464 | ||
465 | * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Properly set | |
466 | converted_reloc. | |
467 | ||
8b43e456 L |
468 | 2017-09-05 H.J. Lu <hongjiu.lu@intel.com> |
469 | ||
470 | * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Remove the sec | |
471 | argument. Don't check relocation overflow. Avoid relocation | |
472 | overflow if --no-relax is used. Set converted_reloc on symbol | |
473 | if a GOTPCREL relocation is converted. | |
474 | (elf_x86_64_relocate_section): Issue a fatal error and suggest | |
475 | --no-relax if GOTPCREL relocation conversion leads to relocation | |
476 | overflow. | |
477 | * elfxx-x86.h (elf_x86_link_hash_entry): Add converted_reloc. | |
478 | ||
83eef883 AFB |
479 | 2017-09-05 Alexander Fedotov <alexander.fedotov@nxp.com> |
480 | Edmar Wienskoski <edmar.wienskoski@nxp.com | |
481 | ||
482 | * elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_VLE_ADDR20. | |
483 | (ppc_elf_check_relocs): Handle it. | |
484 | (ppc_elf_vle_split20): New function. | |
485 | (ppc_elf_relocate_section): Handle R_PPC_VLE_ADDR20. | |
486 | ||
0e30d991 L |
487 | 2017-09-03 H.J. Lu <hongjiu.lu@intel.com> |
488 | ||
489 | PR ld/22071 | |
490 | * elfxx-x86.c (elf_x86_allocate_dynrelocs): Set tlsdesc_plt | |
491 | for x86-64 if GOT_TLS_GDESC_P is true. | |
492 | ||
1cf58434 AM |
493 | 2017-09-03 Alan Modra <amodra@gmail.com> |
494 | ||
495 | PR 22067 | |
496 | * elfxx-x86.h (elf_x86_hash_table): Check is_elf_hash_table first. | |
497 | ||
f04bdfa7 L |
498 | 2017-09-02 H.J. Lu <hongjiu.lu@intel.com> |
499 | ||
500 | * elfxx-x86.c (_bfd_x86_elf_link_hash_table_create): Initialize | |
501 | tls_get_addr for x86-64 in one place. | |
502 | ||
2ac3a7f5 L |
503 | 2017-09-02 H.J. Lu <hongjiu.lu@intel.com> |
504 | ||
505 | * configure.ac (bfd_backends): Add elf64-x86-64.lo together | |
506 | with elfxx-x86.lo for 64-bit BFD. | |
507 | * configure: Regenerated. | |
508 | ||
d47a8026 L |
509 | 2017-09-02 H.J. Lu <hongjiu.lu@intel.com> |
510 | ||
511 | * elf32-i386.c (elf_i386_convert_load): Renamed to ... | |
512 | (_bfd_i386_elf_convert_load): This. Remove static. | |
513 | (elf_i386_size_dynamic_sections): Removed. | |
514 | (elf_backend_size_dynamic_sections): Likewise. | |
515 | * elf64-x86-64.c (elf_x86_64_convert_load): Renamed to ... | |
516 | (_bfd_x86_64_elf_convert_load): This. Remove static. | |
517 | (elf_x86_64_size_dynamic_sections): Removed. | |
518 | (elf_backend_size_dynamic_sections): Likewise. | |
519 | * elfxx-x86.c (_bfd_x86_elf_allocate_dynrelocs): Renamed to ... | |
520 | (elf_x86_allocate_dynrelocs): This. Make it static. | |
521 | (_bfd_x86_elf_allocate_local_dynrelocs): Renamed to ... | |
522 | (elf_x86_allocate_local_dynreloc): This. Make it static. | |
523 | (elf_i386_is_reloc_section): New function. | |
524 | (elf_x86_64_is_reloc_section): Likewise. | |
525 | (_bfd_x86_elf_link_hash_table_create): Initialize convert_load, | |
526 | is_reloc_section, dt_reloc, dt_reloc_sz and dt_reloc_ent. | |
527 | Rearrange got_entry_size initialization. | |
528 | (_bfd_x86_elf_size_dynamic_sections): New function. | |
529 | * elfxx-x86.h (elf_x86_link_hash_table): Add convert_load, | |
530 | is_reloc_section, dt_reloc, dt_reloc_sz and dt_reloc_ent. | |
531 | (_bfd_i386_elf_convert_load): New. | |
532 | (_bfd_x86_64_elf_convert_load): Likewise. | |
533 | (_bfd_x86_elf_size_dynamic_sections): Likewise. | |
534 | (elf_backend_size_dynamic_sections): Likewise. | |
535 | (_bfd_x86_elf_allocate_dynrelocs): Removed. | |
536 | (_bfd_x86_elf_allocate_local_dynrelocs): Likewise. | |
537 | ||
2926eb2c L |
538 | 2017-09-02 H.J. Lu <hongjiu.lu@intel.com> |
539 | ||
540 | * elfxx-x86.h (elf_x86_link_hash_table): Rearrange fields and | |
541 | update comments. | |
542 | ||
92c10f5f L |
543 | 2017-09-02 H.J. Lu <hongjiu.lu@intel.com> |
544 | ||
545 | * elf32-i386.c (elf_i386_size_dynamic_sections): Set | |
546 | sgotplt_jump_table_size with elf_x86_compute_jump_table_size. | |
547 | ||
aa595247 L |
548 | 2017-09-02 H.J. Lu <hongjiu.lu@intel.com> |
549 | ||
550 | * elf32-i386.c (PLT_CIE_LENGTH, PLT_FDE_LENGTH, | |
551 | PLT_FDE_START_OFFSET, PLT_FDE_LEN_OFFSET): Moved to ... | |
552 | * elfxx-x86.h (PLT_CIE_LENGTH, PLT_FDE_LENGTH, | |
553 | PLT_FDE_START_OFFSET, PLT_FDE_LEN_OFFSET): Here. | |
554 | * elf64-x86-64.c (PLT_CIE_LENGTH, PLT_FDE_LENGTH, | |
555 | PLT_FDE_START_OFFSET, PLT_FDE_LEN_OFFSET): Removed. | |
556 | ||
b9ce864c L |
557 | 2017-09-02 H.J. Lu <hongjiu.lu@intel.com> |
558 | ||
559 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Removed. | |
560 | (elf_i386_allocate_local_dynrelocs): Likewise. | |
561 | (elf_i386_size_dynamic_sections): Replace | |
562 | elf_i386_allocate_dynrelocs/elf_i386_allocate_local_dynrelocs | |
563 | with _bfd_x86_elf_allocate_dynrelocs and | |
564 | _bfd_x86_elf_allocate_local_dynrelocs. | |
565 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Removed. | |
566 | (elf_x86_64_allocate_local_dynrelocs): Likewise. | |
567 | (elf_x86_64_size_dynamic_sections): Replace | |
568 | elf_x86_64_allocate_dynrelocs/elf_x86_64_allocate_local_dynrelocs | |
569 | with _bfd_x86_elf_allocate_dynrelocs and | |
570 | _bfd_x86_elf_allocate_local_dynrelocs. | |
571 | * elfxx-x86.c (_bfd_x86_elf_allocate_dynrelocs): New function. | |
572 | (_bfd_x86_elf_allocate_local_dynrelocs): Likewise. | |
573 | * elfxx-x86.h (_bfd_x86_elf_allocate_dynrelocs): New prototype. | |
574 | (_bfd_x86_elf_allocate_local_dynrelocs): Likewise. | |
575 | ||
fe53b4a4 L |
576 | 2017-09-02 H.J. Lu <hongjiu.lu@intel.com> |
577 | ||
578 | * elf32-i386.c (is_i386_elf): Removed. | |
579 | (elf_i386_check_relocs): Replace is_i386_elf with is_x86_elf. | |
580 | (elf_i386_size_dynamic_sections): Likewise. | |
581 | (elf_i386_relocate_section): Likewise. | |
582 | * elf64-x86-64.c (is_x86_64_elf): Removed. | |
583 | (elf_x86_64_check_relocs): Replace is_x86_64_elf with | |
584 | is_x86_elf. | |
585 | (elf_x86_64_size_dynamic_sections): Likewise. | |
586 | (elf_x86_64_relocate_section): Likewise. | |
587 | * elfxx-x86.c (_bfd_x86_elf_link_hash_table_create): Initialize | |
588 | target_id. | |
589 | * elfxx-x86.h (elf_x86_link_hash_table): Add target_id. | |
590 | (is_x86_elf): New. | |
591 | ||
9ff114ca L |
592 | 2017-09-02 H.J. Lu <hongjiu.lu@intel.com> |
593 | ||
594 | * elf32-i386.c (elf_i386_compute_jump_table_size): Removed. | |
595 | (elf_i386_allocate_dynrelocs): Replace | |
596 | elf_i386_compute_jump_table_size with | |
597 | elf_x86_compute_jump_table_size. | |
598 | (elf_i386_size_dynamic_sections): Likewise. | |
599 | * elf64-x86-64.c (elf_x86_64_compute_jump_table_size): Removed. | |
600 | (elf_x86_64_allocate_dynrelocs): Replace | |
601 | elf_x86_64_compute_jump_table_size with | |
602 | elf_x86_compute_jump_table_size. | |
603 | (elf_x86_64_size_dynamic_sections): Likewise. | |
604 | * elfxx-x86.c (_bfd_x86_elf_link_hash_table_create): Initialize | |
605 | got_entry_size. | |
606 | * elfxx-x86.h (elf_x86_link_hash_table): Add got_entry_size. | |
607 | (elf_x86_compute_jump_table_size): New. | |
608 | ||
503294e7 L |
609 | 2017-09-02 H.J. Lu <hongjiu.lu@intel.com> |
610 | ||
611 | * elfxx-x86.c (_bfd_x86_elf_link_hash_table_create): Initialize | |
612 | sizeof_reloc. | |
613 | (_bfd_x86_elf_adjust_dynamic_symbol): Use sizeof_reloc. | |
614 | * elfxx-x86.h (elf_x86_link_hash_table): Add sizeof_reloc. | |
615 | ||
9a742a90 L |
616 | 2017-09-02 H.J. Lu <hongjiu.lu@intel.com> |
617 | ||
618 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Check VxWorks | |
619 | with htab->is_vxworks. | |
620 | (elf_i386_size_dynamic_sections): Likewise. | |
621 | (elf_i386_relocate_section): Likewise. | |
622 | (elf_i386_finish_dynamic_symbol): Likewise. | |
623 | (elf_i386_finish_dynamic_sections): Likewise. | |
624 | ||
6b9553e2 L |
625 | 2017-09-02 H.J. Lu <hongjiu.lu@intel.com> |
626 | ||
627 | * elf32-i386.c (GOT_TLS_IE, GOT_TLS_IE_POS, GOT_TLS_IE_NEG, | |
628 | GOT_TLS_IE_BOTH, GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P, | |
629 | GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): Moved to ... | |
630 | * elfxx-x86.h (GOT_TLS_IE, GOT_TLS_IE_POS, GOT_TLS_IE_NEG, | |
631 | GOT_TLS_IE_BOTH, GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P, | |
632 | GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): Here. | |
633 | * elf64-x86-64.c (GOT_TLS_IE, GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P, | |
634 | GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): Removed. | |
635 | ||
ad71ce8d L |
636 | 2017-09-01 H.J. Lu <hongjiu.lu@intel.com> |
637 | ||
638 | PR ld/22064 | |
639 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Check | |
640 | ELF_COMMON_DEF_P for common symbols. | |
641 | ||
96d01d93 AM |
642 | 2017-09-02 Alan Modra <amodra@gmail.com> |
643 | ||
644 | * elf-eh-frame.c (offset_adjust): Avoid false positive gcc warning. | |
645 | * elflink.c (bfd_elf_size_dynsym_hash_dynstr): Likewise. | |
646 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Likewise. | |
647 | ||
4f501a24 L |
648 | 2017-09-01 H.J. Lu <hongjiu.lu@intel.com> |
649 | ||
650 | * elf32-i386.c (elf_i386_gc_mark_hook): Removed. | |
651 | (elf_backend_gc_mark_hook): Likewise. | |
652 | * elf64-x86-64.c (elf_x86_64_gc_mark_hook): Likewise. | |
653 | (elf_backend_gc_mark_hook): Likewise. | |
654 | * elfxx-x86.c (_bfd_x86_elf_gc_mark_hook): New function. | |
655 | * elfxx-x86.h (_bfd_x86_elf_gc_mark_hook): New. | |
656 | (elf_backend_gc_mark_hook): Likewise. | |
657 | ||
eeb2f20a L |
658 | 2017-09-01 H.J. Lu <hongjiu.lu@intel.com> |
659 | ||
660 | * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Removed. | |
661 | (elf_backend_adjust_dynamic_symbol): Likewise. | |
662 | * elf64-x86-64.c (elf_x86_64_adjust_dynamic_symbol): Likewise. | |
663 | (elf_backend_adjust_dynamic_symbol): Likewise. | |
664 | * elfxx-x86.c (_bfd_x86_elf_adjust_dynamic_symbol): New function. | |
665 | (_bfd_x86_elf_link_setup_gnu_properties): Copy is_vxworks. | |
666 | * elfxx-x86.h (elf_x86_link_hash_table): Add is_vxworks. | |
667 | (_bfd_x86_elf_adjust_dynamic_symbol): New. | |
668 | (elf_backend_adjust_dynamic_symbol): Likewise. | |
669 | ||
c6295c22 L |
670 | 2017-09-01 H.J. Lu <hongjiu.lu@intel.com> |
671 | ||
672 | * elfxx-x86.h (elf_x86_plt_layout_table): Fix a typo in | |
673 | comments. | |
674 | ||
39946cc2 L |
675 | 2017-09-01 H.J. Lu <hongjiu.lu@intel.com> |
676 | ||
677 | * elf32-i386.c (elf_i386_mkobject): Removed. | |
678 | (bfd_elf32_mkobject): Likewise. | |
679 | * elf64-x86-64.c (elf_x86_64_mkobject): Likewise. | |
680 | (bfd_elf64_mkobject): Likewise. | |
681 | (bfd_elf32_mkobject): Likewise. | |
682 | * elfxx-x86.c (_bfd_x86_elf_mkobject): New function. | |
18da07cd | 683 | * elfxx-x86.h (_bfd_x86_elf_mkobject): New. |
39946cc2 L |
684 | (bfd_elf64_mkobject): Likewise. |
685 | (bfd_elf32_mkobject): Likewise. | |
686 | ||
a6798bab L |
687 | 2017-09-01 H.J. Lu <hongjiu.lu@intel.com> |
688 | ||
689 | * elf32-i386.c (elf_i386_link_setup_gnu_properties): Updated. | |
690 | Call _bfd_x86_elf_link_setup_gnu_properties. | |
691 | * elf64-x86-64.c (elf_x86_lazy_plt_layout): Initialize | |
692 | pic_plt0_entry and pic_plt_entry fields with the non-PIC PLT | |
693 | entries. | |
694 | (elf_x86_64_non_lazy_plt): Likewise. | |
695 | (elf_x86_64_lazy_bnd_plt): Likewise. | |
696 | (elf_x86_64_non_lazy_bnd_plt): Likewise. | |
697 | (elf_x86_64_lazy_ibt_plt): Likewise. | |
698 | (elf_x32_lazy_ibt_plt): Likewise. | |
699 | (elf_x86_64_non_lazy_ibt_plt): Likewise. | |
700 | (elf_x32_non_lazy_ibt_plt): Likewise. | |
701 | (elf_x86_64_nacl_plt): Likewise. | |
702 | (elf_x86_64_link_setup_gnu_properties): Updated. Call | |
703 | _bfd_x86_elf_link_setup_gnu_properties. | |
704 | * elfxx-x86.c: Include elf-vxworks.h". | |
705 | (_bfd_x86_elf_link_setup_gnu_properties): New function. | |
706 | * elfxx-x86.h (elf_x86_lazy_plt_layout): Remove "for i386 only" | |
707 | comments for pic_plt0_entry and pic_plt_entry. | |
708 | (elf_x86_non_lazy_plt_layout): Likewise. | |
709 | (elf_x86_plt_layout_table): New. | |
710 | (_bfd_x86_elf_link_setup_gnu_properties): Likewise. | |
711 | ||
e10c9c62 L |
712 | 2017-09-01 H.J. Lu <hongjiu.lu@intel.com> |
713 | ||
714 | PR ld/22061 | |
715 | * elf32-i386.c (elf_i386_link_setup_gnu_properties): Create | |
716 | .eh_frame section for the second PLT. | |
717 | * elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): Correct | |
718 | alignment of .eh_frame section for the second PLT. | |
719 | ||
7e8b6008 NC |
720 | 2017-09-01 Nick Clifton <nickc@redhat.com> |
721 | ||
722 | PR 22059 | |
723 | * dwarf2.c (decode_line_info): Fix test for an overlong line info | |
724 | structure. | |
725 | ||
2a143b99 NC |
726 | 2017-09-01 Nick Clifton <nickc@redhat.com> |
727 | ||
728 | PR 22058 | |
729 | * elf-attrs.c (_bfd_elf_parse_attributes): Ensure that the | |
730 | attribute buffer is NUL terminated. | |
731 | ||
e4f27230 NC |
732 | 2017-08-31 Nick Clifton <nickc@redhat.com> |
733 | ||
734 | PR 22047 | |
735 | * dwarf2.c (read_section): If necessary add a terminating NUL byte | |
736 | to dwarf string sections. | |
737 | ||
686335cd AM |
738 | 2017-08-31 Alan Modra <amodra@gmail.com> |
739 | ||
740 | * po/SRC-POTFILES.in: Regenerate. | |
741 | ||
9866ffe2 AM |
742 | 2017-08-31 Alan Modra <amodra@gmail.com> |
743 | ||
744 | * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Don't exit early | |
745 | for a section containing just a terminator. Allow multiple | |
746 | terminators at end of section. | |
747 | * elflink.c (bfd_elf_discard_info): Iterate over .eh_frame | |
748 | sections when not adding alignment. Assert on terminator in | |
749 | the middle of FDEs. | |
750 | ||
af471f82 AM |
751 | 2017-08-31 Alan Modra <amodra@gmail.com> |
752 | ||
753 | PR 21441 | |
754 | PR 22048 | |
755 | * elflink.c (bfd_elf_discard_info): Don't pad embedded zero | |
756 | terminators. | |
757 | ||
3321e42b L |
758 | 2017-08-30 H.J. Lu <hongjiu.lu@intel.com> |
759 | ||
760 | * configure.ac (bfd_backends): Add elf64.lo together with | |
761 | elfxx-x86.lo for 64-bit BFD. | |
762 | * configure: Regenerated. | |
763 | ||
ef32532f JB |
764 | 2017-08-31 James Bowman <james.bowman@ftdichip.com> |
765 | ||
766 | * elf32-ft32.c (ft32_elf_howto_table): Use complain_overflow_dont | |
767 | for R_FT32_18. | |
768 | ||
e234de6b AM |
769 | 2017-08-31 Alan Modra <amodra@gmail.com> |
770 | ||
771 | PR binutils/22032 | |
772 | * opncls.c (bfd_close_all_done): Don't call bfd_cache_close | |
773 | before _close_and_cleanup. Call iovec->bclose after. | |
774 | (bfd_close): Remove code common to, and call, bfd_close_all_done. | |
775 | ||
f493882d L |
776 | 2017-08-30 H.J. Lu <hongjiu.lu@intel.com> |
777 | ||
778 | * elf32-i386.c (elf_i386_plt_type): Removed. | |
779 | (elf_i386_plt): Likewise. | |
780 | (elf_i386_get_synthetic_symtab): Updated. Call | |
781 | _bfd_x86_elf_get_synthetic_symtab. | |
782 | * elf64-x86-64.c (elf_x86_64_plt_type): Removed. | |
783 | (elf_x86_64_plt): Likewise. | |
784 | (elf_x86_64_get_synthetic_symtab): Updated. Call | |
785 | _bfd_x86_elf_get_synthetic_symtab. | |
786 | * elfxx-x86.c (elf_i386_get_plt_got_vma): New function. | |
787 | (elf_x86_64_get_plt_got_vma): Likewise. | |
788 | (elf_i386_valid_plt_reloc_p): Likewise. | |
789 | (elf_x86_64_valid_plt_reloc_p): Likewise. | |
790 | (_bfd_x86_elf_get_synthetic_symtab): Likewise. | |
791 | * elfxx-x86.h (elf_x86_plt_type): New. | |
792 | (elf_x86_plt): Likewise. | |
793 | (_bfd_x86_elf_get_synthetic_symtab): Likewise. | |
794 | ||
5b86dbf4 L |
795 | 2017-08-30 H.J. Lu <hongjiu.lu@intel.com> |
796 | ||
797 | * elfxx-x86.c (_bfd_x86_elf_link_hash_table_create): Check | |
798 | target_id instead of elf_machine_code. | |
799 | ||
765e526c L |
800 | 2017-08-30 H.J. Lu <hongjiu.lu@intel.com> |
801 | ||
802 | * elf32-i386.c (ELF_DYNAMIC_INTERPRETER): Removed. | |
803 | (elf_i386_lazy_plt_layout): Likewise. | |
804 | (elf_i386_non_lazy_plt_layout): Likewise. | |
805 | (elf_i386_plt_layout): Likewise. | |
806 | (elf_i386_link_hash_table): Likewise. | |
807 | (elf_i386_next_tls_desc_index): Likewise. | |
808 | (elf_i386_srelplt2): Likewise. | |
809 | (elf_i386_plt): Likewise. | |
810 | (elf_i386_lazy_plt): Likewise. | |
811 | (elf_i386_non_lazy_plt): Likewise. | |
812 | (elf_i386_link_hash_table_create): Likewise. | |
813 | (bfd_elf32_bfd_link_hash_table_create): Likewise. | |
814 | (elf_i386_lazy_plt): Updated. | |
815 | (elf_i386_non_lazy_plt): Likewise. | |
816 | (elf_i386_lazy_ibt_plt): Likewise. | |
817 | (elf_i386_non_lazy_ibt_plt): Likewise. | |
818 | (elf_i386_allocate_dynrelocs): Likewise. | |
819 | (elf_i386_size_dynamic_sections): Likewise. | |
820 | (elf_i386_relocate_section): Likewise. | |
821 | (elf_i386_finish_dynamic_symbol): Likewise. | |
822 | (elf_i386_finish_dynamic_sections): Likewise. | |
823 | (elf_i386_get_synthetic_symtab): Likewise. | |
824 | (elf_i386_link_setup_gnu_properties): Likewise. | |
825 | (elf_i386_nacl_plt): Likewise. | |
826 | * elf64-x86-64.c (ABI_64_P): Removed. | |
827 | (ELF64_DYNAMIC_INTERPRETER): Likewise. | |
828 | (ELF32_DYNAMIC_INTERPRETER): Likewise. | |
829 | (elf_x86_64_lazy_plt_layout): Likewise. | |
830 | (elf_x86_64_non_lazy_plt_layout): Likewise. | |
831 | (elf_x86_64_plt_layout): Likewise. | |
832 | (elf_x86_64_link_hash_table): Likewise. | |
833 | (elf_x86_64_plt): Likewise. | |
834 | (elf_x86_64_lazy_plt): Likewise. | |
835 | (elf_x86_64_non_lazy_plt): Likewise. | |
836 | (elf_x86_64_link_hash_table_create): Likewise. | |
837 | (bfd_elf64_bfd_link_hash_table_create): Likewise. | |
838 | (bfd_elf32_bfd_link_hash_table_create): Likewise. | |
839 | (elf_x86_64_lazy_plt): Updated. | |
840 | (elf_x86_64_non_lazy_plt): Likewise. | |
841 | (elf_x86_64_lazy_bnd_plt): Likewise. | |
842 | (elf_x86_64_non_lazy_bnd_plt): Likewise. | |
843 | (elf_x86_64_lazy_ibt_plt): Likewise. | |
844 | (elf_x32_lazy_ibt_plt): Likewise. | |
845 | (elf_x86_64_non_lazy_ibt_plt): Likewise. | |
846 | (elf_x32_non_lazy_ibt_plt): Likewise. | |
847 | (elf_x86_64_allocate_dynrelocs): Likewise. | |
848 | (elf_x86_64_size_dynamic_sections): Likewise. | |
849 | (elf_x86_64_relocate_section): Likewise. | |
850 | (elf_x86_64_finish_dynamic_symbol): Likewise. | |
851 | (elf_x86_64_finish_dynamic_sections): Likewise. | |
852 | (elf_x86_64_get_synthetic_symtab): Likewise. | |
853 | (elf_x86_64_link_setup_gnu_properties): Likewise. | |
854 | (elf_x86_64_nacl_plt): Likewise. | |
855 | * elfxx-x86.c: Include "objalloc.h", "elf/i386.h" and | |
856 | "elf/x86-64.h". | |
857 | (ELF32_DYNAMIC_INTERPRETER): New. | |
858 | (ELF64_DYNAMIC_INTERPRETER): Likewise. | |
859 | (ELFX32_DYNAMIC_INTERPRETER): Likewise. | |
860 | (_bfd_x86_elf_link_hash_table_create): Likewise. | |
861 | (_bfd_x86_elf_link_hash_table_free): Renamed to ... | |
862 | (elf_x86_link_hash_table_free): This. Make it static. | |
863 | * elfxx-x86.h: Don't include "objalloc.h". | |
864 | (ABI_64_P): New. | |
865 | (elf_x86_lazy_plt_layout): Likewise. | |
866 | (elf_x86_non_lazy_plt_layout): Likewise. | |
867 | (elf_x86_plt_layout): Likewise. | |
868 | (_bfd_x86_elf_link_hash_table_create): Likewise. | |
869 | (bfd_elf64_bfd_link_hash_table_create): Likewise. | |
870 | (bfd_elf32_bfd_link_hash_table_create): Likewise. | |
871 | (elf_x86_link_hash_table): Add plt, lazy_plt, non_lazy_plt, | |
872 | srelplt2 and next_tls_desc_index. | |
873 | (_bfd_x86_elf_link_hash_table_free): Removed. | |
874 | ||
70e65ca8 MR |
875 | 2017-08-30 Maciej W. Rozycki <macro@imgtec.com> |
876 | ||
877 | * elfxx-mips.c (mips_elf_perform_relocation): Correct microMIPS | |
878 | branch offset interpretation. | |
879 | ||
7c0ed396 L |
880 | 2017-08-30 H.J. Lu <hongjiu.lu@intel.com> |
881 | ||
882 | PR binutils/22032 | |
883 | * opncls.c (bfd_close_all_done): Call _close_and_cleanup. | |
884 | ||
0f2425c4 L |
885 | 2017-08-30 H.J. Lu <hongjiu.lu@intel.com> |
886 | ||
887 | * elf64-x86-64.c (elf_x86_64_next_tls_desc_index): Removed. | |
888 | (elf_x86_64_srelplt2): Likewise. | |
889 | ||
9a23f96e AM |
890 | 2017-08-30 Alan Modra <amodra@gmail.com> |
891 | ||
892 | * elf64-ppc.c (struct ppc_link_hash_table): Add do_tls_opt. | |
893 | (ppc64_elf_tls_optimize): Set it. | |
894 | (ppc64_elf_relocate_section): Nop addis on TPREL16_HA, and convert | |
895 | insn on TPREL16_LO and TPREL16_LO_DS relocs to use r13 when | |
896 | addis would add zero. | |
897 | * elf32-ppc.c (struct ppc_elf_link_hash_table): Add do_tls_opt. | |
898 | (ppc_elf_tls_optimize): Set it. | |
899 | (ppc_elf_relocate_section): Nop addis on TPREL16_HA, and convert | |
900 | insn on TPREL16_LO relocs to use r2 when addis would add zero. | |
901 | ||
b9f04fe0 AM |
902 | 2017-08-30 Alan Modra <amodra@gmail.com> |
903 | ||
904 | * elf64-ppc.c (ppc64_elf_relocate_section): When optimizing | |
905 | __tls_get_addr call sequences to LE, don't move the addi down | |
906 | to the nop. Replace the bl with addi and leave the nop alone. | |
907 | ||
5f0f0847 L |
908 | 2017-08-29 H.J. Lu <hongjiu.lu@intel.com> |
909 | ||
910 | * elf32-i386.c (elf_i386_pie_finish_undefweak_symbol): | |
911 | Re-indent. | |
912 | * elf64-x86-64.c (elf_x86_64_finish_local_dynamic_symbol): | |
913 | Likewise. | |
914 | (elf_x86_64_pie_finish_undefweak_symbol): Likewise. | |
915 | ||
443701f5 L |
916 | 2017-08-29 H.J. Lu <hongjiu.lu@intel.com> |
917 | ||
918 | * Makefile.am (BFD32_BACKENDS): Add elfxx-x86.lo. | |
919 | (BFD64_BACKENDS): Likewise. | |
920 | (BFD32_BACKENDS_CFILES): Add elfxx-x86.c. | |
921 | (BFD64_BACKENDS_CFILES): Likewise. | |
922 | * Makefile.in: Regenerated. | |
923 | * configure.ac (bfd_backends): Add elfxx-x86.lo together with | |
924 | elf32-i386.lo and elf64-x86-64.lo. | |
925 | * configure: Regenerated. | |
926 | * elf32-i386.c: Include "elfxx-x86.h" instead of "sysdep.h", | |
927 | "bfd.h", "bfdlink.h", "libbfd.h", "elf-bfd.h", "bfd_stdint.h", | |
928 | "objalloc.h" and "hashtab.h". | |
929 | (ELIMINATE_COPY_RELOCS): Removed. | |
930 | (UNDEFINED_WEAK_RESOLVED_TO_ZERO):Likewise. | |
931 | (SYMBOL_NO_COPYRELOC): Likewise. | |
932 | (elf_i386_link_hash_entry): Likewise. | |
933 | (GOT_UNKNOWN): Likewise. | |
934 | (GOT_NORMAL): Likewise. | |
935 | (GOT_TLS_GD): Likewise. | |
936 | (elf_i386_hash_entry): Likewise. | |
937 | (elf_i386_obj_tdata): Likewise. | |
938 | (elf_i386_tdata): Likewise. | |
939 | (elf_i386_local_got_tls_type): Likewise. | |
940 | (elf_i386_local_tlsdesc_gotent): Likewise. | |
941 | (elf_i386_hash_table): Likewise. | |
942 | (elf_i386_link_hash_newfunc): Likewise. | |
943 | (elf_i386_local_htab_hash): Likewise. | |
944 | (elf_i386_local_htab_eq): Likewise. | |
945 | (elf_i386_get_local_sym_hash): Likewise. | |
946 | (elf_i386_link_hash_table_free): Likewise. | |
947 | (elf_i386_copy_indirect_symbol): Likewise. | |
948 | (elf_i386_fixup_symbol): Likewise. | |
949 | (elf_i386_readonly_dynrelocs): Likewise. | |
950 | (elf_i386_always_size_sections): Likewise. | |
951 | (elf_i386_set_tls_module_base): Likewise. | |
952 | (elf_i386_dtpoff_base): Likewise. | |
953 | (compare_relocs): Likewise. | |
954 | (elf_i386_hash_symbol): Likewise. | |
955 | (elf_i386_parse_gnu_properties): Likewise. | |
956 | (elf_i386_merge_gnu_properties): Likewise. | |
957 | (elf_i386_link_check_relocs): Likewise. | |
958 | (elf_i386_merge_symbol_attribute): Likewise. | |
959 | (bfd_elf32_bfd_link_check_relocs): Likewise. | |
960 | (elf_backend_copy_indirect_symbol): Likewise. | |
961 | (elf_backend_always_size_sections): Likewise. | |
962 | (elf_backend_omit_section_dynsym): Likewise. | |
963 | (elf_backend_hash_symbol): Likewise. | |
964 | (elf_backend_fixup_symbol): Likewise. | |
965 | (elf_backend_parse_gnu_properties): Likewise. | |
966 | (elf_backend_merge_gnu_properties): Likewise. | |
967 | (elf_backend_merge_symbol_attribute): Likewise. | |
968 | (elf_i386_mkobject): Updated. | |
969 | (elf_i386_link_hash_table_create): Likewise. | |
970 | (elf_i386_check_tls_transition): Likewise. | |
971 | (elf_i386_tls_transition): Likewise. | |
972 | (elf_i386_convert_load_reloc): Likewise. | |
973 | (elf_i386_check_relocs): Likewise. | |
974 | (elf_i386_adjust_dynamic_symbol): Likewise. | |
975 | (elf_i386_allocate_dynrelocs): Likewise. | |
976 | (elf_i386_convert_load): Likewise. | |
977 | (elf_i386_size_dynamic_sections): Likewise. | |
978 | (elf_i386_relocate_section): Likewise. | |
979 | (elf_i386_finish_dynamic_symbol ): Likewise. | |
980 | (elf_i386_finish_dynamic_sections): Likewise. | |
981 | (elf_i386_output_arch_local_syms): Likewise. | |
982 | (elf_i386_get_synthetic_symtab): Likewise. | |
983 | (elf_i386_link_setup_gnu_properties): Likewise. | |
984 | (elf_i386_link_hash_table): Use elf_x86_link_hash_table, instead | |
985 | of elf_link_hash_table, as base. | |
986 | (elf_i386_next_tls_desc_index): New. | |
987 | (elf_i386_srelplt2): Likewise. | |
988 | (elf_i386_plt): Likewise. | |
989 | (elf_i386_lazy_plt): Likewise. | |
990 | (elf_i386_non_lazy_plt): Likewise. | |
991 | * elf32-x86-64.c: Include "elfxx-x86.h" instead of "sysdep.h", | |
992 | "bfd.h", "bfdlink.h", "libbfd.h", "elf-bfd.h", "bfd_stdint.h", | |
993 | "objalloc.h" and "hashtab.h". | |
994 | (ELIMINATE_COPY_RELOCS): Removed. | |
995 | (UNDEFINED_WEAK_RESOLVED_TO_ZERO):Likewise. | |
996 | (SYMBOL_NO_COPYRELOC): Likewise. | |
997 | (elf_x86_64_link_hash_entry): Likewise. | |
998 | (GOT_UNKNOWN): Likewise. | |
999 | (GOT_NORMAL): Likewise. | |
1000 | (GOT_TLS_GD): Likewise. | |
1001 | (elf_x86_64_hash_entry): Likewise. | |
1002 | (elf_x86_64_obj_tdata): Likewise. | |
1003 | (elf_x86_64_tdata): Likewise. | |
1004 | (elf_x86_64_local_got_tls_type): Likewise. | |
1005 | (elf_x86_64_local_tlsdesc_gotent): Likewise. | |
1006 | (elf_x86_64_hash_table): Likewise. | |
1007 | (elf_x86_64_link_hash_newfunc): Likewise. | |
1008 | (elf_x86_64_local_htab_hash): Likewise. | |
1009 | (elf_x86_64_local_htab_eq): Likewise. | |
1010 | (elf_x86_64_get_local_sym_hash): Likewise. | |
1011 | (elf_x86_64_link_hash_table_free): Likewise. | |
1012 | (elf_x86_64_copy_indirect_symbol): Likewise. | |
1013 | (elf_x86_64_fixup_symbol): Likewise. | |
1014 | (elf_x86_64_readonly_dynrelocs): Likewise. | |
1015 | (elf_x86_64_always_size_sections): Likewise. | |
1016 | (elf_x86_64_set_tls_module_base): Likewise. | |
1017 | (elf_x86_64_dtpoff_base): Likewise. | |
1018 | (compare_relocs): Likewise. | |
1019 | (elf_x86_64_merge_symbol_attribute): Likewise. | |
1020 | (elf_x86_64_hash_symbol): Likewise. | |
1021 | (elf_x86_64_parse_gnu_properties): Likewise. | |
1022 | (elf_x86_64_merge_gnu_properties): Likewise. | |
1023 | (elf_x86_64_link_check_relocs): Likewise. | |
1024 | (elf_backend_copy_indirect_symbol): Likewise. | |
1025 | (elf_backend_always_size_sections): Likewise. | |
1026 | (bfd_elf64_bfd_link_check_relocs): Likewise. | |
1027 | (elf_backend_merge_symbol_attribute): Likewise. | |
1028 | (elf_backend_hash_symbol): Likewise. | |
1029 | (elf_backend_omit_section_dynsym): Likewise. | |
1030 | (elf_backend_fixup_symbol): Likewise. | |
1031 | (elf_backend_parse_gnu_properties): Likewise. | |
1032 | (elf_backend_merge_gnu_properties): Likewise. | |
1033 | (bfd_elf32_bfd_link_check_relocs): Likewise. | |
1034 | (elf_x86_64_mkobject): Updated. | |
1035 | (elf_x86_64_link_hash_table_create): Likewise. | |
1036 | (elf_x86_64_check_tls_transition): Likewise. | |
1037 | (elf_x86_64_tls_transition): Likewise. | |
1038 | (elf_x86_64_convert_load_reloc): Likewise. | |
1039 | (elf_x86_64_check_relocs): Likewise. | |
1040 | (elf_x86_64_adjust_dynamic_symbol): Likewise. | |
1041 | (elf_x86_64_allocate_dynrelocs): Likewise. | |
1042 | (elf_x86_64_convert_load): Likewise. | |
1043 | (elf_x86_64_size_dynamic_sections): Likewise. | |
1044 | (elf_x86_64_relocate_section): Likewise. | |
1045 | (elf_x86_64_finish_dynamic_symbol ): Likewise. | |
1046 | (elf_x86_64_finish_dynamic_sections): Likewise. | |
1047 | (elf_x86_64_output_arch_local_syms): Likewise. | |
1048 | (elf_x86_64_get_synthetic_symtab): Likewise. | |
1049 | (elf_x86_64_link_setup_gnu_properties): Likewise. | |
1050 | (elf_x86_64_link_hash_table): Use elf_x86_link_hash_table, | |
1051 | instead of elf_link_hash_table, as base. | |
1052 | (elf_x86_64_next_tls_desc_index): New. | |
1053 | (elf_x86_64_srelplt2): Likewise. | |
1054 | (elf_x86_64_plt): Likewise. | |
1055 | (elf_x86_64_lazy_plt): Likewise. | |
1056 | (elf_x86_64_non_lazy_plt): Likewise. | |
1057 | * elfxx-x86.c: New file. | |
1058 | * elfxx-x86.h: Likewise. | |
1059 | ||
823cb067 L |
1060 | 2017-08-29 H.J. Lu <hongjiu.lu@intel.com> |
1061 | ||
1062 | * elf32-i386.c (elf_i386_get_synthetic_symtab): Simplify bad | |
1063 | return. | |
1064 | * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Likewise. | |
1065 | ||
37c0b6ee L |
1066 | 2017-08-29 H.J. Lu <hongjiu.lu@intel.com> |
1067 | ||
1068 | * elf32-i386.c (elf_i386_get_synthetic_symtab): Check valid PLT | |
1069 | sections before checking dynamic relocations and free invalid | |
1070 | PLT section contents. | |
1071 | * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Likewise. | |
1072 | ||
0fb0a767 L |
1073 | 2017-08-28 H.J. Lu <hongjiu.lu@intel.com> |
1074 | ||
1075 | * elf-bfd.h (_bfd_elf_ifunc_get_synthetic_symtab): Removed. | |
1076 | * elf-ifunc.c (_bfd_elf_ifunc_get_synthetic_symtab): Likewise. | |
1077 | ||
90efb642 L |
1078 | 2017-08-28 H.J. Lu <hongjiu.lu@intel.com> |
1079 | ||
1080 | PR binutils/22018 | |
1081 | * elf32-i386.c (elf_i386_get_synthetic_symtab): Check for valid | |
1082 | PLT section size. | |
1083 | * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Likewise. | |
1084 | ||
596dc58f L |
1085 | 2017-08-27 H.J. Lu <hongjiu.lu@intel.com> |
1086 | ||
1087 | * elf32-i386.c (elf_i386_link_hash_newfunc): Initialize | |
1088 | def_protected. | |
1089 | * elf64-x86-64.c (elf_x86_64_link_hash_newfunc): Likewise. | |
1090 | ||
a5b4ee94 L |
1091 | 2017-08-26 H.J. Lu <hongjiu.lu@intel.com> |
1092 | ||
1093 | PR ld/21997 | |
1094 | * elf-bfd.h (elf_obj_tdata): Use ENUM_BITFIELD on object_id, | |
1095 | dyn_lib_class and has_gnu_symbols. Change bad_symtab to bitfield. | |
1096 | Add a has_no_copy_on_protected bitfield. | |
1097 | (elf_has_no_copy_on_protected): New. | |
1098 | * elf-properties.c (_bfd_elf_parse_gnu_properties): Set | |
1099 | elf_has_no_copy_on_protected for GNU_PROPERTY_NO_COPY_ON_PROTECTED. | |
1100 | (elf_merge_gnu_property_list): Likewise. | |
1101 | (_bfd_elf_link_setup_gnu_properties): Set extern_protected_data | |
1102 | to FALSE for elf_has_no_copy_on_protected. | |
1103 | * elf32-i386.c (SYMBOL_NO_COPYRELOC): New. | |
1104 | (elf_i386_link_hash_entry): Add def_protected. | |
1105 | (elf_i386_adjust_dynamic_symbol): Also check SYMBOL_NO_COPYRELOC | |
1106 | when checking info->nocopyreloc. | |
1107 | (elf_i386_link_setup_gnu_properties): Don't set | |
1108 | extern_protected_data here. | |
1109 | (elf_i386_merge_symbol_attribute): New function. | |
1110 | (elf_backend_merge_symbol_attribute): New. | |
1111 | * elf64-x86-64.c (SYMBOL_NO_COPYRELOC): New. | |
1112 | (elf_x86_64_link_hash_entry): Add def_protected. | |
1113 | (elf_x86_64_need_pic): Report protected symbol for def_protected. | |
1114 | (elf_x86_64_adjust_dynamic_symbol): Also check SYMBOL_NO_COPYRELOC | |
1115 | when checking info->nocopyreloc. | |
1116 | (elf_x86_64_relocate_section): Also check for R_X86_64_PC32 | |
1117 | relocation run-time overflow and unresolvable R_X86_64_32S | |
1118 | relocation against protected data symbol defined in shared object | |
1119 | with GNU_PROPERTY_NO_COPY_ON_PROTECTED. | |
1120 | (elf_x86_64_link_setup_gnu_properties): Don't set | |
1121 | extern_protected_data here. | |
1122 | (elf_x86_64_merge_symbol_attribute): New function. | |
1123 | (elf_backend_merge_symbol_attribute): New. | |
1124 | ||
7c8bbca5 AM |
1125 | 2017-08-26 Alan Modra <amodra@gmail.com> |
1126 | ||
1127 | * elf32-ppc.c (must_be_dyn_reloc): Use bfd_link_dll. Comment. | |
1128 | (ppc_elf_check_relocs): Only set DF_STATIC_TLS in shared libs. | |
1129 | (ppc_elf_relocate_section): Comment fix. | |
1130 | * elf64-ppc.c (must_be_dyn_reloc): Use bfd_link_dll. Comment. | |
1131 | (ppc64_elf_check_relocs): Only set DF_STATIC_TLS in shared libs. | |
1132 | Support dynamic relocs for TPREL16 when non-pic too. | |
1133 | (dec_dynrel_count): Adjust TPREL16 handling as per check_relocs. | |
1134 | (ppc64_elf_relocate_section): Support dynamic relocs for TPREL16 | |
1135 | when non-pic too. | |
1136 | ||
5fdda9d6 L |
1137 | 2017-08-25 H.J. Lu <hongjiu.lu@intel.com> |
1138 | ||
1139 | * elf32-i386.c (elf_i386_link_hash_entry): Remove redundant | |
1140 | "symbol" in comments. | |
1141 | * elf64-x86-64.c (elf_x86_64_link_hash_entry): Likewise. | |
1142 | ||
7073b5b9 L |
1143 | 2017-08-24 H.J. Lu <hongjiu.lu@intel.com> |
1144 | ||
1145 | PR ld/22001 | |
1146 | * elf64-x86-64.c (elf_x86_64_relocate_section): Check for | |
1147 | R_X86_64_PC32 relocation run-time overflow and unresolvable | |
1148 | R_X86_64_32S relocation with -z nocopyreloc. | |
1149 | ||
34bb2571 L |
1150 | 2017-08-24 H.J. Lu <hongjiu.lu@intel.com> |
1151 | ||
1152 | * elf32-i386.c (elf_i386_check_relocs): Revert the last change. | |
1153 | Undefined symbols may not have a type. | |
1154 | * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. | |
1155 | ||
aab921ad L |
1156 | 2017-08-23 H.J. Lu <hongjiu.lu@intel.com> |
1157 | ||
1158 | * elf64-x86-64.c (elf_x86_64_need_pic): Add an argument for | |
1159 | bfd_link_info. Report shared, PIE or PDE object based on | |
1160 | bfd_link_info. | |
1161 | (elf_x86_64_check_relocs): Update elf_x86_64_need_pic call. | |
1162 | (elf_x86_64_relocate_section): Likewise. | |
1163 | ||
b1bb697e L |
1164 | 2017-08-23 H.J. Lu <hongjiu.lu@intel.com> |
1165 | ||
1166 | * elf32-i386.c (elf_i386_check_relocs): Increment PLT count only | |
1167 | for function symbols. | |
1168 | * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. | |
1169 | ||
73784fa5 L |
1170 | 2017-08-23 H.J. Lu <hongjiu.lu@intel.com> |
1171 | ||
1172 | * elf32-i386.c (elf_i386_link_setup_gnu_properties): Set | |
1173 | extern_protected_data to FALSE if GNU_PROPERTY_NO_COPY_ON_PROTECTED | |
1174 | is set on any input relocatable file. | |
1175 | * elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): Likewise. | |
1176 | ||
46434633 AM |
1177 | 2017-08-23 Alan Modra <amodra@gmail.com> |
1178 | ||
1179 | PR 21988 | |
1180 | * elf64-ppc.c (ensure_undef_dynamic): Rename from | |
1181 | ensure_undefweak_dynamic. Handle undefined too. | |
1182 | * elf32-ppc.c (ensure_undef_dynamic): Likewise. | |
1183 | * elf32-hppa.c (ensure_undef_dynamic): Likewise. | |
1184 | (allocate_dynrelocs): Discard undefined non-default visibility | |
1185 | relocs first. Make undefined syms dynamic. Tidy goto. | |
1186 | ||
487b6440 AM |
1187 | 2017-08-21 Alan Modra <amodra@gmail.com> |
1188 | H.J. Lu <hongjiu.lu@intel.com> | |
1189 | ||
1190 | PR ld/21964 | |
1191 | * elf-bfd.h (SYMBOLIC_BIND): Return TRUE for __start/__stop symbols. | |
1192 | * elflink.c (bfd_elf_define_start_stop): Rewrite. | |
1193 | ||
284d826d HPN |
1194 | 2017-08-21 Hans-Peter Nilsson <hp@bitrange.com> |
1195 | ||
1196 | PR ld/20125 | |
1197 | * elf64-mmix.c (mmix_elf_relax_section): Correct handling of | |
1198 | undefined weak symbols. | |
1199 | ||
de259397 NC |
1200 | 2017-08-18 Nick Clifton <nickc@redhat.com> |
1201 | ||
1202 | PR binutils/21962 | |
1203 | * tekhex.c (getsym): Fix check for source pointer walking off the | |
1204 | end of the input buffer. | |
1205 | ||
545bc2b3 SN |
1206 | 2017-08-17 Szabolcs Nagy <szabolcs.nagy@arm.com> |
1207 | ||
1208 | PR ld/18808 | |
1209 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Skip IFUNC | |
1210 | relocations in debug sections, change abort to _bfd_error_handler. | |
1211 | ||
0c54f692 NC |
1212 | 2017-08-14 Nick Clifton <nickc@redhat.com> |
1213 | ||
1214 | PR 21957 | |
1215 | * elf.c (setup_group): Check for an empty or very small group | |
1216 | section. | |
1217 | * po/bfd.pot: Regenerate. | |
1218 | ||
79a94a2a AM |
1219 | 2017-08-14 Alan Modra <amodra@gmail.com> |
1220 | ||
1221 | PR 21441 | |
1222 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't add | |
1223 | alignment padding here. | |
1224 | * elflink.c (bfd_elf_discard_info): Add .eh_frame padding here | |
1225 | in a reverse pass over sections. | |
1226 | ||
98c5dfc9 L |
1227 | 2017-08-11 H.J. Lu <hongjiu.lu@intel.com> |
1228 | ||
1229 | PR binutils/21943 | |
1230 | * elf32-i386.c (elf_i386_get_synthetic_symtab): Allocate space | |
1231 | for @plt suffixes first. | |
1232 | * elf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Likewise. | |
1233 | ||
24d3e51b NC |
1234 | 2017-08-08 Nick Clifton <nickc@redhat.com> |
1235 | ||
1236 | PR 21916 | |
1237 | * elf-attrs.c (_bfd_elf_parse_attributes): Complain about very | |
1238 | small section lengths. | |
1239 | * elf.c (_bfd_elf_setup_sections): Skip empty entries in the group | |
1240 | table. | |
1241 | (elfcore_grok_freebsd_prstatus): Add checks to make sure that | |
1242 | there is enough data present in the note. | |
1243 | ||
206c9c79 AM |
1244 | 2017-08-08 Alan Modra <amodra@gmail.com> |
1245 | ||
1246 | PR 21017 | |
1247 | * elf32-microblaze.c (microblaze_elf_check_relocs): Don't bump | |
1248 | got.refcount for GOTOFF relocs, just create .got section. | |
1249 | ||
2980ccad L |
1250 | 2017-08-07 H.J. Lu <hongjiu.lu@intel.com> |
1251 | ||
1252 | * elflink.c (elf_link_add_object_symbols): Move common symbol | |
1253 | check after bed->common_definition. | |
1254 | ||
b3293efa AM |
1255 | 2017-08-07 Alan Modra <amodra@gmail.com> |
1256 | ||
1257 | PR 21910 | |
1258 | * elflink.c (bfd_elf_final_link): Don't segfault when sections | |
1259 | needed to define various dynamic tags have been discarded. | |
1260 | ||
b7a18930 NC |
1261 | 2017-08-07 Nick Clifton <nickc@redhat.com> |
1262 | ||
1263 | PR 21884 | |
1264 | * elf32-i386.c (elf_i386_link_setup_gnu_properties): If the dynobj | |
1265 | has not been set then use the bfd returned by | |
1266 | _bfd_elf_link_setup_gnu_properties. If that is null then search | |
1267 | through all the input bfds selecting the first normal, ELF format | |
1268 | one. | |
1269 | * elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): Likewise. | |
1270 | ||
1d4af308 L |
1271 | 2017-08-06 H.J. Lu <hongjiu.lu@intel.com> |
1272 | ||
1273 | * elf32-i386.c (elf_i386_link_hash_entry): Change tls_get_addr | |
1274 | to 1 bit. | |
1275 | (elf_i386_link_hash_newfunc): Initialize tls_get_addr to 0. | |
1276 | (elf_i386_check_tls_transition): Check tls_get_addr directly. | |
1277 | (elf_i386_convert_load_reloc): Update tls_get_addr check. | |
1278 | (elf_i386_link_check_relocs): New function. | |
1279 | (bfd_elf32_bfd_link_check_relocs): New. | |
1280 | * elf64-x86-64.c (elf_x86_64_link_hash_entry): Change tls_get_addr | |
1281 | to 1 bit. | |
1282 | (elf_x86_64_link_hash_newfunc): Initialize tls_get_addr to 0. | |
1283 | (elf_x86_64_check_tls_transition): Check tls_get_addr directly. | |
1284 | (elf_x86_64_convert_load_reloc): Update tls_get_addr check. | |
1285 | (elf_x86_64_link_check_relocs): New function. | |
1286 | (bfd_elf64_bfd_link_check_relocs): New. | |
1287 | (bfd_elf32_bfd_link_check_relocs): Likewise. | |
1288 | ||
a4819f54 L |
1289 | 2017-08-06 H.J. Lu <hongjiu.lu@intel.com> |
1290 | ||
1291 | PR ld/21903: | |
1292 | * elflink.c (elf_link_add_object_symbols): Treat common symbol | |
1293 | as undefined for --no-define-common. | |
1294 | ||
55ef6584 AM |
1295 | 2017-08-05 Alan Modra <amodra@gmail.com> |
1296 | ||
1297 | * elf32-hppa.c (elf32_hppa_set_gp): Don't require an | |
1298 | hppa_link_hash_table. | |
1299 | ||
d84ed528 MF |
1300 | 2017-08-02 Max Filippov <jcmvbkbc@gmail.com> |
1301 | ||
1302 | * xtensa-isa.c (xtensa_isa_init): Don't update lookup table | |
1303 | entries for sysregs with negative indices. | |
1304 | ||
1ef692ea AK |
1305 | 2017-08-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com> |
1306 | ||
1307 | * elf32-s390.c (elf_s390_finish_dynamic_sections): Skip if it | |
1308 | isn't the S/390 specific elf data. | |
1309 | * elf64-s390.c (elf_s390_finish_dynamic_sections): Likewise. | |
1310 | ||
57593436 KLC |
1311 | 2017-07-31 Kuan-Lin Chen <rufus@andestech.com> |
1312 | ||
1313 | * elfxx-riscv.c (riscv_elf_add_sub_reloc): New function. | |
1314 | * (howto_table) [R_RISCV_ADD8]: Use riscv_elf_add_sub_reloc. | |
1315 | [R_RISCV_ADD16]: Likewise. | |
1316 | [R_RISCV_ADD32]: Likewise. | |
1317 | [R_RISCV_ADD64]: Likewise. | |
1318 | [R_RISCV_SUB6]: Likewise. | |
1319 | [R_RISCV_SUB8]: Likewise. | |
1320 | [R_RISCV_SUB16]: Likewise. | |
1321 | [R_RISCV_SUB32]: Likewise. | |
1322 | [R_RISCV_SUB64]: Likewise. | |
1323 | ||
d44c746a AM |
1324 | 2017-07-31 Alan Modra <amodra@gmail.com> |
1325 | ||
1326 | * elf64-ppc.c (ppc64_elf_tls_setup): Warn on --plt-localentry | |
1327 | without ld.so checks. | |
1328 | ||
8b5f1ed8 AM |
1329 | 2017-07-29 Alan Modra <amodra@gmail.com> |
1330 | ||
1331 | PR 21847 | |
1332 | * elf64-ppc.c (struct ppc_link_hash_entry): Add non_zero_localentry. | |
1333 | (ppc64_elf_merge_symbol): Set non_zero_localentry. | |
1334 | (is_elfv2_localentry0): Test non_zero_localentry. | |
1335 | (ppc64_elf_tls_setup): Default to --no-plt-localentry. | |
1336 | ||
894dde0b AK |
1337 | 2017-07-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com> |
1338 | ||
1339 | * elf32-s390.c (elf_s390_finish_dynamic_sections): Add NULL | |
1340 | pointer check for htab->elf.irelplt. | |
1341 | * elf64-s390.c (elf_s390_finish_dynamic_sections): Likewise. | |
1342 | ||
8bdf0be1 NC |
1343 | 2017-07-27 Nick Clifton <nickc@redhat.com> |
1344 | ||
1345 | PR 21840 | |
1346 | * mach-o.c (bfd_mach_o_read_symtab_strtab): Fail if the symtab | |
1347 | size is -1. | |
1348 | * nlmcode.h (nlm_swap_auxiliary_headers_in): Replace assertion | |
1349 | with error return. | |
1350 | * section.c (bfd_make_section_with_flags): Fail if the name or bfd | |
1351 | are NULL. | |
1352 | * vms-alpha.c (bfd_make_section_with_flags): Correct computation | |
1353 | of end pointer. | |
1354 | (evax_bfd_print_emh): Check for invalid string lengths. | |
1355 | ||
c26bb067 NC |
1356 | 2017-07-25 Nick Clifton <nickc@redhat.com> |
1357 | ||
1358 | * po/fr.po: Updated French translation. | |
1359 | ||
cfe7b9bd BG |
1360 | 2017-07-25 Benjamin Green <bengreen5mx@gmail.com> |
1361 | ||
1362 | PR 21824 | |
1363 | * elf32-msp430.c (msp430_elf_relax_section): Allow conversion of | |
1364 | 16-bit absolute branches into 10-bit pc-relative branches on the | |
1365 | MSP430 as well as the MSP430X. | |
1366 | ||
d4aaa2a0 AM |
1367 | 2017-07-25 Alan Modra <amodra@gmail.com> |
1368 | ||
1369 | * elf64-ppc.c (struct map_stub): Add tls_get_addr_opt_bctrl. | |
1370 | (stub_eh_frame_size): New function. | |
1371 | (ppc_size_one_stub): Set group tls_get_addr_opt_bctrl. | |
1372 | (group_sections): Init group tls_get_addr_opt_bctrl. | |
1373 | (ppc64_elf_size_stubs): Update sizing and initialization of | |
1374 | .eh_frame. Iteration over stubs via group list. | |
1375 | (ppc64_elf_build_stubs): Iterate over stubs via group list. | |
1376 | (ppc64_elf_finish_dynamic_sections): Update finalization of | |
1377 | .eh_frame. | |
1378 | ||
ca4cf9b9 NC |
1379 | 2017-07-24 Nick Clifton <nickc@redhat.com> |
1380 | ||
1381 | PR 21813 | |
1382 | * mach-o.c (bfd_mach_o_canonicalize_relocs): Pass the base address | |
1383 | of the relocs to the canonicalize_one_reloc routine. | |
1384 | * mach-o.h (struct bfd_mach_o_backend_data): Update the prototype | |
1385 | for the _bfd_mach_o_canonicalize_one_reloc field. | |
1386 | * mach-o-arm.c (bfd_mach_o_arm_canonicalize_one_reloc): Add | |
1387 | res_base parameter. Use to check for corrupt pair relocs. | |
1388 | * mach-o-aarch64.c (bfd_mach_o_arm64_canonicalize_one_reloc): | |
1389 | Likewise. | |
1390 | * mach-o-i386.c (bfd_mach_o_i386_canonicalize_one_reloc): | |
1391 | Likewise. | |
1392 | * mach-o-x86-64.c (bfd_mach_o_x86_64_canonicalize_one_reloc): | |
1393 | Likewise. | |
1394 | ||
1395 | * vms-alpha.c (_bfd_vms_slurp_eihd): Make sure that there is | |
1396 | enough data in the record before attempting to parse it. | |
1397 | (_bfd_vms_slurp_eeom): Likewise. | |
1398 | ||
1399 | (_bfd_vms_slurp_egsd): Check for an invalid section index. | |
1400 | (image_set_ptr): Likewise. | |
1401 | (alpha_vms_slurp_relocs): Likewise. | |
1402 | ||
8a2df5e2 NC |
1403 | (alpha_vms_object_p): Check for a truncated record. |
1404 | ||
47aeb64c NC |
1405 | 2017-07-24 Nick Clifton <nickc@redhat.com> |
1406 | ||
1407 | PR 21803 | |
1408 | * reloc.c (_bfd_unrecognized_reloc): New function. Reports | |
1409 | an unrecognized reloc and sets the bfd_error value. | |
1410 | * libbfd.h: Regenerate. | |
1411 | * elf32-arm.c (elf32_arm_final_link_relocate): Use the new | |
1412 | function. | |
1413 | * elf32-i386.c (elf_i386_relocate_section): Likewise. | |
1414 | * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise. | |
1415 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. | |
1416 | * elfnn-aarch64.c (elfNN_aarch64_relocate_section): Likewise. | |
1417 | * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise. | |
1418 | ||
15a3a14f AM |
1419 | 2017-07-23 Alan Modra <amodra@gmail.com> |
1420 | ||
1421 | * elf64-ppc.c (ppc64_elf_size_stubs): Correct advance to | |
1422 | restore of LR. | |
1423 | ||
f2e6a843 SN |
1424 | 2017-07-19 Szabolcs Nagy <szabolcs.nagy@arm.com> |
1425 | ||
1426 | PR ld/18841 | |
1427 | * elfnn-aarch64.c (elfNN_aarch64_reloc_type_class): Return | |
1428 | reloc_class_ifunc for ifunc symbols. | |
1429 | ||
909e4e71 NC |
1430 | 2017-07-19 Nick Clifton <nickc@redhat.com> |
1431 | ||
1432 | PR 21787 | |
1433 | * archive.c (bfd_generic_archive_p): If the bfd does not have the | |
1434 | correct magic bytes at the start, set the error to wrong format | |
1435 | and clear the format selector before returning NULL. | |
1436 | ||
29866fa1 NC |
1437 | 2017-07-19 Nick Clifton <nickc@redhat.com> |
1438 | ||
1439 | PR 21786 | |
1440 | * coff-rs6000.c (_bfd_strntol): New function. | |
1441 | (_bfd_strntoll): New function. | |
1442 | (GET_VALUE_IN_FIELD): New macro. | |
1443 | (EQ_VALUE_IN_FIELD): new macro. | |
1444 | (_bfd_xcoff_slurp_armap): Use new macros. | |
1445 | (_bfd_xcoff_archive_p): Likewise. | |
1446 | (_bfd_xcoff_read_ar_hdr): Likewise. | |
1447 | (_bfd_xcoff_openr_next_archived_file): Likewise. | |
1448 | (_bfd_xcoff_stat_arch_elt): Likewise. | |
6c4e7b6b NC |
1449 | * coff64-rs6000.c (_bfd_strntol): New function. |
1450 | (_bfd_strntoll): New function. | |
1451 | (GET_VALUE_IN_FIELD): New macro. | |
1452 | (xcoff64_slurp_armap): Use new macros. | |
29866fa1 | 1453 | |
684d5a10 JEM |
1454 | 2017-07-19 Claudiu Zissulescu <claziss@synopsys.com> |
1455 | John Eric Martin <John.Martin@emmicro-us.com> | |
1456 | ||
1457 | * bfd-in2.h: Regenerate. | |
1458 | * libbfd.h: Regenerate. | |
1459 | * elf32-arc.c (JLI): Define. | |
1460 | * reloc.c: Add JLI relocations. | |
1461 | ||
de194d85 YC |
1462 | 2017-07-18 Nick Clifton <nickc@redhat.com> |
1463 | ||
1464 | PR 21775 | |
1465 | * coff-sh.c: Fix spelling typos. | |
1466 | * compress.c: Likewise. | |
1467 | * cpu-pdp11.c: Likewise. | |
1468 | * ecofflink.c: Likewise. | |
1469 | * elf-m10300.c: Likewise. | |
1470 | * elf.c: Likewise. | |
1471 | * elf32-arm.c: Likewise. | |
1472 | * elf32-m68k.c: Likewise. | |
1473 | * elf32-nds32.c: Likewise. | |
1474 | * elf32-ppc.c: Likewise. | |
1475 | * elf32-sh.c: Likewise. | |
1476 | * elf32-v850.c: Likewise. | |
1477 | * elf64-ppc.c: Likewise. | |
1478 | * elf64-x86-64.c: Likewise. | |
1479 | * elflink.c: Likewise. | |
1480 | * elfnn-aarch64.c: Likewise. | |
1481 | * elfxx-mips.c: Likewise. | |
1482 | * som.c: Likewise. | |
1483 | * sunos.c: Likewise. | |
1484 | * vms-alpha.c: Likewise. | |
1485 | * xcofflink.c: Likewise. | |
1486 | ||
e4e21d9e NC |
1487 | 2017-07-18 Nick Clifton <nickc@redhat.com> |
1488 | ||
1489 | PR binutils/21781 | |
1490 | * coffcode.h (handle_COMDAT): Replace abort with an error message | |
1491 | and return. | |
1492 | ||
8e85f840 L |
1493 | 2017-07-17 H.J. Lu <hongjiu.lu@intel.com> |
1494 | ||
1495 | PR ld/21782 | |
1496 | * elf64-x86-64.c (elf_x86_64_relocate_section): Limit PIC check | |
1497 | to shared library. | |
1498 | ||
dd57c19c L |
1499 | 2017-07-17 H.J. Lu <hongjiu.lu@intel.com> |
1500 | ||
1501 | * elf64-x86-64.c (elf_x86_64_relocate_section): Re-indent. | |
1502 | ||
676ee2b5 AM |
1503 | 2017-07-16 Alan Modra <amodra@gmail.com> |
1504 | ||
1505 | * elf64-ppc.c (ppc64_elf_relocate_section): Don't optimize | |
1506 | __tls_index GOT entries when using __tls_get_addr_opt stub. | |
1507 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
1508 | ||
429d795d AM |
1509 | 2017-07-12 Alan Modra <amodra@gmail.com> |
1510 | ||
1511 | * po/es.po: Update from translationproject.org/latest/bfd/. | |
1512 | * po/fi.po: Likewise. | |
1513 | * po/fr.po: Likewise. | |
1514 | * po/id.po: Likewise. | |
1515 | * po/ja.po: Likewise. | |
1516 | * po/ro.po: Likewise. | |
1517 | * po/ru.po: Likewise. | |
1518 | * po/sr.po: Likewise. | |
1519 | * po/sv.po: Likewise. | |
1520 | * po/tr.po: Likewise. | |
1521 | * po/uk.po: Likewise. | |
1522 | * po/vi.po: Likewise. | |
1523 | * po/zh_CN.po: Likewise. | |
1524 | * po/hr.po: New file from translationproject.org. | |
1525 | * configure.ac (ALL_LINGUAS): Add hr. Sort. | |
1526 | * configure: Regenerate. | |
1527 | ||
0bae9e9e NC |
1528 | 2017-07-12 Nick Clifton <nickc@redhat.com> |
1529 | ||
1530 | Fix compile time warnings using gcc 7.1.1. | |
1531 | * elf32-xtensa.c (elf_xtensa_get_plt_section): Increase length of | |
1532 | plt_name buffer. | |
1533 | (elf_xtensa_get_gotplt_section): Increase length of got_name | |
1534 | buffer. | |
1535 | * mach-o-arm.c (bfd_mach_o_arm_canonicalize_one_reloc): Add a | |
1536 | default return of FALSE. | |
1537 | * mach-o-i386.c (bfd_mach_o_i386_canonicalize_one_reloc): Add a | |
1538 | default return of FALSE. | |
1539 | ||
d42c267e AM |
1540 | 2017-07-12 Alan Modra <amodra@gmail.com> |
1541 | ||
1542 | * binary.c (binary_set_section_contents): Don't print filepos in | |
1543 | error message. | |
1544 | (coff_write_object_contents): Cast size_t for error message. | |
1545 | (coff_slurp_line_table): Don't use bfd_vma symndx. | |
1546 | (coff_slurp_reloc_table): Remove unneeded cast. | |
1547 | * dwarf2.c (read_section): Cast bfd_int64_t to long long for | |
1548 | error message. | |
1549 | (find_abstract_instance_name): Likewise. | |
1550 | * elf32-arm.c (arm_type_of_stub): Correct error arg order. | |
1551 | (bfd_elf32_arm_stm32l4xx_erratum_scan): Don't cast error arg. | |
1552 | (elf32_arm_check_relocs): Make r_symndx an int. | |
1553 | * elf32-cris.c (cris_elf_check_relocs): Delete extraneous %s in | |
1554 | format string. | |
1555 | * elf32-metag.c (elf_metag_relocate_section): Delete extra error | |
1556 | message arg. | |
1557 | * elf32-nds32.c (nds32_elf_ex9_build_hash_table): Rewrite bogus | |
1558 | error message. | |
1559 | * elf32-i386.c (elf_i386_check_relocs): Make r_symndx an int. | |
1560 | * elf32-s390.c (elf_s390_check_relocs): Likewise. | |
1561 | * elf32-tic6x.c (elf32_tic6x_check_relocs): Likewise. | |
1562 | * elf32-tilepro.c (tilepro_elf_check_relocs): Likewise. | |
1563 | * elf32-xtensa.c (elf_xtensa_check_relocs): Likewise. | |
1564 | * elf64-s390.c (elf_s390_check_relocs): Likewise. | |
1565 | * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise. | |
1566 | * elfnn-aarch64.c (elfNN_aarch64_check_relocs): Likewise. | |
1567 | * elfnn-riscv.c (riscv_elf_check_relocs): Likewise. | |
1568 | * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise. | |
1569 | * elfxx-tilegx.c (tilegx_elf_check_relocs): Likewise. | |
1570 | * elf64-mmix.c (_bfd_mmix_after_linker_allocation): Cast size_t args | |
1571 | and use %lu for error message. | |
1572 | * elflink.c (elf_link_adjust_relocs): Delete extra error message arg. | |
1573 | * mmo.c (mmo_scan): Make stab_loc a file_ptr. Cast expression for | |
1574 | error message. | |
1575 | ||
1576 | * elf32-arm.c (elf32_arm_tls_relax): Correct format string and args | |
1577 | in error message. | |
1578 | (elf32_arm_final_link_relocate): Likewise. | |
1579 | * coff-arm.c (bfd_arm_process_before_allocation): Likewise. | |
1580 | * coffcode.h (styp_to_sec_flags): Likewise. | |
1581 | * cofflink.c (_bfd_coff_write_global_sym): Likewise. | |
1582 | * ecoff.c (_bfd_ecoff_slurp_symbol_table): Likewise. | |
1583 | * elf32-arc.c (arc_elf_merge_private_bfd_data): Likewise. | |
1584 | * elf32-bfin.c (bfinfdpic_check_relocs): Likewise. | |
1585 | (elf32_bfin_merge_private_bfd_data): Likewise. | |
1586 | * elf32-cris.c (cris_elf_relocate_section): Likewise. | |
1587 | * elf32-frv.c (frv_elf_merge_private_bfd_data): Likewise. | |
1588 | * elf32-i370.c (i370_elf_merge_private_bfd_data): Likewise. | |
1589 | (i370_elf_relocate_section): Likewise. | |
1590 | * elf32-iq2000.c (iq2000_elf_merge_private_bfd_data): Likewise. | |
1591 | * elf32-m32c.c (m32c_elf_merge_private_bfd_data): Likewise. | |
1592 | * elf32-m68hc1x.c (_bfd_m68hc11_elf_merge_private_bfd_data): Likewise. | |
1593 | * elf32-mcore.c (mcore_elf_relocate_section): Likewise. | |
1594 | * elf32-mep.c (mep_elf_merge_private_bfd_data): Likewise. | |
1595 | * elf32-mt.c (mt_elf_merge_private_bfd_data): Likewise. | |
1596 | * elf64-sparc.c (elf64_sparc_merge_private_bfd_data): Likewise. | |
1597 | * elfxx-mips.c (mips_elf_merge_obj_e_flags): Likewise. | |
1598 | (_bfd_mips_elf_merge_private_bfd_data): Likewise. | |
1599 | * ieee.c (ieee_write_id, read_id): Likewise. | |
1600 | * mach-o.c (bfd_mach_o_write_contents): Likewise. | |
1601 | (bfd_mach_o_layout_commands, bfd_mach_o_read_section_32): Likewise. | |
1602 | (bfd_mach_o_read_section_64, bfd_mach_o_read_symtab_symbol): Likewise. | |
1603 | (bfd_mach_o_read_command, bfd_mach_o_header_p): Likewise. | |
1604 | * peXXigen.c (_bfd_XXi_swap_aouthdr_in): Likewise. | |
1605 | * stabs.c (_bfd_link_section_stabs): Likewise. | |
1606 | ||
1607 | * coff-arm.c (coff_arm_relocate_section): Use L modifier in error | |
1608 | format. | |
1609 | * coff-mcore.c (coff_mcore_relocate_section): Likewise. | |
1610 | * coff-ppc.c (coff_ppc_relocate_section): Likewise. | |
1611 | * coff-rs6000.c (xcoff_reloc_type_toc): Likewise. | |
1612 | * coff-sh.c (sh_relax_section): Likewise. | |
1613 | (sh_relax_delete_bytes, sh_swap_insns): Likewise. | |
1614 | * coff-tic80.c (coff_tic80_relocate_section): Likewise. | |
1615 | * coffcode.h (coff_slurp_reloc_table): Likewise. | |
1616 | * coffgen.c (_bfd_coff_get_external_symbols): Likewise. | |
1617 | (_bfd_coff_read_string_table): Likewise. | |
1618 | * cofflink.c (_bfd_coff_generic_relocate_section): Likewise. | |
1619 | * compress.c (bfd_get_full_section_contents): Likewise. | |
1620 | * dwarf2.c (read_formatted_entries, decode_line_info): Likewise. | |
1621 | * elf-m10300.c (mn10300_elf_relocate_section): Likewise. | |
1622 | * elf.c (bfd_elf_string_from_elf_section): Likewise. | |
1623 | * elf32-arc.c (arc_special_overflow_checks): Likewise. | |
1624 | * elf32-arm.c (elf32_arm_tls_relax): Likewise. | |
1625 | (elf32_arm_final_link_relocate, elf32_arm_relocate_section): Likewise. | |
1626 | (elf32_arm_write_section): Likewise. | |
1627 | * elf32-bfin.c (bfin_relocate_section): Likewise. | |
1628 | (bfinfdpic_relocate_section): Likewise. | |
1629 | * elf32-hppa.c (hppa_build_one_stub): Likewise. | |
1630 | (final_link_relocate, elf32_hppa_relocate_section): Likewise. | |
1631 | * elf32-i386.c (elf_i386_tls_transition): Likewise. | |
1632 | (elf_i386_relocate_section): Likewise. | |
1633 | * elf32-ip2k.c (ip2k_final_link_relocate): Likewise. | |
1634 | * elf32-lm32.c (lm32_elf_finish_dynamic_sections): Likewise. | |
1635 | * elf32-m32r.c (m32r_elf_relocate_section): Likewise. | |
1636 | * elf32-m68k.c (elf_m68k_relocate_section): Likewise. | |
1637 | * elf32-metag.c (elf_metag_relocate_section): Likewise. | |
1638 | * elf32-nds32.c (unrecognized_reloc_msg): Likewise. | |
1639 | (nds32_elf_relax_longcall1, nds32_elf_relax_longcall2): Likewise. | |
1640 | (nds32_elf_relax_longcall3, nds32_elf_relax_longjump1): Likewise. | |
1641 | (nds32_elf_relax_longjump2, nds32_elf_relax_longjump3): Likewise. | |
1642 | (nds32_elf_relax_longcall4, nds32_elf_relax_longcall5): Likewise. | |
1643 | (nds32_elf_relax_longcall6, nds32_elf_relax_longjump4): Likewise. | |
1644 | (nds32_elf_relax_longjump5, nds32_elf_relax_longjump6): Likewise. | |
1645 | (nds32_elf_relax_longjump7, nds32_elf_relax_loadstore): Likewise. | |
1646 | (nds32_elf_relax_ptr, nds32_elf_ex9_build_hash_table): Likewise. | |
1647 | * elf32-nios2.c (nios2_elf32_relocate_section): Likewise. | |
1648 | * elf32-rx.c (UNSAFE_FOR_PID): Likewise. | |
1649 | * elf32-s390.c (invalid_tls_insn, elf_s390_relocate_section): Likewise. | |
1650 | * elf32-score.c (s3_bfd_score_elf_check_relocs): Likewise. | |
1651 | * elf32-score7.c (s7_bfd_score_elf_check_relocs): Likewise. | |
1652 | * elf32-sh.c (sh_elf_relax_section): Likewise. | |
1653 | (sh_elf_relax_delete_bytes, sh_elf_swap_insns): Likewise. | |
1654 | (sh_elf_relocate_section): Likewise. | |
1655 | * elf32-sh64.c (shmedia_prepare_reloc): Likewise. | |
1656 | * elf32-spu.c (spu_elf_relocate_section): Likewise. | |
1657 | * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise. | |
1658 | * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise. | |
1659 | * elf32-v850.c (v850_elf_relax_section): Likewise. | |
1660 | * elf32-vax.c (elf_vax_check_relocs): Likewise. | |
1661 | (elf_vax_relocate_section): Likewise. | |
1662 | * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise. | |
1663 | (extend_ebb_bounds_forward, extend_ebb_bounds_backward): Likewise. | |
1664 | (compute_text_actions, compute_ebb_proposed_actions): Likewise. | |
1665 | (do_fix_for_relocatable_link): Likewise. | |
1666 | * elf64-alpha.c (elf64_alpha_relax_got_load): Likewise. | |
1667 | (elf64_alpha_relax_with_lituse): Likewise. | |
1668 | * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Likewise. | |
1669 | (elf_hppa_final_link_relocate): Likewise. | |
1670 | * elf64-ia64-vms.c (elf64_ia64_relax_section): Likewise. | |
1671 | (elf64_ia64_choose_gp, elf64_ia64_relocate_section): Likewise. | |
1672 | (elf64_vms_link_add_object_symbols): Likewise. | |
1673 | * elf64-mmix.c (mmix_elf_perform_relocation): Likewise. | |
1674 | (mmix_final_link_relocate): Likewise. | |
1675 | * elf64-s390.c (invalid_tls_insn): Likewise. | |
1676 | (elf_s390_relocate_section): Likewise. | |
1677 | * elf64-sh64.c (sh_elf64_relocate_section): Likewise. | |
1678 | * elf64-x86-64.c (elf_x86_64_tls_transition): Likewise. | |
1679 | (elf_x86_64_relocate_section): Likewise. | |
1680 | * elfcode.h (elf_slurp_symbol_table): Likewise. | |
1681 | * elfcore.h (elf_core_file_p): Likewise. | |
1682 | * elflink.c (elf_link_read_relocs_from_section): Likewise. | |
1683 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Likewise. | |
1684 | (elfNN_aarch64_relocate_section): Likewise. | |
1685 | * elfnn-ia64.c (elfNN_ia64_relax_section): Likewise. | |
1686 | (elfNN_ia64_choose_gp, elfNN_ia64_relocate_section): Likewise. | |
1687 | * elfnn-riscv.c (riscv_elf_relocate_section): Likewise. | |
1688 | * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise. | |
1689 | (_bfd_mips_elf_relocate_section): Likewise. | |
1690 | (_bfd_mips_elf_finish_dynamic_symbol, mips_finish_exec_plt): Likewise. | |
1691 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise. | |
1692 | * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise. | |
1693 | * ieee.c (ieee_slurp_external_symbols): Likewise. | |
1694 | * ihex.c (ihex_write_object_content): Likewise. | |
1695 | * mach-o.c (bfd_mach_o_build_exec_seg_command): Likewise. | |
1696 | * merge.c (_bfd_merged_section_offset): Likewise. | |
1697 | * mmo.c (mmo_write_loc_chunk): Likewise. | |
1698 | (mmo_write_object_contents): Likewise. | |
1699 | * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Likewise. | |
1700 | * stabs.c (_bfd_link_section_stabs): Likewise. | |
1701 | * xcofflink.c (xcoff_link_add_symbols, xcoff_find_tc0): Likewise. | |
1702 | ||
e3fbc3da AM |
1703 | 2017-07-11 Alan Modra <amodra@gmail.com> |
1704 | ||
1705 | * elf32-ppc.c (ppc_elf_relocate_section): Fix typo. | |
1706 | ||
2c4d9cbe AM |
1707 | 2017-07-11 Alan Modra <amodra@gmail.com> |
1708 | ||
1709 | * elf32-ppc.c (ppc_elf_relocate_section): Emit "unexpected | |
1710 | instruction" error using _bfd_error_handler, not einfo. | |
1711 | ||
adce5b39 NC |
1712 | 2017-07-10 Nick Clifton <nickc@redhat.com> |
1713 | ||
1714 | * coffcode.h (coff_slurp_symbol_table): Do not include an entry | |
1715 | for C_AIX_WEAKEXT if it has the same value as C_WEAKEXT. | |
1716 | ||
e6f3b9c3 JB |
1717 | 2017-07-07 John Baldwin <jhb@FreeBSD.org> |
1718 | ||
1719 | * elf.c (elfcore_grok_freebsd_note): Handle NT_FREEBSD_PTLWPINFO. | |
1720 | ||
532cc313 AM |
1721 | 2017-07-07 Alan Modra <amodra@gmail.com> |
1722 | ||
1723 | * coffcode.h (coff_slurp_symbol_table): Handle C_AIX_WEAKEXT. | |
1724 | ||
1cf9552b AM |
1725 | 2017-07-07 Alan Modra <amodra@gmail.com> |
1726 | ||
1727 | * bfd.c (_doprnt): Replace "L" with "ll" when printing bfd_vma | |
1728 | as long long. Move code replacing "ll" with "I64", and simplify. | |
1729 | ||
a0b7b105 L |
1730 | 2017-07-06 H.J. Lu <hongjiu.lu@intel.com> |
1731 | ||
1732 | * bfd.c (_doprnt): Convert 'L' to 'l' when setting wide_width | |
1733 | to 1. | |
1734 | ||
1d827a72 L |
1735 | 2017-07-05 H.J. Lu <hongjiu.lu@intel.com> |
1736 | ||
1737 | * dwarf2.c (line_info_add_include_dir_stub): Replace time with | |
1738 | xtime. | |
1739 | (line_info_add_file_name): Likewise. | |
1740 | (decode_line_info): Likewise. | |
1741 | ||
0d702cfe TG |
1742 | 2017-07-04 Tristan Gingold <gingold@adacore.com> |
1743 | ||
1744 | * version.m4: Bump version to 2.29.51 | |
1745 | * configure: Regenerate. | |
1746 | ||
564e46b7 JW |
1747 | 2017-07-04 Jiong Wang <jiong.wang@arm.com> |
1748 | ||
1749 | * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Remove the | |
1750 | sanity check at the head of this function. | |
1751 | ||
0041f7df JK |
1752 | 2017-07-04 Jan Kratochvil <jan.kratochvil@redhat.com> |
1753 | ||
1754 | * dwarf2.c (struct dwarf2_debug): Add fields dwarf_line_str_buffer and | |
1755 | dwarf_line_str_size. | |
1756 | (struct attr_abbrev): Add field implicit_const. | |
1757 | (dwarf_debug_sections): Add .debug_line_str. | |
1758 | (enum dwarf_debug_section_enum): Add debug_line_str and debug_max. | |
1759 | (dwarf_debug_section_assert): Add static assertion. | |
1760 | (read_indirect_line_string): New. | |
1761 | (read_abbrevs): Support DW_FORM_implicit_const. | |
1762 | (is_str_attr): Support DW_FORM_line_strp. | |
1763 | (read_attribute_value): Support DW_FORM_line_strp and | |
1764 | DW_FORM_implicit_const. | |
1765 | (read_attribute): Support DW_FORM_implicit_const. | |
1766 | (line_info_add_include_dir, line_info_add_include_dir_stub): | |
1767 | (line_info_add_file_name, read_formatted_entries): New. | |
1768 | (decode_line_info, parse_comp_unit): Support DWARF 5. | |
1769 | (_bfd_dwarf2_cleanup_debug_info): Free dwarf_line_str_buffer. | |
1770 | ||
d8cd8c1f EB |
1771 | 2017-07-03 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com> |
1772 | ||
1773 | * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove the | |
1774 | abort statement that was put for symbols that are not dynamic. | |
1775 | ||
15e6ed8c TG |
1776 | 2017-07-03 Tristan Gingold <gingold@adacore.com> |
1777 | ||
1778 | * po/bfd.pot: Regenerate | |
1779 | ||
76cfced5 AM |
1780 | 2017-07-03 Alan Modra <amodra@gmail.com> |
1781 | ||
1782 | * bfd.c (_doprnt): Rewrite "ll" and "L" modifiers to "I64" for | |
1783 | __MSVCRT__. Support "L" modifier for bfd_vma. Formatting. | |
1784 | * elf.c (setup_group): Use "Lx" to print sh_size. | |
1785 | (_bfd_elf_setup_sections): Remove unnecessary cast and print | |
1786 | unknown section type in hex. | |
1787 | (copy_special_section_fields): Style fix. | |
1788 | (bfd_section_from_shdr): Correct format for sh_link. Use a | |
1789 | common error message for all the variants of unrecognized | |
1790 | section types. | |
1791 | (assign_file_positions_for_load_sections): Use "Lx" for lma | |
1792 | adjust error message. | |
1793 | (assign_file_positions_for_non_load_sections): Formatting. | |
1794 | (rewrite_elf_program_header): Formatting. Use "Lx" for | |
1795 | bfd_vma values in error messages. | |
1796 | * elfcode.h (elf_slurp_reloc_table_from_section): Cast | |
1797 | ELF_R_SYM value to type expected by format. | |
1798 | * elflink.c (elf_link_read_relocs_from_section): Use "Lx" | |
1799 | in error messages. | |
1800 | (elf_link_add_object_symbols): Use "Lu" for symbol sizes. | |
1801 | (elf_link_input_bfd): Use "Lx" for r_info. | |
1802 | (bfd_elf_gc_record_vtinherit): Use "Lx" for offset. | |
1803 | ||
ce9116fd AM |
1804 | 2017-07-03 Alan Modra <amodra@gmail.com> |
1805 | ||
1806 | * bfd.c (bfd_scan_vma): Don't use long long unless HAVE_LONG_LONG. | |
1807 | * coff-rs6000.c (FMT20): Handle hosts with 64-bit long and | |
1808 | Microsoft C library variant of long long format specifier. | |
1809 | (PRINT20): Cast value to bfd_uint64_t not long long. | |
1810 | * coffcode.h (coff_print_aux): Use BFD_VMA_FMT. | |
1811 | * coff-x86_64.c (coff_amd64_reloc): Use bfd_uint64_t rather than | |
1812 | long long. Don't cast to bfd_vma. | |
1813 | * elf32-score.c (score3_bfd_getl48): Likewise. | |
1814 | * vms-alpha.c (_bfd_vms_slurp_eisd): Likewise. | |
1815 | ||
cd9af601 AM |
1816 | 2017-07-03 Alan Modra <amodra@gmail.com> |
1817 | ||
1818 | * elf.c (_bfd_elf_print_private_bfd_data): Use BFD_VMA_FMT to | |
1819 | print d_tag. | |
1820 | (bfd_elf_print_symbol): Don't cast symbol->flags. | |
1821 | (_bfd_elf_symbol_from_bfd_symbol): Likewise. | |
1822 | * elf32-ppc.c (ppc_elf_begin_write_processing): Correct | |
1823 | _bfd_error_handler argument order. | |
1824 | (ppc_elf_merge_private_bfd_data): Don't cast flags. | |
1825 | ||
33c734b2 AM |
1826 | 2017-07-03 Alan Modra <amodra@gmail.com> |
1827 | ||
1828 | * configure.ac: Invoke AC_CHECK_TYPES for long long. Invoke | |
1829 | AC_TYPE_LONG_DOUBLE. | |
1830 | * configure: Regenerate. | |
1831 | * config.in: Regenerate. | |
1832 | ||
3df5cd13 AW |
1833 | 2017-06-29 Andrew Waterman <andrew@sifive.com> |
1834 | ||
1835 | * elfnn-riscv.c (riscv_elf_adjust_dynamic_symbol): Fix TLS copy | |
1836 | relocs. | |
1837 | ||
ec1acaba EB |
1838 | 2017-06-29 Egeyar Bagcioglu <egeyar.bagcioglu@oracle.com> |
1839 | ||
1840 | * elfxx-sparc.c (allocate_dynrelocs): Don't make a symbol dynamic | |
1841 | unless it is undefined weak. | |
1842 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Set the flag | |
1843 | relative_reloc to direct non-dynamic symbols to R_SPARC_RELATIVE | |
1844 | relocation. | |
1845 | * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): If symbol | |
1846 | is not dynamic in PIC, abort. | |
1847 | ||
ff07562f JW |
1848 | 2017-06-29 Jiong Wang <jiong.wang@arm.com> |
1849 | ||
1850 | PR ld/21402 | |
1851 | * elfnn-aarch64.c (elfNN_aarch64_allocate_dynrelocs): Only make | |
1852 | undefined weak symbols into dynamic. | |
1853 | (elfNN_aarch64_final_link_relocate): Generate runtime RELATIVE | |
1854 | relocation for non-dynamic symbols. | |
1855 | (elfNN_aarch64_finish_dynamic_symbol): Add sanity check. | |
1856 | ||
2aff25ba JW |
1857 | 2017-06-29 Jiong Wang <jiong.wang@arm.com> |
1858 | ||
1859 | * elfnn-aarch64.c (aarch64_relocation_aginst_gp_p): New function. | |
1860 | (elfNN_aarch64_final_link_relocate): Delete duplicated code for | |
1861 | BFD_RELOC_AARCH64_LD64_GOTOFF_LO15, BFD_RELOC_AARCH64_MOVW_GOTOFF_G0_NC, | |
1862 | BFD_RELOC_AARCH64_MOVW_GOTOFF_G1. | |
1863 | * elfxx-aarch64.c (_bfd_aarch64_elf_resolve_relocation): Optimize the | |
1864 | support for them. | |
1865 | ||
88ab90e8 AA |
1866 | 2017-06-29 Andreas Arnez <arnez@linux.vnet.ibm.com> |
1867 | ||
1868 | * elf-bfd.h (elfcore_write_s390_gs_cb): Add prototype. | |
1869 | (elfcore_write_s390_gs_bc): Likewise. | |
1870 | * elf.c (elfcore_grok_s390_gs_cb): New function. | |
1871 | (elfcore_grok_s390_gs_bc): New function. | |
1872 | (elfcore_grok_note): Call them. | |
1873 | (elfcore_write_s390_gs_cb): New function. | |
1874 | (elfcore_write_s390_gs_bc): New function. | |
1875 | (elfcore_write_register_note): Call them. | |
1876 | ||
328ce951 L |
1877 | 2017-06-28 H.J. Lu <hongjiu.lu@intel.com> |
1878 | ||
1879 | * libbfd.c (_bfd_generic_get_section_contents): Don't call | |
1880 | bfd_get_file_size. Check archive element size. | |
1881 | (_bfd_generic_get_section_contents_in_window): Likewise. | |
1882 | ||
47fdcf63 L |
1883 | 2017-06-28 H.J. Lu <hongjiu.lu@intel.com> |
1884 | ||
1885 | * bfd-in2.h: Regenerated. | |
1886 | * bfdio.c (bfd_get_size): Change return type to ufile_ptr. | |
1887 | (bfd_get_file_size): Likewise. | |
1888 | ||
38bf472a MR |
1889 | 2017-06-28 Maciej W. Rozycki <macro@imgtec.com> |
1890 | Matthew Fortune <matthew.fortune@imgtec.com> | |
1891 | ||
1892 | * archures.c (bfd_mach_mips_interaptiv_mr2): New macro. | |
1893 | * cpu-mips.c (I_interaptiv_mr2): New enum value. | |
1894 | (arch_info_struct): Add "mips:interaptiv-mr2" entry. | |
1895 | * elfxx-mips.c (_bfd_elf_mips_mach) <E_MIPS_MACH_IAMR2>: New | |
1896 | case. | |
1897 | (mips_set_isa_flags) <bfd_mach_mips_interaptiv_mr2>: Likewise. | |
1898 | (bfd_mips_isa_ext) <bfd_mach_mips_interaptiv_mr2>: Likewise. | |
1899 | (print_mips_isa_ext) <AFL_EXT_INTERAPTIV_MR2>: Likewise. | |
1900 | (mips_mach_extensions): Add `bfd_mach_mipsisa32r3' and | |
1901 | `bfd_mach_mips_interaptiv_mr2' entries. | |
1902 | * bfd-in2.h: Regenerate. | |
1903 | ||
2d68166e NC |
1904 | 2017-06-27 Nick Clifton <nickc@redhat.com> |
1905 | ||
1906 | * tekhex.c (pass_over): Revert accidental conversion of a local | |
1907 | array to a static array. | |
1908 | ||
68063779 SKS |
1909 | 2017-06-27 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> |
1910 | ||
1911 | PR ld/13402 | |
1912 | * elf32-avr.c (elf32_avr_adjust_diff_reloc_value): Adjust | |
1913 | reloc addend if necessary. Adjust diff only if | |
1914 | shrinked_insn_address < end_address. | |
1915 | ||
ea9aafc4 AM |
1916 | 2017-06-27 Alan Modra <amodra@gmail.com> |
1917 | ||
1918 | PR binutils/21665 | |
1919 | * libbfd.c (_bfd_generic_get_section_contents): Warning fix. | |
1920 | (_bfd_generic_get_section_contents_in_window): Likewise. | |
1921 | ||
a6cbf936 KLC |
1922 | 2017-06-26 Kuan-Lin Chen <rufus@andestech.com> |
1923 | ||
1924 | * elfnn-riscv.c (perform_relocation): Support the new | |
1925 | R_RISCV_32_PCREL relocation. | |
1926 | (riscv_elf_relocate_section): Likewise. | |
1927 | * elfxx-riscv.c (howto_table): Likewise. | |
1928 | (riscv_reloc_map): Likewise. | |
1929 | * bfd-in2.h (BFD_RELOC_RISCV_32_PCREL): New relocation. | |
1930 | * libbfd.h: Regenerate. | |
1931 | ||
7211ae50 AM |
1932 | 2017-06-27 Alan Modra <amodra@gmail.com> |
1933 | ||
1934 | PR binutils/21665 | |
1935 | * libbfd.c (_bfd_generic_get_section_contents): Delete abort. | |
1936 | Use unsigned file pointer type, and remove cast. | |
1937 | * libbfd.c (_bfd_generic_get_section_contents_in_window): Likewise. | |
1938 | Add "count", not "sz". | |
1939 | ||
ab27f80c PA |
1940 | 2017-06-26 Pedro Alves <palves@redhat.com> |
1941 | ||
1942 | PR binutils/21665 | |
1943 | * libbfd.c (_bfd_generic_get_section_contents): Add "count", not | |
1944 | "sz". | |
1945 | ||
1f473e3d L |
1946 | 2017-06-26 H.J. Lu <hongjiu.lu@intel.com> |
1947 | ||
1948 | PR binutils/21665 | |
1949 | * libbfd.c (_bfd_generic_get_section_contents_in_window): Add | |
1950 | a missing line. | |
1951 | ||
b417536f MR |
1952 | 2017-06-26 Maciej W. Rozycki <macro@imgtec.com> |
1953 | ||
1954 | * cpu-mips.c (arch_info_struct): Mark the 4010 32-bit. | |
1955 | * elfxx-mips.c (mips_set_isa_flags) <bfd_mach_mips4010>: Set | |
1956 | E_MIPS_ARCH_2 rather than E_MIPS_ARCH_3 in `e_flags'. | |
1957 | (mips_mach_extensions): Mark `bfd_mach_mips4010' as extending | |
1958 | `bfd_mach_mips6000' rather than `bfd_mach_mips4000'. | |
1959 | ||
0630b49c L |
1960 | 2017-06-26 H.J. Lu <hongjiu.lu@intel.com> |
1961 | ||
1962 | PR binutils/21665 | |
1963 | * compress.c (bfd_get_full_section_contents): Don't check the | |
1964 | file size here. | |
1965 | * libbfd.c (_bfd_generic_get_section_contents): Check for and | |
ea9aafc4 | 1966 | reject a section whose size + offset is greater than the size |
0630b49c L |
1967 | of the entire file. |
1968 | (_bfd_generic_get_section_contents_in_window): Likewise. | |
515a4464 | 1969 | |
04e15b4a NC |
1970 | 2017-06-26 Nick Clifton <nickc@redhat.com> |
1971 | ||
1972 | PR binutils/21670 | |
1973 | * tekhex.c (getvalue): Check for the source pointer exceeding the | |
1974 | end pointer before the first byte is read. | |
1975 | ||
cfd14a50 NC |
1976 | 2017-06-26 Nick Clifton <nickc@redhat.com> |
1977 | ||
1978 | PR binutils/21665 | |
ea9aafc4 | 1979 | * opncls.c (get_build_id): Check that the section is big enough |
cfd14a50 NC |
1980 | to contain the whole note. |
1981 | * compress.c (bfd_get_full_section_contents): Check for and reject | |
ea9aafc4 | 1982 | a section whose size is greater than the size of the entire file. |
cfd14a50 NC |
1983 | * elf32-v850.c (v850_elf_copy_notes): Allow for the ouput to not |
1984 | contain a notes section. | |
1985 | ||
93ec5e23 AK |
1986 | 2017-06-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com> |
1987 | ||
1988 | * elf64-s390.c (elf_s390_additional_program_headers): Add NULL | |
1989 | pointer checks. | |
1990 | (elf_s390_modify_segment_map): Likewise. | |
1991 | (bfd_elf_s390_set_options): Lisewise. | |
1992 | ||
57963c05 AM |
1993 | 2017-06-26 Alan Modra <amodra@gmail.com> |
1994 | ||
1995 | * elflink.c (_bfd_elf_link_create_dynstrtab): Don't make dynobj | |
1996 | a --just-syms bfd. | |
1997 | (_bfd_elf_size_group_sections): Skip --just-syms bfds. | |
1998 | (bfd_elf_size_dynamic_sections): Ignore .note.GNU-stack and | |
1999 | .preinit_array on --just-syms bfds. | |
2000 | (_bfd_elf_gc_mark_extra_sections): Skip --just-syms bfds. | |
2001 | (elf_gc_sweep, bfd_elf_parse_eh_frame_entries): Likewise. | |
2002 | (bfd_elf_gc_sections, bfd_elf_discard_info): Likewise. | |
2003 | ||
5cc4ca83 ST |
2004 | 2017-06-25 Sergei Trofimovich <slyfox@gentoo.org> |
2005 | ||
2006 | * elf.c (find_link): Bounds check "hint". | |
2007 | ||
bff0500d TP |
2008 | 2017-06-24 Thomas Preud'homme <thomas.preudhomme@arm.com> |
2009 | ||
2010 | * elf32-arm.c (using_thumb_only): Update list of architectures in | |
2011 | BFD_ASSERT for which the logic is valid. | |
2012 | (using_thumb2_bl): Likewise. | |
2013 | (using_thumb2): Likewise and return true for ARMv8-R. | |
2014 | (arch_has_arm_nop): Likewise. | |
2015 | (tag_cpu_arch_combine): New v8r table for ARMv8-R Tag_CPU_arch | |
2016 | merging logic. Update commentis for value 15 of v8m_baseline, | |
2017 | v8m_mainline and v4t_plus_v6_m arrays. Use v8r array to decide | |
2018 | merging of value 15 of Tag_CPU_arch. | |
2019 | ||
4aa57d6a JW |
2020 | 2017-06-23 Jiong Wang <jiong.wang@arm.com> |
2021 | ||
2022 | * reloc.c (BFD_RELOC_AARCH64_ADR_GOTPAGE): Rename to | |
2023 | BFD_RELOC_AARCH64_ADR_GOT_PAGE | |
2024 | * bfd-in2.h: Regenerate. | |
2025 | ||
5d8763a3 L |
2026 | 2017-06-22 H.J. Lu <hongjiu.lu@intel.com> |
2027 | ||
2028 | * elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): Move | |
2029 | the error_alignment label forward. Properly align program | |
2030 | property note section. | |
2031 | ||
e652757b EC |
2032 | 2017-06-22 Eric Christopher <echristo@gmail.com> |
2033 | ||
2034 | * elf32-arm.c (elf32_arm_final_link_relocate): Use labs rather than | |
2035 | abs to fix a truncation warning. | |
2036 | ||
84da4cf8 L |
2037 | 2017-06-22 H.J. Lu <hongjiu.lu@intel.com> |
2038 | ||
2039 | * elf32-i386.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Resolve | |
2040 | local undefined weak symbol to 0. | |
2041 | * elf64-x86-64.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): Likewise. | |
2042 | ||
48580982 L |
2043 | 2017-06-22 H.J. Lu <hongjiu.lu@intel.com> |
2044 | ||
2045 | * elf32-i386.c (elf_i386_merge_gnu_properties): If info->shstk | |
2046 | is set, turn on GNU_PROPERTY_X86_FEATURE_1_SHSTK. | |
2047 | (elf_i386_link_setup_gnu_properties): If info->shstk is set, | |
2048 | turn on GNU_PROPERTY_X86_FEATURE_1_IBT. | |
2049 | * elf64-x86-64.c (elf_x86_64_merge_gnu_properties): If | |
2050 | info->shstk is set, turn on GNU_PROPERTY_X86_FEATURE_1_SHSTK. | |
2051 | (elf_x86_64_link_setup_gnu_properties): If info->shstk is set, | |
2052 | turn on GNU_PROPERTY_X86_FEATURE_1_IBT. | |
2053 | ||
ee2fdd6f L |
2054 | 2017-06-22 H.J. Lu <hongjiu.lu@intel.com> |
2055 | ||
2056 | * elf32-i386.c (elf_i386_lazy_ibt_plt0_entry): New. | |
2057 | (elf_i386_lazy_ibt_plt_entry): Likewise. | |
2058 | (elf_i386_pic_lazy_ibt_plt0_entry): Likewise. | |
2059 | (elf_i386_non_lazy_ibt_plt_entry): Likewise. | |
2060 | (elf_i386_pic_non_lazy_ibt_plt_entry): Likewise. | |
2061 | (elf_i386_eh_frame_lazy_ibt_plt): Likewise. | |
2062 | (elf_i386_lazy_plt_layout): Likewise. | |
2063 | (elf_i386_non_lazy_plt_layout): Likewise. | |
2064 | (elf_i386_link_hash_entry): Add plt_second. | |
2065 | (elf_i386_link_hash_table): Add plt_second and | |
2066 | plt_second_eh_frame. | |
2067 | (elf_i386_allocate_dynrelocs): Use the second PLT if needed. | |
2068 | (elf_i386_size_dynamic_sections): Use .plt.got unwind info for | |
2069 | the second PLT. Check the second PLT. | |
2070 | (elf_i386_relocate_section): Use the second PLT to resolve | |
2071 | PLT reference if needed. | |
2072 | (elf_i386_finish_dynamic_symbol): Fill and use the second PLT if | |
2073 | needed. | |
2074 | (elf_i386_finish_dynamic_sections): Set sh_entsize on the | |
2075 | second PLT. Generate unwind info for the second PLT. | |
2076 | (elf_i386_plt_type): Add plt_second. | |
2077 | (elf_i386_get_synthetic_symtab): Support the second PLT. | |
2078 | (elf_i386_parse_gnu_properties): Support | |
2079 | GNU_PROPERTY_X86_FEATURE_1_AND. | |
2080 | (elf_i386_merge_gnu_properties): Support | |
2081 | GNU_PROPERTY_X86_FEATURE_1_AND. If info->ibt is set, turn | |
2082 | on GNU_PROPERTY_X86_FEATURE_1_IBT | |
2083 | (elf_i386_link_setup_gnu_properties): If info->ibt is set, | |
2084 | turn on GNU_PROPERTY_X86_FEATURE_1_IBT. Use IBT-enabled PLT | |
2085 | for info->ibtplt, info->ibt or GNU_PROPERTY_X86_FEATURE_1_IBT | |
2086 | is set on all relocatable inputs. | |
2087 | * elf64-x86-64.c (elf_x86_64_lazy_ibt_plt_entry): New. | |
2088 | (elf_x32_lazy_ibt_plt_entry): Likewise. | |
2089 | (elf_x86_64_non_lazy_ibt_plt_entry): Likewise. | |
2090 | (elf_x32_non_lazy_ibt_plt_entry): Likewise. | |
2091 | (elf_x86_64_eh_frame_lazy_ibt_plt): Likewise. | |
2092 | (elf_x32_eh_frame_lazy_ibt_plt): Likewise. | |
2093 | (elf_x86_64_lazy_ibt_plt): Likewise. | |
2094 | (elf_x32_lazy_ibt_plt): Likewise. | |
2095 | (elf_x86_64_non_lazy_ibt_plt): Likewise. | |
2096 | (elf_x32_non_lazy_ibt_plt): Likewise. | |
2097 | (elf_x86_64_get_synthetic_symtab): Support the second PLT. | |
2098 | (elf_x86_64_parse_gnu_properties): Support | |
2099 | GNU_PROPERTY_X86_FEATURE_1_AND. | |
2100 | (elf_x86_64_merge_gnu_properties): Support | |
2101 | GNU_PROPERTY_X86_FEATURE_1_AND. If info->ibt is set, turn | |
2102 | on GNU_PROPERTY_X86_FEATURE_1_IBT | |
2103 | (elf_x86_64_link_setup_gnu_properties): If info->ibt is set, | |
2104 | turn on GNU_PROPERTY_X86_FEATURE_1_IBT. Use IBT-enabled PLT | |
2105 | for info->ibtplt, info->ibt or GNU_PROPERTY_X86_FEATURE_1_IBT | |
2106 | is set on all relocatable inputs. | |
2107 | ||
d19237d9 NC |
2108 | 2017-06-22 Nick Clifton <nickc@redhat.com> |
2109 | ||
2110 | PR binutils/21649 | |
2111 | * som.c (setup_sections): NUL terminate the space_strings buffer. | |
2112 | Check that the space.name field does not index beyond the end of | |
2113 | the space_strings buffer. | |
2114 | ||
6879f5a9 NC |
2115 | 2017-06-21 Nick Clifton <nickc@redhat.com> |
2116 | ||
2117 | PR binutils/21646 | |
2118 | * coff-sh.c (sh_reloc): Check for an out of range reloc. | |
2119 | ||
7adc0a81 NC |
2120 | 2017-06-21 Nick Clifton <nickc@redhat.com> |
2121 | ||
2122 | PR binutils/21639 | |
2123 | * vms-misc.c (_bfd_vms_save_sized_string): Use unsigned int as | |
2124 | type of the size parameter. | |
2125 | (_bfd_vms_save_counted_string): Add second parameter - the maximum | |
2126 | length of the counted string. | |
2127 | * vms.h (_bfd_vms_save_sized_string): Update prototype. | |
2128 | (_bfd_vms_save_counted_string): Likewise. | |
2129 | * vms-alpha.c (_bfd_vms_slurp_eisd): Update calls to | |
2130 | _bfd_vms_save_counted_string. | |
2131 | (_bfd_vms_slurp_ehdr): Likewise. | |
2132 | (_bfd_vms_slurp_egsd): Likewise. | |
2133 | (Parse_module): Likewise. | |
2134 | ||
6e1816be AM |
2135 | 2017-06-21 Alan Modra <amodra@gmail.com> |
2136 | ||
2137 | * elf64-ppc.c (ppc64_elf_size_stubs): Test for localentry:0 plt | |
2138 | calls before tocsave calls. | |
2139 | (ppc64_elf_relocate_section): Allow localentry:0 plt calls without | |
2140 | following nop. | |
2141 | ||
20bd1b6b NC |
2142 | 2017-06-21 Nick Clifton <nickc@redhat.com> |
2143 | ||
2144 | PR binutils/21645 | |
2145 | * reloc.c (bfd_generic_get_relocated_section_contents): Fail if | |
2146 | bfd_get_full_section_contents returns no contents. | |
2147 | ||
3de58d95 NC |
2148 | 2017-06-21 Nick Clifton <nickc@redhat.com> |
2149 | ||
2150 | PR binutils/21638 | |
2151 | * vms-alpha.c (_bfd_vms_slurp_egsd): Check for an undersized | |
2152 | record. | |
2153 | ||
cb06d03a NC |
2154 | 2017-06-21 Nick Clifton <nickc@redhat.com> |
2155 | ||
2156 | PR binutils/21637 | |
2157 | * vms-alpha.c (_bfd_vms_slurp_egsd): Check for an empty section | |
2158 | list. | |
2159 | (image_set_ptr): Likewise. | |
2160 | (alpha_vms_fix_sec_rel): Likewise. | |
2161 | (alpha_vms_slurp_relocs): Likewise. | |
2162 | ||
c458d007 NC |
2163 | 2017-06-21 Nick Clifton <nickc@redhat.com> |
2164 | ||
2165 | PR binutils/21633 | |
2166 | * ieee.c (ieee_slurp_sections): Check for a NULL return from | |
2167 | read_id. | |
2168 | (ieee_archive_p): Likewise. | |
2169 | (ieee_object_p): Likewise. | |
2170 | ||
ce497010 NC |
2171 | 2017-06-21 Nick Clifton <nickc@redhat.com> |
2172 | ||
2173 | PR binutils/21640 | |
2174 | * elf.c (setup_group): Zero the group section pointer list after | |
2175 | allocation so that loops can be caught. Check for NULL pointers | |
2176 | when processing a group list. | |
2177 | ||
fd52715c AK |
2178 | 2017-06-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com> |
2179 | ||
2180 | * elf-s390.h: New file. | |
2181 | * elf64-s390.c (struct elf_s390_link_hash_table): Add params | |
2182 | field. | |
2183 | (elf_s390_additional_program_headers): New function. | |
2184 | (elf_s390_modify_segment_map): New function. | |
2185 | (bfd_elf_s390_set_options): New function. | |
2186 | (elf_backend_additional_program_headers) | |
2187 | (elf_backend_modify_segment_map): Add macro definitions. | |
2188 | ||
abfa390d L |
2189 | 2017-06-19 H.J. Lu <hongjiu.lu@intel.com> |
2190 | ||
2191 | PR ld/21626 | |
2192 | * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Check | |
2193 | the DYNAMIC bit instead of bfd_count_sections. | |
2194 | ||
bc21b167 NC |
2195 | 2017-06-19 Nick Clifton <nickc@redhat.com> |
2196 | ||
2197 | PR binutils/21618 | |
2198 | * vms-alpha.c (evax_bfd_print_emh): Check for insufficient record | |
2199 | length. | |
2200 | (evax_bfd_print_eeom): Likewise. | |
2201 | (evax_bfd_print_egsd): Check for an overlarge record length. | |
2202 | (evax_bfd_print_etir): Likewise. | |
2203 | ||
acb56a83 NC |
2204 | 2017-06-19 Nick Clifton <nickc@redhat.com> |
2205 | ||
2206 | PR binutils/21612 | |
2207 | * libieee.h (struct common_header_type): Add end_p field. | |
2208 | * ieee.c (this_byte_and_next): Do not advance input_p beyond | |
2209 | end_p. | |
2210 | (read_id): Check for a length that exceeds the remaining bytes in | |
2211 | the input buffer. | |
2212 | (ieee_seek): Initialise end_p. | |
2213 | (ieee_archive_p): Likewise. | |
2214 | (ieee_object_p): Likewise. | |
2215 | ||
72e84f96 NC |
2216 | 2017-06-19 Nick Clifton <nickc@redhat.com> |
2217 | ||
80053e46 NC |
2218 | PR binutils/21611 |
2219 | * vms-alpha.c (_bfd_vms_slurp_eihs): Check for invalid offset | |
2220 | before reading the EIHS structure entries. | |
2221 | ||
2222 | 2017-06-19 Nick Clifton <nickc@redhat.com> | |
2223 | ||
2224 | PR binutils/21615 | |
72e84f96 NC |
2225 | * vms-alpha.c (_bfd_vms_slurp_egsd): Use unsigned int for |
2226 | gsd_size. Check that there are enough bytes remaining to read the | |
2227 | type and size of the next egsd. Check that the size of the egsd | |
2228 | does not exceed the size of the record. | |
2229 | ||
875ffa3e AM |
2230 | 2017-06-19 Alan Modra <amodra@gmail.com> |
2231 | ||
2232 | * config.bfd: Correct targ_underscore for cris. | |
2233 | ||
bdd32e03 AM |
2234 | 2017-06-18 Alan Modra <amodra@gmail.com> |
2235 | ||
2236 | * config.bfd: Correct targ_underscore for epiphany, ip2k, | |
2237 | m32c, mn10200, pru, rl78, rx, crisv32 and v850. | |
2238 | ||
4b48e2f6 NC |
2239 | 2017-06-16 Nick Clifton <nickc@redhat.com> |
2240 | ||
2241 | * elflink.c (bfd_elf_size_dynsym_hash_dynstr): Do not fail if the | |
2242 | bucketlist is empty because there are no symbols to add to the | |
2243 | list. | |
2244 | ||
7dba9362 AM |
2245 | 2017-06-16 Alan Modra <amodra@gmail.com> |
2246 | ||
2247 | PR ld/20022 | |
2248 | PR ld/21557 | |
2249 | PR ld/21562 | |
2250 | PR ld/21571 | |
2251 | * targets.c (struct bfd_target): Add _bfd_define_start_stop. | |
2252 | (BFD_JUMP_TABLE_LINK): Likewise. | |
2253 | * elf-bfd.h (bfd_elf_define_start_stop): Declare. | |
2254 | * elflink.c (_bfd_elf_gc_mark_rsec): Update comment. | |
2255 | (bfd_elf_define_start_stop): New function. | |
2256 | * linker.c (bfd_generic_define_start_stop): New function. | |
2257 | * coff64-rs6000.c (rs6000_xcoff64_vec, rs6000_xcoff64_aix_vec): Init | |
2258 | new field. | |
2259 | * aout-adobe.c (aout_32_bfd_define_start_stop): Define. | |
2260 | * aout-target.h (MY_bfd_define_start_stop): Define. | |
2261 | * aout-tic30.c (MY_bfd_define_start_stop): Define. | |
2262 | * binary.c (binary_bfd_define_start_stop): Define. | |
2263 | * bout.c (b_out_bfd_define_start_stop): Define. | |
2264 | * coff-alpha.c (_bfd_ecoff_bfd_define_start_stop): Define. | |
2265 | * coff-mips.c (_bfd_ecoff_bfd_define_start_stop): Define. | |
2266 | * coff-rs6000.c (_bfd_xcoff_bfd_define_start_stop): Define. | |
2267 | * coffcode.h (coff_bfd_define_start_stop): Define. | |
2268 | * elfxx-target.h (bfd_elfNN_bfd_define_start_stop): Define. | |
2269 | * i386msdos.c (msdos_bfd_define_start_stop): Define. | |
2270 | * i386os9k.c (os9k_bfd_define_start_stop): Define. | |
2271 | * ieee.c (ieee_bfd_define_start_stop): Define. | |
2272 | * ihex.c (ihex_bfd_define_start_stop): Define. | |
2273 | * libbfd-in.h (_bfd_nolink_bfd_define_start_stop): Define. | |
2274 | * mach-o-target.c (bfd_mach_o_bfd_define_start_stop): Define. | |
2275 | * mmo.c (mmo_bfd_define_start_stop): Define. | |
2276 | * nlm-target.h (nlm_bfd_define_start_stop): Define. | |
2277 | * oasys.c (oasys_bfd_define_start_stop): Define. | |
2278 | * pef.c (bfd_pef_bfd_define_start_stop): Define. | |
2279 | * plugin.c (bfd_plugin_bfd_define_start_stop): Define. | |
2280 | * ppcboot.c (ppcboot_bfd_define_start_stop): Define. | |
2281 | * som.c (som_bfd_define_start_stop): Define. | |
2282 | * srec.c (srec_bfd_define_start_stop): Define. | |
2283 | * tekhex.c (tekhex_bfd_define_start_stop): Define. | |
2284 | * versados.c (versados_bfd_define_start_stop): Define. | |
2285 | * vms-alpha.c (vms_bfd_define_start_stop): Define. | |
2286 | (alpha_vms_bfd_define_start_stop): Define. | |
2287 | * xsym.c (bfd_sym_bfd_define_start_stop): Define. | |
2288 | * bfd-in2.h: Regenerate. | |
2289 | * libbfd.h: Regenerate. | |
2290 | ||
d68f1976 JW |
2291 | 2017-06-16 Jiong Wang <jiong.wang@arm.com> |
2292 | ||
2293 | * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Use | |
2294 | SYMBOL_REFERENCES_LOCAL. | |
2295 | ||
6353d82b JW |
2296 | 2017-06-15 Jiong Wang <jiong.wang@arm.com> |
2297 | ||
2298 | PR ld/21532 | |
2299 | * elfnn-aarch64.c (ELIMINATE_COPY_RELOCS): Set to 1. | |
2300 | (elfNN_aarch64_final_link_relocate): Also propagate relocations to | |
2301 | runtime for if there needs copy relocation elimination. | |
2302 | (need_copy_relocation_p): New function. Return true for symbol with | |
2303 | pc-relative references and if it's against read-only sections. | |
2304 | (elfNN_aarch64_adjust_dynamic_symbol): Use need_copy_relocation_p. | |
2305 | (elfNN_aarch64_check_relocs): Allocate dynrelocs for relocation types | |
2306 | that are related with accessing external objects. | |
2307 | (elfNN_aarch64_gc_sweep_hook): Sync the relocation types with the change | |
2308 | in elfNN_aarch64_check_relocs. | |
2309 | ||
63634bb4 NC |
2310 | 2017-06-15 Nick Clifton <nickc@redhat.com> |
2311 | ||
2312 | PR binutils/21582 | |
2313 | * ieee.c (ieee_object_p): Use a static buffer to avoid compiler | |
2314 | bugs. | |
62b76e4b NC |
2315 | PR binutils/21581 |
2316 | (ieee_archive_p): Likewise. | |
63634bb4 | 2317 | |
76800cba NC |
2318 | 2017-06-15 Nick Clifton <nickc@redhat.com> |
2319 | ||
2320 | PR binutils/21579 | |
2321 | * vms-alpha.c (_bfd_vms_slurp_etir): Extend check of cmd_length. | |
2322 | ||
f7e16c2a MF |
2323 | 2017-06-14 Max Filippov <jcmvbkbc@gmail.com> |
2324 | ||
2325 | * elf32-xtensa.c (elf_xtensa_be_plt_entry, | |
2326 | elf_xtensa_le_plt_entry): Add dimension for the ABI to arrays, | |
2327 | keep both windowed and call0 ABI PLT definitions. | |
2328 | (elf_xtensa_create_plt_entry): Use selected ABI to choose upper | |
2329 | elf_xtensa_*_plt_entry endex. | |
2330 | (ELF_MAXPAGESIZE): Fix at minimal supported MMU page size. | |
2331 | ||
f461bbd8 NC |
2332 | 2017-06-14 Nick Clifton <nickc@redhat.com> |
2333 | ||
2334 | PR binutils/21578 | |
2335 | * elf32-sh.c (sh_elf_set_mach_from_flags): Fix check for invalid | |
2336 | flag value. | |
2337 | ||
c53d2e6d NC |
2338 | 2017-06-14 Nick Clifton <nickc@redhat.com> |
2339 | ||
2340 | PR binutils/21589 | |
2341 | * vms-alpha.c (_bfd_vms_get_value): Add an extra parameter - the | |
2342 | maximum value for the ascic pointer. Check that name processing | |
2343 | does not read beyond this value. | |
2344 | (_bfd_vms_slurp_etir): Add checks for attempts to read beyond the | |
2345 | end of etir record. | |
2346 | ||
04f963fd NC |
2347 | 2017-06-14 Nick Clifton <nickc@redhat.com> |
2348 | ||
2349 | PR binutils/21591 | |
2350 | * versados.c (versados_mkobject): Zero the allocated tdata structure. | |
2351 | (process_otr): Check for an invalid offset in the otr structure. | |
2352 | ||
319c2dbe SH |
2353 | 2017-06-14 Sebastian Huber <sebastian.huber@embedded-brains.de> |
2354 | ||
2355 | * config.bfd (epiphany-*-elf): Accept epiphany-*-*. | |
2356 | ||
cbd0eecf L |
2357 | 2017-06-13 H.J. Lu <hongjiu.lu@intel.com> |
2358 | ||
2359 | PR ld/20022 | |
2360 | PR ld/21557 | |
2361 | PR ld/21562 | |
2362 | PR ld/21571 | |
2363 | * elf-bfd.h (elf_link_hash_entry): Add start_stop. Change the | |
2364 | vtable field to a union. | |
2365 | (_bfd_elf_is_start_stop): Removed. | |
2366 | * elf32-i386.c (elf_i386_convert_load_reloc): Also check for | |
2367 | __start_SECNAME and __stop_SECNAME symbols. | |
2368 | * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Likewise. | |
2369 | * elflink.c (_bfd_elf_is_start_stop): Removed. | |
2370 | (_bfd_elf_gc_mark_rsec): Check start_stop instead of calling | |
2371 | _bfd_elf_is_start_stop. | |
2372 | (elf_gc_propagate_vtable_entries_used): Skip __start_SECNAME and | |
2373 | __stop_SECNAME symbols. Updated. | |
2374 | (elf_gc_smash_unused_vtentry_relocs): Likewise. | |
2375 | (bfd_elf_gc_record_vtinherit): Likewise. | |
2376 | (bfd_elf_gc_record_vtentry): Likewise. | |
2377 | ||
10bbbc1d NC |
2378 | 2017-06-13 Nick Clifton <nickc@redhat.com> |
2379 | ||
2380 | PR ld/21524 | |
2381 | * elflink.c (elf_link_adjust_relocs): Generate an error when | |
2382 | encountering a reloc against a symbol removed by garbage | |
2383 | collection. | |
2384 | ||
5c3ce2bc L |
2385 | 2017-06-12 H.J. Lu <hongjiu.lu@intel.com> |
2386 | ||
2387 | * elf-bfd.h (elf_backend_data): Add struct bfd_link_info * | |
2388 | to merge_gnu_properties. | |
2389 | * elf-properties.c (elf_merge_gnu_properties): Add struct | |
2390 | bfd_link_info * and pass it to merge_gnu_properties. | |
2391 | (elf_merge_gnu_property_list): Add struct bfd_link_info * | |
2392 | and pass it to elf_merge_gnu_properties. | |
2393 | (_bfd_elf_link_setup_gnu_properties): Pass info to | |
2394 | elf_merge_gnu_property_list. | |
2395 | * elf32-i386.c (elf_i386_merge_gnu_properties): Add struct | |
2396 | bfd_link_info *. | |
2397 | * elf64-x86-64.c (elf_x86_64_merge_gnu_properties): Likewise. | |
2398 | ||
9b97dfbf AM |
2399 | 2017-06-11 Joe Zbiciak <joe.zbiciak@leftturnonly.info> |
2400 | ||
2401 | PR 21564 | |
2402 | * binary.c (binary_set_section_contents): Scale lma by octets | |
2403 | per byte to set filepos. | |
2404 | ||
e3d1d408 CM |
2405 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
2406 | ||
2407 | * elf32-arc.c (elf_arc_check_relocs): Fixed conditions to generate | |
2408 | dynamic sections. | |
2409 | ||
64aa8e03 CM |
2410 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
2411 | ||
2412 | * elf32-arc.c (elf_arc_size_dynamic_sections): Changed condition to | |
2413 | require TEXTREL. | |
2414 | ||
a0abe743 CM |
2415 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
2416 | ||
2417 | * arc-got.h (relocate_fix_got_relocs_for_got_info): Added TCB_SIZE to | |
2418 | patched section contents for TLS IE reloc. | |
2419 | * elf32-arc.c: Remove TCB_SIZE preprocessor macro. | |
2420 | ||
f4e6805f CM |
2421 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
2422 | ||
2423 | * elf32-arc.c (elf_arc_relocate_section): Added "call" to | |
2424 | RELOC_FOR_GLOBAL_SYMBOL macro. | |
2425 | ||
cd640291 CM |
2426 | 2018-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
2427 | ||
2428 | * elf32-arc.c (elf_arc_relocate_section): Small refactor and condition | |
2429 | changes. | |
2430 | ||
7ef0acc1 VG |
2431 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
2432 | ||
2433 | * config/tc-arc.c (md_undefined_symbol): Changed. | |
2434 | * config/tc-arc.h (DYNAMIC_STRUCT_NAME): Removed. | |
2435 | ||
cc89d0b3 CM |
2436 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
2437 | ||
2438 | * elf32-arc.c (elf_arc_relocate_section): Fixed reassign of indirect | |
2439 | symbols. | |
2440 | ||
9d5c718b CM |
2441 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
2442 | ||
2443 | * elf32-arc.c (elf_arc_check_relocs): Added condition to disable | |
2444 | warning and "Bad value" for local symbols ARC_32 or ARC_32_ME relocs. | |
2445 | ||
be9e3704 CM |
2446 | 2017-06-08 Cupertino Miranda <cmiranda@synopsys.com> |
2447 | ||
2448 | * elf32-arc.c (ADD_RELA): Changed to only work when dynamic | |
2449 | object is created. | |
2450 | ||
4ec192e6 RE |
2451 | 2017-06-08 Richard Earnshaw <rearnsha@arm.com> |
2452 | ||
2453 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Remove assertion | |
2454 | that the input bfd has Tag_FP_ARCH non-zero if Tag_ABI_HardFP_use | |
2455 | is non-zero. Add clarifying comments. | |
2456 | ||
51fa2693 L |
2457 | 2017-06-08 H.J. Lu <hongjiu.lu@intel.com> |
2458 | ||
2459 | * elf32-i386.c (elf_i386_check_relocs): Set local IFUNC symbol | |
2460 | name. Use local IFUNC symbol name string to report unsupported | |
2461 | non-PIC call to IFUNC function. | |
2462 | (elf_i386_relocate_section): Dump local IFUNC name with minfo | |
2463 | when generating R_386_IRELATIVE relocation. | |
2464 | (elf_i386_finish_dynamic_symbol): Likewise. | |
2465 | * elf_x86_64_check_relocs (elf_x86_64_check_relocs): Set local | |
2466 | IFUNC symbol name. | |
2467 | (elf_x86_64_relocate_section): Dump local IFUNC name with minfo | |
2468 | when generating R_X86_64_IRELATIVE relocation. | |
2469 | (elf_x86_64_finish_dynamic_symbol): Likewise. | |
2470 | ||
78e8a2ff JM |
2471 | 2017-06-06 Jose E. Marchesi <jose.marchesi@oracle.com> |
2472 | ||
2473 | * elf.c (setup_group): Make sure BFD sections are created for all | |
2474 | group sections in the input file when processing SHF_GROUP | |
2475 | sections. | |
2476 | (bfd_section_from_shdr): Avoid duplicating logic already | |
2477 | implemented in `setup_group'. | |
2478 | ||
9949827b DBR |
2479 | 2017-06-06 Daniel Bonniot de Ruisselet <bonniot@gmail.com> |
2480 | ||
2481 | PR binutils/21546 | |
2482 | * peXXigen.c (pe_print_idata): Use the address of the first thunk | |
2483 | if the hint address is zero. | |
2484 | ||
0ee3a6db JC |
2485 | 2017-06-06 James Clarke <jrtc27@jrtc27.com> |
2486 | ||
2487 | PR ld/19579 | |
2488 | * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Check | |
2489 | ELF_COMMON_DEF_P for common symbols. | |
2490 | ||
7bdf4127 AB |
2491 | 2017-06-06 Andrew Burgess <andrew.burgess@embecosm.com> |
2492 | ||
2493 | * elf.c (_bfd_elf_make_section_from_shdr): Don't initially mark | |
2494 | SEC_GROUP sections as SEC_EXCLUDE. | |
2495 | (bfd_elf_set_group_contents): Replace use of abort with an assert. | |
2496 | (assign_section_numbers): Use resolve_section_groups flag instead | |
2497 | of relocatable link type. | |
2498 | (_bfd_elf_init_private_section_data): Use resolve_section_groups | |
2499 | flag instead of checking the final_link flag for part of the | |
2500 | checks in here. Fix white space as a result. | |
2501 | * elflink.c (elf_link_input_bfd): Use resolve_section_groups flag | |
2502 | instead of relocatable link type. | |
2503 | (bfd_elf_final_link): Likewise. | |
2504 | ||
458ad2b8 JM |
2505 | 2017-06-06 Jose E. Marchesi <jose.marchesi@oracle.com> |
2506 | ||
2507 | * elfxx-mips.c (_bfd_mips_elf_relocate_section): Remove unused | |
2508 | variable `bed'. | |
2509 | * elf32-score.c (score_elf_final_link_relocate): Likewise. | |
2510 | (s3_bfd_score_elf_check_relocs): Likewise. | |
2511 | * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise. | |
2512 | (score_elf_final_link_relocate): Likewise. | |
2513 | (s7_bfd_score_elf_check_relocs): Likewise. | |
2514 | ||
fbebaf4a JM |
2515 | 2017-06-06 Jose E. Marchesi <jose.marchesi@oracle.com> |
2516 | ||
2517 | * elflink.c (init_reloc_cookie_rels): Remove unused variable | |
2518 | `bed'. | |
2519 | ||
056bafd4 MR |
2520 | 2017-06-06 Maciej W. Rozycki <macro@imgtec.com> |
2521 | ||
2522 | * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Subtract `count' | |
2523 | from `reloc_count' rather than decrementing it. | |
2524 | * elf.c (bfd_section_from_shdr): Multiply the adjustment to | |
2525 | `reloc_count' by `int_rels_per_ext_rel'. | |
2526 | * elf32-score.c (score_elf_final_link_relocate): Do not multiply | |
2527 | `reloc_count' by `int_rels_per_ext_rel' for last relocation | |
2528 | entry determination. | |
2529 | (s3_bfd_score_elf_check_relocs): Likewise. | |
2530 | * elf32-score7.c (score_elf_final_link_relocate): Likewise. | |
2531 | (s7_bfd_score_elf_relocate_section): Likewise. | |
2532 | (s7_bfd_score_elf_check_relocs): Likewise. | |
2533 | * elf64-mips.c (mips_elf64_get_reloc_upper_bound): Remove | |
2534 | prototype and function. | |
2535 | (mips_elf64_slurp_one_reloc_table): Do not update `reloc_count'. | |
2536 | (mips_elf64_slurp_reloc_table): Assert that `reloc_count' is | |
2537 | triple rather than once the sum of REL and RELA relocation entry | |
2538 | counts. | |
2539 | (bfd_elf64_get_reloc_upper_bound): Remove macro. | |
2540 | * elflink.c (_bfd_elf_link_read_relocs): Do not multiply | |
2541 | `reloc_count' by `int_rels_per_ext_rel' for internal relocation | |
2542 | storage allocation size determination. | |
2543 | (elf_link_input_bfd): Multiply `.ctors' and `.dtors' section's | |
2544 | size by `int_rels_per_ext_rel'. Do not multiply `reloc_count' | |
2545 | by `int_rels_per_ext_rel' for last relocation entry | |
2546 | determination. | |
2547 | (bfd_elf_final_link): Do not multiply `reloc_count' by | |
2548 | `int_rels_per_ext_rel' for internal relocation storage | |
2549 | allocation size determination. | |
2550 | (init_reloc_cookie_rels): Do not multiply `reloc_count' by | |
2551 | `int_rels_per_ext_rel' for last relocation entry determination. | |
2552 | (elf_gc_smash_unused_vtentry_relocs): Likewise. | |
2553 | * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise. | |
2554 | (_bfd_mips_elf_relocate_section): Likewise. | |
2555 | ||
af54f0eb AM |
2556 | 2017-06-05 Alan Modra <amodra@gmail.com> |
2557 | ||
2558 | PR 21529 | |
2559 | * linker.c (_bfd_generic_link_output_symbols): Handle BSF_GNU_UNIQUE. | |
2560 | ||
6cf3bf88 | 2561 | 2017-06-01 John Baldwin <jhb@FreeBSD.org> |
b5430a3c JB |
2562 | |
2563 | * elf.c (elfcore_grok_freebsd_psinfo): Use ELF header class to | |
2564 | determine structure sizes. | |
2565 | (elfcore_grok_freebsd_prstatus): Likewise. | |
2566 | ||
f378ab09 AM |
2567 | 2017-06-01 Alan Modra <amodra@gmail.com> |
2568 | ||
2569 | * elf64-ppc.c (struct ppc_link_hash_table): Add has_plt_localentry0. | |
2570 | (ppc64_elf_merge_symbol_attribute): Merge localentry bits from | |
2571 | dynamic objects. | |
2572 | (is_elfv2_localentry0): New function. | |
2573 | (ppc64_elf_tls_setup): Default params->plt_localentry0. | |
2574 | (plt_stub_size): Adjust size for tls_get_addr_opt stub. | |
2575 | (build_tls_get_addr_stub): Use a simpler stub when r2 is not saved. | |
2576 | (ppc64_elf_size_stubs): Leave stub_type as ppc_stub_plt_call for | |
2577 | optimized localentry:0 stubs. | |
2578 | (ppc64_elf_build_stubs): Save r2 in ELFv2 __glink_PLTresolve. | |
2579 | (ppc64_elf_relocate_section): Leave nop unchanged for optimized | |
2580 | localentry:0 stubs. | |
2581 | (ppc64_elf_finish_dynamic_sections): Set PPC64_OPT_LOCALENTRY in | |
2582 | DT_PPC64_OPT. | |
2583 | * elf64-ppc.h (struct ppc64_elf_params): Add plt_localentry0. | |
2584 | ||
8c65b54f CS |
2585 | 2017-05-30 Casey Smith <clegg89@gmail.com> |
2586 | ||
2587 | PR ld/21523 | |
2588 | * elf32-arm.c (elf32_arm_final_link_relocate): Install an absolute | |
2589 | value when processing the R_ARM_THM_ALU_PREL_11_0 reloc. | |
2590 | ||
64984c22 AK |
2591 | 2017-05-30 Anton Kolesov Anton.Kolesov@synopsys.com |
2592 | ||
2593 | * cpu-arc.c (arc_compatible): New function. | |
2594 | ||
37cd3877 AK |
2595 | 2017-05-30 Anton Kolesov <anton.kolesov@synopsys.com> |
2596 | ||
2597 | * cpu-arc.c (arch_info_struct): Remove duplicate ARC600 entry. | |
2598 | ||
8e2f54bc L |
2599 | 2017-05-30 H.J. Lu <hongjiu.lu@intel.com> |
2600 | ||
2601 | PR binutils/21519 | |
2602 | * bfdio.c (bfd_get_file_size): New function. | |
2603 | * bfd-in2.h: Regenerated. | |
2604 | ||
8e7f04f1 | 2605 | 2017-05-23 Dilian Palauzov <git-dpa@aegee.org> |
2606 | ||
2607 | * elf32-arc.c (arc_elf_merge_attributes): Add fall through | |
2608 | comments. | |
2609 | ||
25f94347 L |
2610 | 2017-05-22 H.J. Lu <hongjiu.lu@intel.com> |
2611 | ||
2612 | * elf64-x86-64.c (elf_x86_64_link_setup_gnu_properties): Use | |
2613 | dynobj instead of htab->elf.dynobj. | |
2614 | ||
e5713223 MR |
2615 | 2017-05-19 Maciej W. Rozycki <macro@imgtec.com> |
2616 | ||
2617 | * elf64-mips.c (mips_elf64_canonicalize_reloc): Remove prototype | |
2618 | and function. | |
2619 | (mips_elf64_canonicalize_dynamic_reloc): Likewise. | |
2620 | (mips_elf64_slurp_one_reloc_table): Set `reloc_count' to the | |
2621 | actual number of internal relocations retrieved. Adjust | |
2622 | function description. | |
2623 | (bfd_elf64_canonicalize_reloc): Remove macro. | |
2624 | (bfd_elf64_canonicalize_dynamic_reloc): Likewise. | |
2625 | ||
64517994 JM |
2626 | 2017-05-19 Jose E. Marchesi <jose.marchesi@oracle.com> |
2627 | ||
2628 | * archures.c (bfd_mach_sparc_v9m8): Define. | |
2629 | (bfd_mach_sparc_v8plusm8): Likewise. | |
2630 | (bfd_mach_sparc_v9_p): Adjust to M8. | |
2631 | (bfd_mach_sparc_64bit_p): Likewise. | |
2632 | * aoutx.h (machine_type): Handle bfd_mach_sparc_v9m8 and | |
2633 | bfd_mach_sparc_v8plusm8. | |
2634 | * bfd-in2.h: Regenerated. | |
2635 | * cpu-sparc.c (arch_info_struct): Entries for sparc:v9m8 and | |
2636 | sparc:v8plusm8. | |
2637 | * elfxx-sparc.c (_bfd_sparc_elf_object_p): Handle | |
2638 | bfd_mach_sparc_v8plusm8 and bfd_mach_sparc_v9m8 using the new hw | |
2639 | capabilities ONADDSUB, ONMUL, ONDIV, DICTUNP, FPCPSHL, RLE and | |
2640 | SHA3. | |
2641 | * elf32-sparc.c (elf32_sparc_final_write_processing): Handle | |
2642 | bfd_mach_sparc_v8plusm8. | |
2643 | ||
eb026f09 AM |
2644 | 2017-05-19 Alan Modra <amodra@gmail.com> |
2645 | ||
2646 | * elflink.c (_bfd_elf_gc_mark_extra_sections): Don't keep | |
2647 | debug and special sections when no non-note alloc sections in an | |
2648 | object are kept. | |
2649 | ||
535b785f AM |
2650 | 2017-05-18 Alan Modra <amodra@gmail.com> |
2651 | ||
2652 | * arc-got.h: Don't compare boolean values against TRUE or FALSE. | |
2653 | * elf-m10300.c: Likewise. | |
2654 | * elf.c: Likewise. | |
2655 | * elf32-arc.c: Likewise. | |
2656 | * elf32-bfin.c: Likewise. | |
2657 | * elf32-m68k.c: Likewise. | |
2658 | * elf32-nds32.c: Likewise. | |
2659 | * elf32-tilepro.c: Likewise. | |
2660 | * elflink.c: Likewise. | |
2661 | * elfnn-aarch64.c: Likewise. | |
2662 | * elfnn-riscv.c: Likewise. | |
2663 | * elfxx-tilegx.c: Likewise. | |
2664 | * mach-o.c: Likewise. | |
2665 | * peXXigen.c: Likewise. | |
2666 | * vms-alpha.c: Likewise. | |
2667 | * vms-lib.c: Likewise. | |
2668 | ||
b7c871ed L |
2669 | 2017-05-17 H.J. Lu <hongjiu.lu@intel.com> |
2670 | ||
2671 | PR ld/20882 | |
2672 | * elflink.c (elf_gc_mark_debug_section): New function. | |
2673 | (_bfd_elf_gc_mark_extra_sections): Mark any debug sections | |
2674 | referenced by kept debug sections. | |
2675 | ||
bc4e12de AM |
2676 | 2017-05-16 Alan Modra <amodra@gmail.com> |
2677 | ||
2678 | * elf-m10300.c: Rename occurrences of non_ir_ref. | |
2679 | * elf32-arm.c: Likewise. | |
2680 | * elf32-bfin.c: Likewise. | |
2681 | * elf32-cr16.c: Likewise. | |
2682 | * elf32-cris.c: Likewise. | |
2683 | * elf32-d10v.c: Likewise. | |
2684 | * elf32-dlx.c: Likewise. | |
2685 | * elf32-fr30.c: Likewise. | |
2686 | * elf32-frv.c: Likewise. | |
2687 | * elf32-hppa.c: Likewise. | |
2688 | * elf32-i370.c: Likewise. | |
2689 | * elf32-i386.c: Likewise. | |
2690 | * elf32-iq2000.c: Likewise. | |
2691 | * elf32-lm32.c: Likewise. | |
2692 | * elf32-m32c.c: Likewise. | |
2693 | * elf32-m32r.c: Likewise. | |
2694 | * elf32-m68hc1x.c: Likewise. | |
2695 | * elf32-m68k.c: Likewise. | |
2696 | * elf32-mcore.c: Likewise. | |
2697 | * elf32-metag.c: Likewise. | |
2698 | * elf32-microblaze.c: Likewise. | |
2699 | * elf32-moxie.c: Likewise. | |
2700 | * elf32-msp430.c: Likewise. | |
2701 | * elf32-mt.c: Likewise. | |
2702 | * elf32-nios2.c: Likewise. | |
2703 | * elf32-or1k.c: Likewise. | |
2704 | * elf32-ppc.c: Likewise. | |
2705 | * elf32-rl78.c: Likewise. | |
2706 | * elf32-s390.c: Likewise. | |
2707 | * elf32-score.c: Likewise. | |
2708 | * elf32-score7.c: Likewise. | |
2709 | * elf32-sh.c: Likewise. | |
2710 | * elf32-tic6x.c: Likewise. | |
2711 | * elf32-tilepro.c: Likewise. | |
2712 | * elf32-v850.c: Likewise. | |
2713 | * elf32-vax.c: Likewise. | |
2714 | * elf32-xstormy16.c: Likewise. | |
2715 | * elf32-xtensa.c: Likewise. | |
2716 | * elf64-alpha.c: Likewise. | |
2717 | * elf64-hppa.c: Likewise. | |
2718 | * elf64-ia64-vms.c: Likewise. | |
2719 | * elf64-mmix.c: Likewise. | |
2720 | * elf64-ppc.c: Likewise. | |
2721 | * elf64-s390.c: Likewise. | |
2722 | * elf64-sh64.c: Likewise. | |
2723 | * elf64-x86-64.c: Likewise. | |
2724 | * elflink.c: Likewise. | |
2725 | * elfnn-aarch64.c: Likewise. | |
2726 | * elfnn-ia64.c: Likewise. | |
2727 | * elfnn-riscv.c: Likewise. | |
2728 | * elfxx-mips.c: Likewise. | |
2729 | * elfxx-sparc.c: Likewise. | |
2730 | * elfxx-tilegx.c: Likewise. | |
2731 | * linker.c: Likewise. | |
2732 | ||
4070765b AM |
2733 | 2017-05-16 Alan Modra <amodra@gmail.com> |
2734 | ||
2735 | * elf64-ppc.c (add_symbol_adjust): Transfer non_ir_ref_dynamic. | |
2736 | * elflink.c (elf_link_add_object_symbols): Update to use | |
2737 | non_ir_ref_dynamic. | |
2738 | (elf_link_input_bfd): Test non_ir_ref_dynamic in addition to | |
2739 | non_ir_ref. | |
2740 | * linker.c (_bfd_generic_link_add_one_symbol): Likewise. | |
2741 | ||
25499ac7 MR |
2742 | 2017-05-15 Maciej W. Rozycki <macro@imgtec.com> |
2743 | ||
2744 | * elfxx-mips.c (print_mips_ases): Handle MIPS16e2 ASE. | |
2745 | ||
73caa85d L |
2746 | 2017-05-12 H.J. Lu <hongjiu.lu@intel.com> |
2747 | ||
2748 | * elf32-i386.c (elf_i386_parse_gnu_properties): Merge | |
2749 | GNU_PROPERTY_X86_ISA_1_USED and GNU_PROPERTY_X86_ISA_1_NEEDED | |
2750 | properties. | |
2751 | * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise. | |
2752 | ||
f2c29a16 L |
2753 | 2017-05-11 H.J. Lu <hongjiu.lu@intel.com> |
2754 | ||
2755 | * elf64-x86-64.c (elf_x86_64_link_hash_entry): Rename plt_bnd | |
2756 | to plt_second. | |
2757 | (elf_x86_64_link_hash_table): Rename plt_bnd/plt_bnd_eh_frame | |
2758 | to plt_second/plt_second_eh_frame. | |
2759 | (elf_x86_64_link_hash_newfunc): Updated. | |
2760 | (elf_x86_64_allocate_dynrelocs): Likewise. | |
2761 | (elf_x86_64_size_dynamic_sections): Likewise. | |
2762 | (elf_x86_64_relocate_section): Likewise. | |
2763 | (elf_x86_64_finish_dynamic_symbol): Likewise. | |
2764 | (elf_x86_64_finish_dynamic_sections): Likewise. | |
2765 | (elf_x86_64_plt_type): Rename plt_bnd to plt_second. | |
2766 | (elf_x86_64_get_synthetic_symtab): Updated. Also scan the | |
2767 | .plt.sec section. | |
2768 | (elf_backend_setup_gnu_properties): Updated. Create the | |
2769 | .plt.sec section instead of the .plt.sec section. | |
2770 | ||
dc2be3d2 L |
2771 | 2017-05-11 H.J. Lu <hongjiu.lu@intel.com> |
2772 | ||
2773 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Partially revert | |
2774 | commit 25070364b0ce33eed46aa5d78ebebbec6accec7e. | |
2775 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewse. | |
2776 | ||
db84b98a JM |
2777 | 2017-05-10 Jose E. Marchesi <jose.marchesi@oracle.com> |
2778 | ||
2779 | * elf64-sparc.c (elf64_sparc_set_reloc): New function. | |
2780 | (bfd_elf64_set_reloc): Define. | |
2781 | (elf64_sparc_write_relocs): Use `canon_reloc_count'. | |
2782 | ||
23186865 JM |
2783 | 2017-05-10 Jose E. Marchesi <jose.marchesi@oracle.com> |
2784 | ||
2785 | * targets.c (BFD_JUMP_TABLE_RELOCS): Add NAME##_set_reloc. | |
2786 | (struct bfd_target): New field _bfd_set_reloc. | |
2787 | * bfd.c (bfd_set_reloc): Call backend _set_bfd. | |
2788 | * reloc.c (_bfd_generic_set_reloc): New function. | |
2789 | * coffcode.h (coff_set_reloc): Define to _bfd_generic_set_reloc. | |
2790 | * nlm-target.h (nlm_set_reloc): Likewise. | |
2791 | * coff-rs6000.c (_bfd_xcoff_set_reloc): Likewise. | |
2792 | * aout-tic30.c (MY_set_reloc): Likewise. | |
2793 | * aout-target.h (MY_set_reloc): Likewise. | |
2794 | * elfxx-target.h (bfd_elfNN_set_reloc): Likewise. | |
2795 | * coff-alpha.c (_bfd_ecoff_set_reloc): Likewise. | |
2796 | * mach-o-target.c (bfd_mach_o_set_reloc): Likewise. | |
2797 | * vms-alpha.c (alpha_vms_set_reloc): Likewise. | |
2798 | * aout-adobe.c (aout_32_set_reloc): Likewise. | |
2799 | * bout.c (b_out_set_reloc): Likewise. | |
2800 | * coff-mips.c (_bfd_ecoff_set_reloc): Likewise. | |
2801 | * i386os9k.c (aout_32_set_reloc): Likewise. | |
2802 | * ieee.c (ieee_set_reloc): Likewise. | |
2803 | * oasys.c (oasys_set_reloc): Likewise. | |
2804 | * som.c (som_set_reloc): Likewise. | |
2805 | * versados.c (versados_set_reloc): Likewise. | |
2806 | * coff64-rs6000.c (rs6000_xcoff64_vec): Add | |
2807 | _bfd_generic_set_reloc. | |
2808 | (rs6000_xcoff64_aix_vec): LIkewise. | |
2809 | * libbfd.c (_bfd_norelocs_set_reloc): New function. | |
2810 | * libbfd-in.h: Prototype for _bfd_norelocs_set_reloc. | |
2811 | * i386msdos.c (msdos_set_reloc): Define to | |
2812 | _bfd_norelocs_set_reloc. | |
2813 | * elfcode.h (elf_set_reloc): Define. | |
2814 | * bfd-in2.h: Regenerated. | |
2815 | ||
aab82f4c L |
2816 | 2017-05-10 H.J. Lu <hongjiu.lu@intel.com> |
2817 | ||
2818 | PR ld/21481 | |
2819 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Use .plt.bnd | |
2820 | for IFUNC function address. | |
2821 | ||
53a346d8 CZ |
2822 | 2017-05-10 Claudiu Zissulescu <claziss@synopsys.com> |
2823 | ||
2824 | * elf32-arc.c (FEATURE_LIST_NAME): Define. | |
2825 | (CONFLICT_LIST): Likewise. | |
2826 | (opcode/arc-attrs.h): Include. | |
2827 | (arc_elf_print_private_bfd_data): Print OSABI v4 flag. | |
2828 | (arc_extract_features): New file. | |
2829 | (arc_stralloc): Likewise. | |
2830 | (arc_elf_merge_attributes): Likewise. | |
2831 | (arc_elf_merge_private_bfd_data): Use object attributes. | |
2832 | (bfd_arc_get_mach_from_attributes): New function. | |
2833 | (arc_elf_object_p): Use object attributes. | |
2834 | (arc_elf_final_write_processing): Likewise. | |
2835 | (elf32_arc_obj_attrs_arg_type): New function. | |
2836 | (elf32_arc_obj_attrs_handle_unknown): Likewise. | |
2837 | (elf32_arc_section_from_shdr): Likewise. | |
2838 | (elf_backend_obj_attrs_vendor): Define. | |
2839 | (elf_backend_obj_attrs_section): Likewise. | |
2840 | (elf_backend_obj_attrs_arg_type): Likewise. | |
2841 | (elf_backend_obj_attrs_section_type): Likewise. | |
2842 | (elf_backend_obj_attrs_handle_unknown): Likewise. | |
2843 | (elf_backend_section_from_shdr): Likewise. | |
2844 | ||
e645cf40 AG |
2845 | 2017-05-09 Andrew Goedhart <Andrewgoedhart@simplepowersolutions.co.za> |
2846 | ||
2847 | PR ld/21458 | |
2848 | * elf32-arm.c (elf32_arm_final_link_relocate): Set the bottom bit | |
2849 | of the value when resolving a R_ARM_THM_ALU_PREL_11_0 relocation | |
2850 | and the destination is a Thumb symbol. | |
2851 | ||
dd9e66ee L |
2852 | 2017-05-08 H.J. Lu <hongjiu.lu@intel.com> |
2853 | ||
2854 | * elf32-i386.c (elf_i386_get_synthetic_symtab): Add missing | |
2855 | initializer to silence GCC 4.2. | |
2856 | * lf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Likewise. | |
2857 | ||
38b12349 L |
2858 | 2017-05-08 H.J. Lu <hongjiu.lu@intel.com> |
2859 | ||
2860 | * elf64-x86-64.c (PLT_ENTRY_SIZE): Renamed to ... | |
2861 | (LAZY_PLT_ENTRY_SIZE): This. | |
2862 | (NON_LAZY_PLT_ENTRY_SIZE): New. | |
2863 | (elf_x86_64_plt0_entry): Renamed to ... | |
2864 | (elf_x86_64_lazy_plt0_entry): This. | |
2865 | (elf_x86_64_plt_entry): Renamed to ... | |
2866 | (elf_x86_64_lazy_plt_entry): This. | |
2867 | (elf_x86_64_bnd_plt0_entry): Renamed to ... | |
2868 | (elf_x86_64_lazy_bnd_plt0_entry): This. | |
2869 | (elf_x86_64_legacy_plt_entry): Removed. | |
2870 | (elf_x86_64_bnd_plt_entry): Renamed to ... | |
2871 | (elf_x86_64_lazy_bnd_plt_entry): This. | |
2872 | (elf_x86_64_legacy_plt2_entry): Renamed to ... | |
2873 | (elf_x86_64_non_lazy_plt_entry): This. | |
2874 | (elf_x86_64_bnd_plt2_entry): Renamed to ... | |
2875 | (elf_x86_64_non_lazy_bnd_plt_entry): This. | |
2876 | (elf_x86_64_eh_frame_plt): Renamed to ... | |
2877 | (elf_x86_64_eh_frame_lazy_plt): This. | |
2878 | (elf_x86_64_eh_frame_bnd_plt): Renamed to ... | |
2879 | (elf_x86_64_eh_frame_lazy_bnd_plt): This. | |
2880 | (elf_x86_64_eh_frame_plt_got): Renamed to ... | |
2881 | (elf_x86_64_eh_frame_non_lazy_plt): This. | |
2882 | (elf_x86_64_lazy_plt_layout): New. | |
2883 | (elf_x86_64_non_lazy_plt_layout): Likewise. | |
2884 | (elf_x86_64_plt_layout): Likewise. | |
2885 | (elf_x86_64_backend_data): Remove PLT layout information. Add | |
2886 | os for target system. | |
2887 | (GET_PLT_ENTRY_SIZE): Removed. | |
2888 | (elf_x86_64_lazy_plt): New. | |
2889 | (elf_x86_64_non_lazy_plt): Likewise. | |
2890 | (elf_x86_64_lazy_bnd_plt): Likewise. | |
2891 | (elf_x86_64_non_lazy_bnd_plt): Likewise. | |
2892 | (elf_x86-64_arch_bed): Updated. | |
2893 | (elf_x86_64_link_hash_table): Add plt, lazy_plt and non_lazy_plt. | |
2894 | (elf_x86_64_create_dynamic_sections): Removed. | |
2895 | (elf_x86_64_check_relocs): Don't check elf.dynobj. Don't call | |
2896 | _bfd_elf_create_ifunc_sections nor _bfd_elf_create_got_section. | |
2897 | (elf_x86-64_adjust_dynamic_symbol): Updated. | |
2898 | (elf_x86_64_allocate_dynrelocs): Updated. Pass 0 as PLT header | |
2899 | size to _bfd_elf_allocate_ifunc_dyn_relocs and don't allocate | |
2900 | size for PLT0 if there is no PLT0. Get plt_entry_size from | |
2901 | non_lazy_plt for non-lazy PLT entries. | |
2902 | (elf_x86_64_size_dynamic_sections): Updated. Get plt_entry_size | |
2903 | from non_lazy_plt for non-lazy PLT entries. | |
2904 | (elf_x86-64_relocate_section): Updated. Properly get PLT index | |
2905 | if there is no PLT0. | |
2906 | (elf_x86_64_finish_dynamic_symbol): Updated. Fill the first slot | |
2907 | in the PLT entry with generic PLT layout. Fill the non-lazy PLT | |
2908 | entries with non-lazy PLT layout. Don't fill the second and third | |
2909 | slots in the PLT entry if there is no PLT0. | |
2910 | (elf_x86_64_finish_dynamic_sections): Updated. Don't fill PLT0 | |
2911 | if there is no PLT0. Set sh_entsize on the .plt.got section. | |
2912 | (compare_relocs): New. | |
2913 | (elf_x86_64_plt_type): Likewise. | |
2914 | (elf_x86_64_plt): Likewise. | |
2915 | (elf_x86_64_nacl_plt): New. Forward declaration. | |
2916 | (elf_x86_64_get_plt_sym_val): Removed. | |
2917 | (elf_x86_64_get_synthetic_symtab): Rewrite to check PLT sections | |
2918 | against all dynamic relocations. | |
2919 | (elf_x86_64_link_setup_gnu_properties): New function. | |
2920 | (elf_backend_create_dynamic_sections): Updated. | |
2921 | (elf_backend_setup_gnu_properties): New. | |
2922 | (elf_x86_64_nacl_plt): New. | |
2923 | (elf_x86_64_nacl_arch_bed): Updated. | |
2924 | ||
f604c2a2 L |
2925 | 2017-05-08 H.J. Lu <hongjiu.lu@intel.com> |
2926 | ||
2927 | * elf32-i386.c (PLT_ENTRY_SIZE): Renamed to ... | |
2928 | (LAZY_PLT_ENTRY_SIZE): This. | |
2929 | (NON_LAZY_PLT_ENTRY_SIZE): New. | |
2930 | (elf_i386_plt0_entry): Renamed to ... | |
2931 | (elf_i386_lazy_plt0_entry): This. | |
2932 | (elf_i386_plt_entry): Renamed to ... | |
2933 | (elf_i386_lazy_plt_entry): This. | |
2934 | (elf_i386_pic_plt0_entry): Renamed to ... | |
2935 | (elf_i386_pic_lazy_plt0_entry): This. | |
2936 | (elf_i386_pic_plt_entry): Renamed to ... | |
2937 | (elf_i386_pic_lazy_plt_entry): This. | |
2938 | (elf_i386_got_plt_entry): Renamed to ... | |
2939 | (elf_i386_non_lazy_plt_entry): This. | |
2940 | (elf_i386_pic_got_plt_entry): Renamed to ... | |
2941 | (elf_i386_pic_non_lazy_plt_entry): This. | |
2942 | (elf_i386_eh_frame_plt): Renamed to ... | |
2943 | (elf_i386_eh_frame_lazy_plt): This. | |
2944 | (elf_i386_eh_frame_plt_got): Renamed to ... | |
2945 | (elf_i386_eh_frame_non_lazy_plt): This. | |
2946 | (elf_i386_plt_layout): Renamed to ... | |
2947 | (elf_i386_lazy_plt_layout): This. Remove eh_frame_plt_got and | |
2948 | eh_frame_plt_got_size. | |
2949 | (elf_i386_non_lazy_plt_layout): New. | |
2950 | (elf_i386_plt_layout): Likewise. | |
2951 | (elf_i386_non_lazy_plt): Likewise. | |
2952 | (GET_PLT_ENTRY_SIZE): Removed. | |
2953 | (elf_i386_plt): Renamed to ... | |
2954 | (elf_i386_lazy_plt): This. | |
2955 | (elf_i386_backend_data): Remove plt. Rename is_vxworks to os. | |
2956 | (elf_i386_arch_bed): Updated. | |
2957 | (elf_i386_link_hash_table): Add plt, lazy_plt and non_lazy_plt. | |
2958 | (elf_i386_create_dynamic_sections): Removed. | |
2959 | (elf_i386_check_relocs): Don't check elf.dynobj. Don't call | |
2960 | _bfd_elf_create_ifunc_sections nor _bfd_elf_create_got_section. | |
2961 | (elf_i386_adjust_dynamic_symbol): Updated. | |
2962 | (elf_i386_allocate_dynrelocs): Updated. Pass 0 as PLT header | |
2963 | size to _bfd_elf_allocate_ifunc_dyn_relocs and don't allocate | |
2964 | size for PLT0 if there is no PLT0. | |
2965 | (elf_i386_size_dynamic_sections): Updated. Check whether GOT | |
2966 | output section is discarded only if GOT isn't empty. | |
2967 | (elf_i386_relocate_section): Updated. Properly get PLT index | |
2968 | if there is no PLT0. | |
2969 | (elf_i386_finish_dynamic_symbol): Updated. Don't fill the | |
2970 | second and third slots in the PLT entry if there is no PLT0. | |
2971 | (elf_i386_finish_dynamic_sections): Updated. Don't fill PLT0 | |
2972 | if there is no PLT0. Set sh_entsize on the .plt.got section. | |
2973 | (elf_i386_nacl_plt): Forward declaration. | |
2974 | (elf_i386_get_plt_sym_val): Removed. | |
2975 | (elf_i386_get_synthetic_symtab): Rewrite to check PLT sections | |
2976 | against all dynamic relocations. | |
2977 | (elf_i386_link_setup_gnu_properties): New function. | |
2978 | (elf_backend_create_dynamic_sections): Updated. | |
2979 | (elf_backend_setup_gnu_properties): New. | |
2980 | (elf_i386_nacl_plt): Updated. | |
2981 | (elf_i386_nacl_arch_bed): Likewise. | |
2982 | (elf_i386_vxworks_arch_bed): Likewise. | |
2983 | ||
046734ff TP |
2984 | 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com> |
2985 | ||
2986 | * elflink.c (elf_output_implib): Remove executable flag from import | |
2987 | library bfd. | |
2988 | * elf32-arm.c (elf32_arm_filter_implib_symbols): Assert that the import | |
2989 | library is a relocatable object file. | |
2990 | ||
b660e9eb SKS |
2991 | 2017-05-01 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com> |
2992 | ||
2993 | PR ld/21404 | |
2994 | * elf32-avr.c (avr_should_move_sym): New function. | |
2995 | (avr_should_reduce_sym_size): Likewise. | |
2996 | (avr_should_increase_sym_size): Likewise. | |
2997 | (elf32_avr_relax_delete_bytes): Adjust symbol values | |
2998 | and sizes by calling new functions. | |
2999 | ||
763a5fa4 PD |
3000 | 2017-05-01 Palmer Dabbelt <palmer@dabbelt.com> |
3001 | ||
3002 | * config.bfd (riscv32-*): Enable rv64. | |
3003 | ||
73ec947d AM |
3004 | 2017-05-02 Alan Modra <amodra@gmail.com> |
3005 | ||
3006 | PR 21384 | |
3007 | * elflink.c (bfd_elf_link_mark_dynamic_symbol): Test h->non_elf | |
3008 | rather than h->root.type == bfd_link_hash_new. | |
3009 | (bfd_elf_record_link_assignment): Similarly, call | |
3010 | bfd_elf_link_mark_dynamic_symbol when h->non_elf. | |
3011 | ||
a941291c AM |
3012 | 2017-04-29 Alan Modra <amodra@gmail.com> |
3013 | ||
3014 | PR 21432 | |
3015 | * reloc.c (reloc_offset_in_range): New function. | |
3016 | (bfd_perform_relocation, bfd_install_relocation): Use it. | |
3017 | (_bfd_final_link_relocate): Likewise. | |
3018 | ||
750eaa47 L |
3019 | 2017-04-28 H.J. Lu <hongjiu.lu@intel.com> |
3020 | ||
3021 | * elf32-i386.c (elf_i386_allocate_dynrelocs): Check plt_got | |
3022 | before using .plt.got. | |
3023 | * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise. | |
3024 | ||
5b66fac4 L |
3025 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
3026 | ||
3027 | * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Use "=" | |
3028 | instead of "+=" to update 0. | |
3029 | ||
de9a3c42 L |
3030 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
3031 | ||
3032 | * elf32-i386.c (elf_i386_create_dynamic_sections): Create the | |
3033 | .plt.got section here. | |
3034 | (elf_i386_check_relocs): Don't create the .plt.got section. | |
3035 | * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Create | |
3036 | the .plt.got and .plt.bnd sections here. | |
3037 | (elf_x86_64_check_relocs): Don't create the .plt.got nor | |
3038 | .plt.bnd sections. | |
3039 | ||
da3d25af L |
3040 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
3041 | ||
3042 | * elf64-x86-64.c (elf_x86_64_link_hash_entry): Remove | |
3043 | has_bnd_reloc. | |
3044 | (elf_x86_64_link_hash_newfunc): Don't clear has_bnd_reloc. | |
3045 | (elf_x86_64_copy_indirect_symbol): Don't copy has_bnd_reloc. | |
3046 | (elf_x86_64_check_relocs): Don't set has_bnd_reloc. | |
3047 | (elf_x86_64_finish_dynamic_symbol): Check bndplt instead of | |
3048 | has_bnd_reloc. | |
3049 | ||
fba37edd L |
3050 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
3051 | ||
3052 | * elf-bfd.h (elf_backend_data): Change setup_gnu_properties | |
3053 | to return bfd *. | |
3054 | (_bfd_elf_link_setup_gnu_properties): Return bfd *. | |
3055 | * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Return | |
3056 | the first relocatable ELF input with GNU properties. | |
3057 | ||
1f78f649 L |
3058 | 2017-04-27 H.J. Lu <hongjiu.lu@intel.com> |
3059 | ||
3060 | * elf32-i386.c (elf_i386_finish_dynamic_sections): Simplify | |
3061 | VxWorks for non-PIC. | |
3062 | ||
76c20d54 AM |
3063 | 2017-04-27 Alan Modra <amodra@gmail.com> |
3064 | ||
3065 | * elf-bfd.h (struct elf_backend_data): Make asection param of | |
3066 | elf_backend_eh_frame_address_size const. | |
3067 | (_bfd_elf_eh_frame_address_size): Likewise. | |
3068 | * elf32-m32c.c (_bfd_m32c_elf_eh_frame_address_size): Likewise. | |
3069 | * elf32-msp430.c (elf32_msp430_eh_frame_address_size): Likewise. | |
3070 | * elfxx-mips.c (_bfd_mips_elf_eh_frame_address_size): Likewise. | |
3071 | * elfxx-mips.h (_bfd_mips_elf_eh_frame_address_size): Likewise. | |
3072 | * elf-eh-frame.c (_bfd_elf_eh_frame_address_size): Likewise. | |
3073 | (next_cie_fde_offset): Constify params. | |
3074 | (offset_adjust, adjust_eh_frame_local_symbols): Likewise. | |
3075 | ||
d7153c4a AM |
3076 | 2017-04-27 Alan Modra <amodra@gmail.com> |
3077 | ||
3078 | * elf-bfd.h (struct eh_cie_fde): Add aug_str_len and aug_data_len. | |
3079 | (_bfd_elf_adjust_eh_frame_global_symbol): Declare. | |
3080 | * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Set aug_str_len and | |
3081 | aug_data_len. | |
3082 | (offset_adjust): New function. | |
3083 | (_bfd_elf_adjust_eh_frame_global_symbol): Likewise. | |
3084 | (adjust_eh_frame_local_symbols): Likewise. | |
3085 | (_bfd_elf_discard_section_eh_frame): Call adjust_eh_frame_local_symbols | |
3086 | after changing anything. Return true if anything changed. | |
3087 | * elflink.c (bfd_elf_discard_info): If .eh_frame changed, call | |
3088 | _bfd_elf_adjust_eh_frame_global_symbol for globals. | |
3089 | ||
641338d8 AM |
3090 | 2017-04-27 Alan Modra <amodra@gmail.com> |
3091 | ||
3092 | * elflink.c (_bfd_elf_link_hash_hide_symbol): Clear dynstr_index | |
3093 | when force_local. | |
3094 | ||
21d68fcd AM |
3095 | 2017-04-27 Alan Modra <amodra@gmail.com> |
3096 | ||
3097 | * elf32-ppc.c (UNDEFWEAK_NO_DYNAMIC_RELOC): Define. | |
3098 | (ppc_elf_select_plt_layout, ppc_elf_tls_setup): Use it. | |
3099 | (ppc_elf_adjust_dynamic_symbol, allocate_dynrelocs): Likewise. | |
3100 | (ppc_elf_relocate_section): Likewise. Delete silly optimisation | |
3101 | for undef and undefweak dyn_relocs. | |
3102 | * elf64-ppc.c (UNDEFWEAK_NO_DYNAMIC_RELOC): Define. | |
3103 | (ppc64_elf_adjust_dynamic_symbol, ppc64_elf_tls_setup): Use it. | |
3104 | (allocate_got, allocate_dynrelocs): Likewise. | |
3105 | (ppc64_elf_relocate_section): Likewise. | |
3106 | ||
97d343d4 L |
3107 | 2017-04-26 H.J. Lu <hongjiu.lu@intel.com> |
3108 | ||
3109 | * elf32-i386.c (elf_i386_size_dynamic_sections): Alwasys add | |
3110 | DT_PLTRELSZ, DT_PLTREL and DT_JMPREL for .rel.plt section. | |
3111 | * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Alwasys | |
3112 | add DT_PLTRELSZ, DT_PLTREL and DT_JMPREL for .rela.plt section. | |
3113 | ||
04b31182 NC |
3114 | 2017-04-26 Nick Clifton <nickc@redhat.com> |
3115 | ||
3116 | PR binutils/21434 | |
3117 | * reloc.c (bfd_perform_relocation): Check for a negative address | |
3118 | in the reloc. | |
3119 | ||
23ec1e32 MR |
3120 | 2017-04-26 Maciej W. Rozycki <macro@imgtec.com> |
3121 | ||
3122 | PR ld/21334 | |
3123 | * elf-bfd.h (elf_backend_data): Add `always_renumber_dynsyms' | |
3124 | member. | |
3125 | * elfxx-target.h [!elf_backend_always_renumber_dynsyms] | |
3126 | (elf_backend_always_renumber_dynsyms): Define. | |
3127 | (elfNN_bed): Initialize `always_renumber_dynsyms' member. | |
3128 | * elfxx-mips.h (elf_backend_always_renumber_dynsyms): Define. | |
3129 | * elflink.c (bfd_elf_size_dynamic_sections): Also call | |
3130 | `_bfd_elf_link_renumber_dynsyms' if the backend has requested | |
3131 | it. | |
3132 | (bfd_elf_size_dynsym_hash_dynstr): Likewise. | |
3133 | ||
c46cec3a MR |
3134 | 2017-04-26 Maciej W. Rozycki <macro@imgtec.com> |
3135 | ||
3136 | * elflink.c (bfd_elf_size_dynamic_sections): Only call | |
3137 | `_bfd_elf_link_renumber_dynsyms' after section GC if dynamic | |
3138 | sections have been created. | |
3139 | ||
e63d1232 NC |
3140 | 2017-04-26 Nick Clifton <nickc@redhat.com> |
3141 | ||
3142 | PR binutils/21431 | |
3143 | * compress.c (bfd_init_section_compress_status): Check the return | |
3144 | value from bfd_malloc. | |
3145 | ||
9e9821dd L |
3146 | 2017-04-24 H.J. Lu <hongjiu.lu@intel.com> |
3147 | ||
3148 | * elf64-x86-64.c (elf_x86_64_link_hash_entry): Add | |
3149 | no_finish_dynamic_symbol. | |
3150 | (elf_x86_64_link_hash_newfunc): Set no_finish_dynamic_symbol to | |
3151 | 0. | |
3152 | (elf_x86_64_allocate_dynrelocs): If a symbol isn't undefined | |
3153 | weak symbol, don't make it dynamic. | |
3154 | (elf_x86_64_relocate_section): If a symbol isn't dynamic in PIC, | |
3155 | set no_finish_dynamic_symbol and generate R_X86_64_RELATIVE | |
3156 | relocation for GOT reference. | |
3157 | (elf_x86_64_finish_dynamic_symbol): Abort if | |
3158 | no_finish_dynamic_symbol isn't 0. | |
3159 | ||
0dc9a308 L |
3160 | 2017-04-24 H.J. Lu <hongjiu.lu@intel.com> |
3161 | ||
3162 | PR ld/21402 | |
3163 | * elf32-i386.c (elf_i386_allocate_dynrelocs): If a symbol isn't | |
3164 | undefined weak symbol, don't make it dynamic. | |
3165 | (elf_i386_relocate_section): If a symbol isn't dynamic in PIC, | |
3166 | set no_finish_dynamic_symbol and generate R_386_RELATIVE | |
3167 | relocation for R_386_GOT32. | |
3168 | ||
1587442d L |
3169 | 2017-04-24 H.J. Lu <hongjiu.lu@intel.com> |
3170 | ||
3171 | PR ld/21425 | |
3172 | * elf32-i386.c (ELF_MAXPAGESIZE): Set to 0x1000 for VxWorks. | |
3173 | ||
7eacd66b AM |
3174 | 2017-04-23 Alan Modra <amodra@gmail.com> |
3175 | ||
3176 | PR 21414 | |
3177 | * section.c (GLOBAL_SYM_INIT): Make available in bfd.h. | |
3178 | * elf.c (lcomm_sym): New. | |
3179 | (_bfd_elf_large_com_section): Use lcomm_sym section symbol. | |
3180 | * bfd-in2.h: Regenerate. | |
3181 | ||
bce964aa AM |
3182 | 2017-04-23 Alan Modra <amodra@gmail.com> |
3183 | ||
3184 | PR 21412 | |
3185 | * elf-bfd.h (struct elf_backend_data <get_reloc_section>): Change | |
3186 | parameters and comment. | |
3187 | (_bfd_elf_get_reloc_section): Delete. | |
3188 | (_bfd_elf_plt_get_reloc_section): Declare. | |
3189 | * elf.c (_bfd_elf_plt_get_reloc_section, elf_get_reloc_section): | |
3190 | New functions. Don't blindly skip over assumed .rel/.rela prefix. | |
3191 | Extracted from.. | |
3192 | (_bfd_elf_get_reloc_section): ..here. Delete. | |
3193 | (assign_section_numbers): Call elf_get_reloc_section. | |
3194 | * elf64-ppc.c (elf_backend_get_reloc_section): Define. | |
3195 | * elfxx-target.h (elf_backend_get_reloc_section): Update. | |
3196 | ||
97e83a10 AM |
3197 | 2017-04-23 Alan Modra <amodra@gmail.com> |
3198 | ||
3199 | PR 21409 | |
3200 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Don't segfault when | |
3201 | no symbols. | |
3202 | ||
e133d005 L |
3203 | 2017-04-21 H.J. Lu <hongjiu.lu@intel.com> |
3204 | ||
3205 | PR ld/21402 | |
3206 | * elf32-i386.c (elf_i386_link_hash_entry): Add | |
3207 | no_finish_dynamic_symbol. | |
3208 | (elf_i386_link_hash_newfunc): Set no_finish_dynamic_symbol to 0. | |
3209 | (elf_i386_allocate_dynrelocs): If a symbol isn't undefined weak | |
3210 | symbol, don't make it dynamic in PIE. | |
3211 | (elf_i386_relocate_section): If a symbol isn't dynamic in PIE, | |
3212 | set no_finish_dynamic_symbol and generate R_386_RELATIVE | |
3213 | relocation for R_386_GOT32 | |
3214 | (elf_i386_finish_dynamic_symbol): Abort if no_finish_dynamic_symbol | |
3215 | isn't 0. | |
3216 | ||
3c5fce9b L |
3217 | 2017-04-21 H.J. Lu <hongjiu.lu@intel.com> |
3218 | ||
3219 | PR ld/19617 | |
3220 | PR ld/21086 | |
3221 | * elflink.c (elf_link_add_object_symbols): Require | |
3222 | --no-dynamic-linker with -E/--dynamic-list when creating | |
3223 | dynamic sections. | |
3224 | ||
0fad2956 MR |
3225 | 2017-04-20 Maciej W. Rozycki <macro@imgtec.com> |
3226 | ||
3227 | * elflink.c (_bfd_elf_symbol_refs_local_p): Always return TRUE | |
3228 | if forced local. | |
3229 | ||
64575f78 MR |
3230 | 2017-04-20 Maciej W. Rozycki <macro@imgtec.com> |
3231 | ||
3232 | * elfxx-mips.c (_bfd_mips_elf_final_link): Reorder comment about | |
3233 | dynamic symbol sorting. | |
3234 | ||
59fa66c5 L |
3235 | 2017-04-20 H.J. Lu <hongjiu.lu@intel.com> |
3236 | ||
3237 | PR ld/21382 | |
3238 | * elflink.c (elf_link_add_object_symbols): Preserve | |
3239 | dynamic_ref_after_ir_def when restoring the symbol table for | |
3240 | unneeded dynamic object. | |
3241 | ||
e492d2f8 L |
3242 | 2017-04-19 H.J. Lu <hongjiu.lu@intel.com> |
3243 | ||
3244 | PR ld/21401 | |
3245 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Don't abort | |
3246 | on on undefined IFUNC symbol in the second PLT. | |
3247 | ||
10169134 WAF |
3248 | 2017-04-19 Wedson Almeida Filho <wedsonaf@gmail.com> |
3249 | ||
3250 | * peXXigen.c (pe_print_reloc): Correct chunk_end. | |
3251 | ||
954b63d4 AM |
3252 | 2017-04-19 Alan Modra <amodra@gmail.com> |
3253 | ||
3254 | * elflink.c (_bfd_elf_adjust_dynamic_symbol): Hide undefweak | |
3255 | or make dynamic for info->dynamic_undefined_weak 0 and 1. | |
3256 | * elf32-ppc.c:Formatting. | |
3257 | (ensure_undefweak_dynamic): Don't make dynamic when | |
3258 | info->dynamic_undefined_weak is zero. | |
3259 | (allocate_dynrelocs): Discard undefweak dyn_relocs for | |
3260 | info->dynamic_undefined_weak. Discard undef dyn_relocs when | |
3261 | not default visibility. Discard undef and undefweak | |
3262 | dyn_relocs earlier. | |
3263 | (ppc_elf_relocate_section): Adjust to suit. | |
3264 | * elf64-ppc.c: Formatting. | |
3265 | (ensure_undefweak_dynamic): Don't make dynamic when | |
3266 | info->dynamic_undefined_weak is zero. | |
3267 | (allocate_dynrelocs): Discard undefweak dyn_relocs for | |
3268 | info->dynamic_undefined_weak. Discard them earlier. | |
3269 | ||
e6699019 L |
3270 | 2017-04-17 H.J. Lu <hongjiu.lu@intel.com> |
3271 | ||
3272 | PR ld/21389 | |
3273 | * elflink.c (bfd_elf_size_dynamic_sections): Get soname index | |
3274 | before generating the version definition section. | |
3275 | ||
c5d37467 AM |
3276 | 2017-04-17 Alan Modra <amodra@gmail.com> |
3277 | ||
3278 | * elflink.c (_bfd_elf_merge_symbol): Undo dynamic linking | |
3279 | state when a regular object file defines a symbol with | |
3280 | incompatible type to that defined by an earlier shared lib. | |
3281 | ||
63a5468a AM |
3282 | 2017-04-13 Alan Modra <amodra@gmail.com> |
3283 | ||
3284 | * coffcode.h: Wrap some overly long _bfd_error_handler args. | |
3285 | * elf.c: Likewise. | |
3286 | * elf32-arm.c: Likewise. | |
3287 | * elf32-i386.c: Likewise. | |
3288 | * elf32-mep.c: Likewise. | |
3289 | * elf64-ia64-vms.c: Likewise. | |
3290 | * elf64-x86-64.c: Likewise. | |
3291 | * elflink.c: Likewise. | |
3292 | * elfnn-ia64.c: Likewise. | |
3293 | * elfxx-mips.c: Likewise. | |
3294 | ||
dae82561 AM |
3295 | 2017-04-13 Alan Modra <amodra@gmail.com> |
3296 | ||
3297 | * aoutx.h: Use %B and %A in error messages throughout file. | |
3298 | * aout-cris.c: Likewise. | |
3299 | * archive.c: Likewise. | |
3300 | * binary.c: Likewise. | |
3301 | * coff-rs6000.c: Likewise. | |
3302 | * coff-tic4x.c: Likewise. | |
3303 | * coffcode.h: Likewise. | |
3304 | * coffgen.c: Likewise. | |
3305 | * cofflink.c: Likewise. | |
3306 | * coffswap.h: Likewise. | |
3307 | * cpu-arm.c: Likewise. | |
3308 | * elf-eh-frame.c: Likewise. | |
3309 | * elf-m10300.c: Likewise. | |
3310 | * elf.c: Likewise. | |
3311 | * elf32-arc.c: Likewise. | |
3312 | * elf32-arm.c: Likewise. | |
3313 | * elf32-bfin.c: Likewise. | |
3314 | * elf32-frv.c: Likewise. | |
3315 | * elf32-iq2000.c: Likewise. | |
3316 | * elf32-m32c.c: Likewise. | |
3317 | * elf32-microblaze.c: Likewise. | |
3318 | * elf32-nds32.c: Likewise. | |
3319 | * elf32-rl78.c: Likewise. | |
3320 | * elf32-rx.c: Likewise. | |
3321 | * elf32-score.c: Likewise. | |
3322 | * elf32-score7.c: Likewise. | |
3323 | * elf32-sh64.c: Likewise. | |
3324 | * elf32-v850.c: Likewise. | |
3325 | * elf32-vax.c: Likewise. | |
3326 | * elf32-visium.c: Likewise. | |
3327 | * elf64-ia64-vms.c: Likewise. | |
3328 | * elf64-mmix.c: Likewise. | |
3329 | * elf64-sh64.c: Likewise. | |
3330 | * elfcode.h: Likewise. | |
3331 | * elfnn-aarch64.c: Likewise. | |
3332 | * elfnn-ia64.c: Likewise. | |
3333 | * elfxx-mips.c: Likewise. | |
3334 | * hpux-core.c: Likewise. | |
3335 | * ieee.c: Likewise. | |
3336 | * ihex.c: Likewise. | |
3337 | * linker.c: Likewise. | |
3338 | * merge.c: Likewise. | |
3339 | * mmo.c: Likewise. | |
3340 | * oasys.c: Likewise. | |
3341 | * pdp11.c: Likewise. | |
3342 | * peXXigen.c: Likewise. | |
3343 | * rs6000-core.c: Likewise. | |
3344 | * vms-alpha.c: Likewise. | |
3345 | * xcofflink.c: Likewise. | |
3346 | ||
c08bb8dd AM |
3347 | 2017-04-13 Alan Modra <amodra@gmail.com> |
3348 | ||
3349 | * bfd.c (PRINT_TYPE): Define. | |
3350 | (_doprnt): New function. | |
3351 | (error_handler_internal): Use _doprnt. | |
3352 | * coff-arm.c: Put %A and %B arguments to _bfd_error_handler | |
3353 | calls in their natural order, throughout file. | |
3354 | * coff-mcore.c: Likewise. | |
3355 | * coff-ppc.c: Likewise. | |
3356 | * coff-tic80.c: Likewise. | |
3357 | * cofflink.c: Likewise. | |
3358 | * elf-s390-common.c: Likewise. | |
3359 | * elf.c: Likewise. | |
3360 | * elf32-arm.c: Likewise. | |
3361 | * elf32-i386.c: Likewise. | |
3362 | * elf32-m32r.c: Likewise. | |
3363 | * elf32-msp430.c: Likewise. | |
3364 | * elf32-spu.c: Likewise. | |
3365 | * elf64-ia64-vms.c: Likewise. | |
3366 | * elf64-sparc.c: Likewise. | |
3367 | * elf64-x86-64.c: Likewise. | |
3368 | * elflink.c: Likewise. | |
3369 | * elfnn-aarch64.c: Likewise. | |
3370 | * elfnn-ia64.c: Likewise. | |
3371 | * elfxx-mips.c: Likewise. | |
3372 | ||
10463f39 AM |
3373 | 2017-04-13 Alan Modra <amodra@gmail.com> |
3374 | ||
3375 | * elf32-arm.c (arm_type_of_stub): Supply missing args to "long | |
3376 | branch veneers" error. Fix double space and format message. | |
3377 | * elf32-avr.c (avr_add_stub): Do not pass NULL as %B arg. | |
3378 | * elf64-ppc.c (tocsave_find): Supply missing %B arg. | |
3379 | ||
4af8774e AM |
3380 | 2017-04-13 Alan Modra <amodra@gmail.com> |
3381 | ||
3382 | * bfd-in2.h: Regenerate. | |
3383 | ||
e4097f5e L |
3384 | 2017-04-11 H.J. Lu <hongjiu.lu@intel.com> |
3385 | ||
3386 | * elf-properties.c (_bfd_elf_parse_gnu_properties): Remove the | |
3387 | extra `\n' in warning/error messages. | |
3388 | * elf32-i386.c (elf_i386_parse_gnu_properties): Likewise. | |
3389 | * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise. | |
3390 | ||
537616aa L |
3391 | 2017-04-11 H.J. Lu <hongjiu.lu@intel.com> |
3392 | ||
3393 | * elf-properties.c (_bfd_elf_parse_gnu_properties): Ignore | |
3394 | processor-specific properties with generic ELF target vector. | |
3395 | ||
bb1dd176 QZ |
3396 | 2017-04-10 Qing Zhao <qing.zhao@oracle.com> |
3397 | ||
3398 | * elf32-sparc.c (elf_backend_fixup_symbol): New. | |
3399 | * elf64-sparc.c (elf_backend_fixup_symbol): New. | |
3400 | * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New. | |
3401 | (_bfd_sparc_elf_link_hash_entry): Add has_got_reloc and | |
3402 | has_non_got_reloc. | |
3403 | (link_hash_newfunc): Initialize has_got_reloc and | |
3404 | has_non_got_reloc. | |
3405 | (_bfd_sparc_elf_size_dynamic_sections): Set interp to .interp | |
3406 | section. | |
3407 | (_bfd_sparc_elf_copy_indirect_symbol): Copy has_got_reloc and | |
3408 | has_non_got_reloc. | |
3409 | (_bfd_sparc_elf_check_relocs): Set has_got_reloc and | |
3410 | has_non_got_reloc. | |
3411 | (_bfd_sparc_elf_fixup_symbol): New function. | |
3412 | (allocate_dynrelocs): Don't allocate space for dynamic | |
3413 | relocations and discard relocations against resolved undefined | |
3414 | weak symbols in executable. Don't make resolved undefined weak | |
3415 | symbols in executable dynamic. Keep dynamic non-GOT/non-PLT | |
3416 | relocation against undefined weak symbols in PIE. | |
3417 | (_bfd_sparc_elf_relocate_section): Don't generate dynamic | |
3418 | relocations against resolved undefined weak symbols in PIE | |
3419 | (_bfd_sparc_elf_finish_dynamic_symbol): Keep PLT/GOT entries | |
3420 | without ynamic PLT/GOT relocations for resolved undefined weak | |
3421 | symbols. | |
3422 | Don't generate dynamic relocation against resolved undefined | |
3423 | weak symbol in executable. | |
3424 | (pie_finish_undefweak_symbol): New function. | |
3425 | (_bfd_sparc_elf_finish_dynamic_sections): Call | |
3426 | pie_finish_undefweak_symbol on all symbols in PIE. | |
3427 | * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add interp. | |
3428 | (_bfd_sparc_elf_fixup_symbol): New function. | |
3429 | ||
d236cfd4 NC |
3430 | 2017-04-10 Nick Clifton <nickc@redhat.com> |
3431 | ||
3432 | * config.bfd: Remove ns32k from obsolete list. | |
3433 | ||
6f9dbcd4 AM |
3434 | 2017-04-10 Alan Modra <amodra@gmail.com> |
3435 | ||
3436 | PR 21287 | |
3437 | * elf.c (special_sections_f): Match .fini_array and .fini_array.*. | |
3438 | (special_sections_i): Likewise for .init_array. | |
3439 | (special_sections_p): Likewise for .preinit_array. | |
3440 | ||
8170f769 L |
3441 | 2017-04-07 H.J. Lu <hongjiu.lu@intel.com> |
3442 | ||
3443 | PR ld/19579 | |
3444 | PR ld/21306 | |
3445 | * elf32-s390.c (elf_s390_finish_dynamic_symbol): Check | |
3446 | ELF_COMMON_DEF_P for common symbols. | |
3447 | * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise. | |
3448 | * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise. | |
3449 | * elflink.c (_bfd_elf_merge_symbol): Revert commits | |
3450 | 202ac193bbbecc96a4978d1ac3d17148253f9b01 and | |
3451 | 07492f668d2173da7a2bda3707ff0985e0f460b6. | |
3452 | ||
49f4617b PA |
3453 | 2017-04-07 Pedro Alves <palves@redhat.com> |
3454 | ||
3455 | * opncls.c (bfd_get_debug_link_info): Rename to... | |
3456 | (bfd_get_debug_link_info_1): ... this. Change type of second | |
3457 | parameter to void pointer. Adjust. | |
3458 | (bfd_get_debug_link_info): Reimplement on top of | |
3459 | bfd_get_debug_link_info_1. | |
3460 | (separate_debug_file_exists, separate_alt_debug_file_exists): | |
3461 | Change type of second parameter to void pointer. Adjust. | |
3462 | (get_func_type, check_func_type): Change type of second parameter | |
3463 | to void pointer. | |
3464 | (find_separate_debug_file): Add 'func_data' parameter. Pass it to | |
3465 | the callback functions instead of passing the address of a local. | |
3466 | (bfd_follow_gnu_debuglink): Pass address of unsigned long local to | |
3467 | find_separate_debug_file. | |
3468 | (get_alt_debug_link_info_shim): Change type of second parameter to | |
3469 | void pointer. Adjust. | |
3470 | (bfd_follow_gnu_debugaltlink): Adjust to pass NULL to | |
3471 | find_separate_debug_file. | |
3472 | (get_build_id_name, bfd_boolean check_build_id_file): Change type | |
3473 | of second parameter to void pointer. Adjust. | |
3474 | (bfd_follow_build_id_debuglink): Pass address of bfd_build_id | |
3475 | pointer local to find_separate_debug_file. | |
3476 | ||
3477 | 2017-04-07 Tristan Gingold <gingold@gingold-Precision-7510> | |
1fd6d111 TG |
3478 | |
3479 | * coffgen.c (_bfd_coff_gc_mark_hook): Handle PE weak | |
3480 | external symbols with a definition. | |
3481 | (_bfd_coff_gc_mark_extra_sections): Fix typo. | |
3482 | ||
86abf93a AM |
3483 | 2017-04-07 Alan Modra <amodra@gmail.com> |
3484 | ||
3485 | * po/SRC-POTFILES.in: Regenerate. | |
3486 | ||
8dea77f0 AM |
3487 | 2017-04-05 Alan Modra <amodra@gmail.com> |
3488 | ||
3489 | * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Support ELFv2 PLT | |
3490 | reference counting. | |
3491 | ||
477bdd39 JT |
3492 | 2017-04-02 Jon Turney <jon.turney@dronecode.org.uk> |
3493 | ||
3494 | (_bfd_XXi_swap_aouthdr_out): For clarity, use defines rather than | |
3495 | numbers for DataDirectory entry indicies passed to | |
3496 | add_data_entry(). | |
3497 | ||
a91e1603 L |
3498 | 2017-04-04 H.J. Lu <hongjiu.lu@intel.com> |
3499 | ||
3500 | * elf.c (get_program_header_size): Add a GNU_MBIND segment for | |
3501 | each GNU_MBIND section and align GNU_MBIND section to page size. | |
3502 | (_bfd_elf_map_sections_to_segments): Create a GNU_MBIND | |
3503 | segment for each GNU_MBIND section. | |
3504 | (_bfd_elf_init_private_section_data): Copy sh_info from input | |
3505 | for GNU_MBIND section. | |
3506 | ||
b5292032 PD |
3507 | 2017-04-03 Palmer Dabbelt <palmer@dabbelt.com> |
3508 | ||
3509 | * elfnn-riscv.c (GP_NAME): Delete. | |
3510 | (riscv_global_pointer_value): Change GP_NAME to RISCV_GP_SYMBOL. | |
3511 | (_bfd_riscv_relax_lui): Likewise. | |
3512 | ||
ad32986f NC |
3513 | 2017-04-04 Nick Clifton <nickc@redhat.com> |
3514 | ||
3515 | PR binutils/21342 | |
3516 | * elflink.c (_bfd_elf_define_linkage_sym): Prevent null pointer | |
3517 | dereference. | |
3518 | (bfd_elf_final_link): Only initialize the extended symbol index | |
3519 | section if there are extended symbol tables to list. | |
3520 | ||
46bed679 L |
3521 | 2017-04-03 H.J. Lu <hongjiu.lu@intel.com> |
3522 | ||
3523 | * Makefile.am (BFD32_BACKENDS): Add elf-properties.lo. | |
3524 | (BFD32_BACKENDS_CFILES): Add elf-properties.c. | |
3525 | * configure.ac (elf): Add elf-properties.lo. | |
3526 | * Makefile.in: Regenerated. | |
3527 | * configure: Likewise. | |
3528 | * elf-bfd.h (elf_property_kind): New. | |
3529 | (elf_property): Likewise. | |
3530 | (elf_property_list): Likewise. | |
3531 | (elf_properties): Likewise. | |
3532 | (_bfd_elf_parse_gnu_properties): Likewise. | |
3533 | (_bfd_elf_get_property): Likewise. | |
3534 | (_bfd_elf_link_setup_gnu_properties): Likewise. | |
3535 | (elf_backend_data): Add parse_gnu_properties, merge_gnu_properties | |
3536 | and setup_gnu_properties. | |
3537 | (elf_obj_tdata): Add properties. | |
3538 | * elf-properties.c: New file. | |
3539 | * elf32-i386.c (elf_i386_parse_gnu_properties): New. | |
3540 | (elf_i386_merge_gnu_properties): Likewise. | |
3541 | (elf_backend_parse_gnu_properties): Likewise. | |
3542 | (elf_backend_merge_gnu_properties): Likewise. | |
3543 | * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise. | |
3544 | (elf_x86_64_merge_gnu_properties): Likewise. | |
3545 | (elf_backend_parse_gnu_properties): Likewise. | |
3546 | (elf_backend_merge_gnu_properties): Likewise. | |
3547 | * elfxx-target.h (elf_backend_merge_gnu_properties): Likewise. | |
3548 | (elf_backend_parse_gnu_properties): Likewise. | |
3549 | (elf_backend_setup_gnu_properties): Likewise. | |
3550 | (elfNN_bed): Add elf_backend_parse_gnu_properties, | |
3551 | elf_backend_merge_gnu_properties and | |
3552 | elf_backend_setup_gnu_properties. | |
3553 | ||
f96bd6c2 PC |
3554 | 2017-03-30 Pip Cet <pipcet@gmail.com> |
3555 | ||
3556 | * elf32-wasm32.c: Add relocation code, two relocs. | |
3557 | * reloc.c: Add wasm32 relocations. | |
3558 | * libbfd.h: Regenerate. | |
3559 | * bfd-in2.h: Regenerate. | |
3560 | * bfd/po/bfd.pot: Regenerate. | |
3561 | ||
e643cb45 NC |
3562 | 2017-03-29 Nick Clifton <nickc@redhat.com> |
3563 | ||
3564 | PR binutils/18025 | |
3565 | * coff-bfd.h (struct coff_section_data): Add new fields: | |
3566 | saved_bias and bias. | |
3567 | * coffgen.c (coff_find_nearest_line_with_names): Cache the bias | |
3568 | computed for PE binaries. | |
3569 | * dwarf2.c (scan_unit_for_symbols): Only warn once about each | |
3570 | missing abbrev. | |
3571 | ||
086554e8 HPN |
3572 | 2017-03-28 Hans-Peter Nilsson <hp@axis.com> |
3573 | ||
3574 | PR ld/16044 | |
3575 | * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Adjust BFD_ASSERT | |
3576 | to handle a local symbol with a hash-symbol-entry; without PLT. | |
3577 | Add BFD_ASSERT for an incidental case with GOT entry present. | |
3578 | (cris_elf_check_relocs): Increment PLT refcount only if the symbol | |
3579 | isn't forced-or-set local. | |
3580 | ||
a6be0538 PC |
3581 | 2017-03-27 Pip Cet <pipcet@gmail.com> |
3582 | ||
3583 | * wasm-module.c: New file to support WebAssembly modules. | |
3584 | * wasm-module.h: New file to support WebAssembly modules. | |
3585 | * doc/webassembly.texi: Start documenting wasm-module.c. | |
3586 | * config.bfd: Add wasm_vec. | |
3587 | * targets.c: Likewise. | |
3588 | * configure.ac: Likewise. | |
3589 | * Makefile.am: Add entries for wasm-module.c. | |
3590 | * Makefile.in: Regenerate. | |
3591 | * configure: Regenerate. | |
3592 | * po/SRC-POTFILES.in: Regenerate. | |
3593 | ||
79b1d3cb PC |
3594 | 2017-03-27 Pip Cet <pipcet@gmail.com> |
3595 | ||
3596 | * cpu-wasm32.c: New file to support wasm32 architecture. | |
3597 | * elf32-wasm32.c: New file to support wasm32 architecture. | |
3598 | * Makefile.am: Add wasm32 architecture. | |
3599 | * archures.c: Likewise. | |
3600 | * config.bfd: Likewise. | |
3601 | * configure.ac: Likewise. | |
3602 | * targets.c: Likewise. | |
3603 | * Makefile.in: Regenerate. | |
3604 | * bfd-in2.h: Regenerate. | |
3605 | * configure: Regenerate. | |
3606 | * po/SRC-POTFILES.in: Regenerate. | |
3607 | ||
aaed6f5b AM |
3608 | 2017-03-20 Alan Modra <amodra@gmail.com> |
3609 | ||
3610 | PR 21266 | |
3611 | * elf64-ppc.c (compare_symbols): Stabilize sort. | |
3612 | ||
82e66161 AM |
3613 | 2017-03-18 Alan Modra <amodra@gmail.com> |
3614 | ||
3615 | * elf64-ppc.c (struct ppc_link_hash_table): Add | |
3616 | local_ifunc_resolver and maybe_local_ifunc_resolver. | |
3617 | (ppc_build_one_stub): Set flags on emitting dynamic | |
3618 | relocation to ifunc. | |
3619 | (ppc64_elf_relocate_section): Likewise. | |
3620 | (ppc64_elf_finish_dynamic_symbol): Likewise. | |
3621 | (ppc64_elf_finish_dynamic_sections): Error on DT_TEXTREL with | |
3622 | local dynamic relocs to ifuncs. | |
3623 | * elf32-ppc.c (struct ppc_elf_link_hash_table): Add | |
3624 | local_ifunc_resolver and maybe_local_ifunc_resolver. | |
3625 | (ppc_elf_relocate_section): Set flag on emitting dynamic | |
3626 | relocation to ifuncs. | |
3627 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
3628 | (ppc_elf_finish_dynamic_sections): Error on DT_TEXTREL with local | |
3629 | dynamic relocs to ifuncs. | |
3630 | ||
f955cccf NC |
3631 | 2017-03-13 Nick Clifton <nickc@redhat.com> |
3632 | ||
3633 | PR binutils/21202 | |
3634 | * reloc.c (BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC): Rename to | |
3635 | BFD_RELOC_AARCH64_TLSDESC_LD64_LO12. | |
3636 | (BFD_RELOC_AARCH64_TLSDESC_ADD_LO12_NC): Rename to | |
3637 | BFD_RELOC_AARCH64_TLSDESC_ADD_LO12. | |
3638 | * bfd-in2.h: Regenerate. | |
3639 | * libbfd.h: Regenerate. | |
3640 | * elfnn-aarch64.c (IS_AARCH64_TLS_RELAX_RELOC): Update reloc | |
3641 | names. | |
3642 | (IS_AARCH64_TLSDESC_RELOC): Likewise. | |
3643 | (elfNN_aarch64_howto_table): Likewise. | |
3644 | (aarch64_tls_transition_without_check): Likewise. | |
3645 | (aarch64_reloc_got_type): Likewise. | |
3646 | (elfNN_aarch64_final_link_relocate): Likewise. | |
3647 | (elfNN_aarch64_tls_relax): Likewise. | |
3648 | (elfNN_aarch64_relocate_section): Likewise. | |
3649 | (elfNN_aarch64_gc_sweep_hook): Likewise. | |
3650 | (elfNN_aarch64_check_relocs): Likewise. | |
3651 | * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise. | |
3652 | (_bfd_aarch64_elf_resolve_relocation): Likewise. | |
3653 | ||
4aef7643 AM |
3654 | 2017-03-11 Alan Modra <amodra@gmail.com> |
3655 | ||
3656 | * elf32-ppc.c: Remove ATTRIBUTE_UNUSED throughout when function | |
3657 | parameter is in fact used. Whitespace fixes. | |
3658 | * elf64-ppc.c: Likewise. | |
3659 | ||
f03265d9 ST |
3660 | 2017-03-09 Sam Thursfield <sam.thursfield@codethink.co.uk> |
3661 | ||
3662 | * rs6000-core.c (CORE_NEW): Simplify macro when | |
3663 | AIX_CORE_DUMPX_CORE and BFD64 are true to avoid compile warning. | |
3664 | ||
b1b07054 AM |
3665 | 2017-03-07 Alan Modra <amodra@gmail.com> |
3666 | ||
3667 | PR 21224 | |
3668 | PR 20519 | |
3669 | * elf64-ppc.c (ppc64_elf_relocate_section): Add missing | |
3670 | dyn_relocs check. | |
3671 | ||
2e0ce1c8 AM |
3672 | 2017-03-05 Alan Modra <amodra@gmail.com> |
3673 | ||
3674 | * elf-bfd.h (struct eh_cie_fde): Add u.cie.per_encoding_aligned8. | |
3675 | * elf-eh-frame.c (size_of_output_cie_fde): Don't align here. | |
3676 | (next_cie_fde_offset): New function. | |
3677 | (_bfd_elf_parse_eh_frame): Set u.cie.per_encoding_aligned8. | |
3678 | (_bfd_elf_discard_section_eh_frame): Align zero terminator to | |
3679 | four bytes. Align CIEs to four or eight bytes depending on | |
3680 | per_encoding_aligned8. Align FDEs according to their encoding. | |
3681 | Pad last FDE to output section alignment. | |
3682 | (_bfd_elf_write_section_eh_frame): Adjust to suit. Remove | |
3683 | assertion. | |
3684 | * elf64-ppc.c (glink_eh_frame_cie): Delete padding. | |
3685 | (ppc64_elf_size_stubs): Pad glink eh_frame as per elf-eh-frame.c. | |
3686 | (ppc64_elf_finish_dynamic_sections): Adjust to suit. | |
3687 | ||
f98450c6 NC |
3688 | 2017-03-02 Martin Bickel <binutils@ineranves.de> |
3689 | ||
3690 | PR ld/21212 | |
3691 | * elf.c (rewrite_elf_program_header): Do not issue a warning for | |
d20928fa | 3692 | empty segments which have a zero filesz, but a non-zero memsz. |
f98450c6 | 3693 | |
673cff9b AM |
3694 | 2017-03-02 Alan Modra <amodra@gmail.com> |
3695 | ||
3696 | * elf32-ppc.c (ppc_elf_vle_split16): Correct insn mask typo. | |
3697 | ||
3de43e7b AM |
3698 | 2017-02-28 Alan Modra <amodra@gmail.com> |
3699 | ||
3700 | * elf64-ppc.c (ppc64_elf_ha_reloc): Revert last change. | |
3701 | (ppc64_elf_relocate_section): Likewise. | |
3702 | ||
4ef97a1b AM |
3703 | 2017-02-28 Alan Modra <amodra@gmail.com> |
3704 | ||
3705 | PR 20995 | |
3706 | * elf32-nios2.c (nios2_elf32_relocate_section): Use htab | |
3707 | rather than elf32_nios2_hash_table or elf_hash_table. | |
3708 | (create_got_section): Likewise. | |
3709 | (nios2_elf32_finish_dynamic_symbol): Likewise. | |
3710 | (nios2_elf32_adjust_dynamic_symbol): Likewise. | |
3711 | (nios2_elf32_size_dynamic_sections): Likewise. | |
3712 | (nios2_elf32_check_relocs): Delete dynobj, sgot, and srelgot | |
3713 | vars. Use htab equivalents directly instead. Don't create | |
3714 | all dynamic sections on needing just the GOT. Use a goto | |
3715 | rather than a fall-through with reloc test. Ensure | |
3716 | htab->dynobj is set when making dynamic sreloc section. | |
3717 | (nios2_elf32_finish_dynamic_sections): Delete dynobj, use htab | |
3718 | equivalent directly instead. Don't segfault on looking for | |
3719 | .dynamic when dynamic sections have not been created. Don't | |
3720 | segfault on .got.plt being discarded. | |
3721 | (nios2_elf32_size_dynamic_sections): Delete plt and got vars. | |
3722 | Don't set "relocs" on .rela.plt. Do handle .sbss. Delete | |
3723 | fixme and another not so relevant comment. | |
3724 | (nios2_elf_add_symbol_hook): Delete dynobj var. If not | |
3725 | already set, set hash table dynobj on creating .sbss. | |
3726 | ||
7ba71655 AM |
3727 | 2017-02-28 Alan Modra <amodra@gmail.com> |
3728 | ||
3729 | * reloc.c (BFD_RELOC_PPC_16DX_HA): New. | |
3730 | * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_16DX_HA>): New howto. | |
3731 | (ppc64_elf_reloc_type_lookup): Translate new bfd reloc. | |
3732 | (ppc64_elf_ha_reloc): Correct overflow test on REL16DX_HA. | |
3733 | (ppc64_elf_relocate_section): Likewise. | |
3734 | * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_16DX_HA>): New howto. | |
3735 | (ppc_elf_reloc_type_lookup): Translate new bfd reloc. | |
3736 | (ppc_elf_check_relocs): Handle R_PPC_16DX_HA to pacify gcc. | |
3737 | * libbfd.h: Regenerate. | |
3738 | * bfd-in2.h: Regenerate. | |
3739 | ||
afbf7e8e AM |
3740 | 2017-02-28 Alan Modra <amodra@gmail.com> |
3741 | ||
3742 | * elflink.c (_bfd_elf_create_dynamic_sections): Don't make | |
3743 | dynamic .data.rel.ro read-only. | |
3744 | * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Compare section | |
3745 | rather than section flags when deciding where copy reloc goes. | |
3746 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise. | |
3747 | * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise. | |
3748 | * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise. | |
3749 | * elf32-metag.c (elf_metag_finish_dynamic_symbol): Likewise. | |
3750 | * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Likewise. | |
3751 | * elf32-nios2.c (nios2_elf32_finish_dynamic_symbol): Likewise. | |
3752 | * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Likewise. | |
3753 | * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Likewise. | |
3754 | * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise. | |
3755 | * elf32-tic6x.c (elf32_tic6x_finish_dynamic_symbol): Likewise. | |
3756 | * elf32-tilepro.c (tilepro_elf_finish_dynamic_symbol): Likewise. | |
3757 | * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Likewise. | |
3758 | * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise. | |
3759 | * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise. | |
3760 | * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Likewise. | |
3761 | * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Likewise. | |
3762 | * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise. | |
3763 | * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. | |
3764 | * elfxx-tilegx.c (tilegx_elf_finish_dynamic_symbol): Likewise. | |
3765 | ||
0e392101 MR |
3766 | 2017-02-28 Maciej W. Rozycki <macro@imgtec.com> |
3767 | ||
3768 | * elfxx-mips.c (mips_elf_perform_relocation): Also handle the | |
3769 | `jalr $0, $25' instruction encoding. | |
3770 | ||
bd757ca7 NC |
3771 | 2017-02-27 Nick Clifton <nickc@redhat.com> |
3772 | ||
3773 | PR ld/21180 | |
3774 | * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Avoid | |
3775 | generating a seg-fault when encountering a symbol that has been | |
3776 | deleted by garbage collection. | |
3777 | ||
034fed0b AM |
3778 | 2017-02-25 Alan Modra <amodra@gmail.com> |
3779 | ||
3780 | * elf32-arc.c (struct dynamic_sections): Delete. | |
3781 | (enum dyn_section_types): Delete. | |
3782 | (dyn_section_names): Delete. | |
3783 | (arc_create_dynamic_sections): Delete. | |
3784 | (elf_arc_finish_dynamic_sections): Don't call the above. Don't | |
3785 | segfault on discarded .rela.plt section. | |
3786 | (elf_arc_size_dynamic_sections): Formatting. Don't call | |
3787 | arc_create_dynamic_sections. Don't allocate memory for sections | |
3788 | handled by the generic linker. Correct code finding relocs in | |
3789 | read-only sections. Set SEC_EXCLUDE on zero size .got, | |
3790 | .got.plt, and .dynbss sections. Do set .interp for pies. | |
3791 | ||
d0f744f9 AW |
3792 | 2017-02-24 Andrew Waterman <andrew@sifive.com> |
3793 | ||
3794 | * elfnn-riscv.c (GP_NAME): New macro. | |
3795 | (riscv_global_pointer_value): Use it. | |
3796 | (_bfd_riscv_relax_lui): If symbol and global pointer are in same | |
3797 | output section, consider only that section's alignment. | |
3798 | ||
5d58c733 MR |
3799 | 2017-02-23 Maciej W. Rozycki <macro@imgtec.com> |
3800 | ||
3801 | * elfxx-mips.h (_bfd_mips_relax_section): Remove prototype. | |
3802 | * elfxx-mips.c (_bfd_mips_relax_section): Remove function. | |
3803 | * elf64-mips.c (bfd_elf64_bfd_relax_section): Remove macro. | |
3804 | * elfn32-mips.c (bfd_elf32_bfd_relax_section): Likewise. | |
3805 | ||
c1556ecd MR |
3806 | 2017-02-23 Maciej W. Rozycki <macro@imgtec.com> |
3807 | ||
3808 | * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_JALR> | |
3809 | <R_MICROMIPS_JALR>: Discard relocation if `cross_mode_jump_p' | |
3810 | or misaligned. | |
3811 | ||
5499c7c7 AM |
3812 | 2017-02-23 Alan Modra <amodra@gmail.com> |
3813 | ||
3814 | PR 20744 | |
3815 | * elf32-ppc.c (ppc_elf_howto_raw): Correct dst_mask on all VLE | |
3816 | 16D relocations. | |
3817 | (ppc_elf_vle_split16): Correct field mask and shift for 16D relocs. | |
3818 | (ppc_elf_relocate_section): Correct calculation for VLE SDAREL | |
3819 | relocs. | |
3820 | ||
902e9fc7 MR |
3821 | 2017-02-22 Maciej W. Rozycki <macro@imgtec.com> |
3822 | ||
3823 | PR ld/20828 | |
3824 | * elflink.c (bfd_elf_size_dynamic_sections): Move symbol version | |
3825 | processing ahead of the call to `elf_gc_sweep_symbol'. | |
3826 | ||
758d96d8 NC |
3827 | 2017-02-22 Nick Clifton <nickc@redhat.com> |
3828 | ||
3829 | PR binutils/21193 | |
3830 | * opncls.c (bfd_create_gnu_debuglink_section): Give the newly | |
3831 | created section 4-byte alignment. | |
3832 | ||
6528b6eb AM |
3833 | 2017-02-22 Alan Modra <amodra@gmail.com> |
3834 | ||
3835 | * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Don't segfault | |
3836 | on .got or .plt output section being discarded by script. | |
3837 | * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Likewise. Move | |
3838 | vxworks splt temp. | |
3839 | ||
24f1a751 AM |
3840 | 2017-02-21 Alan Modra <amodra@gmail.com> |
3841 | ||
3842 | * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only emit | |
3843 | DT_RELA, DT_RELASZ, and DT_RELAENT when DT_RELASZ is non-zero. | |
3844 | ||
64487780 AM |
3845 | 2017-02-20 Alan Modra <amodra@gmail.com> |
3846 | ||
3847 | PR 21181 | |
3848 | * elflink.c (bfd_elf_final_link): Make DT_REL/DT_RELA zero | |
3849 | if DT_RELSZ/DT_RELASZ is zero. | |
3850 | ||
6438d1be NC |
3851 | 2017-02-17 Nick Clifton <nickc@redhat.com> |
3852 | ||
3853 | * compress.c (bfd_get_full_section_contents): Remember to reduce | |
3854 | compressed size by the sizeof the compression header when | |
3855 | decompressing the contents. | |
3856 | ||
4bc26c69 PA |
3857 | 2017-02-17 Pedro Alves <palves@redhat.com> |
3858 | ||
3859 | * srec.c (Chunk): Rename to ... | |
3860 | (_bfd_srec_len): ... this. | |
3861 | (S3Forced): Rename to ... | |
3862 | (_bfd_srec_forceS3): ... this. | |
3863 | * objcopy.c: Adjust all references. | |
3864 | ||
7ec22e0f PA |
3865 | 2017-02-17 Pedro Alves <palves@redhat.com> |
3866 | ||
3867 | * archive.c (bsd_write_armap): Rename to ... | |
3868 | (_bfd_bsd_write_armap): ... this. | |
3869 | (coff_write_armap): Rename to ... | |
3870 | (_bfd_coff_write_armap): ... this. | |
3871 | * libbfd-in.h (bsd_write_armap): Rename to ... | |
3872 | (_bfd_bsd_write_armap): ... this. | |
3873 | (coff_write_armap): Rename to ... | |
3874 | (_bfd_coff_write_armap): ... this. | |
3875 | * aout-target.h, aout-tic30.c: Adjust all users. | |
3876 | * libbfd.h: Regenerate. | |
3877 | ||
8c8402cc PA |
3878 | 2017-02-17 Pedro Alves <palves@redhat.com> |
3879 | ||
3880 | * bfd-in.h (bfd_read, bfd_write): Adjust to rename. | |
3881 | (warn_deprecated): Rename to ... | |
3882 | (_bfd_warn_deprecated): ... this. | |
3883 | * libbfd.c (warn_deprecated): Rename to ... | |
3884 | (_bfd_warn_deprecated): ... this. | |
3885 | * bfd-in2.h: Regenerate. | |
3886 | ||
c7c3d11b PA |
3887 | 2017-02-17 Pedro Alves <palves@redhat.com> |
3888 | ||
3889 | * bfdio.c (real_ftell): Rename to ... | |
3890 | (_bfd_real_ftell): ... this. | |
3891 | (real_fseek): Rename to ... | |
3892 | (_bfd_real_fseek): ... this. | |
3893 | (real_fopen): Rename to ... | |
3894 | (_bfd_real_fopen): ... this. | |
3895 | * libbfd-in.h (real_ftell): Rename to ... | |
3896 | (_bfd_real_ftell): ... this. | |
3897 | (real_fseek): Rename to ... | |
3898 | (_bfd_real_fseek): ... this. | |
3899 | (real_fopen): Rename to ... | |
3900 | (_bfd_real_fopen): ... this. | |
3901 | * cache.c, dwarf2.c, opncls.c: Adjust all callers. | |
3902 | * libbfd.h: Regenerate. | |
3903 | ||
4265548c PA |
3904 | 2017-02-17 Pedro Alves <palves@redhat.com> |
3905 | ||
3906 | * dwarf2.c, elf-attrs.c, elf32-nds32.c: Adjust all callers. | |
3907 | * libbfd.c (read_unsigned_leb128): Rename to ... | |
3908 | (_bfd_read_unsigned_leb128): ... this. | |
3909 | (read_signed_leb128): Rename to ... | |
3910 | (_bfd_read_signed_leb128): ... this. | |
3911 | (safe_read_leb128): Rename to ... | |
3912 | (_bfd_safe_read_leb128): ... this. | |
3913 | * libbfd-in.h (read_unsigned_leb128): Rename to ... | |
3914 | (_bfd_read_unsigned_leb128): ... this. | |
3915 | (read_signed_leb128): Rename to ... | |
3916 | (_bfd_read_signed_leb128): ... this. | |
3917 | (safe_read_leb128): Rename to ... | |
3918 | (_bfd_safe_read_leb128): ... this. | |
3919 | * libbfd.h: Renegerate. | |
3920 | ||
3239a423 AB |
3921 | 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com> |
3922 | ||
3923 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Perform symbol lookup | |
3924 | before trying to fine matching file and line information. | |
3925 | ||
90ed9b8b AB |
3926 | 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com> |
3927 | ||
3928 | * dwarf2.c (struct dwarf2_debug): Add orig_bfd member. | |
3929 | (_bfd_dwarf2_slurp_debug_info): If stashed debug information does | |
3930 | not match current bfd, then reload debug information. Record bfd | |
3931 | we're loading debug info for in the stash. If we have debug | |
3932 | informatin in the cache then perform section placement before | |
3933 | returning. | |
3934 | ||
a8c75b76 AM |
3935 | 2017-02-16 Alan Modra <amodra@gmail.com> |
3936 | ||
3937 | PR 21000 | |
3938 | * elf-bfd.h (struct elf_backend_data): Add no_page_alias. | |
3939 | * elfxx-target.h (elf_backend_no_page_alias): Define. | |
3940 | (elfNN_bed): Init new field. | |
3941 | * elf.c (assign_file_positions_for_load_sections): If no_page_alias | |
3942 | ensure PT_LOAD segment starts on a new page. | |
3943 | * elf32-hppa.c (elf_backend_no_page_alias): Define. | |
3944 | ||
247d6c4c AM |
3945 | 2017-02-16 Alan Modra <amodra@gmail.com> |
3946 | ||
3947 | PR 21132 | |
3948 | * elf32-hppa.c (allocate_plt_static): Allocate space for relocs | |
3949 | if pic. | |
3950 | ||
90571206 JW |
3951 | 2017-02-16 Jiong Wang <jiong.wang@arm.com> |
3952 | ||
3953 | * bfd.c (BFD_FLAGS_SAVED): Add BFD_LINKER_CREATED. | |
3954 | * bfd-in2.h: Regenerated. | |
3955 | ||
2a568401 L |
3956 | 2017-02-15 H.J. Lu <hongjiu.lu@intel.com> |
3957 | ||
3958 | PR ld/21168 | |
3959 | * elf32-i386.c (elf_i386_relocate_section): Allow | |
3960 | "lea foo@GOT, %reg" in PIC. | |
3961 | ||
a5def14f L |
3962 | 2017-02-15 H.J. Lu <hongjiu.lu@intel.com> |
3963 | ||
3964 | PR ld/20244 | |
3965 | * elf32-i386.c (elf_i386_relocate_section): Properly get IFUNC | |
3966 | symbol name when reporting R_386_GOT32/R_386_GOT32X relocation | |
3967 | error against local IFUNC symbol without a base register for | |
3968 | PIC. | |
3969 | ||
174d0a74 MR |
3970 | 2017-02-15 Maciej W. Rozycki <macro@imgtec.com> |
3971 | ||
3972 | * elf32-ppc.c (ppc_elf_check_relocs): Use `%H:' rather than | |
3973 | `%P: %H:' with `info->callbacks->einfo'. | |
3974 | (ppc_elf_relocate_section): Likewise. | |
3975 | * elf64-ppc.c (ppc64_elf_check_relocs): Likewise. | |
3976 | (ppc64_elf_edit_toc): Likewise. | |
3977 | (ppc64_elf_relocate_section): Likewise. | |
3978 | ||
e278ae05 AM |
3979 | 2017-02-14 Alan Modra <amodra@gmail.com> |
3980 | ||
3981 | * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Support | |
3982 | --gc-keep-exported, and test versioned field of sym rather than | |
3983 | looking for @ in name. | |
3984 | ||
10ddfe62 PD |
3985 | 2017-02-13 Palmer Dabbelt <palmer@dabbelt.com> |
3986 | ||
3987 | * elfnn-riscv.c (riscv_global_pointer_value): Change _gp to | |
3988 | __global_pointer$. | |
3989 | ||
d11135f5 NC |
3990 | 2017-02-13 Nick Clifton <nickc@redhat.com> |
3991 | ||
3992 | PR binutils/21151 | |
3993 | * dwarf2.c (_bfd_dwarf2_find_nearest_line): Check for an invalid | |
3994 | unit length field. | |
3995 | ||
cc162427 AW |
3996 | 2017-02-07 Andrew Waterman <andrew@sifive.com> |
3997 | ||
3998 | * elfnn-riscv.c (riscv_elf_finish_dynamic_sections): Only write PLT | |
3999 | entry size if PLT header is written. | |
4000 | ||
3d044c0c SL |
4001 | 2017-02-06 Sheldon Lobo <sheldon.lobo@oracle.com> |
4002 | ||
4003 | Fix sparc64 dynamic relocation processing to use the dynamic | |
4004 | symbol count. | |
4005 | * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Use 'dynamic' | |
4006 | to determine if bfd_get_symcount() or bfd_get_dynamic_symcount() | |
4007 | should be used. | |
4008 | ||
1b7e3d2f NC |
4009 | 2017-02-03 Nick Clifton <nickc@redhat.com> |
4010 | ||
4011 | PR 21096 | |
4012 | * coffcode.h (coff_write_object_contents): Enlarge size of | |
4013 | s_name_buf in order to avoid compile time warning about possible | |
4014 | integer truncation. | |
4015 | * elf32-nds32.c (nds32_elf_ex9_import_table): Mask off lower | |
4016 | 32-bits of insn value before printing into buffer. | |
4017 | ||
e17b0c35 MR |
4018 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
4019 | ||
4020 | * elfxx-mips.c (mips_elf_hash_sort_data): Add | |
4021 | `max_local_dynindx'. | |
4022 | (mips_elf_sort_hash_table): Handle it. | |
4023 | (mips_elf_sort_hash_table_f) <GGA_NONE>: For forced local | |
4024 | symbols bump up `max_local_dynindx' rather than | |
4025 | `max_non_got_dynindx'. | |
4026 | ||
55f8b9d2 MR |
4027 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
4028 | ||
4029 | * elfxx-mips.c (mips_elf_hash_sort_data): Convert the | |
4030 | `min_got_dynindx', `max_unref_got_dynindx' and | |
4031 | `max_non_got_dynindx' members to the `bfd_size_type' data type. | |
4032 | (mips_elf_sort_hash_table): Adjust accordingly. | |
4033 | ||
0f8c4b60 MR |
4034 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
4035 | ||
4036 | * elfxx-mips.c (mips_elf_sort_hash_table): Use `htab' throughout | |
4037 | to access the hash table. | |
4038 | ||
17a80fa8 MR |
4039 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
4040 | ||
4041 | * elfxx-mips.c (mips_elf_sort_hash_table): Move assertion on | |
4042 | non-NULL `htab' to the beginning. | |
4043 | ||
8f56d4fd MR |
4044 | 2017-02-02 Maciej W. Rozycki <macro@imgtec.com> |
4045 | ||
4046 | * elflink.c (elf_gc_sweep): Wrap overlong line. | |
4047 | ||
8b10b0b3 MR |
4048 | 2017-01-30 Maciej W. Rozycki <macro@imgtec.com> |
4049 | ||
4050 | * elfxx-mips.h (_bfd_mips_elf_insn32): Rename prototype to... | |
4051 | (_bfd_mips_elf_linker_flags): ... this. Add another parameter. | |
4052 | * elfxx-mips.c (mips_elf_link_hash_table): Add | |
4053 | `ignore_branch_isa' member. | |
4054 | (mips_elf_perform_relocation): Do not treat an ISA mode mismatch | |
4055 | in branch relocation calculation as an error if | |
4056 | `ignore_branch_isa' has been set. | |
4057 | (_bfd_mips_elf_insn32): Rename to... | |
4058 | (_bfd_mips_elf_linker_flags): ... this. Rename the `on' | |
4059 | parameter to `insn32' and add an `ignore_branch_isa' parameter. | |
4060 | Handle the new parameter. | |
4061 | ||
1fbd05e1 HPN |
4062 | 2017-01-27 Hans-Peter Nilsson <hp@axis.com> |
4063 | ||
22d9a0de HPN |
4064 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Remove now unused |
4065 | local variable dynobj. | |
4066 | ||
1fbd05e1 HPN |
4067 | PR ld/20995 |
4068 | * elf32-cris.c (elf_cris_size_dynamic_sections): Handle sdynrelro. | |
4069 | (elf_cris_adjust_dynamic_symbol): Place variables copied into the | |
4070 | executable from read-only sections into sdynrelro. | |
4071 | (elf_cris_finish_dynamic_symbol): Select sreldynrelro for | |
4072 | dynamic relocs in sdynrelro. | |
4073 | (elf_backend_want_dynrelro): Define. | |
4074 | ||
4a7324e1 SH |
4075 | 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de> |
4076 | ||
4077 | * config.bfd (*-*-rtemsaout*): Mark as removed. | |
4078 | ||
c75b4ebd SH |
4079 | 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de> |
4080 | ||
4081 | * config.bfd (powerpcle-*-rtems*): Do not mark as removed. | |
4082 | (arm-*-rtems*): Move to (arm*-*-eabi*). | |
4083 | (i[3-7]86-*-rtems*): Move to (i[3-7]86-*-elf*). | |
4084 | (m68-*-rtems*): Move to (m68*-*-elf*). | |
4085 | ||
850d84f6 SH |
4086 | 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de> |
4087 | ||
4088 | * config.bfd (*-*-rtemscoff*): Mark as removed. | |
4089 | ||
b531344c MR |
4090 | 2017-01-24 Maciej W. Rozycki <macro@imgtec.com> |
4091 | ||
4092 | PR ld/20828 | |
4093 | * elflink.c (bfd_elf_record_link_assignment): Revert last | |
4094 | change and don't ever clear `forced_local'. Set `mark' | |
4095 | unconditionally. | |
4096 | (elf_gc_sweep_symbol_info, elf_gc_sweep_symbol): Reorder within | |
4097 | file. | |
4098 | (elf_gc_sweep): Move the call to `elf_gc_sweep_symbol'... | |
4099 | (bfd_elf_size_dynamic_sections): ... here. | |
4100 | * elf32-ppc.c (ppc_elf_tls_setup): Don't clear `forced_local' | |
4101 | and set `mark' instead in `__tls_get_addr_opt' processing. | |
4102 | * elf64-ppc.c (ppc64_elf_tls_setup): Likewise. | |
4103 | ||
f0158f44 AM |
4104 | 2017-01-24 Alan Modra <amodra@gmail.com> |
4105 | ||
4106 | * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Merge two cases | |
4107 | where dynamic relocs are preferable. Allow ifunc too. | |
4108 | (ensure_undefweak_dynamic): New function. | |
4109 | (allocate_dynrelocs): Use it here. Move plt handling last and | |
4110 | don't make symbols dynamic, simplifying loop. Only make undef | |
4111 | weak symbols with GOT entries dynamic. Correct condition | |
4112 | for GOT relocs. Handle dynamic relocs on ifuncs. Correct | |
4113 | comments. Remove goto. | |
4114 | (ppc_elf_relocate_section): Correct test for using dynamic | |
4115 | symbol on GOT relocs. Rearrange test for emitting GOT relocs | |
4116 | to suit. Set up explicit tls_index entries and implicit GOT | |
4117 | tls_index entries resolvable at link time for | |
4118 | __tls_get_addr_opt. Simplify test to clear mem for prelink. | |
4119 | * elf64-ppc.c (allocate_got): Correct condition for GOT relocs. | |
4120 | (ensure_undefweak_dynamic): New function. | |
4121 | (allocate_dynrelocs): Use it here. Only make undef weak symbols | |
4122 | with GOT entries dynamic. Remove unnecessary test of | |
4123 | WILL_CALL_FINISH_DYNAMIC_SYMBOL in PLT handling. | |
4124 | (ppc64_elf_relocate_section): Correct test for using dynamic | |
4125 | symbol on GOT relocs. Rearrange test for emitting GOT relocs | |
4126 | to suit. Set up explicit tls_index entries and implicit GOT | |
4127 | tls_index entries resolvable at link time for __tls_get_addr_opt. | |
4128 | Simplify expression to clear mem for prelink. | |
4129 | ||
2d0ca824 YN |
4130 | 2017-01-23 Yury Norov <ynorov@caviumnetworks.com> |
4131 | ||
4132 | * elfnn-aarch64.c: Fix relaxations for ILP32 mode. | |
4133 | ||
7f784814 JW |
4134 | 2017-01-20 Jiong Wang <jiong.wang@arm.com> |
4135 | ||
4136 | * elfnn-aarch64.c (elf_aarch64_hash_symbol): New function. | |
4137 | (elf_backend_hash_symbol): Define. | |
4138 | ||
81ff47b3 MR |
4139 | 2017-01-18 Maciej W. Rozycki <macro@imgtec.com> |
4140 | ||
4141 | PR ld/20828 | |
4142 | * elflink.c (bfd_elf_record_link_assignment): Clear any | |
4143 | `forced_local' marking for DSO symbols that are not being | |
4144 | provided. | |
4145 | ||
640d6bfd KLC |
4146 | 2017-01-17 Kuan-Lin Chen <kuanlinchentw@gmail.com> |
4147 | ||
4148 | * elfnn-riscv.c (riscv_elf_object_p): New function. | |
4149 | ||
8361ed4d L |
4150 | 2017-01-12 H.J. Lu <hongjiu.lu@intel.com> |
4151 | ||
4152 | PR ld/21038 | |
4153 | * elf64-x86-64.c (elf_x86_64_link_hash_table): Add | |
4154 | plt_bnd_eh_frame. | |
4155 | (elf_x86_64_check_relocs): Create .eh_frame section for the | |
4156 | .plt.bnd section. | |
4157 | (elf_x86_64_size_dynamic_sections): Allocate and initialize | |
4158 | .eh_frame section for the .plt.bnd section. | |
4159 | (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section | |
4160 | for the .plt.bnd section. | |
4161 | ||
2425a30e NC |
4162 | 2017-01-12 Nick Clifton <nickc@redhat.com> |
4163 | ||
4164 | PR binutils/20876 | |
4165 | * opncls.c (find_separate_debug_file): Add include_dirs | |
4166 | parameter. Only include the directory part of the bfd's filename | |
4167 | in search paths if include_dirs is true. Add a couple of extra | |
4168 | locations for looking for debug files. | |
4169 | ( bfd_follow_gnu_debuglink): Update invocation of | |
4170 | find_separate_debug_file. | |
4171 | (bfd_follow_gnu_debugaltlink): Likewise. | |
4172 | (get_build_id): New function: Finds the build-id of the given bfd. | |
4173 | (get_build_id_name): New function: Computes the name of the | |
4174 | separate debug info file for a bfd, based upon its build-id. | |
4175 | (check_build_id_file): New function: Checks to see if a separate | |
4176 | debug info file exists at the given location, and that its | |
4177 | build-id matches that of the original bfd. | |
4178 | (bfd_follow_build_id_debuglink): New function: Finds a separate | |
4179 | debug info file for a given bfd by using the build-id method. | |
4180 | * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Try using the build-id | |
4181 | method of locating a separate debug info file before using the | |
4182 | debuglink method. | |
4183 | * bfd-in2.h: Regenerate. | |
4184 | ||
9e659176 L |
4185 | 2017-01-11 H.J. Lu <hongjiu.lu@intel.com> |
4186 | ||
4187 | PR ld/21038 | |
4188 | * elf64-x86-64.c (elf_x86_64_eh_frame_bnd_plt): New. | |
4189 | (elf_x86_64_bnd_arch_bed): Use elf_x86_64_eh_frame_bnd_plt and | |
4190 | elf_x86_64_eh_frame_plt_got. | |
4191 | (elf_x86_64_size_dynamic_sections): Get unwind info from | |
4192 | elf_x86_64_bnd_arch_bed for the BND PLT. | |
4193 | ||
f2e2d2f5 JS |
4194 | 2017-01-11 Jeremy Soller <jackpot51@gmail.com> |
4195 | ||
4196 | * config.bfd: Add entries for i686-redox and x86_64-redox. | |
4197 | ||
52b232b3 L |
4198 | 2017-01-10 H.J. Lu <hongjiu.lu@intel.com> |
4199 | ||
4200 | * elf32-i386.c (elf_i386_check_relocs): Align .eh_frame section | |
4201 | to 4 bytes. | |
4202 | * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Align | |
4203 | .eh_frame section to 4 bytes for x32. | |
4204 | (elf_x86_64_check_relocs): Likewise. | |
4205 | ||
fff53dae L |
4206 | 2017-01-10 H.J. Lu <hongjiu.lu@intel.com> |
4207 | ||
4208 | PR ld/20830 | |
4209 | * elf32-i386.c (elf_i386_eh_frame_plt_got): New. | |
4210 | (PLT_GOT_FDE_LENGTH): Likewise. | |
4211 | (elf_i386_plt_layout): Add eh_frame_plt_got and | |
4212 | eh_frame_plt_got_size. | |
4213 | (elf_i386_plt): Updated. | |
4214 | (elf_i386_link_hash_table): Add plt_got_eh_frame. | |
4215 | (elf_i386_check_relocs): Create .eh_frame section for .plt.got. | |
4216 | (elf_i386_size_dynamic_sections): Allocate and initialize | |
4217 | .eh_frame section for .plt.got. | |
4218 | (elf_i386_finish_dynamic_sections): Adjust .eh_frame section for | |
4219 | .plt.got. | |
4220 | (elf_i386_nacl_plt): Add FIXME for eh_frame_plt_got and | |
4221 | eh_frame_plt_got_size. | |
4222 | * elf64-x86-64.c (elf_x86_64_eh_frame_plt_got): New. | |
4223 | (PLT_GOT_FDE_LENGTH): Likewise. | |
4224 | (elf_x86_64_backend_data): Add eh_frame_plt_got and | |
4225 | eh_frame_plt_got_size. | |
4226 | (elf_x86_64_arch_bed): Updated. | |
4227 | (elf_x86_64_bnd_arch_bed): Add FIXME for eh_frame_plt_got and | |
4228 | eh_frame_plt_got_size. | |
4229 | (elf_x86_64_nacl_arch_bed): Likewise. | |
4230 | (elf_x86_64_link_hash_table): Add plt_got_eh_frame. | |
4231 | (elf_x86_64_check_relocs): Create .eh_frame section for .plt.got. | |
4232 | (elf_x86_64_size_dynamic_sections): Allocate and initialize | |
4233 | .eh_frame section for .plt.got. | |
4234 | (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section | |
4235 | for .plt.got. | |
4236 | ||
f129e49f L |
4237 | 2017-01-10 H.J. Lu <hongjiu.lu@intel.com> |
4238 | ||
4239 | * elf32-i386.c (elf_i386_size_dynamic_sections): Set | |
4240 | plt_eh_frame->size to eh_frame_plt_size and use eh_frame_plt. | |
4241 | ||
cd6581da NC |
4242 | 2017-01-09 Nick Clifton <nickc@redhat.com> |
4243 | ||
4244 | * dwarf2.c (lookup_address_in_function_table): Return early if | |
4245 | there are no functions in the given comp unit, or if the high | |
4246 | address of the last function in the comp unit is less than the | |
4247 | desired address. | |
4248 | ||
98f02962 NC |
4249 | 2017-01-09 Nick Clifton <nickc@redhat.com> |
4250 | ||
4251 | PR binutils/21013 | |
4252 | * coffgen.c (_bfd_coff_get_external_symbols): Generate an error | |
4253 | message if there are too many symbols to load. | |
4254 | ||
ae4fda66 JC |
4255 | 2017-01-04 James Clarke <jrtc27@jrtc27.com> |
4256 | ||
4257 | * elf64-alpha.c (elf64_alpha_relax_opt_call): Don't set tsec_free | |
4258 | if relocs are cached. | |
4259 | ||
de1010f4 RF |
4260 | 2017-01-03 Rich Felker <bugdal@aerifal.cx> |
4261 | ||
4262 | PR ld/21017 | |
4263 | * elf32-microblaze.c (microblaze_elf_check_relocs): Add an entry | |
4264 | for R_MICROBLAZE_GOTOFF_64. | |
4265 | ||
09fe2662 NC |
4266 | 2017-01-03 Nick Clifton <nickc@redhat.com> |
4267 | ||
4268 | * mach-o.c (bfd_mach_o_lookup_uuid_command): Fix compile time | |
4269 | warning about using a possibly uninitialised variable. | |
4270 | ||
595e0a47 AM |
4271 | 2017-01-02 Alan Modra <amodra@gmail.com> |
4272 | ||
4273 | * elf32-hppa.c (ensure_undef_weak_dynamic): New function. | |
4274 | (allocate_plt_static, allocate_dynrelocs): Use it. | |
4275 | ||
7bd9df3b AM |
4276 | 2017-01-02 Alan Modra <amodra@gmail.com> |
4277 | ||
4278 | * elf-hppa.h (elf_hppa_fake_sections): Set SHF_INFO_LINK for | |
4279 | .PARISC.unwind section. | |
4280 | ||
5b86074c AM |
4281 | 2017-01-02 Alan Modra <amodra@gmail.com> |
4282 | ||
4283 | PR ld/20989 | |
4284 | * elfxx-sparc.c (gdop_relative_offset_ok): New function. | |
4285 | (_bfd_sparc_elf_relocate_section): Use it to validate GOT | |
4286 | indirect to GOT pointer relative code edit. | |
4287 | ||
2571583a AM |
4288 | 2017-01-02 Alan Modra <amodra@gmail.com> |
4289 | ||
4290 | Update year range in copyright notice of all files. | |
4291 | ||
5c1ad6b5 | 4292 | For older changes see ChangeLog-2016 |
3499769a | 4293 | \f |
5c1ad6b5 | 4294 | Copyright (C) 2017 Free Software Foundation, Inc. |
3499769a AM |
4295 | |
4296 | Copying and distribution of this file, with or without modification, | |
4297 | are permitted in any medium without royalty provided the copyright | |
4298 | notice and this notice are preserved. | |
4299 | ||
4300 | Local Variables: | |
4301 | mode: change-log | |
4302 | left-margin: 8 | |
4303 | fill-column: 74 | |
4304 | version-control: never | |
4305 | End: |