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