Fix a typo in rx_fpsw_type
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
e4097f5e
L
12017-04-11 H.J. Lu <hongjiu.lu@intel.com>
2
3 * elf-properties.c (_bfd_elf_parse_gnu_properties): Remove the
4 extra `\n' in warning/error messages.
5 * elf32-i386.c (elf_i386_parse_gnu_properties): Likewise.
6 * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise.
7
537616aa
L
82017-04-11 H.J. Lu <hongjiu.lu@intel.com>
9
10 * elf-properties.c (_bfd_elf_parse_gnu_properties): Ignore
11 processor-specific properties with generic ELF target vector.
12
bb1dd176
QZ
132017-04-10 Qing Zhao <qing.zhao@oracle.com>
14
15 * elf32-sparc.c (elf_backend_fixup_symbol): New.
16 * elf64-sparc.c (elf_backend_fixup_symbol): New.
17 * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
18 (_bfd_sparc_elf_link_hash_entry): Add has_got_reloc and
19 has_non_got_reloc.
20 (link_hash_newfunc): Initialize has_got_reloc and
21 has_non_got_reloc.
22 (_bfd_sparc_elf_size_dynamic_sections): Set interp to .interp
23 section.
24 (_bfd_sparc_elf_copy_indirect_symbol): Copy has_got_reloc and
25 has_non_got_reloc.
26 (_bfd_sparc_elf_check_relocs): Set has_got_reloc and
27 has_non_got_reloc.
28 (_bfd_sparc_elf_fixup_symbol): New function.
29 (allocate_dynrelocs): Don't allocate space for dynamic
30 relocations and discard relocations against resolved undefined
31 weak symbols in executable. Don't make resolved undefined weak
32 symbols in executable dynamic. Keep dynamic non-GOT/non-PLT
33 relocation against undefined weak symbols in PIE.
34 (_bfd_sparc_elf_relocate_section): Don't generate dynamic
35 relocations against resolved undefined weak symbols in PIE
36 (_bfd_sparc_elf_finish_dynamic_symbol): Keep PLT/GOT entries
37 without ynamic PLT/GOT relocations for resolved undefined weak
38 symbols.
39 Don't generate dynamic relocation against resolved undefined
40 weak symbol in executable.
41 (pie_finish_undefweak_symbol): New function.
42 (_bfd_sparc_elf_finish_dynamic_sections): Call
43 pie_finish_undefweak_symbol on all symbols in PIE.
44 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add interp.
45 (_bfd_sparc_elf_fixup_symbol): New function.
46
d236cfd4
NC
472017-04-10 Nick Clifton <nickc@redhat.com>
48
49 * config.bfd: Remove ns32k from obsolete list.
50
6f9dbcd4
AM
512017-04-10 Alan Modra <amodra@gmail.com>
52
53 PR 21287
54 * elf.c (special_sections_f): Match .fini_array and .fini_array.*.
55 (special_sections_i): Likewise for .init_array.
56 (special_sections_p): Likewise for .preinit_array.
57
8170f769
L
582017-04-07 H.J. Lu <hongjiu.lu@intel.com>
59
60 PR ld/19579
61 PR ld/21306
62 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Check
63 ELF_COMMON_DEF_P for common symbols.
64 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
65 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
66 * elflink.c (_bfd_elf_merge_symbol): Revert commits
67 202ac193bbbecc96a4978d1ac3d17148253f9b01 and
68 07492f668d2173da7a2bda3707ff0985e0f460b6.
69
49f4617b
PA
702017-04-07 Pedro Alves <palves@redhat.com>
71
72 * opncls.c (bfd_get_debug_link_info): Rename to...
73 (bfd_get_debug_link_info_1): ... this. Change type of second
74 parameter to void pointer. Adjust.
75 (bfd_get_debug_link_info): Reimplement on top of
76 bfd_get_debug_link_info_1.
77 (separate_debug_file_exists, separate_alt_debug_file_exists):
78 Change type of second parameter to void pointer. Adjust.
79 (get_func_type, check_func_type): Change type of second parameter
80 to void pointer.
81 (find_separate_debug_file): Add 'func_data' parameter. Pass it to
82 the callback functions instead of passing the address of a local.
83 (bfd_follow_gnu_debuglink): Pass address of unsigned long local to
84 find_separate_debug_file.
85 (get_alt_debug_link_info_shim): Change type of second parameter to
86 void pointer. Adjust.
87 (bfd_follow_gnu_debugaltlink): Adjust to pass NULL to
88 find_separate_debug_file.
89 (get_build_id_name, bfd_boolean check_build_id_file): Change type
90 of second parameter to void pointer. Adjust.
91 (bfd_follow_build_id_debuglink): Pass address of bfd_build_id
92 pointer local to find_separate_debug_file.
93
942017-04-07 Tristan Gingold <gingold@gingold-Precision-7510>
1fd6d111
TG
95
96 * coffgen.c (_bfd_coff_gc_mark_hook): Handle PE weak
97 external symbols with a definition.
98 (_bfd_coff_gc_mark_extra_sections): Fix typo.
99
86abf93a
AM
1002017-04-07 Alan Modra <amodra@gmail.com>
101
102 * po/SRC-POTFILES.in: Regenerate.
103
8dea77f0
AM
1042017-04-05 Alan Modra <amodra@gmail.com>
105
106 * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Support ELFv2 PLT
107 reference counting.
108
477bdd39
JT
1092017-04-02 Jon Turney <jon.turney@dronecode.org.uk>
110
111 (_bfd_XXi_swap_aouthdr_out): For clarity, use defines rather than
112 numbers for DataDirectory entry indicies passed to
113 add_data_entry().
114
a91e1603
L
1152017-04-04 H.J. Lu <hongjiu.lu@intel.com>
116
117 * elf.c (get_program_header_size): Add a GNU_MBIND segment for
118 each GNU_MBIND section and align GNU_MBIND section to page size.
119 (_bfd_elf_map_sections_to_segments): Create a GNU_MBIND
120 segment for each GNU_MBIND section.
121 (_bfd_elf_init_private_section_data): Copy sh_info from input
122 for GNU_MBIND section.
123
b5292032
PD
1242017-04-03 Palmer Dabbelt <palmer@dabbelt.com>
125
126 * elfnn-riscv.c (GP_NAME): Delete.
127 (riscv_global_pointer_value): Change GP_NAME to RISCV_GP_SYMBOL.
128 (_bfd_riscv_relax_lui): Likewise.
129
ad32986f
NC
1302017-04-04 Nick Clifton <nickc@redhat.com>
131
132 PR binutils/21342
133 * elflink.c (_bfd_elf_define_linkage_sym): Prevent null pointer
134 dereference.
135 (bfd_elf_final_link): Only initialize the extended symbol index
136 section if there are extended symbol tables to list.
137
46bed679
L
1382017-04-03 H.J. Lu <hongjiu.lu@intel.com>
139
140 * Makefile.am (BFD32_BACKENDS): Add elf-properties.lo.
141 (BFD32_BACKENDS_CFILES): Add elf-properties.c.
142 * configure.ac (elf): Add elf-properties.lo.
143 * Makefile.in: Regenerated.
144 * configure: Likewise.
145 * elf-bfd.h (elf_property_kind): New.
146 (elf_property): Likewise.
147 (elf_property_list): Likewise.
148 (elf_properties): Likewise.
149 (_bfd_elf_parse_gnu_properties): Likewise.
150 (_bfd_elf_get_property): Likewise.
151 (_bfd_elf_link_setup_gnu_properties): Likewise.
152 (elf_backend_data): Add parse_gnu_properties, merge_gnu_properties
153 and setup_gnu_properties.
154 (elf_obj_tdata): Add properties.
155 * elf-properties.c: New file.
156 * elf32-i386.c (elf_i386_parse_gnu_properties): New.
157 (elf_i386_merge_gnu_properties): Likewise.
158 (elf_backend_parse_gnu_properties): Likewise.
159 (elf_backend_merge_gnu_properties): Likewise.
160 * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise.
161 (elf_x86_64_merge_gnu_properties): Likewise.
162 (elf_backend_parse_gnu_properties): Likewise.
163 (elf_backend_merge_gnu_properties): Likewise.
164 * elfxx-target.h (elf_backend_merge_gnu_properties): Likewise.
165 (elf_backend_parse_gnu_properties): Likewise.
166 (elf_backend_setup_gnu_properties): Likewise.
167 (elfNN_bed): Add elf_backend_parse_gnu_properties,
168 elf_backend_merge_gnu_properties and
169 elf_backend_setup_gnu_properties.
170
f96bd6c2
PC
1712017-03-30 Pip Cet <pipcet@gmail.com>
172
173 * elf32-wasm32.c: Add relocation code, two relocs.
174 * reloc.c: Add wasm32 relocations.
175 * libbfd.h: Regenerate.
176 * bfd-in2.h: Regenerate.
177 * bfd/po/bfd.pot: Regenerate.
178
e643cb45
NC
1792017-03-29 Nick Clifton <nickc@redhat.com>
180
181 PR binutils/18025
182 * coff-bfd.h (struct coff_section_data): Add new fields:
183 saved_bias and bias.
184 * coffgen.c (coff_find_nearest_line_with_names): Cache the bias
185 computed for PE binaries.
186 * dwarf2.c (scan_unit_for_symbols): Only warn once about each
187 missing abbrev.
188
086554e8
HPN
1892017-03-28 Hans-Peter Nilsson <hp@axis.com>
190
191 PR ld/16044
192 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Adjust BFD_ASSERT
193 to handle a local symbol with a hash-symbol-entry; without PLT.
194 Add BFD_ASSERT for an incidental case with GOT entry present.
195 (cris_elf_check_relocs): Increment PLT refcount only if the symbol
196 isn't forced-or-set local.
197
a6be0538
PC
1982017-03-27 Pip Cet <pipcet@gmail.com>
199
200 * wasm-module.c: New file to support WebAssembly modules.
201 * wasm-module.h: New file to support WebAssembly modules.
202 * doc/webassembly.texi: Start documenting wasm-module.c.
203 * config.bfd: Add wasm_vec.
204 * targets.c: Likewise.
205 * configure.ac: Likewise.
206 * Makefile.am: Add entries for wasm-module.c.
207 * Makefile.in: Regenerate.
208 * configure: Regenerate.
209 * po/SRC-POTFILES.in: Regenerate.
210
79b1d3cb
PC
2112017-03-27 Pip Cet <pipcet@gmail.com>
212
213 * cpu-wasm32.c: New file to support wasm32 architecture.
214 * elf32-wasm32.c: New file to support wasm32 architecture.
215 * Makefile.am: Add wasm32 architecture.
216 * archures.c: Likewise.
217 * config.bfd: Likewise.
218 * configure.ac: Likewise.
219 * targets.c: Likewise.
220 * Makefile.in: Regenerate.
221 * bfd-in2.h: Regenerate.
222 * configure: Regenerate.
223 * po/SRC-POTFILES.in: Regenerate.
224
aaed6f5b
AM
2252017-03-20 Alan Modra <amodra@gmail.com>
226
227 PR 21266
228 * elf64-ppc.c (compare_symbols): Stabilize sort.
229
82e66161
AM
2302017-03-18 Alan Modra <amodra@gmail.com>
231
232 * elf64-ppc.c (struct ppc_link_hash_table): Add
233 local_ifunc_resolver and maybe_local_ifunc_resolver.
234 (ppc_build_one_stub): Set flags on emitting dynamic
235 relocation to ifunc.
236 (ppc64_elf_relocate_section): Likewise.
237 (ppc64_elf_finish_dynamic_symbol): Likewise.
238 (ppc64_elf_finish_dynamic_sections): Error on DT_TEXTREL with
239 local dynamic relocs to ifuncs.
240 * elf32-ppc.c (struct ppc_elf_link_hash_table): Add
241 local_ifunc_resolver and maybe_local_ifunc_resolver.
242 (ppc_elf_relocate_section): Set flag on emitting dynamic
243 relocation to ifuncs.
244 (ppc_elf_finish_dynamic_symbol): Likewise.
245 (ppc_elf_finish_dynamic_sections): Error on DT_TEXTREL with local
246 dynamic relocs to ifuncs.
247
f955cccf
NC
2482017-03-13 Nick Clifton <nickc@redhat.com>
249
250 PR binutils/21202
251 * reloc.c (BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC): Rename to
252 BFD_RELOC_AARCH64_TLSDESC_LD64_LO12.
253 (BFD_RELOC_AARCH64_TLSDESC_ADD_LO12_NC): Rename to
254 BFD_RELOC_AARCH64_TLSDESC_ADD_LO12.
255 * bfd-in2.h: Regenerate.
256 * libbfd.h: Regenerate.
257 * elfnn-aarch64.c (IS_AARCH64_TLS_RELAX_RELOC): Update reloc
258 names.
259 (IS_AARCH64_TLSDESC_RELOC): Likewise.
260 (elfNN_aarch64_howto_table): Likewise.
261 (aarch64_tls_transition_without_check): Likewise.
262 (aarch64_reloc_got_type): Likewise.
263 (elfNN_aarch64_final_link_relocate): Likewise.
264 (elfNN_aarch64_tls_relax): Likewise.
265 (elfNN_aarch64_relocate_section): Likewise.
266 (elfNN_aarch64_gc_sweep_hook): Likewise.
267 (elfNN_aarch64_check_relocs): Likewise.
268 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
269 (_bfd_aarch64_elf_resolve_relocation): Likewise.
270
4aef7643
AM
2712017-03-11 Alan Modra <amodra@gmail.com>
272
273 * elf32-ppc.c: Remove ATTRIBUTE_UNUSED throughout when function
274 parameter is in fact used. Whitespace fixes.
275 * elf64-ppc.c: Likewise.
276
f03265d9
ST
2772017-03-09 Sam Thursfield <sam.thursfield@codethink.co.uk>
278
279 * rs6000-core.c (CORE_NEW): Simplify macro when
280 AIX_CORE_DUMPX_CORE and BFD64 are true to avoid compile warning.
281
b1b07054
AM
2822017-03-07 Alan Modra <amodra@gmail.com>
283
284 PR 21224
285 PR 20519
286 * elf64-ppc.c (ppc64_elf_relocate_section): Add missing
287 dyn_relocs check.
288
2e0ce1c8
AM
2892017-03-05 Alan Modra <amodra@gmail.com>
290
291 * elf-bfd.h (struct eh_cie_fde): Add u.cie.per_encoding_aligned8.
292 * elf-eh-frame.c (size_of_output_cie_fde): Don't align here.
293 (next_cie_fde_offset): New function.
294 (_bfd_elf_parse_eh_frame): Set u.cie.per_encoding_aligned8.
295 (_bfd_elf_discard_section_eh_frame): Align zero terminator to
296 four bytes. Align CIEs to four or eight bytes depending on
297 per_encoding_aligned8. Align FDEs according to their encoding.
298 Pad last FDE to output section alignment.
299 (_bfd_elf_write_section_eh_frame): Adjust to suit. Remove
300 assertion.
301 * elf64-ppc.c (glink_eh_frame_cie): Delete padding.
302 (ppc64_elf_size_stubs): Pad glink eh_frame as per elf-eh-frame.c.
303 (ppc64_elf_finish_dynamic_sections): Adjust to suit.
304
f98450c6
NC
3052017-03-02 Martin Bickel <binutils@ineranves.de>
306
307 PR ld/21212
308 * elf.c (rewrite_elf_program_header): Do not issue a warning for
d20928fa 309 empty segments which have a zero filesz, but a non-zero memsz.
f98450c6 310
673cff9b
AM
3112017-03-02 Alan Modra <amodra@gmail.com>
312
313 * elf32-ppc.c (ppc_elf_vle_split16): Correct insn mask typo.
314
3de43e7b
AM
3152017-02-28 Alan Modra <amodra@gmail.com>
316
317 * elf64-ppc.c (ppc64_elf_ha_reloc): Revert last change.
318 (ppc64_elf_relocate_section): Likewise.
319
4ef97a1b
AM
3202017-02-28 Alan Modra <amodra@gmail.com>
321
322 PR 20995
323 * elf32-nios2.c (nios2_elf32_relocate_section): Use htab
324 rather than elf32_nios2_hash_table or elf_hash_table.
325 (create_got_section): Likewise.
326 (nios2_elf32_finish_dynamic_symbol): Likewise.
327 (nios2_elf32_adjust_dynamic_symbol): Likewise.
328 (nios2_elf32_size_dynamic_sections): Likewise.
329 (nios2_elf32_check_relocs): Delete dynobj, sgot, and srelgot
330 vars. Use htab equivalents directly instead. Don't create
331 all dynamic sections on needing just the GOT. Use a goto
332 rather than a fall-through with reloc test. Ensure
333 htab->dynobj is set when making dynamic sreloc section.
334 (nios2_elf32_finish_dynamic_sections): Delete dynobj, use htab
335 equivalent directly instead. Don't segfault on looking for
336 .dynamic when dynamic sections have not been created. Don't
337 segfault on .got.plt being discarded.
338 (nios2_elf32_size_dynamic_sections): Delete plt and got vars.
339 Don't set "relocs" on .rela.plt. Do handle .sbss. Delete
340 fixme and another not so relevant comment.
341 (nios2_elf_add_symbol_hook): Delete dynobj var. If not
342 already set, set hash table dynobj on creating .sbss.
343
7ba71655
AM
3442017-02-28 Alan Modra <amodra@gmail.com>
345
346 * reloc.c (BFD_RELOC_PPC_16DX_HA): New.
347 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_16DX_HA>): New howto.
348 (ppc64_elf_reloc_type_lookup): Translate new bfd reloc.
349 (ppc64_elf_ha_reloc): Correct overflow test on REL16DX_HA.
350 (ppc64_elf_relocate_section): Likewise.
351 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_16DX_HA>): New howto.
352 (ppc_elf_reloc_type_lookup): Translate new bfd reloc.
353 (ppc_elf_check_relocs): Handle R_PPC_16DX_HA to pacify gcc.
354 * libbfd.h: Regenerate.
355 * bfd-in2.h: Regenerate.
356
afbf7e8e
AM
3572017-02-28 Alan Modra <amodra@gmail.com>
358
359 * elflink.c (_bfd_elf_create_dynamic_sections): Don't make
360 dynamic .data.rel.ro read-only.
361 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Compare section
362 rather than section flags when deciding where copy reloc goes.
363 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
364 * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise.
365 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise.
366 * elf32-metag.c (elf_metag_finish_dynamic_symbol): Likewise.
367 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Likewise.
368 * elf32-nios2.c (nios2_elf32_finish_dynamic_symbol): Likewise.
369 * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Likewise.
370 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Likewise.
371 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
372 * elf32-tic6x.c (elf32_tic6x_finish_dynamic_symbol): Likewise.
373 * elf32-tilepro.c (tilepro_elf_finish_dynamic_symbol): Likewise.
374 * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Likewise.
375 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
376 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
377 * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Likewise.
378 * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Likewise.
379 * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
380 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
381 * elfxx-tilegx.c (tilegx_elf_finish_dynamic_symbol): Likewise.
382
0e392101
MR
3832017-02-28 Maciej W. Rozycki <macro@imgtec.com>
384
385 * elfxx-mips.c (mips_elf_perform_relocation): Also handle the
386 `jalr $0, $25' instruction encoding.
387
bd757ca7
NC
3882017-02-27 Nick Clifton <nickc@redhat.com>
389
390 PR ld/21180
391 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Avoid
392 generating a seg-fault when encountering a symbol that has been
393 deleted by garbage collection.
394
034fed0b
AM
3952017-02-25 Alan Modra <amodra@gmail.com>
396
397 * elf32-arc.c (struct dynamic_sections): Delete.
398 (enum dyn_section_types): Delete.
399 (dyn_section_names): Delete.
400 (arc_create_dynamic_sections): Delete.
401 (elf_arc_finish_dynamic_sections): Don't call the above. Don't
402 segfault on discarded .rela.plt section.
403 (elf_arc_size_dynamic_sections): Formatting. Don't call
404 arc_create_dynamic_sections. Don't allocate memory for sections
405 handled by the generic linker. Correct code finding relocs in
406 read-only sections. Set SEC_EXCLUDE on zero size .got,
407 .got.plt, and .dynbss sections. Do set .interp for pies.
408
d0f744f9
AW
4092017-02-24 Andrew Waterman <andrew@sifive.com>
410
411 * elfnn-riscv.c (GP_NAME): New macro.
412 (riscv_global_pointer_value): Use it.
413 (_bfd_riscv_relax_lui): If symbol and global pointer are in same
414 output section, consider only that section's alignment.
415
5d58c733
MR
4162017-02-23 Maciej W. Rozycki <macro@imgtec.com>
417
418 * elfxx-mips.h (_bfd_mips_relax_section): Remove prototype.
419 * elfxx-mips.c (_bfd_mips_relax_section): Remove function.
420 * elf64-mips.c (bfd_elf64_bfd_relax_section): Remove macro.
421 * elfn32-mips.c (bfd_elf32_bfd_relax_section): Likewise.
422
c1556ecd
MR
4232017-02-23 Maciej W. Rozycki <macro@imgtec.com>
424
425 * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_JALR>
426 <R_MICROMIPS_JALR>: Discard relocation if `cross_mode_jump_p'
427 or misaligned.
428
5499c7c7
AM
4292017-02-23 Alan Modra <amodra@gmail.com>
430
431 PR 20744
432 * elf32-ppc.c (ppc_elf_howto_raw): Correct dst_mask on all VLE
433 16D relocations.
434 (ppc_elf_vle_split16): Correct field mask and shift for 16D relocs.
435 (ppc_elf_relocate_section): Correct calculation for VLE SDAREL
436 relocs.
437
902e9fc7
MR
4382017-02-22 Maciej W. Rozycki <macro@imgtec.com>
439
440 PR ld/20828
441 * elflink.c (bfd_elf_size_dynamic_sections): Move symbol version
442 processing ahead of the call to `elf_gc_sweep_symbol'.
443
758d96d8
NC
4442017-02-22 Nick Clifton <nickc@redhat.com>
445
446 PR binutils/21193
447 * opncls.c (bfd_create_gnu_debuglink_section): Give the newly
448 created section 4-byte alignment.
449
6528b6eb
AM
4502017-02-22 Alan Modra <amodra@gmail.com>
451
452 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Don't segfault
453 on .got or .plt output section being discarded by script.
454 * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Likewise. Move
455 vxworks splt temp.
456
24f1a751
AM
4572017-02-21 Alan Modra <amodra@gmail.com>
458
459 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only emit
460 DT_RELA, DT_RELASZ, and DT_RELAENT when DT_RELASZ is non-zero.
461
64487780
AM
4622017-02-20 Alan Modra <amodra@gmail.com>
463
464 PR 21181
465 * elflink.c (bfd_elf_final_link): Make DT_REL/DT_RELA zero
466 if DT_RELSZ/DT_RELASZ is zero.
467
6438d1be
NC
4682017-02-17 Nick Clifton <nickc@redhat.com>
469
470 * compress.c (bfd_get_full_section_contents): Remember to reduce
471 compressed size by the sizeof the compression header when
472 decompressing the contents.
473
4bc26c69
PA
4742017-02-17 Pedro Alves <palves@redhat.com>
475
476 * srec.c (Chunk): Rename to ...
477 (_bfd_srec_len): ... this.
478 (S3Forced): Rename to ...
479 (_bfd_srec_forceS3): ... this.
480 * objcopy.c: Adjust all references.
481
7ec22e0f
PA
4822017-02-17 Pedro Alves <palves@redhat.com>
483
484 * archive.c (bsd_write_armap): Rename to ...
485 (_bfd_bsd_write_armap): ... this.
486 (coff_write_armap): Rename to ...
487 (_bfd_coff_write_armap): ... this.
488 * libbfd-in.h (bsd_write_armap): Rename to ...
489 (_bfd_bsd_write_armap): ... this.
490 (coff_write_armap): Rename to ...
491 (_bfd_coff_write_armap): ... this.
492 * aout-target.h, aout-tic30.c: Adjust all users.
493 * libbfd.h: Regenerate.
494
8c8402cc
PA
4952017-02-17 Pedro Alves <palves@redhat.com>
496
497 * bfd-in.h (bfd_read, bfd_write): Adjust to rename.
498 (warn_deprecated): Rename to ...
499 (_bfd_warn_deprecated): ... this.
500 * libbfd.c (warn_deprecated): Rename to ...
501 (_bfd_warn_deprecated): ... this.
502 * bfd-in2.h: Regenerate.
503
c7c3d11b
PA
5042017-02-17 Pedro Alves <palves@redhat.com>
505
506 * bfdio.c (real_ftell): Rename to ...
507 (_bfd_real_ftell): ... this.
508 (real_fseek): Rename to ...
509 (_bfd_real_fseek): ... this.
510 (real_fopen): Rename to ...
511 (_bfd_real_fopen): ... this.
512 * libbfd-in.h (real_ftell): Rename to ...
513 (_bfd_real_ftell): ... this.
514 (real_fseek): Rename to ...
515 (_bfd_real_fseek): ... this.
516 (real_fopen): Rename to ...
517 (_bfd_real_fopen): ... this.
518 * cache.c, dwarf2.c, opncls.c: Adjust all callers.
519 * libbfd.h: Regenerate.
520
4265548c
PA
5212017-02-17 Pedro Alves <palves@redhat.com>
522
523 * dwarf2.c, elf-attrs.c, elf32-nds32.c: Adjust all callers.
524 * libbfd.c (read_unsigned_leb128): Rename to ...
525 (_bfd_read_unsigned_leb128): ... this.
526 (read_signed_leb128): Rename to ...
527 (_bfd_read_signed_leb128): ... this.
528 (safe_read_leb128): Rename to ...
529 (_bfd_safe_read_leb128): ... this.
530 * libbfd-in.h (read_unsigned_leb128): Rename to ...
531 (_bfd_read_unsigned_leb128): ... this.
532 (read_signed_leb128): Rename to ...
533 (_bfd_read_signed_leb128): ... this.
534 (safe_read_leb128): Rename to ...
535 (_bfd_safe_read_leb128): ... this.
536 * libbfd.h: Renegerate.
537
3239a423
AB
5382017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
539
540 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Perform symbol lookup
541 before trying to fine matching file and line information.
542
90ed9b8b
AB
5432017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
544
545 * dwarf2.c (struct dwarf2_debug): Add orig_bfd member.
546 (_bfd_dwarf2_slurp_debug_info): If stashed debug information does
547 not match current bfd, then reload debug information. Record bfd
548 we're loading debug info for in the stash. If we have debug
549 informatin in the cache then perform section placement before
550 returning.
551
a8c75b76
AM
5522017-02-16 Alan Modra <amodra@gmail.com>
553
554 PR 21000
555 * elf-bfd.h (struct elf_backend_data): Add no_page_alias.
556 * elfxx-target.h (elf_backend_no_page_alias): Define.
557 (elfNN_bed): Init new field.
558 * elf.c (assign_file_positions_for_load_sections): If no_page_alias
559 ensure PT_LOAD segment starts on a new page.
560 * elf32-hppa.c (elf_backend_no_page_alias): Define.
561
247d6c4c
AM
5622017-02-16 Alan Modra <amodra@gmail.com>
563
564 PR 21132
565 * elf32-hppa.c (allocate_plt_static): Allocate space for relocs
566 if pic.
567
90571206
JW
5682017-02-16 Jiong Wang <jiong.wang@arm.com>
569
570 * bfd.c (BFD_FLAGS_SAVED): Add BFD_LINKER_CREATED.
571 * bfd-in2.h: Regenerated.
572
2a568401
L
5732017-02-15 H.J. Lu <hongjiu.lu@intel.com>
574
575 PR ld/21168
576 * elf32-i386.c (elf_i386_relocate_section): Allow
577 "lea foo@GOT, %reg" in PIC.
578
a5def14f
L
5792017-02-15 H.J. Lu <hongjiu.lu@intel.com>
580
581 PR ld/20244
582 * elf32-i386.c (elf_i386_relocate_section): Properly get IFUNC
583 symbol name when reporting R_386_GOT32/R_386_GOT32X relocation
584 error against local IFUNC symbol without a base register for
585 PIC.
586
174d0a74
MR
5872017-02-15 Maciej W. Rozycki <macro@imgtec.com>
588
589 * elf32-ppc.c (ppc_elf_check_relocs): Use `%H:' rather than
590 `%P: %H:' with `info->callbacks->einfo'.
591 (ppc_elf_relocate_section): Likewise.
592 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
593 (ppc64_elf_edit_toc): Likewise.
594 (ppc64_elf_relocate_section): Likewise.
595
e278ae05
AM
5962017-02-14 Alan Modra <amodra@gmail.com>
597
598 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Support
599 --gc-keep-exported, and test versioned field of sym rather than
600 looking for @ in name.
601
10ddfe62
PD
6022017-02-13 Palmer Dabbelt <palmer@dabbelt.com>
603
604 * elfnn-riscv.c (riscv_global_pointer_value): Change _gp to
605 __global_pointer$.
606
d11135f5
NC
6072017-02-13 Nick Clifton <nickc@redhat.com>
608
609 PR binutils/21151
610 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Check for an invalid
611 unit length field.
612
cc162427
AW
6132017-02-07 Andrew Waterman <andrew@sifive.com>
614
615 * elfnn-riscv.c (riscv_elf_finish_dynamic_sections): Only write PLT
616 entry size if PLT header is written.
617
3d044c0c
SL
6182017-02-06 Sheldon Lobo <sheldon.lobo@oracle.com>
619
620 Fix sparc64 dynamic relocation processing to use the dynamic
621 symbol count.
622 * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Use 'dynamic'
623 to determine if bfd_get_symcount() or bfd_get_dynamic_symcount()
624 should be used.
625
1b7e3d2f
NC
6262017-02-03 Nick Clifton <nickc@redhat.com>
627
628 PR 21096
629 * coffcode.h (coff_write_object_contents): Enlarge size of
630 s_name_buf in order to avoid compile time warning about possible
631 integer truncation.
632 * elf32-nds32.c (nds32_elf_ex9_import_table): Mask off lower
633 32-bits of insn value before printing into buffer.
634
e17b0c35
MR
6352017-02-02 Maciej W. Rozycki <macro@imgtec.com>
636
637 * elfxx-mips.c (mips_elf_hash_sort_data): Add
638 `max_local_dynindx'.
639 (mips_elf_sort_hash_table): Handle it.
640 (mips_elf_sort_hash_table_f) <GGA_NONE>: For forced local
641 symbols bump up `max_local_dynindx' rather than
642 `max_non_got_dynindx'.
643
55f8b9d2
MR
6442017-02-02 Maciej W. Rozycki <macro@imgtec.com>
645
646 * elfxx-mips.c (mips_elf_hash_sort_data): Convert the
647 `min_got_dynindx', `max_unref_got_dynindx' and
648 `max_non_got_dynindx' members to the `bfd_size_type' data type.
649 (mips_elf_sort_hash_table): Adjust accordingly.
650
0f8c4b60
MR
6512017-02-02 Maciej W. Rozycki <macro@imgtec.com>
652
653 * elfxx-mips.c (mips_elf_sort_hash_table): Use `htab' throughout
654 to access the hash table.
655
17a80fa8
MR
6562017-02-02 Maciej W. Rozycki <macro@imgtec.com>
657
658 * elfxx-mips.c (mips_elf_sort_hash_table): Move assertion on
659 non-NULL `htab' to the beginning.
660
8f56d4fd
MR
6612017-02-02 Maciej W. Rozycki <macro@imgtec.com>
662
663 * elflink.c (elf_gc_sweep): Wrap overlong line.
664
8b10b0b3
MR
6652017-01-30 Maciej W. Rozycki <macro@imgtec.com>
666
667 * elfxx-mips.h (_bfd_mips_elf_insn32): Rename prototype to...
668 (_bfd_mips_elf_linker_flags): ... this. Add another parameter.
669 * elfxx-mips.c (mips_elf_link_hash_table): Add
670 `ignore_branch_isa' member.
671 (mips_elf_perform_relocation): Do not treat an ISA mode mismatch
672 in branch relocation calculation as an error if
673 `ignore_branch_isa' has been set.
674 (_bfd_mips_elf_insn32): Rename to...
675 (_bfd_mips_elf_linker_flags): ... this. Rename the `on'
676 parameter to `insn32' and add an `ignore_branch_isa' parameter.
677 Handle the new parameter.
678
1fbd05e1
HPN
6792017-01-27 Hans-Peter Nilsson <hp@axis.com>
680
22d9a0de
HPN
681 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Remove now unused
682 local variable dynobj.
683
1fbd05e1
HPN
684 PR ld/20995
685 * elf32-cris.c (elf_cris_size_dynamic_sections): Handle sdynrelro.
686 (elf_cris_adjust_dynamic_symbol): Place variables copied into the
687 executable from read-only sections into sdynrelro.
688 (elf_cris_finish_dynamic_symbol): Select sreldynrelro for
689 dynamic relocs in sdynrelro.
690 (elf_backend_want_dynrelro): Define.
691
4a7324e1
SH
6922017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
693
694 * config.bfd (*-*-rtemsaout*): Mark as removed.
695
c75b4ebd
SH
6962017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
697
698 * config.bfd (powerpcle-*-rtems*): Do not mark as removed.
699 (arm-*-rtems*): Move to (arm*-*-eabi*).
700 (i[3-7]86-*-rtems*): Move to (i[3-7]86-*-elf*).
701 (m68-*-rtems*): Move to (m68*-*-elf*).
702
850d84f6
SH
7032017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
704
705 * config.bfd (*-*-rtemscoff*): Mark as removed.
706
b531344c
MR
7072017-01-24 Maciej W. Rozycki <macro@imgtec.com>
708
709 PR ld/20828
710 * elflink.c (bfd_elf_record_link_assignment): Revert last
711 change and don't ever clear `forced_local'. Set `mark'
712 unconditionally.
713 (elf_gc_sweep_symbol_info, elf_gc_sweep_symbol): Reorder within
714 file.
715 (elf_gc_sweep): Move the call to `elf_gc_sweep_symbol'...
716 (bfd_elf_size_dynamic_sections): ... here.
717 * elf32-ppc.c (ppc_elf_tls_setup): Don't clear `forced_local'
718 and set `mark' instead in `__tls_get_addr_opt' processing.
719 * elf64-ppc.c (ppc64_elf_tls_setup): Likewise.
720
f0158f44
AM
7212017-01-24 Alan Modra <amodra@gmail.com>
722
723 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Merge two cases
724 where dynamic relocs are preferable. Allow ifunc too.
725 (ensure_undefweak_dynamic): New function.
726 (allocate_dynrelocs): Use it here. Move plt handling last and
727 don't make symbols dynamic, simplifying loop. Only make undef
728 weak symbols with GOT entries dynamic. Correct condition
729 for GOT relocs. Handle dynamic relocs on ifuncs. Correct
730 comments. Remove goto.
731 (ppc_elf_relocate_section): Correct test for using dynamic
732 symbol on GOT relocs. Rearrange test for emitting GOT relocs
733 to suit. Set up explicit tls_index entries and implicit GOT
734 tls_index entries resolvable at link time for
735 __tls_get_addr_opt. Simplify test to clear mem for prelink.
736 * elf64-ppc.c (allocate_got): Correct condition for GOT relocs.
737 (ensure_undefweak_dynamic): New function.
738 (allocate_dynrelocs): Use it here. Only make undef weak symbols
739 with GOT entries dynamic. Remove unnecessary test of
740 WILL_CALL_FINISH_DYNAMIC_SYMBOL in PLT handling.
741 (ppc64_elf_relocate_section): Correct test for using dynamic
742 symbol on GOT relocs. Rearrange test for emitting GOT relocs
743 to suit. Set up explicit tls_index entries and implicit GOT
744 tls_index entries resolvable at link time for __tls_get_addr_opt.
745 Simplify expression to clear mem for prelink.
746
2d0ca824
YN
7472017-01-23 Yury Norov <ynorov@caviumnetworks.com>
748
749 * elfnn-aarch64.c: Fix relaxations for ILP32 mode.
750
7f784814
JW
7512017-01-20 Jiong Wang <jiong.wang@arm.com>
752
753 * elfnn-aarch64.c (elf_aarch64_hash_symbol): New function.
754 (elf_backend_hash_symbol): Define.
755
81ff47b3
MR
7562017-01-18 Maciej W. Rozycki <macro@imgtec.com>
757
758 PR ld/20828
759 * elflink.c (bfd_elf_record_link_assignment): Clear any
760 `forced_local' marking for DSO symbols that are not being
761 provided.
762
640d6bfd
KLC
7632017-01-17 Kuan-Lin Chen <kuanlinchentw@gmail.com>
764
765 * elfnn-riscv.c (riscv_elf_object_p): New function.
766
8361ed4d
L
7672017-01-12 H.J. Lu <hongjiu.lu@intel.com>
768
769 PR ld/21038
770 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add
771 plt_bnd_eh_frame.
772 (elf_x86_64_check_relocs): Create .eh_frame section for the
773 .plt.bnd section.
774 (elf_x86_64_size_dynamic_sections): Allocate and initialize
775 .eh_frame section for the .plt.bnd section.
776 (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section
777 for the .plt.bnd section.
778
2425a30e
NC
7792017-01-12 Nick Clifton <nickc@redhat.com>
780
781 PR binutils/20876
782 * opncls.c (find_separate_debug_file): Add include_dirs
783 parameter. Only include the directory part of the bfd's filename
784 in search paths if include_dirs is true. Add a couple of extra
785 locations for looking for debug files.
786 ( bfd_follow_gnu_debuglink): Update invocation of
787 find_separate_debug_file.
788 (bfd_follow_gnu_debugaltlink): Likewise.
789 (get_build_id): New function: Finds the build-id of the given bfd.
790 (get_build_id_name): New function: Computes the name of the
791 separate debug info file for a bfd, based upon its build-id.
792 (check_build_id_file): New function: Checks to see if a separate
793 debug info file exists at the given location, and that its
794 build-id matches that of the original bfd.
795 (bfd_follow_build_id_debuglink): New function: Finds a separate
796 debug info file for a given bfd by using the build-id method.
797 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Try using the build-id
798 method of locating a separate debug info file before using the
799 debuglink method.
800 * bfd-in2.h: Regenerate.
801
9e659176
L
8022017-01-11 H.J. Lu <hongjiu.lu@intel.com>
803
804 PR ld/21038
805 * elf64-x86-64.c (elf_x86_64_eh_frame_bnd_plt): New.
806 (elf_x86_64_bnd_arch_bed): Use elf_x86_64_eh_frame_bnd_plt and
807 elf_x86_64_eh_frame_plt_got.
808 (elf_x86_64_size_dynamic_sections): Get unwind info from
809 elf_x86_64_bnd_arch_bed for the BND PLT.
810
f2e2d2f5
JS
8112017-01-11 Jeremy Soller <jackpot51@gmail.com>
812
813 * config.bfd: Add entries for i686-redox and x86_64-redox.
814
52b232b3
L
8152017-01-10 H.J. Lu <hongjiu.lu@intel.com>
816
817 * elf32-i386.c (elf_i386_check_relocs): Align .eh_frame section
818 to 4 bytes.
819 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Align
820 .eh_frame section to 4 bytes for x32.
821 (elf_x86_64_check_relocs): Likewise.
822
fff53dae
L
8232017-01-10 H.J. Lu <hongjiu.lu@intel.com>
824
825 PR ld/20830
826 * elf32-i386.c (elf_i386_eh_frame_plt_got): New.
827 (PLT_GOT_FDE_LENGTH): Likewise.
828 (elf_i386_plt_layout): Add eh_frame_plt_got and
829 eh_frame_plt_got_size.
830 (elf_i386_plt): Updated.
831 (elf_i386_link_hash_table): Add plt_got_eh_frame.
832 (elf_i386_check_relocs): Create .eh_frame section for .plt.got.
833 (elf_i386_size_dynamic_sections): Allocate and initialize
834 .eh_frame section for .plt.got.
835 (elf_i386_finish_dynamic_sections): Adjust .eh_frame section for
836 .plt.got.
837 (elf_i386_nacl_plt): Add FIXME for eh_frame_plt_got and
838 eh_frame_plt_got_size.
839 * elf64-x86-64.c (elf_x86_64_eh_frame_plt_got): New.
840 (PLT_GOT_FDE_LENGTH): Likewise.
841 (elf_x86_64_backend_data): Add eh_frame_plt_got and
842 eh_frame_plt_got_size.
843 (elf_x86_64_arch_bed): Updated.
844 (elf_x86_64_bnd_arch_bed): Add FIXME for eh_frame_plt_got and
845 eh_frame_plt_got_size.
846 (elf_x86_64_nacl_arch_bed): Likewise.
847 (elf_x86_64_link_hash_table): Add plt_got_eh_frame.
848 (elf_x86_64_check_relocs): Create .eh_frame section for .plt.got.
849 (elf_x86_64_size_dynamic_sections): Allocate and initialize
850 .eh_frame section for .plt.got.
851 (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section
852 for .plt.got.
853
f129e49f
L
8542017-01-10 H.J. Lu <hongjiu.lu@intel.com>
855
856 * elf32-i386.c (elf_i386_size_dynamic_sections): Set
857 plt_eh_frame->size to eh_frame_plt_size and use eh_frame_plt.
858
cd6581da
NC
8592017-01-09 Nick Clifton <nickc@redhat.com>
860
861 * dwarf2.c (lookup_address_in_function_table): Return early if
862 there are no functions in the given comp unit, or if the high
863 address of the last function in the comp unit is less than the
864 desired address.
865
98f02962
NC
8662017-01-09 Nick Clifton <nickc@redhat.com>
867
868 PR binutils/21013
869 * coffgen.c (_bfd_coff_get_external_symbols): Generate an error
870 message if there are too many symbols to load.
871
ae4fda66
JC
8722017-01-04 James Clarke <jrtc27@jrtc27.com>
873
874 * elf64-alpha.c (elf64_alpha_relax_opt_call): Don't set tsec_free
875 if relocs are cached.
876
de1010f4
RF
8772017-01-03 Rich Felker <bugdal@aerifal.cx>
878
879 PR ld/21017
880 * elf32-microblaze.c (microblaze_elf_check_relocs): Add an entry
881 for R_MICROBLAZE_GOTOFF_64.
882
09fe2662
NC
8832017-01-03 Nick Clifton <nickc@redhat.com>
884
885 * mach-o.c (bfd_mach_o_lookup_uuid_command): Fix compile time
886 warning about using a possibly uninitialised variable.
887
595e0a47
AM
8882017-01-02 Alan Modra <amodra@gmail.com>
889
890 * elf32-hppa.c (ensure_undef_weak_dynamic): New function.
891 (allocate_plt_static, allocate_dynrelocs): Use it.
892
7bd9df3b
AM
8932017-01-02 Alan Modra <amodra@gmail.com>
894
895 * elf-hppa.h (elf_hppa_fake_sections): Set SHF_INFO_LINK for
896 .PARISC.unwind section.
897
5b86074c
AM
8982017-01-02 Alan Modra <amodra@gmail.com>
899
900 PR ld/20989
901 * elfxx-sparc.c (gdop_relative_offset_ok): New function.
902 (_bfd_sparc_elf_relocate_section): Use it to validate GOT
903 indirect to GOT pointer relative code edit.
904
2571583a
AM
9052017-01-02 Alan Modra <amodra@gmail.com>
906
907 Update year range in copyright notice of all files.
908
5c1ad6b5 909For older changes see ChangeLog-2016
3499769a 910\f
5c1ad6b5 911Copyright (C) 2017 Free Software Foundation, Inc.
3499769a
AM
912
913Copying and distribution of this file, with or without modification,
914are permitted in any medium without royalty provided the copyright
915notice and this notice are preserved.
916
917Local Variables:
918mode: change-log
919left-margin: 8
920fill-column: 74
921version-control: never
922End:
This page took 0.128234 seconds and 4 git commands to generate.