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