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