[ARC] Object attributes.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
53a346d8
CZ
12017-05-10 Claudiu Zissulescu <claziss@synopsys.com>
2
3 * elf32-arc.c (FEATURE_LIST_NAME): Define.
4 (CONFLICT_LIST): Likewise.
5 (opcode/arc-attrs.h): Include.
6 (arc_elf_print_private_bfd_data): Print OSABI v4 flag.
7 (arc_extract_features): New file.
8 (arc_stralloc): Likewise.
9 (arc_elf_merge_attributes): Likewise.
10 (arc_elf_merge_private_bfd_data): Use object attributes.
11 (bfd_arc_get_mach_from_attributes): New function.
12 (arc_elf_object_p): Use object attributes.
13 (arc_elf_final_write_processing): Likewise.
14 (elf32_arc_obj_attrs_arg_type): New function.
15 (elf32_arc_obj_attrs_handle_unknown): Likewise.
16 (elf32_arc_section_from_shdr): Likewise.
17 (elf_backend_obj_attrs_vendor): Define.
18 (elf_backend_obj_attrs_section): Likewise.
19 (elf_backend_obj_attrs_arg_type): Likewise.
20 (elf_backend_obj_attrs_section_type): Likewise.
21 (elf_backend_obj_attrs_handle_unknown): Likewise.
22 (elf_backend_section_from_shdr): Likewise.
23
e645cf40
AG
242017-05-09 Andrew Goedhart <Andrewgoedhart@simplepowersolutions.co.za>
25
26 PR ld/21458
27 * elf32-arm.c (elf32_arm_final_link_relocate): Set the bottom bit
28 of the value when resolving a R_ARM_THM_ALU_PREL_11_0 relocation
29 and the destination is a Thumb symbol.
30
dd9e66ee
L
312017-05-08 H.J. Lu <hongjiu.lu@intel.com>
32
33 * elf32-i386.c (elf_i386_get_synthetic_symtab): Add missing
34 initializer to silence GCC 4.2.
35 * lf64-x86-64.c (elf_x86_64_get_synthetic_symtab): Likewise.
36
38b12349
L
372017-05-08 H.J. Lu <hongjiu.lu@intel.com>
38
39 * elf64-x86-64.c (PLT_ENTRY_SIZE): Renamed to ...
40 (LAZY_PLT_ENTRY_SIZE): This.
41 (NON_LAZY_PLT_ENTRY_SIZE): New.
42 (elf_x86_64_plt0_entry): Renamed to ...
43 (elf_x86_64_lazy_plt0_entry): This.
44 (elf_x86_64_plt_entry): Renamed to ...
45 (elf_x86_64_lazy_plt_entry): This.
46 (elf_x86_64_bnd_plt0_entry): Renamed to ...
47 (elf_x86_64_lazy_bnd_plt0_entry): This.
48 (elf_x86_64_legacy_plt_entry): Removed.
49 (elf_x86_64_bnd_plt_entry): Renamed to ...
50 (elf_x86_64_lazy_bnd_plt_entry): This.
51 (elf_x86_64_legacy_plt2_entry): Renamed to ...
52 (elf_x86_64_non_lazy_plt_entry): This.
53 (elf_x86_64_bnd_plt2_entry): Renamed to ...
54 (elf_x86_64_non_lazy_bnd_plt_entry): This.
55 (elf_x86_64_eh_frame_plt): Renamed to ...
56 (elf_x86_64_eh_frame_lazy_plt): This.
57 (elf_x86_64_eh_frame_bnd_plt): Renamed to ...
58 (elf_x86_64_eh_frame_lazy_bnd_plt): This.
59 (elf_x86_64_eh_frame_plt_got): Renamed to ...
60 (elf_x86_64_eh_frame_non_lazy_plt): This.
61 (elf_x86_64_lazy_plt_layout): New.
62 (elf_x86_64_non_lazy_plt_layout): Likewise.
63 (elf_x86_64_plt_layout): Likewise.
64 (elf_x86_64_backend_data): Remove PLT layout information. Add
65 os for target system.
66 (GET_PLT_ENTRY_SIZE): Removed.
67 (elf_x86_64_lazy_plt): New.
68 (elf_x86_64_non_lazy_plt): Likewise.
69 (elf_x86_64_lazy_bnd_plt): Likewise.
70 (elf_x86_64_non_lazy_bnd_plt): Likewise.
71 (elf_x86-64_arch_bed): Updated.
72 (elf_x86_64_link_hash_table): Add plt, lazy_plt and non_lazy_plt.
73 (elf_x86_64_create_dynamic_sections): Removed.
74 (elf_x86_64_check_relocs): Don't check elf.dynobj. Don't call
75 _bfd_elf_create_ifunc_sections nor _bfd_elf_create_got_section.
76 (elf_x86-64_adjust_dynamic_symbol): Updated.
77 (elf_x86_64_allocate_dynrelocs): Updated. Pass 0 as PLT header
78 size to _bfd_elf_allocate_ifunc_dyn_relocs and don't allocate
79 size for PLT0 if there is no PLT0. Get plt_entry_size from
80 non_lazy_plt for non-lazy PLT entries.
81 (elf_x86_64_size_dynamic_sections): Updated. Get plt_entry_size
82 from non_lazy_plt for non-lazy PLT entries.
83 (elf_x86-64_relocate_section): Updated. Properly get PLT index
84 if there is no PLT0.
85 (elf_x86_64_finish_dynamic_symbol): Updated. Fill the first slot
86 in the PLT entry with generic PLT layout. Fill the non-lazy PLT
87 entries with non-lazy PLT layout. Don't fill the second and third
88 slots in the PLT entry if there is no PLT0.
89 (elf_x86_64_finish_dynamic_sections): Updated. Don't fill PLT0
90 if there is no PLT0. Set sh_entsize on the .plt.got section.
91 (compare_relocs): New.
92 (elf_x86_64_plt_type): Likewise.
93 (elf_x86_64_plt): Likewise.
94 (elf_x86_64_nacl_plt): New. Forward declaration.
95 (elf_x86_64_get_plt_sym_val): Removed.
96 (elf_x86_64_get_synthetic_symtab): Rewrite to check PLT sections
97 against all dynamic relocations.
98 (elf_x86_64_link_setup_gnu_properties): New function.
99 (elf_backend_create_dynamic_sections): Updated.
100 (elf_backend_setup_gnu_properties): New.
101 (elf_x86_64_nacl_plt): New.
102 (elf_x86_64_nacl_arch_bed): Updated.
103
f604c2a2
L
1042017-05-08 H.J. Lu <hongjiu.lu@intel.com>
105
106 * elf32-i386.c (PLT_ENTRY_SIZE): Renamed to ...
107 (LAZY_PLT_ENTRY_SIZE): This.
108 (NON_LAZY_PLT_ENTRY_SIZE): New.
109 (elf_i386_plt0_entry): Renamed to ...
110 (elf_i386_lazy_plt0_entry): This.
111 (elf_i386_plt_entry): Renamed to ...
112 (elf_i386_lazy_plt_entry): This.
113 (elf_i386_pic_plt0_entry): Renamed to ...
114 (elf_i386_pic_lazy_plt0_entry): This.
115 (elf_i386_pic_plt_entry): Renamed to ...
116 (elf_i386_pic_lazy_plt_entry): This.
117 (elf_i386_got_plt_entry): Renamed to ...
118 (elf_i386_non_lazy_plt_entry): This.
119 (elf_i386_pic_got_plt_entry): Renamed to ...
120 (elf_i386_pic_non_lazy_plt_entry): This.
121 (elf_i386_eh_frame_plt): Renamed to ...
122 (elf_i386_eh_frame_lazy_plt): This.
123 (elf_i386_eh_frame_plt_got): Renamed to ...
124 (elf_i386_eh_frame_non_lazy_plt): This.
125 (elf_i386_plt_layout): Renamed to ...
126 (elf_i386_lazy_plt_layout): This. Remove eh_frame_plt_got and
127 eh_frame_plt_got_size.
128 (elf_i386_non_lazy_plt_layout): New.
129 (elf_i386_plt_layout): Likewise.
130 (elf_i386_non_lazy_plt): Likewise.
131 (GET_PLT_ENTRY_SIZE): Removed.
132 (elf_i386_plt): Renamed to ...
133 (elf_i386_lazy_plt): This.
134 (elf_i386_backend_data): Remove plt. Rename is_vxworks to os.
135 (elf_i386_arch_bed): Updated.
136 (elf_i386_link_hash_table): Add plt, lazy_plt and non_lazy_plt.
137 (elf_i386_create_dynamic_sections): Removed.
138 (elf_i386_check_relocs): Don't check elf.dynobj. Don't call
139 _bfd_elf_create_ifunc_sections nor _bfd_elf_create_got_section.
140 (elf_i386_adjust_dynamic_symbol): Updated.
141 (elf_i386_allocate_dynrelocs): Updated. Pass 0 as PLT header
142 size to _bfd_elf_allocate_ifunc_dyn_relocs and don't allocate
143 size for PLT0 if there is no PLT0.
144 (elf_i386_size_dynamic_sections): Updated. Check whether GOT
145 output section is discarded only if GOT isn't empty.
146 (elf_i386_relocate_section): Updated. Properly get PLT index
147 if there is no PLT0.
148 (elf_i386_finish_dynamic_symbol): Updated. Don't fill the
149 second and third slots in the PLT entry if there is no PLT0.
150 (elf_i386_finish_dynamic_sections): Updated. Don't fill PLT0
151 if there is no PLT0. Set sh_entsize on the .plt.got section.
152 (elf_i386_nacl_plt): Forward declaration.
153 (elf_i386_get_plt_sym_val): Removed.
154 (elf_i386_get_synthetic_symtab): Rewrite to check PLT sections
155 against all dynamic relocations.
156 (elf_i386_link_setup_gnu_properties): New function.
157 (elf_backend_create_dynamic_sections): Updated.
158 (elf_backend_setup_gnu_properties): New.
159 (elf_i386_nacl_plt): Updated.
160 (elf_i386_nacl_arch_bed): Likewise.
161 (elf_i386_vxworks_arch_bed): Likewise.
162
046734ff
TP
1632017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
164
165 * elflink.c (elf_output_implib): Remove executable flag from import
166 library bfd.
167 * elf32-arm.c (elf32_arm_filter_implib_symbols): Assert that the import
168 library is a relocatable object file.
169
b660e9eb
SKS
1702017-05-01 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
171
172 PR ld/21404
173 * elf32-avr.c (avr_should_move_sym): New function.
174 (avr_should_reduce_sym_size): Likewise.
175 (avr_should_increase_sym_size): Likewise.
176 (elf32_avr_relax_delete_bytes): Adjust symbol values
177 and sizes by calling new functions.
178
763a5fa4
PD
1792017-05-01 Palmer Dabbelt <palmer@dabbelt.com>
180
181 * config.bfd (riscv32-*): Enable rv64.
182
73ec947d
AM
1832017-05-02 Alan Modra <amodra@gmail.com>
184
185 PR 21384
186 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Test h->non_elf
187 rather than h->root.type == bfd_link_hash_new.
188 (bfd_elf_record_link_assignment): Similarly, call
189 bfd_elf_link_mark_dynamic_symbol when h->non_elf.
190
a941291c
AM
1912017-04-29 Alan Modra <amodra@gmail.com>
192
193 PR 21432
194 * reloc.c (reloc_offset_in_range): New function.
195 (bfd_perform_relocation, bfd_install_relocation): Use it.
196 (_bfd_final_link_relocate): Likewise.
197
750eaa47
L
1982017-04-28 H.J. Lu <hongjiu.lu@intel.com>
199
200 * elf32-i386.c (elf_i386_allocate_dynrelocs): Check plt_got
201 before using .plt.got.
202 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
203
5b66fac4
L
2042017-04-27 H.J. Lu <hongjiu.lu@intel.com>
205
206 * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Use "="
207 instead of "+=" to update 0.
208
de9a3c42
L
2092017-04-27 H.J. Lu <hongjiu.lu@intel.com>
210
211 * elf32-i386.c (elf_i386_create_dynamic_sections): Create the
212 .plt.got section here.
213 (elf_i386_check_relocs): Don't create the .plt.got section.
214 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Create
215 the .plt.got and .plt.bnd sections here.
216 (elf_x86_64_check_relocs): Don't create the .plt.got nor
217 .plt.bnd sections.
218
da3d25af
L
2192017-04-27 H.J. Lu <hongjiu.lu@intel.com>
220
221 * elf64-x86-64.c (elf_x86_64_link_hash_entry): Remove
222 has_bnd_reloc.
223 (elf_x86_64_link_hash_newfunc): Don't clear has_bnd_reloc.
224 (elf_x86_64_copy_indirect_symbol): Don't copy has_bnd_reloc.
225 (elf_x86_64_check_relocs): Don't set has_bnd_reloc.
226 (elf_x86_64_finish_dynamic_symbol): Check bndplt instead of
227 has_bnd_reloc.
228
fba37edd
L
2292017-04-27 H.J. Lu <hongjiu.lu@intel.com>
230
231 * elf-bfd.h (elf_backend_data): Change setup_gnu_properties
232 to return bfd *.
233 (_bfd_elf_link_setup_gnu_properties): Return bfd *.
234 * elf-properties.c (_bfd_elf_link_setup_gnu_properties): Return
235 the first relocatable ELF input with GNU properties.
236
1f78f649
L
2372017-04-27 H.J. Lu <hongjiu.lu@intel.com>
238
239 * elf32-i386.c (elf_i386_finish_dynamic_sections): Simplify
240 VxWorks for non-PIC.
241
76c20d54
AM
2422017-04-27 Alan Modra <amodra@gmail.com>
243
244 * elf-bfd.h (struct elf_backend_data): Make asection param of
245 elf_backend_eh_frame_address_size const.
246 (_bfd_elf_eh_frame_address_size): Likewise.
247 * elf32-m32c.c (_bfd_m32c_elf_eh_frame_address_size): Likewise.
248 * elf32-msp430.c (elf32_msp430_eh_frame_address_size): Likewise.
249 * elfxx-mips.c (_bfd_mips_elf_eh_frame_address_size): Likewise.
250 * elfxx-mips.h (_bfd_mips_elf_eh_frame_address_size): Likewise.
251 * elf-eh-frame.c (_bfd_elf_eh_frame_address_size): Likewise.
252 (next_cie_fde_offset): Constify params.
253 (offset_adjust, adjust_eh_frame_local_symbols): Likewise.
254
d7153c4a
AM
2552017-04-27 Alan Modra <amodra@gmail.com>
256
257 * elf-bfd.h (struct eh_cie_fde): Add aug_str_len and aug_data_len.
258 (_bfd_elf_adjust_eh_frame_global_symbol): Declare.
259 * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Set aug_str_len and
260 aug_data_len.
261 (offset_adjust): New function.
262 (_bfd_elf_adjust_eh_frame_global_symbol): Likewise.
263 (adjust_eh_frame_local_symbols): Likewise.
264 (_bfd_elf_discard_section_eh_frame): Call adjust_eh_frame_local_symbols
265 after changing anything. Return true if anything changed.
266 * elflink.c (bfd_elf_discard_info): If .eh_frame changed, call
267 _bfd_elf_adjust_eh_frame_global_symbol for globals.
268
641338d8
AM
2692017-04-27 Alan Modra <amodra@gmail.com>
270
271 * elflink.c (_bfd_elf_link_hash_hide_symbol): Clear dynstr_index
272 when force_local.
273
21d68fcd
AM
2742017-04-27 Alan Modra <amodra@gmail.com>
275
276 * elf32-ppc.c (UNDEFWEAK_NO_DYNAMIC_RELOC): Define.
277 (ppc_elf_select_plt_layout, ppc_elf_tls_setup): Use it.
278 (ppc_elf_adjust_dynamic_symbol, allocate_dynrelocs): Likewise.
279 (ppc_elf_relocate_section): Likewise. Delete silly optimisation
280 for undef and undefweak dyn_relocs.
281 * elf64-ppc.c (UNDEFWEAK_NO_DYNAMIC_RELOC): Define.
282 (ppc64_elf_adjust_dynamic_symbol, ppc64_elf_tls_setup): Use it.
283 (allocate_got, allocate_dynrelocs): Likewise.
284 (ppc64_elf_relocate_section): Likewise.
285
97d343d4
L
2862017-04-26 H.J. Lu <hongjiu.lu@intel.com>
287
288 * elf32-i386.c (elf_i386_size_dynamic_sections): Alwasys add
289 DT_PLTRELSZ, DT_PLTREL and DT_JMPREL for .rel.plt section.
290 * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Alwasys
291 add DT_PLTRELSZ, DT_PLTREL and DT_JMPREL for .rela.plt section.
292
04b31182
NC
2932017-04-26 Nick Clifton <nickc@redhat.com>
294
295 PR binutils/21434
296 * reloc.c (bfd_perform_relocation): Check for a negative address
297 in the reloc.
298
23ec1e32
MR
2992017-04-26 Maciej W. Rozycki <macro@imgtec.com>
300
301 PR ld/21334
302 * elf-bfd.h (elf_backend_data): Add `always_renumber_dynsyms'
303 member.
304 * elfxx-target.h [!elf_backend_always_renumber_dynsyms]
305 (elf_backend_always_renumber_dynsyms): Define.
306 (elfNN_bed): Initialize `always_renumber_dynsyms' member.
307 * elfxx-mips.h (elf_backend_always_renumber_dynsyms): Define.
308 * elflink.c (bfd_elf_size_dynamic_sections): Also call
309 `_bfd_elf_link_renumber_dynsyms' if the backend has requested
310 it.
311 (bfd_elf_size_dynsym_hash_dynstr): Likewise.
312
c46cec3a
MR
3132017-04-26 Maciej W. Rozycki <macro@imgtec.com>
314
315 * elflink.c (bfd_elf_size_dynamic_sections): Only call
316 `_bfd_elf_link_renumber_dynsyms' after section GC if dynamic
317 sections have been created.
318
e63d1232
NC
3192017-04-26 Nick Clifton <nickc@redhat.com>
320
321 PR binutils/21431
322 * compress.c (bfd_init_section_compress_status): Check the return
323 value from bfd_malloc.
324
9e9821dd
L
3252017-04-24 H.J. Lu <hongjiu.lu@intel.com>
326
327 * elf64-x86-64.c (elf_x86_64_link_hash_entry): Add
328 no_finish_dynamic_symbol.
329 (elf_x86_64_link_hash_newfunc): Set no_finish_dynamic_symbol to
330 0.
331 (elf_x86_64_allocate_dynrelocs): If a symbol isn't undefined
332 weak symbol, don't make it dynamic.
333 (elf_x86_64_relocate_section): If a symbol isn't dynamic in PIC,
334 set no_finish_dynamic_symbol and generate R_X86_64_RELATIVE
335 relocation for GOT reference.
336 (elf_x86_64_finish_dynamic_symbol): Abort if
337 no_finish_dynamic_symbol isn't 0.
338
0dc9a308
L
3392017-04-24 H.J. Lu <hongjiu.lu@intel.com>
340
341 PR ld/21402
342 * elf32-i386.c (elf_i386_allocate_dynrelocs): If a symbol isn't
343 undefined weak symbol, don't make it dynamic.
344 (elf_i386_relocate_section): If a symbol isn't dynamic in PIC,
345 set no_finish_dynamic_symbol and generate R_386_RELATIVE
346 relocation for R_386_GOT32.
347
1587442d
L
3482017-04-24 H.J. Lu <hongjiu.lu@intel.com>
349
350 PR ld/21425
351 * elf32-i386.c (ELF_MAXPAGESIZE): Set to 0x1000 for VxWorks.
352
7eacd66b
AM
3532017-04-23 Alan Modra <amodra@gmail.com>
354
355 PR 21414
356 * section.c (GLOBAL_SYM_INIT): Make available in bfd.h.
357 * elf.c (lcomm_sym): New.
358 (_bfd_elf_large_com_section): Use lcomm_sym section symbol.
359 * bfd-in2.h: Regenerate.
360
bce964aa
AM
3612017-04-23 Alan Modra <amodra@gmail.com>
362
363 PR 21412
364 * elf-bfd.h (struct elf_backend_data <get_reloc_section>): Change
365 parameters and comment.
366 (_bfd_elf_get_reloc_section): Delete.
367 (_bfd_elf_plt_get_reloc_section): Declare.
368 * elf.c (_bfd_elf_plt_get_reloc_section, elf_get_reloc_section):
369 New functions. Don't blindly skip over assumed .rel/.rela prefix.
370 Extracted from..
371 (_bfd_elf_get_reloc_section): ..here. Delete.
372 (assign_section_numbers): Call elf_get_reloc_section.
373 * elf64-ppc.c (elf_backend_get_reloc_section): Define.
374 * elfxx-target.h (elf_backend_get_reloc_section): Update.
375
97e83a10
AM
3762017-04-23 Alan Modra <amodra@gmail.com>
377
378 PR 21409
379 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Don't segfault when
380 no symbols.
381
e133d005
L
3822017-04-21 H.J. Lu <hongjiu.lu@intel.com>
383
384 PR ld/21402
385 * elf32-i386.c (elf_i386_link_hash_entry): Add
386 no_finish_dynamic_symbol.
387 (elf_i386_link_hash_newfunc): Set no_finish_dynamic_symbol to 0.
388 (elf_i386_allocate_dynrelocs): If a symbol isn't undefined weak
389 symbol, don't make it dynamic in PIE.
390 (elf_i386_relocate_section): If a symbol isn't dynamic in PIE,
391 set no_finish_dynamic_symbol and generate R_386_RELATIVE
392 relocation for R_386_GOT32
393 (elf_i386_finish_dynamic_symbol): Abort if no_finish_dynamic_symbol
394 isn't 0.
395
3c5fce9b
L
3962017-04-21 H.J. Lu <hongjiu.lu@intel.com>
397
398 PR ld/19617
399 PR ld/21086
400 * elflink.c (elf_link_add_object_symbols): Require
401 --no-dynamic-linker with -E/--dynamic-list when creating
402 dynamic sections.
403
0fad2956
MR
4042017-04-20 Maciej W. Rozycki <macro@imgtec.com>
405
406 * elflink.c (_bfd_elf_symbol_refs_local_p): Always return TRUE
407 if forced local.
408
64575f78
MR
4092017-04-20 Maciej W. Rozycki <macro@imgtec.com>
410
411 * elfxx-mips.c (_bfd_mips_elf_final_link): Reorder comment about
412 dynamic symbol sorting.
413
59fa66c5
L
4142017-04-20 H.J. Lu <hongjiu.lu@intel.com>
415
416 PR ld/21382
417 * elflink.c (elf_link_add_object_symbols): Preserve
418 dynamic_ref_after_ir_def when restoring the symbol table for
419 unneeded dynamic object.
420
e492d2f8
L
4212017-04-19 H.J. Lu <hongjiu.lu@intel.com>
422
423 PR ld/21401
424 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Don't abort
425 on on undefined IFUNC symbol in the second PLT.
426
10169134
WAF
4272017-04-19 Wedson Almeida Filho <wedsonaf@gmail.com>
428
429 * peXXigen.c (pe_print_reloc): Correct chunk_end.
430
954b63d4
AM
4312017-04-19 Alan Modra <amodra@gmail.com>
432
433 * elflink.c (_bfd_elf_adjust_dynamic_symbol): Hide undefweak
434 or make dynamic for info->dynamic_undefined_weak 0 and 1.
435 * elf32-ppc.c:Formatting.
436 (ensure_undefweak_dynamic): Don't make dynamic when
437 info->dynamic_undefined_weak is zero.
438 (allocate_dynrelocs): Discard undefweak dyn_relocs for
439 info->dynamic_undefined_weak. Discard undef dyn_relocs when
440 not default visibility. Discard undef and undefweak
441 dyn_relocs earlier.
442 (ppc_elf_relocate_section): Adjust to suit.
443 * elf64-ppc.c: Formatting.
444 (ensure_undefweak_dynamic): Don't make dynamic when
445 info->dynamic_undefined_weak is zero.
446 (allocate_dynrelocs): Discard undefweak dyn_relocs for
447 info->dynamic_undefined_weak. Discard them earlier.
448
e6699019
L
4492017-04-17 H.J. Lu <hongjiu.lu@intel.com>
450
451 PR ld/21389
452 * elflink.c (bfd_elf_size_dynamic_sections): Get soname index
453 before generating the version definition section.
454
c5d37467
AM
4552017-04-17 Alan Modra <amodra@gmail.com>
456
457 * elflink.c (_bfd_elf_merge_symbol): Undo dynamic linking
458 state when a regular object file defines a symbol with
459 incompatible type to that defined by an earlier shared lib.
460
63a5468a
AM
4612017-04-13 Alan Modra <amodra@gmail.com>
462
463 * coffcode.h: Wrap some overly long _bfd_error_handler args.
464 * elf.c: Likewise.
465 * elf32-arm.c: Likewise.
466 * elf32-i386.c: Likewise.
467 * elf32-mep.c: Likewise.
468 * elf64-ia64-vms.c: Likewise.
469 * elf64-x86-64.c: Likewise.
470 * elflink.c: Likewise.
471 * elfnn-ia64.c: Likewise.
472 * elfxx-mips.c: Likewise.
473
dae82561
AM
4742017-04-13 Alan Modra <amodra@gmail.com>
475
476 * aoutx.h: Use %B and %A in error messages throughout file.
477 * aout-cris.c: Likewise.
478 * archive.c: Likewise.
479 * binary.c: Likewise.
480 * coff-rs6000.c: Likewise.
481 * coff-tic4x.c: Likewise.
482 * coffcode.h: Likewise.
483 * coffgen.c: Likewise.
484 * cofflink.c: Likewise.
485 * coffswap.h: Likewise.
486 * cpu-arm.c: Likewise.
487 * elf-eh-frame.c: Likewise.
488 * elf-m10300.c: Likewise.
489 * elf.c: Likewise.
490 * elf32-arc.c: Likewise.
491 * elf32-arm.c: Likewise.
492 * elf32-bfin.c: Likewise.
493 * elf32-frv.c: Likewise.
494 * elf32-iq2000.c: Likewise.
495 * elf32-m32c.c: Likewise.
496 * elf32-microblaze.c: Likewise.
497 * elf32-nds32.c: Likewise.
498 * elf32-rl78.c: Likewise.
499 * elf32-rx.c: Likewise.
500 * elf32-score.c: Likewise.
501 * elf32-score7.c: Likewise.
502 * elf32-sh64.c: Likewise.
503 * elf32-v850.c: Likewise.
504 * elf32-vax.c: Likewise.
505 * elf32-visium.c: Likewise.
506 * elf64-ia64-vms.c: Likewise.
507 * elf64-mmix.c: Likewise.
508 * elf64-sh64.c: Likewise.
509 * elfcode.h: Likewise.
510 * elfnn-aarch64.c: Likewise.
511 * elfnn-ia64.c: Likewise.
512 * elfxx-mips.c: Likewise.
513 * hpux-core.c: Likewise.
514 * ieee.c: Likewise.
515 * ihex.c: Likewise.
516 * linker.c: Likewise.
517 * merge.c: Likewise.
518 * mmo.c: Likewise.
519 * oasys.c: Likewise.
520 * pdp11.c: Likewise.
521 * peXXigen.c: Likewise.
522 * rs6000-core.c: Likewise.
523 * vms-alpha.c: Likewise.
524 * xcofflink.c: Likewise.
525
c08bb8dd
AM
5262017-04-13 Alan Modra <amodra@gmail.com>
527
528 * bfd.c (PRINT_TYPE): Define.
529 (_doprnt): New function.
530 (error_handler_internal): Use _doprnt.
531 * coff-arm.c: Put %A and %B arguments to _bfd_error_handler
532 calls in their natural order, throughout file.
533 * coff-mcore.c: Likewise.
534 * coff-ppc.c: Likewise.
535 * coff-tic80.c: Likewise.
536 * cofflink.c: Likewise.
537 * elf-s390-common.c: Likewise.
538 * elf.c: Likewise.
539 * elf32-arm.c: Likewise.
540 * elf32-i386.c: Likewise.
541 * elf32-m32r.c: Likewise.
542 * elf32-msp430.c: Likewise.
543 * elf32-spu.c: Likewise.
544 * elf64-ia64-vms.c: Likewise.
545 * elf64-sparc.c: Likewise.
546 * elf64-x86-64.c: Likewise.
547 * elflink.c: Likewise.
548 * elfnn-aarch64.c: Likewise.
549 * elfnn-ia64.c: Likewise.
550 * elfxx-mips.c: Likewise.
551
10463f39
AM
5522017-04-13 Alan Modra <amodra@gmail.com>
553
554 * elf32-arm.c (arm_type_of_stub): Supply missing args to "long
555 branch veneers" error. Fix double space and format message.
556 * elf32-avr.c (avr_add_stub): Do not pass NULL as %B arg.
557 * elf64-ppc.c (tocsave_find): Supply missing %B arg.
558
4af8774e
AM
5592017-04-13 Alan Modra <amodra@gmail.com>
560
561 * bfd-in2.h: Regenerate.
562
e4097f5e
L
5632017-04-11 H.J. Lu <hongjiu.lu@intel.com>
564
565 * elf-properties.c (_bfd_elf_parse_gnu_properties): Remove the
566 extra `\n' in warning/error messages.
567 * elf32-i386.c (elf_i386_parse_gnu_properties): Likewise.
568 * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise.
569
537616aa
L
5702017-04-11 H.J. Lu <hongjiu.lu@intel.com>
571
572 * elf-properties.c (_bfd_elf_parse_gnu_properties): Ignore
573 processor-specific properties with generic ELF target vector.
574
bb1dd176
QZ
5752017-04-10 Qing Zhao <qing.zhao@oracle.com>
576
577 * elf32-sparc.c (elf_backend_fixup_symbol): New.
578 * elf64-sparc.c (elf_backend_fixup_symbol): New.
579 * elfxx-sparc.c (UNDEFINED_WEAK_RESOLVED_TO_ZERO): New.
580 (_bfd_sparc_elf_link_hash_entry): Add has_got_reloc and
581 has_non_got_reloc.
582 (link_hash_newfunc): Initialize has_got_reloc and
583 has_non_got_reloc.
584 (_bfd_sparc_elf_size_dynamic_sections): Set interp to .interp
585 section.
586 (_bfd_sparc_elf_copy_indirect_symbol): Copy has_got_reloc and
587 has_non_got_reloc.
588 (_bfd_sparc_elf_check_relocs): Set has_got_reloc and
589 has_non_got_reloc.
590 (_bfd_sparc_elf_fixup_symbol): New function.
591 (allocate_dynrelocs): Don't allocate space for dynamic
592 relocations and discard relocations against resolved undefined
593 weak symbols in executable. Don't make resolved undefined weak
594 symbols in executable dynamic. Keep dynamic non-GOT/non-PLT
595 relocation against undefined weak symbols in PIE.
596 (_bfd_sparc_elf_relocate_section): Don't generate dynamic
597 relocations against resolved undefined weak symbols in PIE
598 (_bfd_sparc_elf_finish_dynamic_symbol): Keep PLT/GOT entries
599 without ynamic PLT/GOT relocations for resolved undefined weak
600 symbols.
601 Don't generate dynamic relocation against resolved undefined
602 weak symbol in executable.
603 (pie_finish_undefweak_symbol): New function.
604 (_bfd_sparc_elf_finish_dynamic_sections): Call
605 pie_finish_undefweak_symbol on all symbols in PIE.
606 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add interp.
607 (_bfd_sparc_elf_fixup_symbol): New function.
608
d236cfd4
NC
6092017-04-10 Nick Clifton <nickc@redhat.com>
610
611 * config.bfd: Remove ns32k from obsolete list.
612
6f9dbcd4
AM
6132017-04-10 Alan Modra <amodra@gmail.com>
614
615 PR 21287
616 * elf.c (special_sections_f): Match .fini_array and .fini_array.*.
617 (special_sections_i): Likewise for .init_array.
618 (special_sections_p): Likewise for .preinit_array.
619
8170f769
L
6202017-04-07 H.J. Lu <hongjiu.lu@intel.com>
621
622 PR ld/19579
623 PR ld/21306
624 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Check
625 ELF_COMMON_DEF_P for common symbols.
626 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
627 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
628 * elflink.c (_bfd_elf_merge_symbol): Revert commits
629 202ac193bbbecc96a4978d1ac3d17148253f9b01 and
630 07492f668d2173da7a2bda3707ff0985e0f460b6.
631
49f4617b
PA
6322017-04-07 Pedro Alves <palves@redhat.com>
633
634 * opncls.c (bfd_get_debug_link_info): Rename to...
635 (bfd_get_debug_link_info_1): ... this. Change type of second
636 parameter to void pointer. Adjust.
637 (bfd_get_debug_link_info): Reimplement on top of
638 bfd_get_debug_link_info_1.
639 (separate_debug_file_exists, separate_alt_debug_file_exists):
640 Change type of second parameter to void pointer. Adjust.
641 (get_func_type, check_func_type): Change type of second parameter
642 to void pointer.
643 (find_separate_debug_file): Add 'func_data' parameter. Pass it to
644 the callback functions instead of passing the address of a local.
645 (bfd_follow_gnu_debuglink): Pass address of unsigned long local to
646 find_separate_debug_file.
647 (get_alt_debug_link_info_shim): Change type of second parameter to
648 void pointer. Adjust.
649 (bfd_follow_gnu_debugaltlink): Adjust to pass NULL to
650 find_separate_debug_file.
651 (get_build_id_name, bfd_boolean check_build_id_file): Change type
652 of second parameter to void pointer. Adjust.
653 (bfd_follow_build_id_debuglink): Pass address of bfd_build_id
654 pointer local to find_separate_debug_file.
655
6562017-04-07 Tristan Gingold <gingold@gingold-Precision-7510>
1fd6d111
TG
657
658 * coffgen.c (_bfd_coff_gc_mark_hook): Handle PE weak
659 external symbols with a definition.
660 (_bfd_coff_gc_mark_extra_sections): Fix typo.
661
86abf93a
AM
6622017-04-07 Alan Modra <amodra@gmail.com>
663
664 * po/SRC-POTFILES.in: Regenerate.
665
8dea77f0
AM
6662017-04-05 Alan Modra <amodra@gmail.com>
667
668 * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Support ELFv2 PLT
669 reference counting.
670
477bdd39
JT
6712017-04-02 Jon Turney <jon.turney@dronecode.org.uk>
672
673 (_bfd_XXi_swap_aouthdr_out): For clarity, use defines rather than
674 numbers for DataDirectory entry indicies passed to
675 add_data_entry().
676
a91e1603
L
6772017-04-04 H.J. Lu <hongjiu.lu@intel.com>
678
679 * elf.c (get_program_header_size): Add a GNU_MBIND segment for
680 each GNU_MBIND section and align GNU_MBIND section to page size.
681 (_bfd_elf_map_sections_to_segments): Create a GNU_MBIND
682 segment for each GNU_MBIND section.
683 (_bfd_elf_init_private_section_data): Copy sh_info from input
684 for GNU_MBIND section.
685
b5292032
PD
6862017-04-03 Palmer Dabbelt <palmer@dabbelt.com>
687
688 * elfnn-riscv.c (GP_NAME): Delete.
689 (riscv_global_pointer_value): Change GP_NAME to RISCV_GP_SYMBOL.
690 (_bfd_riscv_relax_lui): Likewise.
691
ad32986f
NC
6922017-04-04 Nick Clifton <nickc@redhat.com>
693
694 PR binutils/21342
695 * elflink.c (_bfd_elf_define_linkage_sym): Prevent null pointer
696 dereference.
697 (bfd_elf_final_link): Only initialize the extended symbol index
698 section if there are extended symbol tables to list.
699
46bed679
L
7002017-04-03 H.J. Lu <hongjiu.lu@intel.com>
701
702 * Makefile.am (BFD32_BACKENDS): Add elf-properties.lo.
703 (BFD32_BACKENDS_CFILES): Add elf-properties.c.
704 * configure.ac (elf): Add elf-properties.lo.
705 * Makefile.in: Regenerated.
706 * configure: Likewise.
707 * elf-bfd.h (elf_property_kind): New.
708 (elf_property): Likewise.
709 (elf_property_list): Likewise.
710 (elf_properties): Likewise.
711 (_bfd_elf_parse_gnu_properties): Likewise.
712 (_bfd_elf_get_property): Likewise.
713 (_bfd_elf_link_setup_gnu_properties): Likewise.
714 (elf_backend_data): Add parse_gnu_properties, merge_gnu_properties
715 and setup_gnu_properties.
716 (elf_obj_tdata): Add properties.
717 * elf-properties.c: New file.
718 * elf32-i386.c (elf_i386_parse_gnu_properties): New.
719 (elf_i386_merge_gnu_properties): Likewise.
720 (elf_backend_parse_gnu_properties): Likewise.
721 (elf_backend_merge_gnu_properties): Likewise.
722 * elf64-x86-64.c (elf_x86_64_parse_gnu_properties): Likewise.
723 (elf_x86_64_merge_gnu_properties): Likewise.
724 (elf_backend_parse_gnu_properties): Likewise.
725 (elf_backend_merge_gnu_properties): Likewise.
726 * elfxx-target.h (elf_backend_merge_gnu_properties): Likewise.
727 (elf_backend_parse_gnu_properties): Likewise.
728 (elf_backend_setup_gnu_properties): Likewise.
729 (elfNN_bed): Add elf_backend_parse_gnu_properties,
730 elf_backend_merge_gnu_properties and
731 elf_backend_setup_gnu_properties.
732
f96bd6c2
PC
7332017-03-30 Pip Cet <pipcet@gmail.com>
734
735 * elf32-wasm32.c: Add relocation code, two relocs.
736 * reloc.c: Add wasm32 relocations.
737 * libbfd.h: Regenerate.
738 * bfd-in2.h: Regenerate.
739 * bfd/po/bfd.pot: Regenerate.
740
e643cb45
NC
7412017-03-29 Nick Clifton <nickc@redhat.com>
742
743 PR binutils/18025
744 * coff-bfd.h (struct coff_section_data): Add new fields:
745 saved_bias and bias.
746 * coffgen.c (coff_find_nearest_line_with_names): Cache the bias
747 computed for PE binaries.
748 * dwarf2.c (scan_unit_for_symbols): Only warn once about each
749 missing abbrev.
750
086554e8
HPN
7512017-03-28 Hans-Peter Nilsson <hp@axis.com>
752
753 PR ld/16044
754 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Adjust BFD_ASSERT
755 to handle a local symbol with a hash-symbol-entry; without PLT.
756 Add BFD_ASSERT for an incidental case with GOT entry present.
757 (cris_elf_check_relocs): Increment PLT refcount only if the symbol
758 isn't forced-or-set local.
759
a6be0538
PC
7602017-03-27 Pip Cet <pipcet@gmail.com>
761
762 * wasm-module.c: New file to support WebAssembly modules.
763 * wasm-module.h: New file to support WebAssembly modules.
764 * doc/webassembly.texi: Start documenting wasm-module.c.
765 * config.bfd: Add wasm_vec.
766 * targets.c: Likewise.
767 * configure.ac: Likewise.
768 * Makefile.am: Add entries for wasm-module.c.
769 * Makefile.in: Regenerate.
770 * configure: Regenerate.
771 * po/SRC-POTFILES.in: Regenerate.
772
79b1d3cb
PC
7732017-03-27 Pip Cet <pipcet@gmail.com>
774
775 * cpu-wasm32.c: New file to support wasm32 architecture.
776 * elf32-wasm32.c: New file to support wasm32 architecture.
777 * Makefile.am: Add wasm32 architecture.
778 * archures.c: Likewise.
779 * config.bfd: Likewise.
780 * configure.ac: Likewise.
781 * targets.c: Likewise.
782 * Makefile.in: Regenerate.
783 * bfd-in2.h: Regenerate.
784 * configure: Regenerate.
785 * po/SRC-POTFILES.in: Regenerate.
786
aaed6f5b
AM
7872017-03-20 Alan Modra <amodra@gmail.com>
788
789 PR 21266
790 * elf64-ppc.c (compare_symbols): Stabilize sort.
791
82e66161
AM
7922017-03-18 Alan Modra <amodra@gmail.com>
793
794 * elf64-ppc.c (struct ppc_link_hash_table): Add
795 local_ifunc_resolver and maybe_local_ifunc_resolver.
796 (ppc_build_one_stub): Set flags on emitting dynamic
797 relocation to ifunc.
798 (ppc64_elf_relocate_section): Likewise.
799 (ppc64_elf_finish_dynamic_symbol): Likewise.
800 (ppc64_elf_finish_dynamic_sections): Error on DT_TEXTREL with
801 local dynamic relocs to ifuncs.
802 * elf32-ppc.c (struct ppc_elf_link_hash_table): Add
803 local_ifunc_resolver and maybe_local_ifunc_resolver.
804 (ppc_elf_relocate_section): Set flag on emitting dynamic
805 relocation to ifuncs.
806 (ppc_elf_finish_dynamic_symbol): Likewise.
807 (ppc_elf_finish_dynamic_sections): Error on DT_TEXTREL with local
808 dynamic relocs to ifuncs.
809
f955cccf
NC
8102017-03-13 Nick Clifton <nickc@redhat.com>
811
812 PR binutils/21202
813 * reloc.c (BFD_RELOC_AARCH64_TLSDESC_LD64_LO12_NC): Rename to
814 BFD_RELOC_AARCH64_TLSDESC_LD64_LO12.
815 (BFD_RELOC_AARCH64_TLSDESC_ADD_LO12_NC): Rename to
816 BFD_RELOC_AARCH64_TLSDESC_ADD_LO12.
817 * bfd-in2.h: Regenerate.
818 * libbfd.h: Regenerate.
819 * elfnn-aarch64.c (IS_AARCH64_TLS_RELAX_RELOC): Update reloc
820 names.
821 (IS_AARCH64_TLSDESC_RELOC): Likewise.
822 (elfNN_aarch64_howto_table): Likewise.
823 (aarch64_tls_transition_without_check): Likewise.
824 (aarch64_reloc_got_type): Likewise.
825 (elfNN_aarch64_final_link_relocate): Likewise.
826 (elfNN_aarch64_tls_relax): Likewise.
827 (elfNN_aarch64_relocate_section): Likewise.
828 (elfNN_aarch64_gc_sweep_hook): Likewise.
829 (elfNN_aarch64_check_relocs): Likewise.
830 * elfxx-aarch64.c (_bfd_aarch64_elf_put_addend): Likewise.
831 (_bfd_aarch64_elf_resolve_relocation): Likewise.
832
4aef7643
AM
8332017-03-11 Alan Modra <amodra@gmail.com>
834
835 * elf32-ppc.c: Remove ATTRIBUTE_UNUSED throughout when function
836 parameter is in fact used. Whitespace fixes.
837 * elf64-ppc.c: Likewise.
838
f03265d9
ST
8392017-03-09 Sam Thursfield <sam.thursfield@codethink.co.uk>
840
841 * rs6000-core.c (CORE_NEW): Simplify macro when
842 AIX_CORE_DUMPX_CORE and BFD64 are true to avoid compile warning.
843
b1b07054
AM
8442017-03-07 Alan Modra <amodra@gmail.com>
845
846 PR 21224
847 PR 20519
848 * elf64-ppc.c (ppc64_elf_relocate_section): Add missing
849 dyn_relocs check.
850
2e0ce1c8
AM
8512017-03-05 Alan Modra <amodra@gmail.com>
852
853 * elf-bfd.h (struct eh_cie_fde): Add u.cie.per_encoding_aligned8.
854 * elf-eh-frame.c (size_of_output_cie_fde): Don't align here.
855 (next_cie_fde_offset): New function.
856 (_bfd_elf_parse_eh_frame): Set u.cie.per_encoding_aligned8.
857 (_bfd_elf_discard_section_eh_frame): Align zero terminator to
858 four bytes. Align CIEs to four or eight bytes depending on
859 per_encoding_aligned8. Align FDEs according to their encoding.
860 Pad last FDE to output section alignment.
861 (_bfd_elf_write_section_eh_frame): Adjust to suit. Remove
862 assertion.
863 * elf64-ppc.c (glink_eh_frame_cie): Delete padding.
864 (ppc64_elf_size_stubs): Pad glink eh_frame as per elf-eh-frame.c.
865 (ppc64_elf_finish_dynamic_sections): Adjust to suit.
866
f98450c6
NC
8672017-03-02 Martin Bickel <binutils@ineranves.de>
868
869 PR ld/21212
870 * elf.c (rewrite_elf_program_header): Do not issue a warning for
d20928fa 871 empty segments which have a zero filesz, but a non-zero memsz.
f98450c6 872
673cff9b
AM
8732017-03-02 Alan Modra <amodra@gmail.com>
874
875 * elf32-ppc.c (ppc_elf_vle_split16): Correct insn mask typo.
876
3de43e7b
AM
8772017-02-28 Alan Modra <amodra@gmail.com>
878
879 * elf64-ppc.c (ppc64_elf_ha_reloc): Revert last change.
880 (ppc64_elf_relocate_section): Likewise.
881
4ef97a1b
AM
8822017-02-28 Alan Modra <amodra@gmail.com>
883
884 PR 20995
885 * elf32-nios2.c (nios2_elf32_relocate_section): Use htab
886 rather than elf32_nios2_hash_table or elf_hash_table.
887 (create_got_section): Likewise.
888 (nios2_elf32_finish_dynamic_symbol): Likewise.
889 (nios2_elf32_adjust_dynamic_symbol): Likewise.
890 (nios2_elf32_size_dynamic_sections): Likewise.
891 (nios2_elf32_check_relocs): Delete dynobj, sgot, and srelgot
892 vars. Use htab equivalents directly instead. Don't create
893 all dynamic sections on needing just the GOT. Use a goto
894 rather than a fall-through with reloc test. Ensure
895 htab->dynobj is set when making dynamic sreloc section.
896 (nios2_elf32_finish_dynamic_sections): Delete dynobj, use htab
897 equivalent directly instead. Don't segfault on looking for
898 .dynamic when dynamic sections have not been created. Don't
899 segfault on .got.plt being discarded.
900 (nios2_elf32_size_dynamic_sections): Delete plt and got vars.
901 Don't set "relocs" on .rela.plt. Do handle .sbss. Delete
902 fixme and another not so relevant comment.
903 (nios2_elf_add_symbol_hook): Delete dynobj var. If not
904 already set, set hash table dynobj on creating .sbss.
905
7ba71655
AM
9062017-02-28 Alan Modra <amodra@gmail.com>
907
908 * reloc.c (BFD_RELOC_PPC_16DX_HA): New.
909 * elf64-ppc.c (ppc64_elf_howto_raw <R_PPC64_16DX_HA>): New howto.
910 (ppc64_elf_reloc_type_lookup): Translate new bfd reloc.
911 (ppc64_elf_ha_reloc): Correct overflow test on REL16DX_HA.
912 (ppc64_elf_relocate_section): Likewise.
913 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_16DX_HA>): New howto.
914 (ppc_elf_reloc_type_lookup): Translate new bfd reloc.
915 (ppc_elf_check_relocs): Handle R_PPC_16DX_HA to pacify gcc.
916 * libbfd.h: Regenerate.
917 * bfd-in2.h: Regenerate.
918
afbf7e8e
AM
9192017-02-28 Alan Modra <amodra@gmail.com>
920
921 * elflink.c (_bfd_elf_create_dynamic_sections): Don't make
922 dynamic .data.rel.ro read-only.
923 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Compare section
924 rather than section flags when deciding where copy reloc goes.
925 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
926 * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise.
927 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise.
928 * elf32-metag.c (elf_metag_finish_dynamic_symbol): Likewise.
929 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Likewise.
930 * elf32-nios2.c (nios2_elf32_finish_dynamic_symbol): Likewise.
931 * elf32-or1k.c (or1k_elf_finish_dynamic_symbol): Likewise.
932 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Likewise.
933 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
934 * elf32-tic6x.c (elf32_tic6x_finish_dynamic_symbol): Likewise.
935 * elf32-tilepro.c (tilepro_elf_finish_dynamic_symbol): Likewise.
936 * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Likewise.
937 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
938 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
939 * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_symbol): Likewise.
940 * elfnn-riscv.c (riscv_elf_finish_dynamic_symbol): Likewise.
941 * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
942 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
943 * elfxx-tilegx.c (tilegx_elf_finish_dynamic_symbol): Likewise.
944
0e392101
MR
9452017-02-28 Maciej W. Rozycki <macro@imgtec.com>
946
947 * elfxx-mips.c (mips_elf_perform_relocation): Also handle the
948 `jalr $0, $25' instruction encoding.
949
bd757ca7
NC
9502017-02-27 Nick Clifton <nickc@redhat.com>
951
952 PR ld/21180
953 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Avoid
954 generating a seg-fault when encountering a symbol that has been
955 deleted by garbage collection.
956
034fed0b
AM
9572017-02-25 Alan Modra <amodra@gmail.com>
958
959 * elf32-arc.c (struct dynamic_sections): Delete.
960 (enum dyn_section_types): Delete.
961 (dyn_section_names): Delete.
962 (arc_create_dynamic_sections): Delete.
963 (elf_arc_finish_dynamic_sections): Don't call the above. Don't
964 segfault on discarded .rela.plt section.
965 (elf_arc_size_dynamic_sections): Formatting. Don't call
966 arc_create_dynamic_sections. Don't allocate memory for sections
967 handled by the generic linker. Correct code finding relocs in
968 read-only sections. Set SEC_EXCLUDE on zero size .got,
969 .got.plt, and .dynbss sections. Do set .interp for pies.
970
d0f744f9
AW
9712017-02-24 Andrew Waterman <andrew@sifive.com>
972
973 * elfnn-riscv.c (GP_NAME): New macro.
974 (riscv_global_pointer_value): Use it.
975 (_bfd_riscv_relax_lui): If symbol and global pointer are in same
976 output section, consider only that section's alignment.
977
5d58c733
MR
9782017-02-23 Maciej W. Rozycki <macro@imgtec.com>
979
980 * elfxx-mips.h (_bfd_mips_relax_section): Remove prototype.
981 * elfxx-mips.c (_bfd_mips_relax_section): Remove function.
982 * elf64-mips.c (bfd_elf64_bfd_relax_section): Remove macro.
983 * elfn32-mips.c (bfd_elf32_bfd_relax_section): Likewise.
984
c1556ecd
MR
9852017-02-23 Maciej W. Rozycki <macro@imgtec.com>
986
987 * elfxx-mips.c (mips_elf_calculate_relocation) <R_MIPS_JALR>
988 <R_MICROMIPS_JALR>: Discard relocation if `cross_mode_jump_p'
989 or misaligned.
990
5499c7c7
AM
9912017-02-23 Alan Modra <amodra@gmail.com>
992
993 PR 20744
994 * elf32-ppc.c (ppc_elf_howto_raw): Correct dst_mask on all VLE
995 16D relocations.
996 (ppc_elf_vle_split16): Correct field mask and shift for 16D relocs.
997 (ppc_elf_relocate_section): Correct calculation for VLE SDAREL
998 relocs.
999
902e9fc7
MR
10002017-02-22 Maciej W. Rozycki <macro@imgtec.com>
1001
1002 PR ld/20828
1003 * elflink.c (bfd_elf_size_dynamic_sections): Move symbol version
1004 processing ahead of the call to `elf_gc_sweep_symbol'.
1005
758d96d8
NC
10062017-02-22 Nick Clifton <nickc@redhat.com>
1007
1008 PR binutils/21193
1009 * opncls.c (bfd_create_gnu_debuglink_section): Give the newly
1010 created section 4-byte alignment.
1011
6528b6eb
AM
10122017-02-22 Alan Modra <amodra@gmail.com>
1013
1014 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Don't segfault
1015 on .got or .plt output section being discarded by script.
1016 * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Likewise. Move
1017 vxworks splt temp.
1018
24f1a751
AM
10192017-02-21 Alan Modra <amodra@gmail.com>
1020
1021 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Only emit
1022 DT_RELA, DT_RELASZ, and DT_RELAENT when DT_RELASZ is non-zero.
1023
64487780
AM
10242017-02-20 Alan Modra <amodra@gmail.com>
1025
1026 PR 21181
1027 * elflink.c (bfd_elf_final_link): Make DT_REL/DT_RELA zero
1028 if DT_RELSZ/DT_RELASZ is zero.
1029
6438d1be
NC
10302017-02-17 Nick Clifton <nickc@redhat.com>
1031
1032 * compress.c (bfd_get_full_section_contents): Remember to reduce
1033 compressed size by the sizeof the compression header when
1034 decompressing the contents.
1035
4bc26c69
PA
10362017-02-17 Pedro Alves <palves@redhat.com>
1037
1038 * srec.c (Chunk): Rename to ...
1039 (_bfd_srec_len): ... this.
1040 (S3Forced): Rename to ...
1041 (_bfd_srec_forceS3): ... this.
1042 * objcopy.c: Adjust all references.
1043
7ec22e0f
PA
10442017-02-17 Pedro Alves <palves@redhat.com>
1045
1046 * archive.c (bsd_write_armap): Rename to ...
1047 (_bfd_bsd_write_armap): ... this.
1048 (coff_write_armap): Rename to ...
1049 (_bfd_coff_write_armap): ... this.
1050 * libbfd-in.h (bsd_write_armap): Rename to ...
1051 (_bfd_bsd_write_armap): ... this.
1052 (coff_write_armap): Rename to ...
1053 (_bfd_coff_write_armap): ... this.
1054 * aout-target.h, aout-tic30.c: Adjust all users.
1055 * libbfd.h: Regenerate.
1056
8c8402cc
PA
10572017-02-17 Pedro Alves <palves@redhat.com>
1058
1059 * bfd-in.h (bfd_read, bfd_write): Adjust to rename.
1060 (warn_deprecated): Rename to ...
1061 (_bfd_warn_deprecated): ... this.
1062 * libbfd.c (warn_deprecated): Rename to ...
1063 (_bfd_warn_deprecated): ... this.
1064 * bfd-in2.h: Regenerate.
1065
c7c3d11b
PA
10662017-02-17 Pedro Alves <palves@redhat.com>
1067
1068 * bfdio.c (real_ftell): Rename to ...
1069 (_bfd_real_ftell): ... this.
1070 (real_fseek): Rename to ...
1071 (_bfd_real_fseek): ... this.
1072 (real_fopen): Rename to ...
1073 (_bfd_real_fopen): ... this.
1074 * libbfd-in.h (real_ftell): Rename to ...
1075 (_bfd_real_ftell): ... this.
1076 (real_fseek): Rename to ...
1077 (_bfd_real_fseek): ... this.
1078 (real_fopen): Rename to ...
1079 (_bfd_real_fopen): ... this.
1080 * cache.c, dwarf2.c, opncls.c: Adjust all callers.
1081 * libbfd.h: Regenerate.
1082
4265548c
PA
10832017-02-17 Pedro Alves <palves@redhat.com>
1084
1085 * dwarf2.c, elf-attrs.c, elf32-nds32.c: Adjust all callers.
1086 * libbfd.c (read_unsigned_leb128): Rename to ...
1087 (_bfd_read_unsigned_leb128): ... this.
1088 (read_signed_leb128): Rename to ...
1089 (_bfd_read_signed_leb128): ... this.
1090 (safe_read_leb128): Rename to ...
1091 (_bfd_safe_read_leb128): ... this.
1092 * libbfd-in.h (read_unsigned_leb128): Rename to ...
1093 (_bfd_read_unsigned_leb128): ... this.
1094 (read_signed_leb128): Rename to ...
1095 (_bfd_read_signed_leb128): ... this.
1096 (safe_read_leb128): Rename to ...
1097 (_bfd_safe_read_leb128): ... this.
1098 * libbfd.h: Renegerate.
1099
3239a423
AB
11002017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
1101
1102 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Perform symbol lookup
1103 before trying to fine matching file and line information.
1104
90ed9b8b
AB
11052017-02-16 Andrew Burgess <andrew.burgess@embecosm.com>
1106
1107 * dwarf2.c (struct dwarf2_debug): Add orig_bfd member.
1108 (_bfd_dwarf2_slurp_debug_info): If stashed debug information does
1109 not match current bfd, then reload debug information. Record bfd
1110 we're loading debug info for in the stash. If we have debug
1111 informatin in the cache then perform section placement before
1112 returning.
1113
a8c75b76
AM
11142017-02-16 Alan Modra <amodra@gmail.com>
1115
1116 PR 21000
1117 * elf-bfd.h (struct elf_backend_data): Add no_page_alias.
1118 * elfxx-target.h (elf_backend_no_page_alias): Define.
1119 (elfNN_bed): Init new field.
1120 * elf.c (assign_file_positions_for_load_sections): If no_page_alias
1121 ensure PT_LOAD segment starts on a new page.
1122 * elf32-hppa.c (elf_backend_no_page_alias): Define.
1123
247d6c4c
AM
11242017-02-16 Alan Modra <amodra@gmail.com>
1125
1126 PR 21132
1127 * elf32-hppa.c (allocate_plt_static): Allocate space for relocs
1128 if pic.
1129
90571206
JW
11302017-02-16 Jiong Wang <jiong.wang@arm.com>
1131
1132 * bfd.c (BFD_FLAGS_SAVED): Add BFD_LINKER_CREATED.
1133 * bfd-in2.h: Regenerated.
1134
2a568401
L
11352017-02-15 H.J. Lu <hongjiu.lu@intel.com>
1136
1137 PR ld/21168
1138 * elf32-i386.c (elf_i386_relocate_section): Allow
1139 "lea foo@GOT, %reg" in PIC.
1140
a5def14f
L
11412017-02-15 H.J. Lu <hongjiu.lu@intel.com>
1142
1143 PR ld/20244
1144 * elf32-i386.c (elf_i386_relocate_section): Properly get IFUNC
1145 symbol name when reporting R_386_GOT32/R_386_GOT32X relocation
1146 error against local IFUNC symbol without a base register for
1147 PIC.
1148
174d0a74
MR
11492017-02-15 Maciej W. Rozycki <macro@imgtec.com>
1150
1151 * elf32-ppc.c (ppc_elf_check_relocs): Use `%H:' rather than
1152 `%P: %H:' with `info->callbacks->einfo'.
1153 (ppc_elf_relocate_section): Likewise.
1154 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
1155 (ppc64_elf_edit_toc): Likewise.
1156 (ppc64_elf_relocate_section): Likewise.
1157
e278ae05
AM
11582017-02-14 Alan Modra <amodra@gmail.com>
1159
1160 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Support
1161 --gc-keep-exported, and test versioned field of sym rather than
1162 looking for @ in name.
1163
10ddfe62
PD
11642017-02-13 Palmer Dabbelt <palmer@dabbelt.com>
1165
1166 * elfnn-riscv.c (riscv_global_pointer_value): Change _gp to
1167 __global_pointer$.
1168
d11135f5
NC
11692017-02-13 Nick Clifton <nickc@redhat.com>
1170
1171 PR binutils/21151
1172 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Check for an invalid
1173 unit length field.
1174
cc162427
AW
11752017-02-07 Andrew Waterman <andrew@sifive.com>
1176
1177 * elfnn-riscv.c (riscv_elf_finish_dynamic_sections): Only write PLT
1178 entry size if PLT header is written.
1179
3d044c0c
SL
11802017-02-06 Sheldon Lobo <sheldon.lobo@oracle.com>
1181
1182 Fix sparc64 dynamic relocation processing to use the dynamic
1183 symbol count.
1184 * elf64-sparc.c (elf64_sparc_slurp_one_reloc_table): Use 'dynamic'
1185 to determine if bfd_get_symcount() or bfd_get_dynamic_symcount()
1186 should be used.
1187
1b7e3d2f
NC
11882017-02-03 Nick Clifton <nickc@redhat.com>
1189
1190 PR 21096
1191 * coffcode.h (coff_write_object_contents): Enlarge size of
1192 s_name_buf in order to avoid compile time warning about possible
1193 integer truncation.
1194 * elf32-nds32.c (nds32_elf_ex9_import_table): Mask off lower
1195 32-bits of insn value before printing into buffer.
1196
e17b0c35
MR
11972017-02-02 Maciej W. Rozycki <macro@imgtec.com>
1198
1199 * elfxx-mips.c (mips_elf_hash_sort_data): Add
1200 `max_local_dynindx'.
1201 (mips_elf_sort_hash_table): Handle it.
1202 (mips_elf_sort_hash_table_f) <GGA_NONE>: For forced local
1203 symbols bump up `max_local_dynindx' rather than
1204 `max_non_got_dynindx'.
1205
55f8b9d2
MR
12062017-02-02 Maciej W. Rozycki <macro@imgtec.com>
1207
1208 * elfxx-mips.c (mips_elf_hash_sort_data): Convert the
1209 `min_got_dynindx', `max_unref_got_dynindx' and
1210 `max_non_got_dynindx' members to the `bfd_size_type' data type.
1211 (mips_elf_sort_hash_table): Adjust accordingly.
1212
0f8c4b60
MR
12132017-02-02 Maciej W. Rozycki <macro@imgtec.com>
1214
1215 * elfxx-mips.c (mips_elf_sort_hash_table): Use `htab' throughout
1216 to access the hash table.
1217
17a80fa8
MR
12182017-02-02 Maciej W. Rozycki <macro@imgtec.com>
1219
1220 * elfxx-mips.c (mips_elf_sort_hash_table): Move assertion on
1221 non-NULL `htab' to the beginning.
1222
8f56d4fd
MR
12232017-02-02 Maciej W. Rozycki <macro@imgtec.com>
1224
1225 * elflink.c (elf_gc_sweep): Wrap overlong line.
1226
8b10b0b3
MR
12272017-01-30 Maciej W. Rozycki <macro@imgtec.com>
1228
1229 * elfxx-mips.h (_bfd_mips_elf_insn32): Rename prototype to...
1230 (_bfd_mips_elf_linker_flags): ... this. Add another parameter.
1231 * elfxx-mips.c (mips_elf_link_hash_table): Add
1232 `ignore_branch_isa' member.
1233 (mips_elf_perform_relocation): Do not treat an ISA mode mismatch
1234 in branch relocation calculation as an error if
1235 `ignore_branch_isa' has been set.
1236 (_bfd_mips_elf_insn32): Rename to...
1237 (_bfd_mips_elf_linker_flags): ... this. Rename the `on'
1238 parameter to `insn32' and add an `ignore_branch_isa' parameter.
1239 Handle the new parameter.
1240
1fbd05e1
HPN
12412017-01-27 Hans-Peter Nilsson <hp@axis.com>
1242
22d9a0de
HPN
1243 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Remove now unused
1244 local variable dynobj.
1245
1fbd05e1
HPN
1246 PR ld/20995
1247 * elf32-cris.c (elf_cris_size_dynamic_sections): Handle sdynrelro.
1248 (elf_cris_adjust_dynamic_symbol): Place variables copied into the
1249 executable from read-only sections into sdynrelro.
1250 (elf_cris_finish_dynamic_symbol): Select sreldynrelro for
1251 dynamic relocs in sdynrelro.
1252 (elf_backend_want_dynrelro): Define.
1253
4a7324e1
SH
12542017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
1255
1256 * config.bfd (*-*-rtemsaout*): Mark as removed.
1257
c75b4ebd
SH
12582017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
1259
1260 * config.bfd (powerpcle-*-rtems*): Do not mark as removed.
1261 (arm-*-rtems*): Move to (arm*-*-eabi*).
1262 (i[3-7]86-*-rtems*): Move to (i[3-7]86-*-elf*).
1263 (m68-*-rtems*): Move to (m68*-*-elf*).
1264
850d84f6
SH
12652017-01-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
1266
1267 * config.bfd (*-*-rtemscoff*): Mark as removed.
1268
b531344c
MR
12692017-01-24 Maciej W. Rozycki <macro@imgtec.com>
1270
1271 PR ld/20828
1272 * elflink.c (bfd_elf_record_link_assignment): Revert last
1273 change and don't ever clear `forced_local'. Set `mark'
1274 unconditionally.
1275 (elf_gc_sweep_symbol_info, elf_gc_sweep_symbol): Reorder within
1276 file.
1277 (elf_gc_sweep): Move the call to `elf_gc_sweep_symbol'...
1278 (bfd_elf_size_dynamic_sections): ... here.
1279 * elf32-ppc.c (ppc_elf_tls_setup): Don't clear `forced_local'
1280 and set `mark' instead in `__tls_get_addr_opt' processing.
1281 * elf64-ppc.c (ppc64_elf_tls_setup): Likewise.
1282
f0158f44
AM
12832017-01-24 Alan Modra <amodra@gmail.com>
1284
1285 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Merge two cases
1286 where dynamic relocs are preferable. Allow ifunc too.
1287 (ensure_undefweak_dynamic): New function.
1288 (allocate_dynrelocs): Use it here. Move plt handling last and
1289 don't make symbols dynamic, simplifying loop. Only make undef
1290 weak symbols with GOT entries dynamic. Correct condition
1291 for GOT relocs. Handle dynamic relocs on ifuncs. Correct
1292 comments. Remove goto.
1293 (ppc_elf_relocate_section): Correct test for using dynamic
1294 symbol on GOT relocs. Rearrange test for emitting GOT relocs
1295 to suit. Set up explicit tls_index entries and implicit GOT
1296 tls_index entries resolvable at link time for
1297 __tls_get_addr_opt. Simplify test to clear mem for prelink.
1298 * elf64-ppc.c (allocate_got): Correct condition for GOT relocs.
1299 (ensure_undefweak_dynamic): New function.
1300 (allocate_dynrelocs): Use it here. Only make undef weak symbols
1301 with GOT entries dynamic. Remove unnecessary test of
1302 WILL_CALL_FINISH_DYNAMIC_SYMBOL in PLT handling.
1303 (ppc64_elf_relocate_section): Correct test for using dynamic
1304 symbol on GOT relocs. Rearrange test for emitting GOT relocs
1305 to suit. Set up explicit tls_index entries and implicit GOT
1306 tls_index entries resolvable at link time for __tls_get_addr_opt.
1307 Simplify expression to clear mem for prelink.
1308
2d0ca824
YN
13092017-01-23 Yury Norov <ynorov@caviumnetworks.com>
1310
1311 * elfnn-aarch64.c: Fix relaxations for ILP32 mode.
1312
7f784814
JW
13132017-01-20 Jiong Wang <jiong.wang@arm.com>
1314
1315 * elfnn-aarch64.c (elf_aarch64_hash_symbol): New function.
1316 (elf_backend_hash_symbol): Define.
1317
81ff47b3
MR
13182017-01-18 Maciej W. Rozycki <macro@imgtec.com>
1319
1320 PR ld/20828
1321 * elflink.c (bfd_elf_record_link_assignment): Clear any
1322 `forced_local' marking for DSO symbols that are not being
1323 provided.
1324
640d6bfd
KLC
13252017-01-17 Kuan-Lin Chen <kuanlinchentw@gmail.com>
1326
1327 * elfnn-riscv.c (riscv_elf_object_p): New function.
1328
8361ed4d
L
13292017-01-12 H.J. Lu <hongjiu.lu@intel.com>
1330
1331 PR ld/21038
1332 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add
1333 plt_bnd_eh_frame.
1334 (elf_x86_64_check_relocs): Create .eh_frame section for the
1335 .plt.bnd section.
1336 (elf_x86_64_size_dynamic_sections): Allocate and initialize
1337 .eh_frame section for the .plt.bnd section.
1338 (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section
1339 for the .plt.bnd section.
1340
2425a30e
NC
13412017-01-12 Nick Clifton <nickc@redhat.com>
1342
1343 PR binutils/20876
1344 * opncls.c (find_separate_debug_file): Add include_dirs
1345 parameter. Only include the directory part of the bfd's filename
1346 in search paths if include_dirs is true. Add a couple of extra
1347 locations for looking for debug files.
1348 ( bfd_follow_gnu_debuglink): Update invocation of
1349 find_separate_debug_file.
1350 (bfd_follow_gnu_debugaltlink): Likewise.
1351 (get_build_id): New function: Finds the build-id of the given bfd.
1352 (get_build_id_name): New function: Computes the name of the
1353 separate debug info file for a bfd, based upon its build-id.
1354 (check_build_id_file): New function: Checks to see if a separate
1355 debug info file exists at the given location, and that its
1356 build-id matches that of the original bfd.
1357 (bfd_follow_build_id_debuglink): New function: Finds a separate
1358 debug info file for a given bfd by using the build-id method.
1359 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Try using the build-id
1360 method of locating a separate debug info file before using the
1361 debuglink method.
1362 * bfd-in2.h: Regenerate.
1363
9e659176
L
13642017-01-11 H.J. Lu <hongjiu.lu@intel.com>
1365
1366 PR ld/21038
1367 * elf64-x86-64.c (elf_x86_64_eh_frame_bnd_plt): New.
1368 (elf_x86_64_bnd_arch_bed): Use elf_x86_64_eh_frame_bnd_plt and
1369 elf_x86_64_eh_frame_plt_got.
1370 (elf_x86_64_size_dynamic_sections): Get unwind info from
1371 elf_x86_64_bnd_arch_bed for the BND PLT.
1372
f2e2d2f5
JS
13732017-01-11 Jeremy Soller <jackpot51@gmail.com>
1374
1375 * config.bfd: Add entries for i686-redox and x86_64-redox.
1376
52b232b3
L
13772017-01-10 H.J. Lu <hongjiu.lu@intel.com>
1378
1379 * elf32-i386.c (elf_i386_check_relocs): Align .eh_frame section
1380 to 4 bytes.
1381 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Align
1382 .eh_frame section to 4 bytes for x32.
1383 (elf_x86_64_check_relocs): Likewise.
1384
fff53dae
L
13852017-01-10 H.J. Lu <hongjiu.lu@intel.com>
1386
1387 PR ld/20830
1388 * elf32-i386.c (elf_i386_eh_frame_plt_got): New.
1389 (PLT_GOT_FDE_LENGTH): Likewise.
1390 (elf_i386_plt_layout): Add eh_frame_plt_got and
1391 eh_frame_plt_got_size.
1392 (elf_i386_plt): Updated.
1393 (elf_i386_link_hash_table): Add plt_got_eh_frame.
1394 (elf_i386_check_relocs): Create .eh_frame section for .plt.got.
1395 (elf_i386_size_dynamic_sections): Allocate and initialize
1396 .eh_frame section for .plt.got.
1397 (elf_i386_finish_dynamic_sections): Adjust .eh_frame section for
1398 .plt.got.
1399 (elf_i386_nacl_plt): Add FIXME for eh_frame_plt_got and
1400 eh_frame_plt_got_size.
1401 * elf64-x86-64.c (elf_x86_64_eh_frame_plt_got): New.
1402 (PLT_GOT_FDE_LENGTH): Likewise.
1403 (elf_x86_64_backend_data): Add eh_frame_plt_got and
1404 eh_frame_plt_got_size.
1405 (elf_x86_64_arch_bed): Updated.
1406 (elf_x86_64_bnd_arch_bed): Add FIXME for eh_frame_plt_got and
1407 eh_frame_plt_got_size.
1408 (elf_x86_64_nacl_arch_bed): Likewise.
1409 (elf_x86_64_link_hash_table): Add plt_got_eh_frame.
1410 (elf_x86_64_check_relocs): Create .eh_frame section for .plt.got.
1411 (elf_x86_64_size_dynamic_sections): Allocate and initialize
1412 .eh_frame section for .plt.got.
1413 (elf_x86_64_finish_dynamic_sections): Adjust .eh_frame section
1414 for .plt.got.
1415
f129e49f
L
14162017-01-10 H.J. Lu <hongjiu.lu@intel.com>
1417
1418 * elf32-i386.c (elf_i386_size_dynamic_sections): Set
1419 plt_eh_frame->size to eh_frame_plt_size and use eh_frame_plt.
1420
cd6581da
NC
14212017-01-09 Nick Clifton <nickc@redhat.com>
1422
1423 * dwarf2.c (lookup_address_in_function_table): Return early if
1424 there are no functions in the given comp unit, or if the high
1425 address of the last function in the comp unit is less than the
1426 desired address.
1427
98f02962
NC
14282017-01-09 Nick Clifton <nickc@redhat.com>
1429
1430 PR binutils/21013
1431 * coffgen.c (_bfd_coff_get_external_symbols): Generate an error
1432 message if there are too many symbols to load.
1433
ae4fda66
JC
14342017-01-04 James Clarke <jrtc27@jrtc27.com>
1435
1436 * elf64-alpha.c (elf64_alpha_relax_opt_call): Don't set tsec_free
1437 if relocs are cached.
1438
de1010f4
RF
14392017-01-03 Rich Felker <bugdal@aerifal.cx>
1440
1441 PR ld/21017
1442 * elf32-microblaze.c (microblaze_elf_check_relocs): Add an entry
1443 for R_MICROBLAZE_GOTOFF_64.
1444
09fe2662
NC
14452017-01-03 Nick Clifton <nickc@redhat.com>
1446
1447 * mach-o.c (bfd_mach_o_lookup_uuid_command): Fix compile time
1448 warning about using a possibly uninitialised variable.
1449
595e0a47
AM
14502017-01-02 Alan Modra <amodra@gmail.com>
1451
1452 * elf32-hppa.c (ensure_undef_weak_dynamic): New function.
1453 (allocate_plt_static, allocate_dynrelocs): Use it.
1454
7bd9df3b
AM
14552017-01-02 Alan Modra <amodra@gmail.com>
1456
1457 * elf-hppa.h (elf_hppa_fake_sections): Set SHF_INFO_LINK for
1458 .PARISC.unwind section.
1459
5b86074c
AM
14602017-01-02 Alan Modra <amodra@gmail.com>
1461
1462 PR ld/20989
1463 * elfxx-sparc.c (gdop_relative_offset_ok): New function.
1464 (_bfd_sparc_elf_relocate_section): Use it to validate GOT
1465 indirect to GOT pointer relative code edit.
1466
2571583a
AM
14672017-01-02 Alan Modra <amodra@gmail.com>
1468
1469 Update year range in copyright notice of all files.
1470
5c1ad6b5 1471For older changes see ChangeLog-2016
3499769a 1472\f
5c1ad6b5 1473Copyright (C) 2017 Free Software Foundation, Inc.
3499769a
AM
1474
1475Copying and distribution of this file, with or without modification,
1476are permitted in any medium without royalty provided the copyright
1477notice and this notice are preserved.
1478
1479Local Variables:
1480mode: change-log
1481left-margin: 8
1482fill-column: 74
1483version-control: never
1484End:
This page took 0.287222 seconds and 4 git commands to generate.