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