Automatic date update in version.in
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
086554e8
HPN
12017-03-28 Hans-Peter Nilsson <hp@axis.com>
2
3 PR ld/16044
4 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Adjust BFD_ASSERT
5 to handle a local symbol with a hash-symbol-entry; without PLT.
6 Add BFD_ASSERT for an incidental case with GOT entry present.
7 (cris_elf_check_relocs): Increment PLT refcount only if the symbol
8 isn't forced-or-set local.
9
a6be0538
PC
102017-03-27 Pip Cet <pipcet@gmail.com>
11
12 * wasm-module.c: New file to support WebAssembly modules.
13 * wasm-module.h: New file to support WebAssembly modules.
14 * doc/webassembly.texi: Start documenting wasm-module.c.
15 * config.bfd: Add wasm_vec.
16 * targets.c: Likewise.
17 * configure.ac: Likewise.
18 * Makefile.am: Add entries for wasm-module.c.
19 * Makefile.in: Regenerate.
20 * configure: Regenerate.
21 * po/SRC-POTFILES.in: Regenerate.
22
79b1d3cb
PC
232017-03-27 Pip Cet <pipcet@gmail.com>
24
25 * cpu-wasm32.c: New file to support wasm32 architecture.
26 * elf32-wasm32.c: New file to support wasm32 architecture.
27 * Makefile.am: Add wasm32 architecture.
28 * archures.c: Likewise.
29 * config.bfd: Likewise.
30 * configure.ac: Likewise.
31 * targets.c: Likewise.
32 * Makefile.in: Regenerate.
33 * bfd-in2.h: Regenerate.
34 * configure: Regenerate.
35 * po/SRC-POTFILES.in: Regenerate.
36
aaed6f5b
AM
372017-03-20 Alan Modra <amodra@gmail.com>
38
39 PR 21266
40 * elf64-ppc.c (compare_symbols): Stabilize sort.
41
82e66161
AM
422017-03-18 Alan Modra <amodra@gmail.com>
43
44 * elf64-ppc.c (struct ppc_link_hash_table): Add
45 local_ifunc_resolver and maybe_local_ifunc_resolver.
46 (ppc_build_one_stub): Set flags on emitting dynamic
47 relocation to ifunc.
48 (ppc64_elf_relocate_section): Likewise.
49 (ppc64_elf_finish_dynamic_symbol): Likewise.
50 (ppc64_elf_finish_dynamic_sections): Error on DT_TEXTREL with
51 local dynamic relocs to ifuncs.
52 * elf32-ppc.c (struct ppc_elf_link_hash_table): Add
53 local_ifunc_resolver and maybe_local_ifunc_resolver.
54 (ppc_elf_relocate_section): Set flag on emitting dynamic
55 relocation to ifuncs.
56 (ppc_elf_finish_dynamic_symbol): Likewise.
57 (ppc_elf_finish_dynamic_sections): Error on DT_TEXTREL with local
58 dynamic relocs to ifuncs.
59
f955cccf
NC
602017-03-13 Nick Clifton <nickc@redhat.com>
61
62 PR binutils/21202
63 * reloc.c (BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC): Rename to
64 BFD_RELOC_AARCH64_TLSDESC_LD64_LO12.
65 (BFD_RELOC_AARCH64_TLSDESC_ADD_LO12_NC): Rename to
66 BFD_RELOC_AARCH64_TLSDESC_ADD_LO12.
67 * bfd-in2.h: Regenerate.
68 * libbfd.h: Regenerate.
69 * elfnn-aarch64.c (IS_AARCH64_TLS_RELAX_RELOC): Update reloc
70 names.
71 (IS_AARCH64_TLSDESC_RELOC): Likewise.
72 (elfNN_aarch64_howto_table): Likewise.
73 (aarch64_tls_transition_without_check): Likewise.
74 (aarch64_reloc_got_type): Likewise.
75 (elfNN_aarch64_final_link_relocate): Likewise.
76 (elfNN_aarch64_tls_relax): Likewise.
77 (elfNN_aarch64_relocate_section): Likewise.
78 (elfNN_aarch64_gc_sweep_hook): Likewise.
79 (elfNN_aarch64_check_relocs): Likewise.
80 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
81 (_bfd_aarch64_elf_resolve_relocation): Likewise.
82
4aef7643
AM
832017-03-11 Alan Modra <amodra@gmail.com>
84
85 * elf32-ppc.c: Remove ATTRIBUTE_UNUSED throughout when function
86 parameter is in fact used. Whitespace fixes.
87 * elf64-ppc.c: Likewise.
88
f03265d9
ST
892017-03-09 Sam Thursfield <sam.thursfield@codethink.co.uk>
90
91 * rs6000-core.c (CORE_NEW): Simplify macro when
92 AIX_CORE_DUMPX_CORE and BFD64 are true to avoid compile warning.
93
b1b07054
AM
942017-03-07 Alan Modra <amodra@gmail.com>
95
96 PR 21224
97 PR 20519
98 * elf64-ppc.c (ppc64_elf_relocate_section): Add missing
99 dyn_relocs check.
100
2e0ce1c8
AM
1012017-03-05 Alan Modra <amodra@gmail.com>
102
103 * elf-bfd.h (struct eh_cie_fde): Add u.cie.per_encoding_aligned8.
104 * elf-eh-frame.c (size_of_output_cie_fde): Don't align here.
105 (next_cie_fde_offset): New function.
106 (_bfd_elf_parse_eh_frame): Set u.cie.per_encoding_aligned8.
107 (_bfd_elf_discard_section_eh_frame): Align zero terminator to
108 four bytes. Align CIEs to four or eight bytes depending on
109 per_encoding_aligned8. Align FDEs according to their encoding.
110 Pad last FDE to output section alignment.
111 (_bfd_elf_write_section_eh_frame): Adjust to suit. Remove
112 assertion.
113 * elf64-ppc.c (glink_eh_frame_cie): Delete padding.
114 (ppc64_elf_size_stubs): Pad glink eh_frame as per elf-eh-frame.c.
115 (ppc64_elf_finish_dynamic_sections): Adjust to suit.
116
f98450c6
NC
1172017-03-02 Martin Bickel <binutils@ineranves.de>
118
119 PR ld/21212
120 * elf.c (rewrite_elf_program_header): Do not issue a warning for
d20928fa 121 empty segments which have a zero filesz, but a non-zero memsz.
f98450c6 122
673cff9b
AM
1232017-03-02 Alan Modra <amodra@gmail.com>
124
125 * elf32-ppc.c (ppc_elf_vle_split16): Correct insn mask typo.
126
3de43e7b
AM
1272017-02-28 Alan Modra <amodra@gmail.com>
128
129 * elf64-ppc.c (ppc64_elf_ha_reloc): Revert last change.
130 (ppc64_elf_relocate_section): Likewise.
131
4ef97a1b
AM
1322017-02-28 Alan Modra <amodra@gmail.com>
133
134 PR 20995
135 * elf32-nios2.c (nios2_elf32_relocate_section): Use htab
136 rather than elf32_nios2_hash_table or elf_hash_table.
137 (create_got_section): Likewise.
138 (nios2_elf32_finish_dynamic_symbol): Likewise.
139 (nios2_elf32_adjust_dynamic_symbol): Likewise.
140 (nios2_elf32_size_dynamic_sections): Likewise.
141 (nios2_elf32_check_relocs): Delete dynobj, sgot, and srelgot
142 vars. Use htab equivalents directly instead. Don't create
143 all dynamic sections on needing just the GOT. Use a goto
144 rather than a fall-through with reloc test. Ensure
145 htab->dynobj is set when making dynamic sreloc section.
146 (nios2_elf32_finish_dynamic_sections): Delete dynobj, use htab
147 equivalent directly instead. Don't segfault on looking for
148 .dynamic when dynamic sections have not been created. Don't
149 segfault on .got.plt being discarded.
150 (nios2_elf32_size_dynamic_sections): Delete plt and got vars.
151 Don't set "relocs" on .rela.plt. Do handle .sbss. Delete
152 fixme and another not so relevant comment.
153 (nios2_elf_add_symbol_hook): Delete dynobj var. If not
154 already set, set hash table dynobj on creating .sbss.
155
7ba71655
AM
1562017-02-28 Alan Modra <amodra@gmail.com>
157
158 * reloc.c (BFD_RELOC_PPC_16DX_HA): New.
159 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_16DX_HA>): New howto.
160 (ppc64_elf_reloc_type_lookup): Translate new bfd reloc.
161 (ppc64_elf_ha_reloc): Correct overflow test on REL16DX_HA.
162 (ppc64_elf_relocate_section): Likewise.
163 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_16DX_HA>): New howto.
164 (ppc_elf_reloc_type_lookup): Translate new bfd reloc.
165 (ppc_elf_check_relocs): Handle R_PPC_16DX_HA to pacify gcc.
166 * libbfd.h: Regenerate.
167 * bfd-in2.h: Regenerate.
168
afbf7e8e
AM
1692017-02-28 Alan Modra <amodra@gmail.com>
170
171 * elflink.c (_bfd_elf_create_dynamic_sections): Don't make
172 dynamic .data.rel.ro read-only.
173 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Compare section
174 rather than section flags when deciding where copy reloc goes.
175 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
176 * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise.
177 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise.
178 * elf32-metag.c (elf_metag_finish_dynamic_symbol): Likewise.
179 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Likewise.
180 * elf32-nios2.c (nios2_elf32_finish_dynamic_symbol): Likewise.
181 * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Likewise.
182 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Likewise.
183 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
184 * elf32-tic6x.c (elf32_tic6x_finish_dynamic_symbol): Likewise.
185 * elf32-tilepro.c (tilepro_elf_finish_dynamic_symbol): Likewise.
186 * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Likewise.
187 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
188 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
189 * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Likewise.
190 * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Likewise.
191 * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
192 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
193 * elfxx-tilegx.c (tilegx_elf_finish_dynamic_symbol): Likewise.
194
0e392101
MR
1952017-02-28 Maciej W. Rozycki <macro@imgtec.com>
196
197 * elfxx-mips.c (mips_elf_perform_relocation): Also handle the
198 `jalr $0, $25' instruction encoding.
199
bd757ca7
NC
2002017-02-27 Nick Clifton <nickc@redhat.com>
201
202 PR ld/21180
203 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Avoid
204 generating a seg-fault when encountering a symbol that has been
205 deleted by garbage collection.
206
034fed0b
AM
2072017-02-25 Alan Modra <amodra@gmail.com>
208
209 * elf32-arc.c (struct dynamic_sections): Delete.
210 (enum dyn_section_types): Delete.
211 (dyn_section_names): Delete.
212 (arc_create_dynamic_sections): Delete.
213 (elf_arc_finish_dynamic_sections): Don't call the above. Don't
214 segfault on discarded .rela.plt section.
215 (elf_arc_size_dynamic_sections): Formatting. Don't call
216 arc_create_dynamic_sections. Don't allocate memory for sections
217 handled by the generic linker. Correct code finding relocs in
218 read-only sections. Set SEC_EXCLUDE on zero size .got,
219 .got.plt, and .dynbss sections. Do set .interp for pies.
220
d0f744f9
AW
2212017-02-24 Andrew Waterman <andrew@sifive.com>
222
223 * elfnn-riscv.c (GP_NAME): New macro.
224 (riscv_global_pointer_value): Use it.
225 (_bfd_riscv_relax_lui): If symbol and global pointer are in same
226 output section, consider only that section's alignment.
227
5d58c733
MR
2282017-02-23 Maciej W. Rozycki <macro@imgtec.com>
229
230 * elfxx-mips.h (_bfd_mips_relax_section): Remove prototype.
231 * elfxx-mips.c (_bfd_mips_relax_section): Remove function.
232 * elf64-mips.c (bfd_elf64_bfd_relax_section): Remove macro.
233 * elfn32-mips.c (bfd_elf32_bfd_relax_section): Likewise.
234
c1556ecd
MR
2352017-02-23 Maciej W. Rozycki <macro@imgtec.com>
236
237 * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_JALR>
238 <R_MICROMIPS_JALR>: Discard relocation if `cross_mode_jump_p'
239 or misaligned.
240
5499c7c7
AM
2412017-02-23 Alan Modra <amodra@gmail.com>
242
243 PR 20744
244 * elf32-ppc.c (ppc_elf_howto_raw): Correct dst_mask on all VLE
245 16D relocations.
246 (ppc_elf_vle_split16): Correct field mask and shift for 16D relocs.
247 (ppc_elf_relocate_section): Correct calculation for VLE SDAREL
248 relocs.
249
902e9fc7
MR
2502017-02-22 Maciej W. Rozycki <macro@imgtec.com>
251
252 PR ld/20828
253 * elflink.c (bfd_elf_size_dynamic_sections): Move symbol version
254 processing ahead of the call to `elf_gc_sweep_symbol'.
255
758d96d8
NC
2562017-02-22 Nick Clifton <nickc@redhat.com>
257
258 PR binutils/21193
259 * opncls.c (bfd_create_gnu_debuglink_section): Give the newly
260 created section 4-byte alignment.
261
6528b6eb
AM
2622017-02-22 Alan Modra <amodra@gmail.com>
263
264 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Don't segfault
265 on .got or .plt output section being discarded by script.
266 * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Likewise. Move
267 vxworks splt temp.
268
24f1a751
AM
2692017-02-21 Alan Modra <amodra@gmail.com>
270
271 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only emit
272 DT_RELA, DT_RELASZ, and DT_RELAENT when DT_RELASZ is non-zero.
273
64487780
AM
2742017-02-20 Alan Modra <amodra@gmail.com>
275
276 PR 21181
277 * elflink.c (bfd_elf_final_link): Make DT_REL/DT_RELA zero
278 if DT_RELSZ/DT_RELASZ is zero.
279
6438d1be
NC
2802017-02-17 Nick Clifton <nickc@redhat.com>
281
282 * compress.c (bfd_get_full_section_contents): Remember to reduce
283 compressed size by the sizeof the compression header when
284 decompressing the contents.
285
4bc26c69
PA
2862017-02-17 Pedro Alves <palves@redhat.com>
287
288 * srec.c (Chunk): Rename to ...
289 (_bfd_srec_len): ... this.
290 (S3Forced): Rename to ...
291 (_bfd_srec_forceS3): ... this.
292 * objcopy.c: Adjust all references.
293
7ec22e0f
PA
2942017-02-17 Pedro Alves <palves@redhat.com>
295
296 * archive.c (bsd_write_armap): Rename to ...
297 (_bfd_bsd_write_armap): ... this.
298 (coff_write_armap): Rename to ...
299 (_bfd_coff_write_armap): ... this.
300 * libbfd-in.h (bsd_write_armap): Rename to ...
301 (_bfd_bsd_write_armap): ... this.
302 (coff_write_armap): Rename to ...
303 (_bfd_coff_write_armap): ... this.
304 * aout-target.h, aout-tic30.c: Adjust all users.
305 * libbfd.h: Regenerate.
306
8c8402cc
PA
3072017-02-17 Pedro Alves <palves@redhat.com>
308
309 * bfd-in.h (bfd_read, bfd_write): Adjust to rename.
310 (warn_deprecated): Rename to ...
311 (_bfd_warn_deprecated): ... this.
312 * libbfd.c (warn_deprecated): Rename to ...
313 (_bfd_warn_deprecated): ... this.
314 * bfd-in2.h: Regenerate.
315
c7c3d11b
PA
3162017-02-17 Pedro Alves <palves@redhat.com>
317
318 * bfdio.c (real_ftell): Rename to ...
319 (_bfd_real_ftell): ... this.
320 (real_fseek): Rename to ...
321 (_bfd_real_fseek): ... this.
322 (real_fopen): Rename to ...
323 (_bfd_real_fopen): ... this.
324 * libbfd-in.h (real_ftell): Rename to ...
325 (_bfd_real_ftell): ... this.
326 (real_fseek): Rename to ...
327 (_bfd_real_fseek): ... this.
328 (real_fopen): Rename to ...
329 (_bfd_real_fopen): ... this.
330 * cache.c, dwarf2.c, opncls.c: Adjust all callers.
331 * libbfd.h: Regenerate.
332
4265548c
PA
3332017-02-17 Pedro Alves <palves@redhat.com>
334
335 * dwarf2.c, elf-attrs.c, elf32-nds32.c: Adjust all callers.
336 * libbfd.c (read_unsigned_leb128): Rename to ...
337 (_bfd_read_unsigned_leb128): ... this.
338 (read_signed_leb128): Rename to ...
339 (_bfd_read_signed_leb128): ... this.
340 (safe_read_leb128): Rename to ...
341 (_bfd_safe_read_leb128): ... this.
342 * libbfd-in.h (read_unsigned_leb128): Rename to ...
343 (_bfd_read_unsigned_leb128): ... this.
344 (read_signed_leb128): Rename to ...
345 (_bfd_read_signed_leb128): ... this.
346 (safe_read_leb128): Rename to ...
347 (_bfd_safe_read_leb128): ... this.
348 * libbfd.h: Renegerate.
349
3239a423
AB
3502017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
351
352 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Perform symbol lookup
353 before trying to fine matching file and line information.
354
90ed9b8b
AB
3552017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
356
357 * dwarf2.c (struct dwarf2_debug): Add orig_bfd member.
358 (_bfd_dwarf2_slurp_debug_info): If stashed debug information does
359 not match current bfd, then reload debug information. Record bfd
360 we're loading debug info for in the stash. If we have debug
361 informatin in the cache then perform section placement before
362 returning.
363
a8c75b76
AM
3642017-02-16 Alan Modra <amodra@gmail.com>
365
366 PR 21000
367 * elf-bfd.h (struct elf_backend_data): Add no_page_alias.
368 * elfxx-target.h (elf_backend_no_page_alias): Define.
369 (elfNN_bed): Init new field.
370 * elf.c (assign_file_positions_for_load_sections): If no_page_alias
371 ensure PT_LOAD segment starts on a new page.
372 * elf32-hppa.c (elf_backend_no_page_alias): Define.
373
247d6c4c
AM
3742017-02-16 Alan Modra <amodra@gmail.com>
375
376 PR 21132
377 * elf32-hppa.c (allocate_plt_static): Allocate space for relocs
378 if pic.
379
90571206
JW
3802017-02-16 Jiong Wang <jiong.wang@arm.com>
381
382 * bfd.c (BFD_FLAGS_SAVED): Add BFD_LINKER_CREATED.
383 * bfd-in2.h: Regenerated.
384
2a568401
L
3852017-02-15 H.J. Lu <hongjiu.lu@intel.com>
386
387 PR ld/21168
388 * elf32-i386.c (elf_i386_relocate_section): Allow
389 "lea foo@GOT, %reg" in PIC.
390
a5def14f
L
3912017-02-15 H.J. Lu <hongjiu.lu@intel.com>
392
393 PR ld/20244
394 * elf32-i386.c (elf_i386_relocate_section): Properly get IFUNC
395 symbol name when reporting R_386_GOT32/R_386_GOT32X relocation
396 error against local IFUNC symbol without a base register for
397 PIC.
398
174d0a74
MR
3992017-02-15 Maciej W. Rozycki <macro@imgtec.com>
400
401 * elf32-ppc.c (ppc_elf_check_relocs): Use `%H:' rather than
402 `%P: %H:' with `info->callbacks->einfo'.
403 (ppc_elf_relocate_section): Likewise.
404 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
405 (ppc64_elf_edit_toc): Likewise.
406 (ppc64_elf_relocate_section): Likewise.
407
e278ae05
AM
4082017-02-14 Alan Modra <amodra@gmail.com>
409
410 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Support
411 --gc-keep-exported, and test versioned field of sym rather than
412 looking for @ in name.
413
10ddfe62
PD
4142017-02-13 Palmer Dabbelt <palmer@dabbelt.com>
415
416 * elfnn-riscv.c (riscv_global_pointer_value): Change _gp to
417 __global_pointer$.
418
d11135f5
NC
4192017-02-13 Nick Clifton <nickc@redhat.com>
420
421 PR binutils/21151
422 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Check for an invalid
423 unit length field.
424
cc162427
AW
4252017-02-07 Andrew Waterman <andrew@sifive.com>
426
427 * elfnn-riscv.c (riscv_elf_finish_dynamic_sections): Only write PLT
428 entry size if PLT header is written.
429
3d044c0c
SL
4302017-02-06 Sheldon Lobo <sheldon.lobo@oracle.com>
431
432 Fix sparc64 dynamic relocation processing to use the dynamic
433 symbol count.
434 * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Use 'dynamic'
435 to determine if bfd_get_symcount() or bfd_get_dynamic_symcount()
436 should be used.
437
1b7e3d2f
NC
4382017-02-03 Nick Clifton <nickc@redhat.com>
439
440 PR 21096
441 * coffcode.h (coff_write_object_contents): Enlarge size of
442 s_name_buf in order to avoid compile time warning about possible
443 integer truncation.
444 * elf32-nds32.c (nds32_elf_ex9_import_table): Mask off lower
445 32-bits of insn value before printing into buffer.
446
e17b0c35
MR
4472017-02-02 Maciej W. Rozycki <macro@imgtec.com>
448
449 * elfxx-mips.c (mips_elf_hash_sort_data): Add
450 `max_local_dynindx'.
451 (mips_elf_sort_hash_table): Handle it.
452 (mips_elf_sort_hash_table_f) <GGA_NONE>: For forced local
453 symbols bump up `max_local_dynindx' rather than
454 `max_non_got_dynindx'.
455
55f8b9d2
MR
4562017-02-02 Maciej W. Rozycki <macro@imgtec.com>
457
458 * elfxx-mips.c (mips_elf_hash_sort_data): Convert the
459 `min_got_dynindx', `max_unref_got_dynindx' and
460 `max_non_got_dynindx' members to the `bfd_size_type' data type.
461 (mips_elf_sort_hash_table): Adjust accordingly.
462
0f8c4b60
MR
4632017-02-02 Maciej W. Rozycki <macro@imgtec.com>
464
465 * elfxx-mips.c (mips_elf_sort_hash_table): Use `htab' throughout
466 to access the hash table.
467
17a80fa8
MR
4682017-02-02 Maciej W. Rozycki <macro@imgtec.com>
469
470 * elfxx-mips.c (mips_elf_sort_hash_table): Move assertion on
471 non-NULL `htab' to the beginning.
472
8f56d4fd
MR
4732017-02-02 Maciej W. Rozycki <macro@imgtec.com>
474
475 * elflink.c (elf_gc_sweep): Wrap overlong line.
476
8b10b0b3
MR
4772017-01-30 Maciej W. Rozycki <macro@imgtec.com>
478
479 * elfxx-mips.h (_bfd_mips_elf_insn32): Rename prototype to...
480 (_bfd_mips_elf_linker_flags): ... this. Add another parameter.
481 * elfxx-mips.c (mips_elf_link_hash_table): Add
482 `ignore_branch_isa' member.
483 (mips_elf_perform_relocation): Do not treat an ISA mode mismatch
484 in branch relocation calculation as an error if
485 `ignore_branch_isa' has been set.
486 (_bfd_mips_elf_insn32): Rename to...
487 (_bfd_mips_elf_linker_flags): ... this. Rename the `on'
488 parameter to `insn32' and add an `ignore_branch_isa' parameter.
489 Handle the new parameter.
490
1fbd05e1
HPN
4912017-01-27 Hans-Peter Nilsson <hp@axis.com>
492
22d9a0de
HPN
493 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Remove now unused
494 local variable dynobj.
495
1fbd05e1
HPN
496 PR ld/20995
497 * elf32-cris.c (elf_cris_size_dynamic_sections): Handle sdynrelro.
498 (elf_cris_adjust_dynamic_symbol): Place variables copied into the
499 executable from read-only sections into sdynrelro.
500 (elf_cris_finish_dynamic_symbol): Select sreldynrelro for
501 dynamic relocs in sdynrelro.
502 (elf_backend_want_dynrelro): Define.
503
4a7324e1
SH
5042017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
505
506 * config.bfd (*-*-rtemsaout*): Mark as removed.
507
c75b4ebd
SH
5082017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
509
510 * config.bfd (powerpcle-*-rtems*): Do not mark as removed.
511 (arm-*-rtems*): Move to (arm*-*-eabi*).
512 (i[3-7]86-*-rtems*): Move to (i[3-7]86-*-elf*).
513 (m68-*-rtems*): Move to (m68*-*-elf*).
514
850d84f6
SH
5152017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
516
517 * config.bfd (*-*-rtemscoff*): Mark as removed.
518
b531344c
MR
5192017-01-24 Maciej W. Rozycki <macro@imgtec.com>
520
521 PR ld/20828
522 * elflink.c (bfd_elf_record_link_assignment): Revert last
523 change and don't ever clear `forced_local'. Set `mark'
524 unconditionally.
525 (elf_gc_sweep_symbol_info, elf_gc_sweep_symbol): Reorder within
526 file.
527 (elf_gc_sweep): Move the call to `elf_gc_sweep_symbol'...
528 (bfd_elf_size_dynamic_sections): ... here.
529 * elf32-ppc.c (ppc_elf_tls_setup): Don't clear `forced_local'
530 and set `mark' instead in `__tls_get_addr_opt' processing.
531 * elf64-ppc.c (ppc64_elf_tls_setup): Likewise.
532
f0158f44
AM
5332017-01-24 Alan Modra <amodra@gmail.com>
534
535 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Merge two cases
536 where dynamic relocs are preferable. Allow ifunc too.
537 (ensure_undefweak_dynamic): New function.
538 (allocate_dynrelocs): Use it here. Move plt handling last and
539 don't make symbols dynamic, simplifying loop. Only make undef
540 weak symbols with GOT entries dynamic. Correct condition
541 for GOT relocs. Handle dynamic relocs on ifuncs. Correct
542 comments. Remove goto.
543 (ppc_elf_relocate_section): Correct test for using dynamic
544 symbol on GOT relocs. Rearrange test for emitting GOT relocs
545 to suit. Set up explicit tls_index entries and implicit GOT
546 tls_index entries resolvable at link time for
547 __tls_get_addr_opt. Simplify test to clear mem for prelink.
548 * elf64-ppc.c (allocate_got): Correct condition for GOT relocs.
549 (ensure_undefweak_dynamic): New function.
550 (allocate_dynrelocs): Use it here. Only make undef weak symbols
551 with GOT entries dynamic. Remove unnecessary test of
552 WILL_CALL_FINISH_DYNAMIC_SYMBOL in PLT handling.
553 (ppc64_elf_relocate_section): Correct test for using dynamic
554 symbol on GOT relocs. Rearrange test for emitting GOT relocs
555 to suit. Set up explicit tls_index entries and implicit GOT
556 tls_index entries resolvable at link time for __tls_get_addr_opt.
557 Simplify expression to clear mem for prelink.
558
2d0ca824
YN
5592017-01-23 Yury Norov <ynorov@caviumnetworks.com>
560
561 * elfnn-aarch64.c: Fix relaxations for ILP32 mode.
562
7f784814
JW
5632017-01-20 Jiong Wang <jiong.wang@arm.com>
564
565 * elfnn-aarch64.c (elf_aarch64_hash_symbol): New function.
566 (elf_backend_hash_symbol): Define.
567
81ff47b3
MR
5682017-01-18 Maciej W. Rozycki <macro@imgtec.com>
569
570 PR ld/20828
571 * elflink.c (bfd_elf_record_link_assignment): Clear any
572 `forced_local' marking for DSO symbols that are not being
573 provided.
574
640d6bfd
KLC
5752017-01-17 Kuan-Lin Chen <kuanlinchentw@gmail.com>
576
577 * elfnn-riscv.c (riscv_elf_object_p): New function.
578
8361ed4d
L
5792017-01-12 H.J. Lu <hongjiu.lu@intel.com>
580
581 PR ld/21038
582 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add
583 plt_bnd_eh_frame.
584 (elf_x86_64_check_relocs): Create .eh_frame section for the
585 .plt.bnd section.
586 (elf_x86_64_size_dynamic_sections): Allocate and initialize
587 .eh_frame section for the .plt.bnd section.
588 (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section
589 for the .plt.bnd section.
590
2425a30e
NC
5912017-01-12 Nick Clifton <nickc@redhat.com>
592
593 PR binutils/20876
594 * opncls.c (find_separate_debug_file): Add include_dirs
595 parameter. Only include the directory part of the bfd's filename
596 in search paths if include_dirs is true. Add a couple of extra
597 locations for looking for debug files.
598 ( bfd_follow_gnu_debuglink): Update invocation of
599 find_separate_debug_file.
600 (bfd_follow_gnu_debugaltlink): Likewise.
601 (get_build_id): New function: Finds the build-id of the given bfd.
602 (get_build_id_name): New function: Computes the name of the
603 separate debug info file for a bfd, based upon its build-id.
604 (check_build_id_file): New function: Checks to see if a separate
605 debug info file exists at the given location, and that its
606 build-id matches that of the original bfd.
607 (bfd_follow_build_id_debuglink): New function: Finds a separate
608 debug info file for a given bfd by using the build-id method.
609 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Try using the build-id
610 method of locating a separate debug info file before using the
611 debuglink method.
612 * bfd-in2.h: Regenerate.
613
9e659176
L
6142017-01-11 H.J. Lu <hongjiu.lu@intel.com>
615
616 PR ld/21038
617 * elf64-x86-64.c (elf_x86_64_eh_frame_bnd_plt): New.
618 (elf_x86_64_bnd_arch_bed): Use elf_x86_64_eh_frame_bnd_plt and
619 elf_x86_64_eh_frame_plt_got.
620 (elf_x86_64_size_dynamic_sections): Get unwind info from
621 elf_x86_64_bnd_arch_bed for the BND PLT.
622
f2e2d2f5
JS
6232017-01-11 Jeremy Soller <jackpot51@gmail.com>
624
625 * config.bfd: Add entries for i686-redox and x86_64-redox.
626
52b232b3
L
6272017-01-10 H.J. Lu <hongjiu.lu@intel.com>
628
629 * elf32-i386.c (elf_i386_check_relocs): Align .eh_frame section
630 to 4 bytes.
631 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Align
632 .eh_frame section to 4 bytes for x32.
633 (elf_x86_64_check_relocs): Likewise.
634
fff53dae
L
6352017-01-10 H.J. Lu <hongjiu.lu@intel.com>
636
637 PR ld/20830
638 * elf32-i386.c (elf_i386_eh_frame_plt_got): New.
639 (PLT_GOT_FDE_LENGTH): Likewise.
640 (elf_i386_plt_layout): Add eh_frame_plt_got and
641 eh_frame_plt_got_size.
642 (elf_i386_plt): Updated.
643 (elf_i386_link_hash_table): Add plt_got_eh_frame.
644 (elf_i386_check_relocs): Create .eh_frame section for .plt.got.
645 (elf_i386_size_dynamic_sections): Allocate and initialize
646 .eh_frame section for .plt.got.
647 (elf_i386_finish_dynamic_sections): Adjust .eh_frame section for
648 .plt.got.
649 (elf_i386_nacl_plt): Add FIXME for eh_frame_plt_got and
650 eh_frame_plt_got_size.
651 * elf64-x86-64.c (elf_x86_64_eh_frame_plt_got): New.
652 (PLT_GOT_FDE_LENGTH): Likewise.
653 (elf_x86_64_backend_data): Add eh_frame_plt_got and
654 eh_frame_plt_got_size.
655 (elf_x86_64_arch_bed): Updated.
656 (elf_x86_64_bnd_arch_bed): Add FIXME for eh_frame_plt_got and
657 eh_frame_plt_got_size.
658 (elf_x86_64_nacl_arch_bed): Likewise.
659 (elf_x86_64_link_hash_table): Add plt_got_eh_frame.
660 (elf_x86_64_check_relocs): Create .eh_frame section for .plt.got.
661 (elf_x86_64_size_dynamic_sections): Allocate and initialize
662 .eh_frame section for .plt.got.
663 (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section
664 for .plt.got.
665
f129e49f
L
6662017-01-10 H.J. Lu <hongjiu.lu@intel.com>
667
668 * elf32-i386.c (elf_i386_size_dynamic_sections): Set
669 plt_eh_frame->size to eh_frame_plt_size and use eh_frame_plt.
670
cd6581da
NC
6712017-01-09 Nick Clifton <nickc@redhat.com>
672
673 * dwarf2.c (lookup_address_in_function_table): Return early if
674 there are no functions in the given comp unit, or if the high
675 address of the last function in the comp unit is less than the
676 desired address.
677
98f02962
NC
6782017-01-09 Nick Clifton <nickc@redhat.com>
679
680 PR binutils/21013
681 * coffgen.c (_bfd_coff_get_external_symbols): Generate an error
682 message if there are too many symbols to load.
683
ae4fda66
JC
6842017-01-04 James Clarke <jrtc27@jrtc27.com>
685
686 * elf64-alpha.c (elf64_alpha_relax_opt_call): Don't set tsec_free
687 if relocs are cached.
688
de1010f4
RF
6892017-01-03 Rich Felker <bugdal@aerifal.cx>
690
691 PR ld/21017
692 * elf32-microblaze.c (microblaze_elf_check_relocs): Add an entry
693 for R_MICROBLAZE_GOTOFF_64.
694
09fe2662
NC
6952017-01-03 Nick Clifton <nickc@redhat.com>
696
697 * mach-o.c (bfd_mach_o_lookup_uuid_command): Fix compile time
698 warning about using a possibly uninitialised variable.
699
595e0a47
AM
7002017-01-02 Alan Modra <amodra@gmail.com>
701
702 * elf32-hppa.c (ensure_undef_weak_dynamic): New function.
703 (allocate_plt_static, allocate_dynrelocs): Use it.
704
7bd9df3b
AM
7052017-01-02 Alan Modra <amodra@gmail.com>
706
707 * elf-hppa.h (elf_hppa_fake_sections): Set SHF_INFO_LINK for
708 .PARISC.unwind section.
709
5b86074c
AM
7102017-01-02 Alan Modra <amodra@gmail.com>
711
712 PR ld/20989
713 * elfxx-sparc.c (gdop_relative_offset_ok): New function.
714 (_bfd_sparc_elf_relocate_section): Use it to validate GOT
715 indirect to GOT pointer relative code edit.
716
2571583a
AM
7172017-01-02 Alan Modra <amodra@gmail.com>
718
719 Update year range in copyright notice of all files.
720
5c1ad6b5 721For older changes see ChangeLog-2016
3499769a 722\f
5c1ad6b5 723Copyright (C) 2017 Free Software Foundation, Inc.
3499769a
AM
724
725Copying and distribution of this file, with or without modification,
726are permitted in any medium without royalty provided the copyright
727notice and this notice are preserved.
728
729Local Variables:
730mode: change-log
731left-margin: 8
732fill-column: 74
733version-control: never
734End:
This page took 0.139909 seconds and 4 git commands to generate.