Class-ify ptid_t
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
86abf93a
AM
12017-04-07 Alan Modra <amodra@gmail.com>
2
3 * po/SRC-POTFILES.in: Regenerate.
4
8dea77f0
AM
52017-04-05 Alan Modra <amodra@gmail.com>
6
7 * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Support ELFv2 PLT
8 reference counting.
9
477bdd39
JT
102017-04-02 Jon Turney <jon.turney@dronecode.org.uk>
11
12 (_bfd_XXi_swap_aouthdr_out): For clarity, use defines rather than
13 numbers for DataDirectory entry indicies passed to
14 add_data_entry().
15
a91e1603
L
162017-04-04 H.J. Lu <hongjiu.lu@intel.com>
17
18 * elf.c (get_program_header_size): Add a GNU_MBIND segment for
19 each GNU_MBIND section and align GNU_MBIND section to page size.
20 (_bfd_elf_map_sections_to_segments): Create a GNU_MBIND
21 segment for each GNU_MBIND section.
22 (_bfd_elf_init_private_section_data): Copy sh_info from input
23 for GNU_MBIND section.
24
b5292032
PD
252017-04-03 Palmer Dabbelt <palmer@dabbelt.com>
26
27 * elfnn-riscv.c (GP_NAME): Delete.
28 (riscv_global_pointer_value): Change GP_NAME to RISCV_GP_SYMBOL.
29 (_bfd_riscv_relax_lui): Likewise.
30
ad32986f
NC
312017-04-04 Nick Clifton <nickc@redhat.com>
32
33 PR binutils/21342
34 * elflink.c (_bfd_elf_define_linkage_sym): Prevent null pointer
35 dereference.
36 (bfd_elf_final_link): Only initialize the extended symbol index
37 section if there are extended symbol tables to list.
38
46bed679
L
392017-04-03 H.J. Lu <hongjiu.lu@intel.com>
40
41 * Makefile.am (BFD32_BACKENDS): Add elf-properties.lo.
42 (BFD32_BACKENDS_CFILES): Add elf-properties.c.
43 * configure.ac (elf): Add elf-properties.lo.
44 * Makefile.in: Regenerated.
45 * configure: Likewise.
46 * elf-bfd.h (elf_property_kind): New.
47 (elf_property): Likewise.
48 (elf_property_list): Likewise.
49 (elf_properties): Likewise.
50 (_bfd_elf_parse_gnu_properties): Likewise.
51 (_bfd_elf_get_property): Likewise.
52 (_bfd_elf_link_setup_gnu_properties): Likewise.
53 (elf_backend_data): Add parse_gnu_properties, merge_gnu_properties
54 and setup_gnu_properties.
55 (elf_obj_tdata): Add properties.
56 * elf-properties.c: New file.
57 * elf32-i386.c (elf_i386_parse_gnu_properties): New.
58 (elf_i386_merge_gnu_properties): Likewise.
59 (elf_backend_parse_gnu_properties): Likewise.
60 (elf_backend_merge_gnu_properties): Likewise.
61 * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise.
62 (elf_x86_64_merge_gnu_properties): Likewise.
63 (elf_backend_parse_gnu_properties): Likewise.
64 (elf_backend_merge_gnu_properties): Likewise.
65 * elfxx-target.h (elf_backend_merge_gnu_properties): Likewise.
66 (elf_backend_parse_gnu_properties): Likewise.
67 (elf_backend_setup_gnu_properties): Likewise.
68 (elfNN_bed): Add elf_backend_parse_gnu_properties,
69 elf_backend_merge_gnu_properties and
70 elf_backend_setup_gnu_properties.
71
f96bd6c2
PC
722017-03-30 Pip Cet <pipcet@gmail.com>
73
74 * elf32-wasm32.c: Add relocation code, two relocs.
75 * reloc.c: Add wasm32 relocations.
76 * libbfd.h: Regenerate.
77 * bfd-in2.h: Regenerate.
78 * bfd/po/bfd.pot: Regenerate.
79
e643cb45
NC
802017-03-29 Nick Clifton <nickc@redhat.com>
81
82 PR binutils/18025
83 * coff-bfd.h (struct coff_section_data): Add new fields:
84 saved_bias and bias.
85 * coffgen.c (coff_find_nearest_line_with_names): Cache the bias
86 computed for PE binaries.
87 * dwarf2.c (scan_unit_for_symbols): Only warn once about each
88 missing abbrev.
89
086554e8
HPN
902017-03-28 Hans-Peter Nilsson <hp@axis.com>
91
92 PR ld/16044
93 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Adjust BFD_ASSERT
94 to handle a local symbol with a hash-symbol-entry; without PLT.
95 Add BFD_ASSERT for an incidental case with GOT entry present.
96 (cris_elf_check_relocs): Increment PLT refcount only if the symbol
97 isn't forced-or-set local.
98
a6be0538
PC
992017-03-27 Pip Cet <pipcet@gmail.com>
100
101 * wasm-module.c: New file to support WebAssembly modules.
102 * wasm-module.h: New file to support WebAssembly modules.
103 * doc/webassembly.texi: Start documenting wasm-module.c.
104 * config.bfd: Add wasm_vec.
105 * targets.c: Likewise.
106 * configure.ac: Likewise.
107 * Makefile.am: Add entries for wasm-module.c.
108 * Makefile.in: Regenerate.
109 * configure: Regenerate.
110 * po/SRC-POTFILES.in: Regenerate.
111
79b1d3cb
PC
1122017-03-27 Pip Cet <pipcet@gmail.com>
113
114 * cpu-wasm32.c: New file to support wasm32 architecture.
115 * elf32-wasm32.c: New file to support wasm32 architecture.
116 * Makefile.am: Add wasm32 architecture.
117 * archures.c: Likewise.
118 * config.bfd: Likewise.
119 * configure.ac: Likewise.
120 * targets.c: Likewise.
121 * Makefile.in: Regenerate.
122 * bfd-in2.h: Regenerate.
123 * configure: Regenerate.
124 * po/SRC-POTFILES.in: Regenerate.
125
aaed6f5b
AM
1262017-03-20 Alan Modra <amodra@gmail.com>
127
128 PR 21266
129 * elf64-ppc.c (compare_symbols): Stabilize sort.
130
82e66161
AM
1312017-03-18 Alan Modra <amodra@gmail.com>
132
133 * elf64-ppc.c (struct ppc_link_hash_table): Add
134 local_ifunc_resolver and maybe_local_ifunc_resolver.
135 (ppc_build_one_stub): Set flags on emitting dynamic
136 relocation to ifunc.
137 (ppc64_elf_relocate_section): Likewise.
138 (ppc64_elf_finish_dynamic_symbol): Likewise.
139 (ppc64_elf_finish_dynamic_sections): Error on DT_TEXTREL with
140 local dynamic relocs to ifuncs.
141 * elf32-ppc.c (struct ppc_elf_link_hash_table): Add
142 local_ifunc_resolver and maybe_local_ifunc_resolver.
143 (ppc_elf_relocate_section): Set flag on emitting dynamic
144 relocation to ifuncs.
145 (ppc_elf_finish_dynamic_symbol): Likewise.
146 (ppc_elf_finish_dynamic_sections): Error on DT_TEXTREL with local
147 dynamic relocs to ifuncs.
148
f955cccf
NC
1492017-03-13 Nick Clifton <nickc@redhat.com>
150
151 PR binutils/21202
152 * reloc.c (BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC): Rename to
153 BFD_RELOC_AARCH64_TLSDESC_LD64_LO12.
154 (BFD_RELOC_AARCH64_TLSDESC_ADD_LO12_NC): Rename to
155 BFD_RELOC_AARCH64_TLSDESC_ADD_LO12.
156 * bfd-in2.h: Regenerate.
157 * libbfd.h: Regenerate.
158 * elfnn-aarch64.c (IS_AARCH64_TLS_RELAX_RELOC): Update reloc
159 names.
160 (IS_AARCH64_TLSDESC_RELOC): Likewise.
161 (elfNN_aarch64_howto_table): Likewise.
162 (aarch64_tls_transition_without_check): Likewise.
163 (aarch64_reloc_got_type): Likewise.
164 (elfNN_aarch64_final_link_relocate): Likewise.
165 (elfNN_aarch64_tls_relax): Likewise.
166 (elfNN_aarch64_relocate_section): Likewise.
167 (elfNN_aarch64_gc_sweep_hook): Likewise.
168 (elfNN_aarch64_check_relocs): Likewise.
169 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
170 (_bfd_aarch64_elf_resolve_relocation): Likewise.
171
4aef7643
AM
1722017-03-11 Alan Modra <amodra@gmail.com>
173
174 * elf32-ppc.c: Remove ATTRIBUTE_UNUSED throughout when function
175 parameter is in fact used. Whitespace fixes.
176 * elf64-ppc.c: Likewise.
177
f03265d9
ST
1782017-03-09 Sam Thursfield <sam.thursfield@codethink.co.uk>
179
180 * rs6000-core.c (CORE_NEW): Simplify macro when
181 AIX_CORE_DUMPX_CORE and BFD64 are true to avoid compile warning.
182
b1b07054
AM
1832017-03-07 Alan Modra <amodra@gmail.com>
184
185 PR 21224
186 PR 20519
187 * elf64-ppc.c (ppc64_elf_relocate_section): Add missing
188 dyn_relocs check.
189
2e0ce1c8
AM
1902017-03-05 Alan Modra <amodra@gmail.com>
191
192 * elf-bfd.h (struct eh_cie_fde): Add u.cie.per_encoding_aligned8.
193 * elf-eh-frame.c (size_of_output_cie_fde): Don't align here.
194 (next_cie_fde_offset): New function.
195 (_bfd_elf_parse_eh_frame): Set u.cie.per_encoding_aligned8.
196 (_bfd_elf_discard_section_eh_frame): Align zero terminator to
197 four bytes. Align CIEs to four or eight bytes depending on
198 per_encoding_aligned8. Align FDEs according to their encoding.
199 Pad last FDE to output section alignment.
200 (_bfd_elf_write_section_eh_frame): Adjust to suit. Remove
201 assertion.
202 * elf64-ppc.c (glink_eh_frame_cie): Delete padding.
203 (ppc64_elf_size_stubs): Pad glink eh_frame as per elf-eh-frame.c.
204 (ppc64_elf_finish_dynamic_sections): Adjust to suit.
205
f98450c6
NC
2062017-03-02 Martin Bickel <binutils@ineranves.de>
207
208 PR ld/21212
209 * elf.c (rewrite_elf_program_header): Do not issue a warning for
d20928fa 210 empty segments which have a zero filesz, but a non-zero memsz.
f98450c6 211
673cff9b
AM
2122017-03-02 Alan Modra <amodra@gmail.com>
213
214 * elf32-ppc.c (ppc_elf_vle_split16): Correct insn mask typo.
215
3de43e7b
AM
2162017-02-28 Alan Modra <amodra@gmail.com>
217
218 * elf64-ppc.c (ppc64_elf_ha_reloc): Revert last change.
219 (ppc64_elf_relocate_section): Likewise.
220
4ef97a1b
AM
2212017-02-28 Alan Modra <amodra@gmail.com>
222
223 PR 20995
224 * elf32-nios2.c (nios2_elf32_relocate_section): Use htab
225 rather than elf32_nios2_hash_table or elf_hash_table.
226 (create_got_section): Likewise.
227 (nios2_elf32_finish_dynamic_symbol): Likewise.
228 (nios2_elf32_adjust_dynamic_symbol): Likewise.
229 (nios2_elf32_size_dynamic_sections): Likewise.
230 (nios2_elf32_check_relocs): Delete dynobj, sgot, and srelgot
231 vars. Use htab equivalents directly instead. Don't create
232 all dynamic sections on needing just the GOT. Use a goto
233 rather than a fall-through with reloc test. Ensure
234 htab->dynobj is set when making dynamic sreloc section.
235 (nios2_elf32_finish_dynamic_sections): Delete dynobj, use htab
236 equivalent directly instead. Don't segfault on looking for
237 .dynamic when dynamic sections have not been created. Don't
238 segfault on .got.plt being discarded.
239 (nios2_elf32_size_dynamic_sections): Delete plt and got vars.
240 Don't set "relocs" on .rela.plt. Do handle .sbss. Delete
241 fixme and another not so relevant comment.
242 (nios2_elf_add_symbol_hook): Delete dynobj var. If not
243 already set, set hash table dynobj on creating .sbss.
244
7ba71655
AM
2452017-02-28 Alan Modra <amodra@gmail.com>
246
247 * reloc.c (BFD_RELOC_PPC_16DX_HA): New.
248 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_16DX_HA>): New howto.
249 (ppc64_elf_reloc_type_lookup): Translate new bfd reloc.
250 (ppc64_elf_ha_reloc): Correct overflow test on REL16DX_HA.
251 (ppc64_elf_relocate_section): Likewise.
252 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_16DX_HA>): New howto.
253 (ppc_elf_reloc_type_lookup): Translate new bfd reloc.
254 (ppc_elf_check_relocs): Handle R_PPC_16DX_HA to pacify gcc.
255 * libbfd.h: Regenerate.
256 * bfd-in2.h: Regenerate.
257
afbf7e8e
AM
2582017-02-28 Alan Modra <amodra@gmail.com>
259
260 * elflink.c (_bfd_elf_create_dynamic_sections): Don't make
261 dynamic .data.rel.ro read-only.
262 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Compare section
263 rather than section flags when deciding where copy reloc goes.
264 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
265 * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise.
266 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise.
267 * elf32-metag.c (elf_metag_finish_dynamic_symbol): Likewise.
268 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Likewise.
269 * elf32-nios2.c (nios2_elf32_finish_dynamic_symbol): Likewise.
270 * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Likewise.
271 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Likewise.
272 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
273 * elf32-tic6x.c (elf32_tic6x_finish_dynamic_symbol): Likewise.
274 * elf32-tilepro.c (tilepro_elf_finish_dynamic_symbol): Likewise.
275 * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Likewise.
276 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
277 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
278 * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Likewise.
279 * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Likewise.
280 * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
281 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
282 * elfxx-tilegx.c (tilegx_elf_finish_dynamic_symbol): Likewise.
283
0e392101
MR
2842017-02-28 Maciej W. Rozycki <macro@imgtec.com>
285
286 * elfxx-mips.c (mips_elf_perform_relocation): Also handle the
287 `jalr $0, $25' instruction encoding.
288
bd757ca7
NC
2892017-02-27 Nick Clifton <nickc@redhat.com>
290
291 PR ld/21180
292 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Avoid
293 generating a seg-fault when encountering a symbol that has been
294 deleted by garbage collection.
295
034fed0b
AM
2962017-02-25 Alan Modra <amodra@gmail.com>
297
298 * elf32-arc.c (struct dynamic_sections): Delete.
299 (enum dyn_section_types): Delete.
300 (dyn_section_names): Delete.
301 (arc_create_dynamic_sections): Delete.
302 (elf_arc_finish_dynamic_sections): Don't call the above. Don't
303 segfault on discarded .rela.plt section.
304 (elf_arc_size_dynamic_sections): Formatting. Don't call
305 arc_create_dynamic_sections. Don't allocate memory for sections
306 handled by the generic linker. Correct code finding relocs in
307 read-only sections. Set SEC_EXCLUDE on zero size .got,
308 .got.plt, and .dynbss sections. Do set .interp for pies.
309
d0f744f9
AW
3102017-02-24 Andrew Waterman <andrew@sifive.com>
311
312 * elfnn-riscv.c (GP_NAME): New macro.
313 (riscv_global_pointer_value): Use it.
314 (_bfd_riscv_relax_lui): If symbol and global pointer are in same
315 output section, consider only that section's alignment.
316
5d58c733
MR
3172017-02-23 Maciej W. Rozycki <macro@imgtec.com>
318
319 * elfxx-mips.h (_bfd_mips_relax_section): Remove prototype.
320 * elfxx-mips.c (_bfd_mips_relax_section): Remove function.
321 * elf64-mips.c (bfd_elf64_bfd_relax_section): Remove macro.
322 * elfn32-mips.c (bfd_elf32_bfd_relax_section): Likewise.
323
c1556ecd
MR
3242017-02-23 Maciej W. Rozycki <macro@imgtec.com>
325
326 * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_JALR>
327 <R_MICROMIPS_JALR>: Discard relocation if `cross_mode_jump_p'
328 or misaligned.
329
5499c7c7
AM
3302017-02-23 Alan Modra <amodra@gmail.com>
331
332 PR 20744
333 * elf32-ppc.c (ppc_elf_howto_raw): Correct dst_mask on all VLE
334 16D relocations.
335 (ppc_elf_vle_split16): Correct field mask and shift for 16D relocs.
336 (ppc_elf_relocate_section): Correct calculation for VLE SDAREL
337 relocs.
338
902e9fc7
MR
3392017-02-22 Maciej W. Rozycki <macro@imgtec.com>
340
341 PR ld/20828
342 * elflink.c (bfd_elf_size_dynamic_sections): Move symbol version
343 processing ahead of the call to `elf_gc_sweep_symbol'.
344
758d96d8
NC
3452017-02-22 Nick Clifton <nickc@redhat.com>
346
347 PR binutils/21193
348 * opncls.c (bfd_create_gnu_debuglink_section): Give the newly
349 created section 4-byte alignment.
350
6528b6eb
AM
3512017-02-22 Alan Modra <amodra@gmail.com>
352
353 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Don't segfault
354 on .got or .plt output section being discarded by script.
355 * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Likewise. Move
356 vxworks splt temp.
357
24f1a751
AM
3582017-02-21 Alan Modra <amodra@gmail.com>
359
360 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only emit
361 DT_RELA, DT_RELASZ, and DT_RELAENT when DT_RELASZ is non-zero.
362
64487780
AM
3632017-02-20 Alan Modra <amodra@gmail.com>
364
365 PR 21181
366 * elflink.c (bfd_elf_final_link): Make DT_REL/DT_RELA zero
367 if DT_RELSZ/DT_RELASZ is zero.
368
6438d1be
NC
3692017-02-17 Nick Clifton <nickc@redhat.com>
370
371 * compress.c (bfd_get_full_section_contents): Remember to reduce
372 compressed size by the sizeof the compression header when
373 decompressing the contents.
374
4bc26c69
PA
3752017-02-17 Pedro Alves <palves@redhat.com>
376
377 * srec.c (Chunk): Rename to ...
378 (_bfd_srec_len): ... this.
379 (S3Forced): Rename to ...
380 (_bfd_srec_forceS3): ... this.
381 * objcopy.c: Adjust all references.
382
7ec22e0f
PA
3832017-02-17 Pedro Alves <palves@redhat.com>
384
385 * archive.c (bsd_write_armap): Rename to ...
386 (_bfd_bsd_write_armap): ... this.
387 (coff_write_armap): Rename to ...
388 (_bfd_coff_write_armap): ... this.
389 * libbfd-in.h (bsd_write_armap): Rename to ...
390 (_bfd_bsd_write_armap): ... this.
391 (coff_write_armap): Rename to ...
392 (_bfd_coff_write_armap): ... this.
393 * aout-target.h, aout-tic30.c: Adjust all users.
394 * libbfd.h: Regenerate.
395
8c8402cc
PA
3962017-02-17 Pedro Alves <palves@redhat.com>
397
398 * bfd-in.h (bfd_read, bfd_write): Adjust to rename.
399 (warn_deprecated): Rename to ...
400 (_bfd_warn_deprecated): ... this.
401 * libbfd.c (warn_deprecated): Rename to ...
402 (_bfd_warn_deprecated): ... this.
403 * bfd-in2.h: Regenerate.
404
c7c3d11b
PA
4052017-02-17 Pedro Alves <palves@redhat.com>
406
407 * bfdio.c (real_ftell): Rename to ...
408 (_bfd_real_ftell): ... this.
409 (real_fseek): Rename to ...
410 (_bfd_real_fseek): ... this.
411 (real_fopen): Rename to ...
412 (_bfd_real_fopen): ... this.
413 * libbfd-in.h (real_ftell): Rename to ...
414 (_bfd_real_ftell): ... this.
415 (real_fseek): Rename to ...
416 (_bfd_real_fseek): ... this.
417 (real_fopen): Rename to ...
418 (_bfd_real_fopen): ... this.
419 * cache.c, dwarf2.c, opncls.c: Adjust all callers.
420 * libbfd.h: Regenerate.
421
4265548c
PA
4222017-02-17 Pedro Alves <palves@redhat.com>
423
424 * dwarf2.c, elf-attrs.c, elf32-nds32.c: Adjust all callers.
425 * libbfd.c (read_unsigned_leb128): Rename to ...
426 (_bfd_read_unsigned_leb128): ... this.
427 (read_signed_leb128): Rename to ...
428 (_bfd_read_signed_leb128): ... this.
429 (safe_read_leb128): Rename to ...
430 (_bfd_safe_read_leb128): ... this.
431 * libbfd-in.h (read_unsigned_leb128): Rename to ...
432 (_bfd_read_unsigned_leb128): ... this.
433 (read_signed_leb128): Rename to ...
434 (_bfd_read_signed_leb128): ... this.
435 (safe_read_leb128): Rename to ...
436 (_bfd_safe_read_leb128): ... this.
437 * libbfd.h: Renegerate.
438
3239a423
AB
4392017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
440
441 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Perform symbol lookup
442 before trying to fine matching file and line information.
443
90ed9b8b
AB
4442017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
445
446 * dwarf2.c (struct dwarf2_debug): Add orig_bfd member.
447 (_bfd_dwarf2_slurp_debug_info): If stashed debug information does
448 not match current bfd, then reload debug information. Record bfd
449 we're loading debug info for in the stash. If we have debug
450 informatin in the cache then perform section placement before
451 returning.
452
a8c75b76
AM
4532017-02-16 Alan Modra <amodra@gmail.com>
454
455 PR 21000
456 * elf-bfd.h (struct elf_backend_data): Add no_page_alias.
457 * elfxx-target.h (elf_backend_no_page_alias): Define.
458 (elfNN_bed): Init new field.
459 * elf.c (assign_file_positions_for_load_sections): If no_page_alias
460 ensure PT_LOAD segment starts on a new page.
461 * elf32-hppa.c (elf_backend_no_page_alias): Define.
462
247d6c4c
AM
4632017-02-16 Alan Modra <amodra@gmail.com>
464
465 PR 21132
466 * elf32-hppa.c (allocate_plt_static): Allocate space for relocs
467 if pic.
468
90571206
JW
4692017-02-16 Jiong Wang <jiong.wang@arm.com>
470
471 * bfd.c (BFD_FLAGS_SAVED): Add BFD_LINKER_CREATED.
472 * bfd-in2.h: Regenerated.
473
2a568401
L
4742017-02-15 H.J. Lu <hongjiu.lu@intel.com>
475
476 PR ld/21168
477 * elf32-i386.c (elf_i386_relocate_section): Allow
478 "lea foo@GOT, %reg" in PIC.
479
a5def14f
L
4802017-02-15 H.J. Lu <hongjiu.lu@intel.com>
481
482 PR ld/20244
483 * elf32-i386.c (elf_i386_relocate_section): Properly get IFUNC
484 symbol name when reporting R_386_GOT32/R_386_GOT32X relocation
485 error against local IFUNC symbol without a base register for
486 PIC.
487
174d0a74
MR
4882017-02-15 Maciej W. Rozycki <macro@imgtec.com>
489
490 * elf32-ppc.c (ppc_elf_check_relocs): Use `%H:' rather than
491 `%P: %H:' with `info->callbacks->einfo'.
492 (ppc_elf_relocate_section): Likewise.
493 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
494 (ppc64_elf_edit_toc): Likewise.
495 (ppc64_elf_relocate_section): Likewise.
496
e278ae05
AM
4972017-02-14 Alan Modra <amodra@gmail.com>
498
499 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Support
500 --gc-keep-exported, and test versioned field of sym rather than
501 looking for @ in name.
502
10ddfe62
PD
5032017-02-13 Palmer Dabbelt <palmer@dabbelt.com>
504
505 * elfnn-riscv.c (riscv_global_pointer_value): Change _gp to
506 __global_pointer$.
507
d11135f5
NC
5082017-02-13 Nick Clifton <nickc@redhat.com>
509
510 PR binutils/21151
511 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Check for an invalid
512 unit length field.
513
cc162427
AW
5142017-02-07 Andrew Waterman <andrew@sifive.com>
515
516 * elfnn-riscv.c (riscv_elf_finish_dynamic_sections): Only write PLT
517 entry size if PLT header is written.
518
3d044c0c
SL
5192017-02-06 Sheldon Lobo <sheldon.lobo@oracle.com>
520
521 Fix sparc64 dynamic relocation processing to use the dynamic
522 symbol count.
523 * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Use 'dynamic'
524 to determine if bfd_get_symcount() or bfd_get_dynamic_symcount()
525 should be used.
526
1b7e3d2f
NC
5272017-02-03 Nick Clifton <nickc@redhat.com>
528
529 PR 21096
530 * coffcode.h (coff_write_object_contents): Enlarge size of
531 s_name_buf in order to avoid compile time warning about possible
532 integer truncation.
533 * elf32-nds32.c (nds32_elf_ex9_import_table): Mask off lower
534 32-bits of insn value before printing into buffer.
535
e17b0c35
MR
5362017-02-02 Maciej W. Rozycki <macro@imgtec.com>
537
538 * elfxx-mips.c (mips_elf_hash_sort_data): Add
539 `max_local_dynindx'.
540 (mips_elf_sort_hash_table): Handle it.
541 (mips_elf_sort_hash_table_f) <GGA_NONE>: For forced local
542 symbols bump up `max_local_dynindx' rather than
543 `max_non_got_dynindx'.
544
55f8b9d2
MR
5452017-02-02 Maciej W. Rozycki <macro@imgtec.com>
546
547 * elfxx-mips.c (mips_elf_hash_sort_data): Convert the
548 `min_got_dynindx', `max_unref_got_dynindx' and
549 `max_non_got_dynindx' members to the `bfd_size_type' data type.
550 (mips_elf_sort_hash_table): Adjust accordingly.
551
0f8c4b60
MR
5522017-02-02 Maciej W. Rozycki <macro@imgtec.com>
553
554 * elfxx-mips.c (mips_elf_sort_hash_table): Use `htab' throughout
555 to access the hash table.
556
17a80fa8
MR
5572017-02-02 Maciej W. Rozycki <macro@imgtec.com>
558
559 * elfxx-mips.c (mips_elf_sort_hash_table): Move assertion on
560 non-NULL `htab' to the beginning.
561
8f56d4fd
MR
5622017-02-02 Maciej W. Rozycki <macro@imgtec.com>
563
564 * elflink.c (elf_gc_sweep): Wrap overlong line.
565
8b10b0b3
MR
5662017-01-30 Maciej W. Rozycki <macro@imgtec.com>
567
568 * elfxx-mips.h (_bfd_mips_elf_insn32): Rename prototype to...
569 (_bfd_mips_elf_linker_flags): ... this. Add another parameter.
570 * elfxx-mips.c (mips_elf_link_hash_table): Add
571 `ignore_branch_isa' member.
572 (mips_elf_perform_relocation): Do not treat an ISA mode mismatch
573 in branch relocation calculation as an error if
574 `ignore_branch_isa' has been set.
575 (_bfd_mips_elf_insn32): Rename to...
576 (_bfd_mips_elf_linker_flags): ... this. Rename the `on'
577 parameter to `insn32' and add an `ignore_branch_isa' parameter.
578 Handle the new parameter.
579
1fbd05e1
HPN
5802017-01-27 Hans-Peter Nilsson <hp@axis.com>
581
22d9a0de
HPN
582 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Remove now unused
583 local variable dynobj.
584
1fbd05e1
HPN
585 PR ld/20995
586 * elf32-cris.c (elf_cris_size_dynamic_sections): Handle sdynrelro.
587 (elf_cris_adjust_dynamic_symbol): Place variables copied into the
588 executable from read-only sections into sdynrelro.
589 (elf_cris_finish_dynamic_symbol): Select sreldynrelro for
590 dynamic relocs in sdynrelro.
591 (elf_backend_want_dynrelro): Define.
592
4a7324e1
SH
5932017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
594
595 * config.bfd (*-*-rtemsaout*): Mark as removed.
596
c75b4ebd
SH
5972017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
598
599 * config.bfd (powerpcle-*-rtems*): Do not mark as removed.
600 (arm-*-rtems*): Move to (arm*-*-eabi*).
601 (i[3-7]86-*-rtems*): Move to (i[3-7]86-*-elf*).
602 (m68-*-rtems*): Move to (m68*-*-elf*).
603
850d84f6
SH
6042017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
605
606 * config.bfd (*-*-rtemscoff*): Mark as removed.
607
b531344c
MR
6082017-01-24 Maciej W. Rozycki <macro@imgtec.com>
609
610 PR ld/20828
611 * elflink.c (bfd_elf_record_link_assignment): Revert last
612 change and don't ever clear `forced_local'. Set `mark'
613 unconditionally.
614 (elf_gc_sweep_symbol_info, elf_gc_sweep_symbol): Reorder within
615 file.
616 (elf_gc_sweep): Move the call to `elf_gc_sweep_symbol'...
617 (bfd_elf_size_dynamic_sections): ... here.
618 * elf32-ppc.c (ppc_elf_tls_setup): Don't clear `forced_local'
619 and set `mark' instead in `__tls_get_addr_opt' processing.
620 * elf64-ppc.c (ppc64_elf_tls_setup): Likewise.
621
f0158f44
AM
6222017-01-24 Alan Modra <amodra@gmail.com>
623
624 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Merge two cases
625 where dynamic relocs are preferable. Allow ifunc too.
626 (ensure_undefweak_dynamic): New function.
627 (allocate_dynrelocs): Use it here. Move plt handling last and
628 don't make symbols dynamic, simplifying loop. Only make undef
629 weak symbols with GOT entries dynamic. Correct condition
630 for GOT relocs. Handle dynamic relocs on ifuncs. Correct
631 comments. Remove goto.
632 (ppc_elf_relocate_section): Correct test for using dynamic
633 symbol on GOT relocs. Rearrange test for emitting GOT relocs
634 to suit. Set up explicit tls_index entries and implicit GOT
635 tls_index entries resolvable at link time for
636 __tls_get_addr_opt. Simplify test to clear mem for prelink.
637 * elf64-ppc.c (allocate_got): Correct condition for GOT relocs.
638 (ensure_undefweak_dynamic): New function.
639 (allocate_dynrelocs): Use it here. Only make undef weak symbols
640 with GOT entries dynamic. Remove unnecessary test of
641 WILL_CALL_FINISH_DYNAMIC_SYMBOL in PLT handling.
642 (ppc64_elf_relocate_section): Correct test for using dynamic
643 symbol on GOT relocs. Rearrange test for emitting GOT relocs
644 to suit. Set up explicit tls_index entries and implicit GOT
645 tls_index entries resolvable at link time for __tls_get_addr_opt.
646 Simplify expression to clear mem for prelink.
647
2d0ca824
YN
6482017-01-23 Yury Norov <ynorov@caviumnetworks.com>
649
650 * elfnn-aarch64.c: Fix relaxations for ILP32 mode.
651
7f784814
JW
6522017-01-20 Jiong Wang <jiong.wang@arm.com>
653
654 * elfnn-aarch64.c (elf_aarch64_hash_symbol): New function.
655 (elf_backend_hash_symbol): Define.
656
81ff47b3
MR
6572017-01-18 Maciej W. Rozycki <macro@imgtec.com>
658
659 PR ld/20828
660 * elflink.c (bfd_elf_record_link_assignment): Clear any
661 `forced_local' marking for DSO symbols that are not being
662 provided.
663
640d6bfd
KLC
6642017-01-17 Kuan-Lin Chen <kuanlinchentw@gmail.com>
665
666 * elfnn-riscv.c (riscv_elf_object_p): New function.
667
8361ed4d
L
6682017-01-12 H.J. Lu <hongjiu.lu@intel.com>
669
670 PR ld/21038
671 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add
672 plt_bnd_eh_frame.
673 (elf_x86_64_check_relocs): Create .eh_frame section for the
674 .plt.bnd section.
675 (elf_x86_64_size_dynamic_sections): Allocate and initialize
676 .eh_frame section for the .plt.bnd section.
677 (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section
678 for the .plt.bnd section.
679
2425a30e
NC
6802017-01-12 Nick Clifton <nickc@redhat.com>
681
682 PR binutils/20876
683 * opncls.c (find_separate_debug_file): Add include_dirs
684 parameter. Only include the directory part of the bfd's filename
685 in search paths if include_dirs is true. Add a couple of extra
686 locations for looking for debug files.
687 ( bfd_follow_gnu_debuglink): Update invocation of
688 find_separate_debug_file.
689 (bfd_follow_gnu_debugaltlink): Likewise.
690 (get_build_id): New function: Finds the build-id of the given bfd.
691 (get_build_id_name): New function: Computes the name of the
692 separate debug info file for a bfd, based upon its build-id.
693 (check_build_id_file): New function: Checks to see if a separate
694 debug info file exists at the given location, and that its
695 build-id matches that of the original bfd.
696 (bfd_follow_build_id_debuglink): New function: Finds a separate
697 debug info file for a given bfd by using the build-id method.
698 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Try using the build-id
699 method of locating a separate debug info file before using the
700 debuglink method.
701 * bfd-in2.h: Regenerate.
702
9e659176
L
7032017-01-11 H.J. Lu <hongjiu.lu@intel.com>
704
705 PR ld/21038
706 * elf64-x86-64.c (elf_x86_64_eh_frame_bnd_plt): New.
707 (elf_x86_64_bnd_arch_bed): Use elf_x86_64_eh_frame_bnd_plt and
708 elf_x86_64_eh_frame_plt_got.
709 (elf_x86_64_size_dynamic_sections): Get unwind info from
710 elf_x86_64_bnd_arch_bed for the BND PLT.
711
f2e2d2f5
JS
7122017-01-11 Jeremy Soller <jackpot51@gmail.com>
713
714 * config.bfd: Add entries for i686-redox and x86_64-redox.
715
52b232b3
L
7162017-01-10 H.J. Lu <hongjiu.lu@intel.com>
717
718 * elf32-i386.c (elf_i386_check_relocs): Align .eh_frame section
719 to 4 bytes.
720 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Align
721 .eh_frame section to 4 bytes for x32.
722 (elf_x86_64_check_relocs): Likewise.
723
fff53dae
L
7242017-01-10 H.J. Lu <hongjiu.lu@intel.com>
725
726 PR ld/20830
727 * elf32-i386.c (elf_i386_eh_frame_plt_got): New.
728 (PLT_GOT_FDE_LENGTH): Likewise.
729 (elf_i386_plt_layout): Add eh_frame_plt_got and
730 eh_frame_plt_got_size.
731 (elf_i386_plt): Updated.
732 (elf_i386_link_hash_table): Add plt_got_eh_frame.
733 (elf_i386_check_relocs): Create .eh_frame section for .plt.got.
734 (elf_i386_size_dynamic_sections): Allocate and initialize
735 .eh_frame section for .plt.got.
736 (elf_i386_finish_dynamic_sections): Adjust .eh_frame section for
737 .plt.got.
738 (elf_i386_nacl_plt): Add FIXME for eh_frame_plt_got and
739 eh_frame_plt_got_size.
740 * elf64-x86-64.c (elf_x86_64_eh_frame_plt_got): New.
741 (PLT_GOT_FDE_LENGTH): Likewise.
742 (elf_x86_64_backend_data): Add eh_frame_plt_got and
743 eh_frame_plt_got_size.
744 (elf_x86_64_arch_bed): Updated.
745 (elf_x86_64_bnd_arch_bed): Add FIXME for eh_frame_plt_got and
746 eh_frame_plt_got_size.
747 (elf_x86_64_nacl_arch_bed): Likewise.
748 (elf_x86_64_link_hash_table): Add plt_got_eh_frame.
749 (elf_x86_64_check_relocs): Create .eh_frame section for .plt.got.
750 (elf_x86_64_size_dynamic_sections): Allocate and initialize
751 .eh_frame section for .plt.got.
752 (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section
753 for .plt.got.
754
f129e49f
L
7552017-01-10 H.J. Lu <hongjiu.lu@intel.com>
756
757 * elf32-i386.c (elf_i386_size_dynamic_sections): Set
758 plt_eh_frame->size to eh_frame_plt_size and use eh_frame_plt.
759
cd6581da
NC
7602017-01-09 Nick Clifton <nickc@redhat.com>
761
762 * dwarf2.c (lookup_address_in_function_table): Return early if
763 there are no functions in the given comp unit, or if the high
764 address of the last function in the comp unit is less than the
765 desired address.
766
98f02962
NC
7672017-01-09 Nick Clifton <nickc@redhat.com>
768
769 PR binutils/21013
770 * coffgen.c (_bfd_coff_get_external_symbols): Generate an error
771 message if there are too many symbols to load.
772
ae4fda66
JC
7732017-01-04 James Clarke <jrtc27@jrtc27.com>
774
775 * elf64-alpha.c (elf64_alpha_relax_opt_call): Don't set tsec_free
776 if relocs are cached.
777
de1010f4
RF
7782017-01-03 Rich Felker <bugdal@aerifal.cx>
779
780 PR ld/21017
781 * elf32-microblaze.c (microblaze_elf_check_relocs): Add an entry
782 for R_MICROBLAZE_GOTOFF_64.
783
09fe2662
NC
7842017-01-03 Nick Clifton <nickc@redhat.com>
785
786 * mach-o.c (bfd_mach_o_lookup_uuid_command): Fix compile time
787 warning about using a possibly uninitialised variable.
788
595e0a47
AM
7892017-01-02 Alan Modra <amodra@gmail.com>
790
791 * elf32-hppa.c (ensure_undef_weak_dynamic): New function.
792 (allocate_plt_static, allocate_dynrelocs): Use it.
793
7bd9df3b
AM
7942017-01-02 Alan Modra <amodra@gmail.com>
795
796 * elf-hppa.h (elf_hppa_fake_sections): Set SHF_INFO_LINK for
797 .PARISC.unwind section.
798
5b86074c
AM
7992017-01-02 Alan Modra <amodra@gmail.com>
800
801 PR ld/20989
802 * elfxx-sparc.c (gdop_relative_offset_ok): New function.
803 (_bfd_sparc_elf_relocate_section): Use it to validate GOT
804 indirect to GOT pointer relative code edit.
805
2571583a
AM
8062017-01-02 Alan Modra <amodra@gmail.com>
807
808 Update year range in copyright notice of all files.
809
5c1ad6b5 810For older changes see ChangeLog-2016
3499769a 811\f
5c1ad6b5 812Copyright (C) 2017 Free Software Foundation, Inc.
3499769a
AM
813
814Copying and distribution of this file, with or without modification,
815are permitted in any medium without royalty provided the copyright
816notice and this notice are preserved.
817
818Local Variables:
819mode: change-log
820left-margin: 8
821fill-column: 74
822version-control: never
823End:
This page took 0.118921 seconds and 4 git commands to generate.