PowerPC addpcis fix
[binutils-gdb.git] / bfd / ChangeLog
1 2017-02-28 Alan Modra <amodra@gmail.com>
2
3 * reloc.c (BFD_RELOC_PPC_16DX_HA): New.
4 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_16DX_HA>): New howto.
5 (ppc64_elf_reloc_type_lookup): Translate new bfd reloc.
6 (ppc64_elf_ha_reloc): Correct overflow test on REL16DX_HA.
7 (ppc64_elf_relocate_section): Likewise.
8 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_16DX_HA>): New howto.
9 (ppc_elf_reloc_type_lookup): Translate new bfd reloc.
10 (ppc_elf_check_relocs): Handle R_PPC_16DX_HA to pacify gcc.
11 * libbfd.h: Regenerate.
12 * bfd-in2.h: Regenerate.
13
14 2017-02-28 Alan Modra <amodra@gmail.com>
15
16 * elflink.c (_bfd_elf_create_dynamic_sections): Don't make
17 dynamic .data.rel.ro read-only.
18 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Compare section
19 rather than section flags when deciding where copy reloc goes.
20 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
21 * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise.
22 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise.
23 * elf32-metag.c (elf_metag_finish_dynamic_symbol): Likewise.
24 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Likewise.
25 * elf32-nios2.c (nios2_elf32_finish_dynamic_symbol): Likewise.
26 * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Likewise.
27 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Likewise.
28 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
29 * elf32-tic6x.c (elf32_tic6x_finish_dynamic_symbol): Likewise.
30 * elf32-tilepro.c (tilepro_elf_finish_dynamic_symbol): Likewise.
31 * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Likewise.
32 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
33 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
34 * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Likewise.
35 * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Likewise.
36 * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
37 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
38 * elfxx-tilegx.c (tilegx_elf_finish_dynamic_symbol): Likewise.
39
40 2017-02-28 Maciej W. Rozycki <macro@imgtec.com>
41
42 * elfxx-mips.c (mips_elf_perform_relocation): Also handle the
43 `jalr $0, $25' instruction encoding.
44
45 2017-02-27 Nick Clifton <nickc@redhat.com>
46
47 PR ld/21180
48 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Avoid
49 generating a seg-fault when encountering a symbol that has been
50 deleted by garbage collection.
51
52 2017-02-25 Alan Modra <amodra@gmail.com>
53
54 * elf32-arc.c (struct dynamic_sections): Delete.
55 (enum dyn_section_types): Delete.
56 (dyn_section_names): Delete.
57 (arc_create_dynamic_sections): Delete.
58 (elf_arc_finish_dynamic_sections): Don't call the above. Don't
59 segfault on discarded .rela.plt section.
60 (elf_arc_size_dynamic_sections): Formatting. Don't call
61 arc_create_dynamic_sections. Don't allocate memory for sections
62 handled by the generic linker. Correct code finding relocs in
63 read-only sections. Set SEC_EXCLUDE on zero size .got,
64 .got.plt, and .dynbss sections. Do set .interp for pies.
65
66 2017-02-24 Andrew Waterman <andrew@sifive.com>
67
68 * elfnn-riscv.c (GP_NAME): New macro.
69 (riscv_global_pointer_value): Use it.
70 (_bfd_riscv_relax_lui): If symbol and global pointer are in same
71 output section, consider only that section's alignment.
72
73 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
74
75 * elfxx-mips.h (_bfd_mips_relax_section): Remove prototype.
76 * elfxx-mips.c (_bfd_mips_relax_section): Remove function.
77 * elf64-mips.c (bfd_elf64_bfd_relax_section): Remove macro.
78 * elfn32-mips.c (bfd_elf32_bfd_relax_section): Likewise.
79
80 2017-02-23 Maciej W. Rozycki <macro@imgtec.com>
81
82 * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_JALR>
83 <R_MICROMIPS_JALR>: Discard relocation if `cross_mode_jump_p'
84 or misaligned.
85
86 2017-02-23 Alan Modra <amodra@gmail.com>
87
88 PR 20744
89 * elf32-ppc.c (ppc_elf_howto_raw): Correct dst_mask on all VLE
90 16D relocations.
91 (ppc_elf_vle_split16): Correct field mask and shift for 16D relocs.
92 (ppc_elf_relocate_section): Correct calculation for VLE SDAREL
93 relocs.
94
95 2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
96
97 PR ld/20828
98 * elflink.c (bfd_elf_size_dynamic_sections): Move symbol version
99 processing ahead of the call to `elf_gc_sweep_symbol'.
100
101 2017-02-22 Nick Clifton <nickc@redhat.com>
102
103 PR binutils/21193
104 * opncls.c (bfd_create_gnu_debuglink_section): Give the newly
105 created section 4-byte alignment.
106
107 2017-02-22 Alan Modra <amodra@gmail.com>
108
109 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Don't segfault
110 on .got or .plt output section being discarded by script.
111 * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Likewise. Move
112 vxworks splt temp.
113
114 2017-02-21 Alan Modra <amodra@gmail.com>
115
116 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only emit
117 DT_RELA, DT_RELASZ, and DT_RELAENT when DT_RELASZ is non-zero.
118
119 2017-02-20 Alan Modra <amodra@gmail.com>
120
121 PR 21181
122 * elflink.c (bfd_elf_final_link): Make DT_REL/DT_RELA zero
123 if DT_RELSZ/DT_RELASZ is zero.
124
125 2017-02-17 Nick Clifton <nickc@redhat.com>
126
127 * compress.c (bfd_get_full_section_contents): Remember to reduce
128 compressed size by the sizeof the compression header when
129 decompressing the contents.
130
131 2017-02-17 Pedro Alves <palves@redhat.com>
132
133 * srec.c (Chunk): Rename to ...
134 (_bfd_srec_len): ... this.
135 (S3Forced): Rename to ...
136 (_bfd_srec_forceS3): ... this.
137 * objcopy.c: Adjust all references.
138
139 2017-02-17 Pedro Alves <palves@redhat.com>
140
141 * archive.c (bsd_write_armap): Rename to ...
142 (_bfd_bsd_write_armap): ... this.
143 (coff_write_armap): Rename to ...
144 (_bfd_coff_write_armap): ... this.
145 * libbfd-in.h (bsd_write_armap): Rename to ...
146 (_bfd_bsd_write_armap): ... this.
147 (coff_write_armap): Rename to ...
148 (_bfd_coff_write_armap): ... this.
149 * aout-target.h, aout-tic30.c: Adjust all users.
150 * libbfd.h: Regenerate.
151
152 2017-02-17 Pedro Alves <palves@redhat.com>
153
154 * bfd-in.h (bfd_read, bfd_write): Adjust to rename.
155 (warn_deprecated): Rename to ...
156 (_bfd_warn_deprecated): ... this.
157 * libbfd.c (warn_deprecated): Rename to ...
158 (_bfd_warn_deprecated): ... this.
159 * bfd-in2.h: Regenerate.
160
161 2017-02-17 Pedro Alves <palves@redhat.com>
162
163 * bfdio.c (real_ftell): Rename to ...
164 (_bfd_real_ftell): ... this.
165 (real_fseek): Rename to ...
166 (_bfd_real_fseek): ... this.
167 (real_fopen): Rename to ...
168 (_bfd_real_fopen): ... this.
169 * libbfd-in.h (real_ftell): Rename to ...
170 (_bfd_real_ftell): ... this.
171 (real_fseek): Rename to ...
172 (_bfd_real_fseek): ... this.
173 (real_fopen): Rename to ...
174 (_bfd_real_fopen): ... this.
175 * cache.c, dwarf2.c, opncls.c: Adjust all callers.
176 * libbfd.h: Regenerate.
177
178 2017-02-17 Pedro Alves <palves@redhat.com>
179
180 * dwarf2.c, elf-attrs.c, elf32-nds32.c: Adjust all callers.
181 * libbfd.c (read_unsigned_leb128): Rename to ...
182 (_bfd_read_unsigned_leb128): ... this.
183 (read_signed_leb128): Rename to ...
184 (_bfd_read_signed_leb128): ... this.
185 (safe_read_leb128): Rename to ...
186 (_bfd_safe_read_leb128): ... this.
187 * libbfd-in.h (read_unsigned_leb128): Rename to ...
188 (_bfd_read_unsigned_leb128): ... this.
189 (read_signed_leb128): Rename to ...
190 (_bfd_read_signed_leb128): ... this.
191 (safe_read_leb128): Rename to ...
192 (_bfd_safe_read_leb128): ... this.
193 * libbfd.h: Renegerate.
194
195 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
196
197 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Perform symbol lookup
198 before trying to fine matching file and line information.
199
200 2017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
201
202 * dwarf2.c (struct dwarf2_debug): Add orig_bfd member.
203 (_bfd_dwarf2_slurp_debug_info): If stashed debug information does
204 not match current bfd, then reload debug information. Record bfd
205 we're loading debug info for in the stash. If we have debug
206 informatin in the cache then perform section placement before
207 returning.
208
209 2017-02-16 Alan Modra <amodra@gmail.com>
210
211 PR 21000
212 * elf-bfd.h (struct elf_backend_data): Add no_page_alias.
213 * elfxx-target.h (elf_backend_no_page_alias): Define.
214 (elfNN_bed): Init new field.
215 * elf.c (assign_file_positions_for_load_sections): If no_page_alias
216 ensure PT_LOAD segment starts on a new page.
217 * elf32-hppa.c (elf_backend_no_page_alias): Define.
218
219 2017-02-16 Alan Modra <amodra@gmail.com>
220
221 PR 21132
222 * elf32-hppa.c (allocate_plt_static): Allocate space for relocs
223 if pic.
224
225 2017-02-16 Jiong Wang <jiong.wang@arm.com>
226
227 * bfd.c (BFD_FLAGS_SAVED): Add BFD_LINKER_CREATED.
228 * bfd-in2.h: Regenerated.
229
230 2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
231
232 PR ld/21168
233 * elf32-i386.c (elf_i386_relocate_section): Allow
234 "lea foo@GOT, %reg" in PIC.
235
236 2017-02-15 H.J. Lu <hongjiu.lu@intel.com>
237
238 PR ld/20244
239 * elf32-i386.c (elf_i386_relocate_section): Properly get IFUNC
240 symbol name when reporting R_386_GOT32/R_386_GOT32X relocation
241 error against local IFUNC symbol without a base register for
242 PIC.
243
244 2017-02-15 Maciej W. Rozycki <macro@imgtec.com>
245
246 * elf32-ppc.c (ppc_elf_check_relocs): Use `%H:' rather than
247 `%P: %H:' with `info->callbacks->einfo'.
248 (ppc_elf_relocate_section): Likewise.
249 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
250 (ppc64_elf_edit_toc): Likewise.
251 (ppc64_elf_relocate_section): Likewise.
252
253 2017-02-14 Alan Modra <amodra@gmail.com>
254
255 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Support
256 --gc-keep-exported, and test versioned field of sym rather than
257 looking for @ in name.
258
259 2017-02-13 Palmer Dabbelt <palmer@dabbelt.com>
260
261 * elfnn-riscv.c (riscv_global_pointer_value): Change _gp to
262 __global_pointer$.
263
264 2017-02-13 Nick Clifton <nickc@redhat.com>
265
266 PR binutils/21151
267 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Check for an invalid
268 unit length field.
269
270 2017-02-07 Andrew Waterman <andrew@sifive.com>
271
272 * elfnn-riscv.c (riscv_elf_finish_dynamic_sections): Only write PLT
273 entry size if PLT header is written.
274
275 2017-02-06 Sheldon Lobo <sheldon.lobo@oracle.com>
276
277 Fix sparc64 dynamic relocation processing to use the dynamic
278 symbol count.
279 * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Use 'dynamic'
280 to determine if bfd_get_symcount() or bfd_get_dynamic_symcount()
281 should be used.
282
283 2017-02-03 Nick Clifton <nickc@redhat.com>
284
285 PR 21096
286 * coffcode.h (coff_write_object_contents): Enlarge size of
287 s_name_buf in order to avoid compile time warning about possible
288 integer truncation.
289 * elf32-nds32.c (nds32_elf_ex9_import_table): Mask off lower
290 32-bits of insn value before printing into buffer.
291
292 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
293
294 * elfxx-mips.c (mips_elf_hash_sort_data): Add
295 `max_local_dynindx'.
296 (mips_elf_sort_hash_table): Handle it.
297 (mips_elf_sort_hash_table_f) <GGA_NONE>: For forced local
298 symbols bump up `max_local_dynindx' rather than
299 `max_non_got_dynindx'.
300
301 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
302
303 * elfxx-mips.c (mips_elf_hash_sort_data): Convert the
304 `min_got_dynindx', `max_unref_got_dynindx' and
305 `max_non_got_dynindx' members to the `bfd_size_type' data type.
306 (mips_elf_sort_hash_table): Adjust accordingly.
307
308 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
309
310 * elfxx-mips.c (mips_elf_sort_hash_table): Use `htab' throughout
311 to access the hash table.
312
313 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
314
315 * elfxx-mips.c (mips_elf_sort_hash_table): Move assertion on
316 non-NULL `htab' to the beginning.
317
318 2017-02-02 Maciej W. Rozycki <macro@imgtec.com>
319
320 * elflink.c (elf_gc_sweep): Wrap overlong line.
321
322 2017-01-30 Maciej W. Rozycki <macro@imgtec.com>
323
324 * elfxx-mips.h (_bfd_mips_elf_insn32): Rename prototype to...
325 (_bfd_mips_elf_linker_flags): ... this. Add another parameter.
326 * elfxx-mips.c (mips_elf_link_hash_table): Add
327 `ignore_branch_isa' member.
328 (mips_elf_perform_relocation): Do not treat an ISA mode mismatch
329 in branch relocation calculation as an error if
330 `ignore_branch_isa' has been set.
331 (_bfd_mips_elf_insn32): Rename to...
332 (_bfd_mips_elf_linker_flags): ... this. Rename the `on'
333 parameter to `insn32' and add an `ignore_branch_isa' parameter.
334 Handle the new parameter.
335
336 2017-01-27 Hans-Peter Nilsson <hp@axis.com>
337
338 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Remove now unused
339 local variable dynobj.
340
341 PR ld/20995
342 * elf32-cris.c (elf_cris_size_dynamic_sections): Handle sdynrelro.
343 (elf_cris_adjust_dynamic_symbol): Place variables copied into the
344 executable from read-only sections into sdynrelro.
345 (elf_cris_finish_dynamic_symbol): Select sreldynrelro for
346 dynamic relocs in sdynrelro.
347 (elf_backend_want_dynrelro): Define.
348
349 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
350
351 * config.bfd (*-*-rtemsaout*): Mark as removed.
352
353 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
354
355 * config.bfd (powerpcle-*-rtems*): Do not mark as removed.
356 (arm-*-rtems*): Move to (arm*-*-eabi*).
357 (i[3-7]86-*-rtems*): Move to (i[3-7]86-*-elf*).
358 (m68-*-rtems*): Move to (m68*-*-elf*).
359
360 2017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
361
362 * config.bfd (*-*-rtemscoff*): Mark as removed.
363
364 2017-01-24 Maciej W. Rozycki <macro@imgtec.com>
365
366 PR ld/20828
367 * elflink.c (bfd_elf_record_link_assignment): Revert last
368 change and don't ever clear `forced_local'. Set `mark'
369 unconditionally.
370 (elf_gc_sweep_symbol_info, elf_gc_sweep_symbol): Reorder within
371 file.
372 (elf_gc_sweep): Move the call to `elf_gc_sweep_symbol'...
373 (bfd_elf_size_dynamic_sections): ... here.
374 * elf32-ppc.c (ppc_elf_tls_setup): Don't clear `forced_local'
375 and set `mark' instead in `__tls_get_addr_opt' processing.
376 * elf64-ppc.c (ppc64_elf_tls_setup): Likewise.
377
378 2017-01-24 Alan Modra <amodra@gmail.com>
379
380 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Merge two cases
381 where dynamic relocs are preferable. Allow ifunc too.
382 (ensure_undefweak_dynamic): New function.
383 (allocate_dynrelocs): Use it here. Move plt handling last and
384 don't make symbols dynamic, simplifying loop. Only make undef
385 weak symbols with GOT entries dynamic. Correct condition
386 for GOT relocs. Handle dynamic relocs on ifuncs. Correct
387 comments. Remove goto.
388 (ppc_elf_relocate_section): Correct test for using dynamic
389 symbol on GOT relocs. Rearrange test for emitting GOT relocs
390 to suit. Set up explicit tls_index entries and implicit GOT
391 tls_index entries resolvable at link time for
392 __tls_get_addr_opt. Simplify test to clear mem for prelink.
393 * elf64-ppc.c (allocate_got): Correct condition for GOT relocs.
394 (ensure_undefweak_dynamic): New function.
395 (allocate_dynrelocs): Use it here. Only make undef weak symbols
396 with GOT entries dynamic. Remove unnecessary test of
397 WILL_CALL_FINISH_DYNAMIC_SYMBOL in PLT handling.
398 (ppc64_elf_relocate_section): Correct test for using dynamic
399 symbol on GOT relocs. Rearrange test for emitting GOT relocs
400 to suit. Set up explicit tls_index entries and implicit GOT
401 tls_index entries resolvable at link time for __tls_get_addr_opt.
402 Simplify expression to clear mem for prelink.
403
404 2017-01-23 Yury Norov <ynorov@caviumnetworks.com>
405
406 * elfnn-aarch64.c: Fix relaxations for ILP32 mode.
407
408 2017-01-20 Jiong Wang <jiong.wang@arm.com>
409
410 * elfnn-aarch64.c (elf_aarch64_hash_symbol): New function.
411 (elf_backend_hash_symbol): Define.
412
413 2017-01-18 Maciej W. Rozycki <macro@imgtec.com>
414
415 PR ld/20828
416 * elflink.c (bfd_elf_record_link_assignment): Clear any
417 `forced_local' marking for DSO symbols that are not being
418 provided.
419
420 2017-01-17 Kuan-Lin Chen <kuanlinchentw@gmail.com>
421
422 * elfnn-riscv.c (riscv_elf_object_p): New function.
423
424 2017-01-12 H.J. Lu <hongjiu.lu@intel.com>
425
426 PR ld/21038
427 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add
428 plt_bnd_eh_frame.
429 (elf_x86_64_check_relocs): Create .eh_frame section for the
430 .plt.bnd section.
431 (elf_x86_64_size_dynamic_sections): Allocate and initialize
432 .eh_frame section for the .plt.bnd section.
433 (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section
434 for the .plt.bnd section.
435
436 2017-01-12 Nick Clifton <nickc@redhat.com>
437
438 PR binutils/20876
439 * opncls.c (find_separate_debug_file): Add include_dirs
440 parameter. Only include the directory part of the bfd's filename
441 in search paths if include_dirs is true. Add a couple of extra
442 locations for looking for debug files.
443 ( bfd_follow_gnu_debuglink): Update invocation of
444 find_separate_debug_file.
445 (bfd_follow_gnu_debugaltlink): Likewise.
446 (get_build_id): New function: Finds the build-id of the given bfd.
447 (get_build_id_name): New function: Computes the name of the
448 separate debug info file for a bfd, based upon its build-id.
449 (check_build_id_file): New function: Checks to see if a separate
450 debug info file exists at the given location, and that its
451 build-id matches that of the original bfd.
452 (bfd_follow_build_id_debuglink): New function: Finds a separate
453 debug info file for a given bfd by using the build-id method.
454 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Try using the build-id
455 method of locating a separate debug info file before using the
456 debuglink method.
457 * bfd-in2.h: Regenerate.
458
459 2017-01-11 H.J. Lu <hongjiu.lu@intel.com>
460
461 PR ld/21038
462 * elf64-x86-64.c (elf_x86_64_eh_frame_bnd_plt): New.
463 (elf_x86_64_bnd_arch_bed): Use elf_x86_64_eh_frame_bnd_plt and
464 elf_x86_64_eh_frame_plt_got.
465 (elf_x86_64_size_dynamic_sections): Get unwind info from
466 elf_x86_64_bnd_arch_bed for the BND PLT.
467
468 2017-01-11 Jeremy Soller <jackpot51@gmail.com>
469
470 * config.bfd: Add entries for i686-redox and x86_64-redox.
471
472 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
473
474 * elf32-i386.c (elf_i386_check_relocs): Align .eh_frame section
475 to 4 bytes.
476 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Align
477 .eh_frame section to 4 bytes for x32.
478 (elf_x86_64_check_relocs): Likewise.
479
480 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
481
482 PR ld/20830
483 * elf32-i386.c (elf_i386_eh_frame_plt_got): New.
484 (PLT_GOT_FDE_LENGTH): Likewise.
485 (elf_i386_plt_layout): Add eh_frame_plt_got and
486 eh_frame_plt_got_size.
487 (elf_i386_plt): Updated.
488 (elf_i386_link_hash_table): Add plt_got_eh_frame.
489 (elf_i386_check_relocs): Create .eh_frame section for .plt.got.
490 (elf_i386_size_dynamic_sections): Allocate and initialize
491 .eh_frame section for .plt.got.
492 (elf_i386_finish_dynamic_sections): Adjust .eh_frame section for
493 .plt.got.
494 (elf_i386_nacl_plt): Add FIXME for eh_frame_plt_got and
495 eh_frame_plt_got_size.
496 * elf64-x86-64.c (elf_x86_64_eh_frame_plt_got): New.
497 (PLT_GOT_FDE_LENGTH): Likewise.
498 (elf_x86_64_backend_data): Add eh_frame_plt_got and
499 eh_frame_plt_got_size.
500 (elf_x86_64_arch_bed): Updated.
501 (elf_x86_64_bnd_arch_bed): Add FIXME for eh_frame_plt_got and
502 eh_frame_plt_got_size.
503 (elf_x86_64_nacl_arch_bed): Likewise.
504 (elf_x86_64_link_hash_table): Add plt_got_eh_frame.
505 (elf_x86_64_check_relocs): Create .eh_frame section for .plt.got.
506 (elf_x86_64_size_dynamic_sections): Allocate and initialize
507 .eh_frame section for .plt.got.
508 (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section
509 for .plt.got.
510
511 2017-01-10 H.J. Lu <hongjiu.lu@intel.com>
512
513 * elf32-i386.c (elf_i386_size_dynamic_sections): Set
514 plt_eh_frame->size to eh_frame_plt_size and use eh_frame_plt.
515
516 2017-01-09 Nick Clifton <nickc@redhat.com>
517
518 * dwarf2.c (lookup_address_in_function_table): Return early if
519 there are no functions in the given comp unit, or if the high
520 address of the last function in the comp unit is less than the
521 desired address.
522
523 2017-01-09 Nick Clifton <nickc@redhat.com>
524
525 PR binutils/21013
526 * coffgen.c (_bfd_coff_get_external_symbols): Generate an error
527 message if there are too many symbols to load.
528
529 2017-01-04 James Clarke <jrtc27@jrtc27.com>
530
531 * elf64-alpha.c (elf64_alpha_relax_opt_call): Don't set tsec_free
532 if relocs are cached.
533
534 2017-01-03 Rich Felker <bugdal@aerifal.cx>
535
536 PR ld/21017
537 * elf32-microblaze.c (microblaze_elf_check_relocs): Add an entry
538 for R_MICROBLAZE_GOTOFF_64.
539
540 2017-01-03 Nick Clifton <nickc@redhat.com>
541
542 * mach-o.c (bfd_mach_o_lookup_uuid_command): Fix compile time
543 warning about using a possibly uninitialised variable.
544
545 2017-01-02 Alan Modra <amodra@gmail.com>
546
547 * elf32-hppa.c (ensure_undef_weak_dynamic): New function.
548 (allocate_plt_static, allocate_dynrelocs): Use it.
549
550 2017-01-02 Alan Modra <amodra@gmail.com>
551
552 * elf-hppa.h (elf_hppa_fake_sections): Set SHF_INFO_LINK for
553 .PARISC.unwind section.
554
555 2017-01-02 Alan Modra <amodra@gmail.com>
556
557 PR ld/20989
558 * elfxx-sparc.c (gdop_relative_offset_ok): New function.
559 (_bfd_sparc_elf_relocate_section): Use it to validate GOT
560 indirect to GOT pointer relative code edit.
561
562 2017-01-02 Alan Modra <amodra@gmail.com>
563
564 Update year range in copyright notice of all files.
565
566 For older changes see ChangeLog-2016
567 \f
568 Copyright (C) 2017 Free Software Foundation, Inc.
569
570 Copying and distribution of this file, with or without modification,
571 are permitted in any medium without royalty provided the copyright
572 notice and this notice are preserved.
573
574 Local Variables:
575 mode: change-log
576 left-margin: 8
577 fill-column: 74
578 version-control: never
579 End: