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