This fixes a problem building large (> 2Gb) binaries on 32-bit hosts. Using a
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2014-04-03 Maria Guseva <m.guseva@samsung.com>
2
3 PR ld/16803
4 * elf.c (_bfd_elf_set_section_contents): Use correct type to hold
5 file position.
6
7 2014-04-03 Tristan Gingold <gingold@adacore.com>
8
9 * mach-o.c (bfd_mach_o_mangle_symbols): Use index from
10 output_section.
11 (bfd_mach_o_build_seg_command): Add comment. Realign segment.
12 Fix style.
13 (bfd_mach_o_build_commands, bfd_mach_o_read_thread): Fix style.
14
15 2014-04-03 Alan Modra <amodra@gmail.com>
16
17 * elf-bfd.h (struct elf_backend_data
18 <elf_backend_bfd_from_remote_memory>): Replace "size_t size"
19 with "bfd_size_type size".
20 (_bfd_elf32_bfd_from_remote_memory): Likewise.
21 (_bfd_elf64_bfd_from_remote_memory): Likewise.
22 * elf.c (bfd_elf_bfd_from_remote_memory): Likewise.
23 * elfcode.h (bfd_from_remote_memory): Likewise.
24 * bfd-in.h (bfd_elf_bfd_from_remote_memory): Likewise.
25 * bfd-in2.h: Regenerate.
26
27 2014-04-02 Tristan Gingold <gingold@adacore.com>
28
29 * mach-o.h (bfd_mach_o_twolevel_hints_command)
30 (bfd_mach_o_prebind_cksum_command): New types.
31 (bfd_mach_o_prebound_dylib_command): Rewrite.
32 (bfd_mach_o_load_command): Add prebind_cksum and twolevel_hints
33 fields.
34 * mach-o.c (bfd_mach_o_read_prebound_dylib): Read and decode the
35 command.
36 (bfd_mach_o_read_prebind_cksum): New function.
37 (bfd_mach_o_read_twolevel_hints): Ditto.
38 (bfd_mach_o_read_command): Handle prebind cksum and twolevel hints
39 commands.
40
41 2014-04-02 Alan Modra <amodra@gmail.com>
42
43 * elfcode.h (bfd_from_remote_memory): Add "size" parameter.
44 Consolidate code handling possible section headers past end of
45 segment. Don't use p_align for page size guess, instead use
46 minpagesize. Take note of ld.so clearing section headers when
47 p_memsz > p_filesz. Handle file header specifying no section
48 headers. Handle zero p_align throughout. Default loadbase to
49 zero. Add comments. Rename contents_size to high_offset, and
50 make it a bfd_vma. Delete unnecessary bfd_set_error calls.
51 * bfd-in.h (bfd_elf_bfd_from_remote_memory): Update prototpe.
52 * elf-bfd.h (struct elf_backend_data <elf_backend_from_remote_memory>):
53 Likewise.
54 (_bfd_elf32_bfd_from_remote_memory): Likewise.
55 (_bfd_elf64_bfd_from_remote_memory): Likewise.
56 * elf.c (bfd_elf_bfd_from_remote_memory): Adjust.
57 * bfd-in2.h: Regnerate.
58
59 2014-04-01 Tristan Gingold <gingold@adacore.com>
60
61 * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Avoid to crash
62 when num == 0.
63
64 2014-03-27 Yury Gribov <y.gribov@samsung.com>
65 Pavel Fedin <p.fedin@samsung.com>
66
67 * elf32-arm.c: Add support for limited pretty-printing of PLT
68 entries on eabi and nacl targets.
69 (elf32_arm_get_synthetic_symtab): Add new callback.
70 (elf32_arm_nacl_plt_sym_val): Likewise.
71 (elf32_arm_plt0_size): Add helper function.
72 (elf32_arm_plt_size): Likewise.
73
74 2014-03-27 Tristan Gingold <gingold@adacore.com>
75
76 * mach-o.c (bfd_mach_o_read_dylinker): Remove assert.
77 (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_DYLD_ENVIRONMENT.
78
79 2014-03-27 Tristan Gingold <gingold@adacore.com>
80
81 * mach-o.h (bfd_mach_o_get_base_address): New prototype.
82 * mach-o.c (bfd_mach_o_write_symtab)
83 (bfd_mach_o_write_contents)
84 (bfd_mach_o_set_section_flags_from_bfd)
85 (bfd_mach_o_build_seg_command): Fix indentation.
86 (bfd_mach_o_get_base_address): New function.
87
88 2014-03-26 Nick Clifton <nickc@redhat.com>
89
90 * cofflink.c (_bfd_coff_generic_relocate_section): Skip
91 relocations in discarded sections.
92
93 2014-03-26 Tristan Gingold <gingold@adacore.com>
94
95 * mach-o.c (bfd_mach_o_convert_architecture): Add
96 BFD_MACH_O_CPU_TYPE_ARM64.
97
98 2014-03-26 Alan Modra <amodra@gmail.com>
99
100 * elf64-ppc.c (ppc64_elf_check_relocs): Account for possibly
101 needed plt entries when taking the address of functions for
102 abiversion == 0 (ie. unknown) as well as abiversion == 2.
103 Move opd setup and abiversion checks to..
104 (ppc64_elf_before_check_relocs): ..here. Renamed from
105 ppc64_elf_process_dot_syms. Set output abiversion from input and
106 input abiversion from output, if either is not set.
107 (ppc64_elf_merge_private_bfd_data): Don't merge flags here.
108 (elf_backend_check_directives): Update.
109
110 2014-03-25 Will Newton <will.newton@linaro.org>
111
112 * elfnn-aarch64.c (elfNN_aarch64_finish_dynamic_sections):
113 Set value of DT_PLTRELSZ and DT_RELASZ based on the size
114 of input sections rather than output sections.
115
116 2014-03-20 Will Newton <will.newton@linaro.org>
117
118 PR ld/16715
119 * elf32-arm.c (elf32_arm_check_relocs): Set
120 pointer_equality_needed for absolute references within
121 executable links.
122 (elf32_arm_finish_dynamic_symbol): Set st_value to zero
123 unless pointer_equality_needed is set.
124
125 2014-03-19 Nick Clifton <nickc@redhat.com>
126
127 * peXXigen.c (rsrc_process_section): Add code to scan input
128 sections and record their lengths. Use these lengths to find the
129 start of each merged .rsrc section.
130
131 2014-03-17 Tristan Gingold <gingold@adacore.com>
132
133 * mach-o.c (bfd_mach_o_read_dylib): Handle lazy load dylib.
134 (bfd_mach_o_read_command): Ditto.
135
136 2014-03-14 Meador Inge <meadori@codesourcery.com>
137
138 * configure.in: Add strnlen to AC_CHECK_DECLS.
139 * config.in: Regenerate.
140 * configure: Regenerate.
141 * sysdep.h (strnlen): Add prototype.
142
143 2014-03-14 Alan Modra <amodra@gmail.com>
144
145 * elf32-ppc.c (ppc_elf_relocate_section): Correct overflow
146 handling for VLE_SDA21 relocs.
147
148 2014-03-13 Tristan Gingold <gingold@adacore.com>
149
150 * peicode.h (pe_ILF_object_p): Adjust, as the version number
151 has been read.
152 (pe_bfd_object_p): Also read version number to detect ILF.
153 * pe-x86_64.c (COFF_WITH_PE_BIGOBJ): Define.
154 (x86_64pe_bigobj_vec): Define
155 * coffcode.h (bfd_coff_backend_data): Add _bfd_coff_max_nscns field.
156 (bfd_coff_max_nscns): New macro.
157 (coff_compute_section_file_positions): Use unsigned int for
158 target_index. Compare with bfd_coff_max_nscns.
159 (bfd_coff_std_swap_table, ticoff0_swap_table, ticoff1_swap_table):
160 Set a value for _bfd_coff_max_nscns.
161 (header_bigobj_classid): New constant.
162 (coff_bigobj_swap_filehdr_in, coff_bigobj_swap_filehdr_out)
163 (coff_bigobj_swap_sym_in, coff_bigobj_swap_sym_out)
164 (coff_bigobj_swap_aux_in, coff_bigobj_swap_aux_out): New
165 functions.
166 (bigobj_swap_table): New table.
167 * libcoff.h: Regenerate.
168 * coff-sh.c (bfd_coff_small_swap_table): Likewise.
169 * coff-alpha.c (alpha_ecoff_backend_data): Add value for
170 _bfd_coff_max_nscns.
171 * coff-mips.c (mips_ecoff_backend_data): Likewise.
172 * coff-rs6000.c (bfd_xcoff_backend_data)
173 (bfd_pmac_xcoff_backend_data): Likewise.
174 * coff64-rs6000.c (bfd_xcoff_backend_data)
175 (bfd_xcoff_aix5_backend_data): Likewise.
176 * targets.c (x86_64pe_bigobj_vec): Declare.
177 * configure.in (x86_64pe_bigobj_vec): New vector.
178 * configure: Regenerate.
179 * config.bfd: Add bigobj object format for Windows targets.
180
181 2014-03-12 Nick Clifton <nickc@redhat.com>
182
183 PR ld/16671
184 * elf32-arm.c (elf32_arm_add_symbol_hook): Check for ARM format
185 before testing for vxworks.
186
187 2014-03-12 Alan Modra <amodra@gmail.com>
188
189 * Makefile.in: Regenerate.
190
191 2014-03-12 Alan Modra <amodra@gmail.com>
192
193 PR 16690
194 * elf.c (copy_elf_program_header): Ignore first section lma if
195 non-alloc.
196
197 2014-03-11 Alan Modra <amodra@gmail.com>
198
199 PR 16686
200 * coff-rs6000.c: Include stdint.h.
201 * coff64-rs6000.c: Likewise.
202
203 2014-03-10 Tristan Gingold <gingold@adacore.com>
204
205 * ticoff.h: Removed.
206
207 2014-03-08 Alan Modra <amodra@gmail.com>
208
209 * elf32-ppc.c (ppc_elf_howto_raw): Correct overflow check for
210 many relocations. Correct bitsize and rightshift too for a number
211 of VLE relocs. Describe R_PPC_VLE_SDA21 and R_PPC_VLE_SDA21_LO.
212 Correct dst_mask on R_PPC_VLE_SDA21_LO.
213 (ppc_elf_vle_split16): Tidy, delete unnecessary prototype.
214 (ppc_elf_relocate_section): Modify overflow test for 16-bit
215 fields in instructions to signed/unsigned according to whether
216 the field takes a signed or unsigned value. Tidy vle split16 code.
217 Correct R_PPC_VLE_SDA21 and R_PPC_VLE_SDA21_LO handling.
218
219 2014-03-08 Alan Modra <amodra@gmail.com>
220
221 * elf64-ppc.c (ppc64_elf_howto_raw): Use complain_overflow_signed
222 for R_PPC64_ADDR14, R_PPC64_ADDR14_BRTAKEN, R_PPC64_ADDR14_BRNTAKEN,
223 R_PPC64_SECTOFF, R_PPC64_ADDR16_DS, R_PPC64_SECTOFF_DS,
224 R_PPC64_REL16 entries. Use complain_overflow_dont for R_PPC64_TOC.
225 (ppc64_elf_relocate_section): Modify overflow test for 16-bit
226 fields in instructions to signed/unsigned according to whether
227 the field takes a signed or unsigned value.
228
229 2014-03-07 Pedro Alves <palves@redhat.com>
230
231 PR gdb/16696
232 * rs6000-core.c (rs6000coff_core_p): Cast pointers to bfd_vma
233 through ptr_to_uint instead of through long.
234
235 2014-03-06 Nick Clifton <nickc@redhat.com>
236
237 PR 16664
238 * elf-attrs.c (_bfd_elf_parse_attributes): Add checks for corrupt
239 attribute section names.
240
241 2014-03-05 Alan Modra <amodra@gmail.com>
242
243 Update copyright years.
244
245 2014-03-05 Alan Modra <amodra@gmail.com>
246
247 * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_ADDR64_LOCAL entry.
248 (ppc64_elf_reloc_type_lookup): Support R_PPC64_ADDR64_LOCAL.
249 (ppc64_elf_check_relocs): Likewise.
250 (ppc64_elf_relocate_section): Likewise.
251 * Add BFD_RELOC_PPC64_ADDR64_LOCAL.
252 * bfd-in2.h: Regenerate.
253 * libbfd.h: Regenerate.
254
255 2014-03-04 Heiher <r@hev.cc>
256
257 * elfxx-mips.c (mips_set_isa_flags): Use E_MIPS_ARCH_64R2 for
258 Loongson-3A.
259 (mips_mach_extensions): Make bfd_mach_mips_loongson_3a an
260 extension of bfd_mach_mipsisa64r2.
261
262 2014-03-04 Nick Clifton <nickc@redhat.com>
263
264 PR ld/16017
265 * elf32-arm.c (elf32_thumb2_plt0_entry): New array.
266 (elf32_thumb2_plt_entry): New array.
267 (elf32_arm_create_dynamic_sections): Set PLT entry sizes when
268 using thumb2 based PLT.
269 (elf32_arm_populate_plt_entry): Handle generating Thumb2 based PLT
270 entries.
271 (elf32_arm_final_link_relocate): Do not bias jumps to Thumb based
272 PLT entries.
273 (elf32_arm_finish_dynamic_sections): Handle creation of Thumb2
274 based PLT 0-entry.
275 (elf32_arm_output_plt_map_1): Handle creation of local symbols for
276 Thumb2 based PLT 0-entry.
277 (elf32_arm_output_arch_local_syms): Handle creation of local
278 symbols for Thumb2 based PLT entries.
279
280 2014-02-28 Alan Modra <amodra@gmail.com>
281
282 PR ld/16643
283 * elflink.c (elf_gc_sweep): Call gc_sweep_hook for exactly
284 the same conditions we called check_relocs.
285
286 2014-02-27 Yuri Gribov <y.gribov@samsung.com>
287
288 * bfd-in.h: Add export of bfd_elf32_arm_use_long_plt.
289 * bfd-in2.h: Regenerate.
290 * elf32-arm.c (elf32_arm_plt_entry_long): New array.
291 (elf32_arm_link_hash_table_create): Set plt_entry_size to 16 if
292 using long PLT entries.
293 (bfd_elf32_arm_use_long_plt): New function.
294 (elf32_arm_populate_plt_entry): Add support for long PLT entries.
295
296 2014-02-27 Alan Modra <amodra@gmail.com>
297
298 * elf32-ppc.c (ppc_elf_link_hash_table_create): Provide default
299 params for targets that don't use ppc32elf.em.
300
301 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
302
303 * elf32-nios2.c (nios2_elf32_relocate_section): Fix calculation
304 of GOTOFF relocations.
305
306 2014-02-19 Igor Zamyatin <igor.zamyatin@intel.com>
307 H.J. Lu <hongjiu.lu@intel.com>
308
309 * elf64-x86-64.c (elf_x86_64_bnd_plt0_entry): New.
310 (elf_x86_64_legacy_plt_entry): Likewise.
311 (elf_x86_64_bnd_plt_entry): Likewise.
312 (elf_x86_64_legacy_plt2_entry): Likewise.
313 (elf_x86_64_bnd_plt2_entry): Likewise.
314 (elf_x86_64_bnd_arch_bed): Likewise.
315 (elf_x86_64_link_hash_entry): Add has_bnd_reloc and plt_bnd.
316 (elf_x86_64_link_hash_table): Add plt_bnd.
317 (elf_x86_64_link_hash_newfunc): Initialize has_bnd_reloc and
318 plt_bnd.
319 (elf_x86_64_copy_indirect_symbol): Also copy has_bnd_reloc.
320 (elf_x86_64_check_relocs): Create the second PLT for Intel MPX
321 in 64-bit mode.
322 (elf_x86_64_allocate_dynrelocs): Handle the second PLT for IFUNC
323 symbols. Resolve call to the second PLT if it is created.
324 (elf_x86_64_size_dynamic_sections): Keep the second PLT section.
325 (elf_x86_64_relocate_section): Resolve PLT references to the
326 second PLT if it is created.
327 (elf_x86_64_finish_dynamic_symbol): Use BND PLT0 and fill the
328 second PLT entry for BND relocation.
329 (elf_x86_64_finish_dynamic_sections): Use MPX backend data if
330 the second PLT is created.
331 (elf_x86_64_get_synthetic_symtab): New.
332 (bfd_elf64_get_synthetic_symtab): Likewise. Undefine for NaCl.
333
334 2014-02-19 Alan Modra <amodra@gmail.com>
335
336 * elf64-ppc.h (struct ppc64_elf_params): Add save_restore_funcs.
337 * elf64-ppc.c (ppc64_elf_func_desc_adjust): Use it to control
338 provision of out-of-line register save/restore routines.
339
340 2014-02-18 Jack Carter <jack.carter@imgtec.com>
341
342 * elfxx-mips.c(_bfd_mips_elf_modify_segment_map): Deleted hard coding of
343 PT_DYNAMIC segment flags.
344
345 2014-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
346
347 PR binutils/16595
348 * simple.c (struct saved_offsets): New.
349 (simple_save_output_info): Use it for ptr.
350 (simple_restore_output_info): Use it for ptr. Check section_count.
351 (bfd_simple_get_relocated_section_contents): Use it for saved_offsets.
352
353 2014-02-17 Alan Modra <amodra@gmail.com>
354
355 * elf64-ppc.h (struct ppc64_elf_params): Define.
356 (ppc64_elf_init_stub_bfd, ppc64_elf_edit_opd, ppc64_elf_tls_setup,
357 ppc64_elf_setup_section_lists, ppc64_elf_size_stubs,
358 ppc64_elf_build_stubs): Update prototype.
359 * elf64-ppp.c (struct ppc_link_hash_table): Add params, delete other
360 fields now in params. Adjust code throughout file.
361 (ppc64_elf_init_stub_bfd): Delete "abfd" parameter, add "params".
362 Save params pointer in htab.
363 (ppc64_elf_edit_opd, ppc64_elf_tls_setup,
364 ppc64_elf_setup_section_lists, ppc64_elf_size_stubs,
365 ppc64_elf_build_stubs): Remove parameters now in "params".
366
367 2014-02-17 Alan Modra <amodra@gmail.com>
368
369 * elf32-ppc.c (ppc_elf_relocate_section): Move relocs on insns
370 patched for ppc476 workaround. Reapply branch taken/not taken
371 relocs.
372
373 2014-02-12 Alan Modra <amodra@gmail.com>
374
375 * elf32-ppc.c (ppc_elf_relax_section): Don't build long-branch
376 stubs for calls to __tls_get_addr that we know will later be
377 optimised away.
378
379 2014-02-12 Alan Modra <amodra@gmail.com>
380
381 * elf32-ppc.c (ppc_elf_relax_section): Enable ppc476 workaround
382 for ld -r, when code sections are sufficiently aligned.
383 * elf32-ppc.h (struct ppc_elf_params): Delete pagesize. Add
384 pagesize_p2.
385
386 2014-02-12 Alan Modra <amodra@gmail.com>
387
388 PR gold/15530
389 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref): Support
390 --export-dynamic and --dynamic-list marking of symbols.
391 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Reorder
392 cheap tests first.
393
394 2014-02-10 H.J. Lu <hongjiu.lu@intel.com>
395
396 PR gold/16530
397 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Mark symbol in
398 executables if it matches dynamic_list.
399
400 2014-02-10 Alan Modra <amodra@gmail.com>
401
402 * po/SRC-POTFILES.in: Regenerate.
403 * po/bfd.pot: Regenerate.
404
405 2014-02-09 Alan Modra <amodra@gmail.com>
406
407 * elf-bfd.h (struct elf_backend_data): Add caches_rawsize.
408 * elfxx-target.h (elf_backend_caches_rawsize): Define.
409 (elfNN_bed): Init new field.
410 * elflink.c (elf_link_input_bfd): Handle caches_rawsize.
411 * elf32-ppc.c (shared_stub_entry): Zero addi offset.
412 (ppc_elf_relax_section): Don't reallocate section here, write
413 stubs, or write out relocs for ld -r here..
414 (ppc_elf_relocate_section): ..instead write stubs here, and use
415 existing code to write out relocs for ld -r. Fix offset
416 adjustment on reloc for little-endian.
417 (elf_backend_caches_rawsize): Define.
418
419 2014-02-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
420
421 PR build/16550
422 * cache.c (bfd_cache_max_open): Cast RLIM_INFINITY to rlim_t.
423
424 2014-02-04 Jan Kratochvil <jan.kratochvil@redhat.com>
425
426 * coff-rs6000.c (xcoff_write_archive_contents_big): Free OFFSETS in
427 return paths. Three times.
428 * elf64-ppc.c (ppc64_elf_link_hash_table_create): Free HTAB in all
429 return paths.
430 (ppc64_elf_tls_optimize): Free TOC_REF in return path.
431 (ppc64_elf_edit_toc): Free USED in return path.
432
433 2014-02-03 Sandra Loosemore <sandra@codesourcery.com>
434
435 * reloc.c (BFD_RELOC_NIOS2_GOT_LO, BFD_RELOC_NIOS2_GOT_HA): New.
436 (BFD_RELOC_NIOS2_CALL_LO, BFD_RELOC_NIOS2_CALL_HA): New.
437 * libbfd.h: Regenerated.
438 * bfd-in2.h: Regenerated.
439 * elf32-nios2.c (elf_nios2_howto_table_rel): Add new relocations.
440 (nios2_reloc_map): Likewise.
441 (GOT_USED, CALL_USED): Renamed from GOT16_USED and CALL16_USED.
442 Fixed all references.
443 (nios2_elf32_relocate_section): Add new relocations.
444 (nios2_elf32_check_relocs): Likewise.
445 (nios2_elf32_gc_sweep_hook): Likewise.
446
447 2014-02-03 Alan Modra <amodra@gmail.com>
448
449 * elf32-ppc.c (struct ppc_elf_link_hash_table): Add params.
450 Delete emit_stub_syms, no_tls_get_addr_opt. Update all uses.
451 (ppc_elf_link_params): New function.
452 (ppc_elf_create_glink): Align .glink to 64 bytes for ppc476
453 workaround.
454 (ppc_elf_select_plt_layout): Remove plt_style and emit_stub_syms
455 parameters. Use htab->params instead.
456 (ppc_elf_tls_setup): Remove no_tls_get_addr_opt parameter.
457 (ppc_elf_size_dynamic_sections): Align __glink_PLTresolve to
458 64 bytes for ppc476 workaround.
459 (struct ppc_elf_relax_info): New.
460 (ppc_elf_relax_section): Exclude linker created sections and
461 those too small to hold one instruction. Don't add another
462 branch around trampolines on later relax passes. Don't
463 generate trampolines for undefined symbols when !relocatable,
464 nor for plugin symbols. Allocate space for ppc476 workaround
465 patch area. Free fixups on error return path.
466 (ppc_elf_relocate_section): Handle ppc476 workaround patching.
467 * elf32-ppc.h (struct ppc_elf_params): New.
468 (ppc_elf_select_plt_layout, ppc_elf_tls_setup): Update prototype.
469 (ppc_elf_link_params): Declare.
470 * section.c (SEC_INFO_TYPE_TARGET): Define.
471 * bfd-in2.h: Regenerate.
472
473 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
474
475 * elf32-nios2.c (struct elf32_nios2_link_hash_table): Add
476 h_gp_got field.
477 (nios2_elf32_relocate_section): Use got_base to adjust
478 GOT-pointer-relative relocations relative to _gp_got.
479 (create_got_section): Create _gp_got symbol.
480 (nios2_elf32_finish_dynamic_symbol): Make _gp_got absolute.
481 (nios2_elf32_size_dynamic_sections): Set _gp_got offset.
482
483 2014-01-30 Sandra Loosemore <sandra@codesourcery.com>
484
485 * bfd-in2.h: Update from reloc.c.
486 * elf32-nios2.c: Include elf32-nios2.h.
487 (elf_nios2_howto_table_rel): Add entry for R_NIOS2_CALL26_NOAT.
488 (nios2_reloc_map): Likewise.
489 (enum elf32_nios2_stub_type): Declare.
490 (struct elf32_nios2_stub_hash_entry): Declare.
491 (nios2_stub_hash_entry, nios2_stub_hash_lookup): New macros.
492 (struct elf32_nios2_link_hash_entry): Add hsh_cache field.
493 (struct elf32_nios2_link_hash_table): Add new fields bstab,
494 stub_bfd, add_stub_section, layout_sections_again, stub_group,
495 bfd_count, top_index, input_list, all_local_syms.
496 (nios2_call26_stub_entry): New.
497 (nios2_elf32_install_imm16): Move up in file.
498 (nios2_elf32_install_data): Move up in file.
499 (hiadj): Move up in file.
500 (stub_hash_newfunc): New.
501 (link_hash_newfunc): Initialize hsh_cache field.
502 (STUB_SUFFIX): New.
503 (nios2_stub_name): New.
504 (nios2_get_stub_entry): New.
505 (nios2_add_stub): New.
506 (nios2_elf32_setup_section_lists): New.
507 (nios2_elf32_next_input_section): New.
508 (CALL26_SEGMENT): New.
509 (MAX_STUB_SECTION_SIZE): New.
510 (group_sections): New.
511 (nios2_type_of_stub): New.
512 (nios2_build_one_stub): New.
513 (nios2_size_one_stub): New.
514 (get_local_syms): New.
515 (nios2_elf32_size_stubs): New.
516 (nios2_elf32_build_stubs): New.
517 (nios2_elf32_do_call26_relocate): Correct CALL26 overflow test.
518 (nios2_elf32_relocate_section): Handle R_NIOS2_CALL26_NOAT. Add
519 trampolines for R_NIOS2_CALL26 stubs.
520 (nios2_elf32_check_relocs): Handle R_NIOS2_CALL26_NOAT.
521 (nios2_elf32_gc_sweep_hook): Likewise.
522 (nios2_elf32_link_hash_table_create): Initialize the stub hash table.
523 (nios2_elf32_link_hash_table_free): New.
524 (bfd_elf32_bfd_link_hash_table_free): Define.
525 * elf32-nios2.h: New file.
526 * libbfd.h: Update from reloc.c.
527 * reloc.c (BFD_RELOC_NIOS2_CALL26_NOAT): New.
528
529 2014-01-29 Nick Clifton <nickc@redhat.com>
530
531 PR binutils/16318
532 * elf32-metag.c (elf_metag_post_process_headers): Call
533 _bfd_elf_post_process_headers.
534 * elf32-sh64.c (sh64_elf_copy_private_data): Call
535 _bfd_elf_copy_private_data.
536 * elf64-sh64.c (sh_elf64_copy_private_data_internal): Likewise.
537
538 2014-01-29 Nick Clifton <nickc@redhat.com>
539
540 * bfd-in.h (bfd_set_section_vma): Delete.
541 (bfd_set_section_alignment): Delete.
542 (bfd_set_section_userdata): Delete.
543 (bfd_set_cacheable): Delete.
544 * bfd.c (bfd_set_cacheable): New static inline function.
545 * section.c (bfd_set_section_userdata): Likewise.
546 (bfd_set_section_vma): Likewise.
547 (bfd_set_section_alignment): Likewise.
548 * bfd-in2.h: Regenerate.
549
550 2014-01-28 Nick Clifton <nickc@redhat.com>
551
552 * dwarf2.c (find_abstract_instance_name): For DW_FORM_ref_addr
553 attributes select the CU containing the abbreviation, which may not
554 be the current CU.
555
556 2014-01-24 Alan Modra <amodra@gmail.com>
557
558 * elf64-ppc.c (ppc_build_one_stub): Correct reloc count passed
559 to get_relocs for ELFv2.
560
561 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
562
563 PR ld/16498
564 * elf.c (_bfd_elf_map_sections_to_segments): Issue a linker error
565 if TLS sections are not adjacent.
566
567 2014-01-22 Alan Modra <amodra@gmail.com>
568
569 * elflink.c (elf_link_add_object_symbols): Call minfo for --as-needed.
570
571 2014-01-22 Alan Modra <amodra@gmail.com>
572
573 * elf64-ppc.c (STK_LINKER): Comment typo fix.
574
575 2014-01-21 H.J. Lu <hongjiu.lu@intel.com>
576
577 PR ld/16467
578 * elflink.c (_bfd_elf_merge_symbol): When types of the existing
579 regular default symbol definition and the versioned dynamic
580 symbol definition mismatch, skip the default symbol definition
581 if one of them is IFUNC.
582
583 2014-01-21 H.J. Lu <hongjiu.lu@intel.com>
584
585 PR ld/2404
586 * elflink.c (_bfd_elf_merge_symbol): Don't check info->shared,
587 info->export_dynamic nor h->ref_dynamic for type mismatch when
588 adding the default version.
589
590 2014-01-16 Alan Modra <amodra@gmail.com>
591
592 * elfxx-mips.c (mips_elf_record_got_page_entry): Pass in a
593 mips_elf_traverse_got_arg* rather than mips_got_info*.
594 Adjust caller. Alloc on output_bfd rather than symbol section
595 owner.
596
597 2014-01-15 H.J. Lu <hongjiu.lu@intel.com>
598
599 * elf32-i386.c (elf_i386_allocate_dynrelocs): Revert the last
600 change.
601 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
602
603 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
604
605 PR ld/16428
606 * elf32-i386.c (elf_i386_allocate_dynrelocs): Don't discard relocs
607 against __ehdr_start.
608 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
609
610 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
611
612 * elf32-i386.c (elf_i386_allocate_dynrelocs): Revert the last
613 change.
614 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
615
616 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
617
618 PR ld/16428
619 * elf32-i386.c (elf_i386_allocate_dynrelocs): Don't update reloc
620 count if there are any non pc-relative relocs.
621 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs): Likewise.
622
623 2014-01-14 Michael Hudson-Doyle <michael.hudson@linaro.org>
624 Kugan Vivekanandarajah <kugan.vivekanandarajah@linaro.org>
625
626 * elfnn-aarch64.c (elfNN_aarch64_final_link_relocate): Use correct
627 offset while calculating relocation address.
628 (elfNN_aarch64_create_small_pltn_entry): Likewise.
629 (elfNN_aarch64_init_small_plt0_entry): Likewise.
630
631 2014-01-13 Ma Jiang <ma.jiang@zte.com.cn>
632
633 PR ld/16202
634 * elf32-arm.c (elf32_arm_final_link_relocate): Refetch addends for
635 R_ARM_ABS8 and R_ARM_ABS16.
636
637 2014-01-13 Alan Modra <amodra@gmail.com>
638
639 * elf32-ppc.c (ppc_elf_check_relocs): For @local call to ifunc,
640 error when shared and force a plt call otherwise.
641 (ppc_elf_size_dynamic_sections): Don't emit DT_PPC_GOT unless
642 plt_type == PLT_NEW.
643 (ppc_elf_relocate_section): Add missing test to resolve ifuncs to
644 the appropriate call stub.
645
646 2014-01-10 Alan Modra <amodra@gmail.com>
647
648 PR ld/14207
649 PR ld/16322
650 PR binutils/16323
651 * elf.c (assign_file_positions_for_load_sections): Revert last change.
652 (assign_file_positions_for_non_load_sections): When setting up
653 PT_GNU_RELRO header, don't require a corresponding PT_LOAD
654 header that completely covers the relro region.
655
656 2014-01-09 Tristan Gingold <gingold@adacore.com>
657
658 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): use jump
659 table macros and add macros to initializa the structure.
660
661 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
662
663 PR ld/14207
664 PR ld/16322
665 PR binutils/16323
666 * elf.c (_bfd_elf_map_sections_to_segments): Don't check section
667 size for PT_GNU_RELRO segment.
668 (assign_file_positions_for_load_sections): If PT_LOAD segment
669 doesn't fit PT_GNU_RELRO segment, adjust its p_filesz and p_memsz.
670
671 2014-01-07 Tom Tromey <tromey@redhat.com>
672
673 * elf32-xtensa.c (vsprint_msg): Don't use old VA_* compatibility
674 wrappers.
675
676 2014-01-03 Nick Clifton <nickc@redhat.com>
677
678 PR binutils/16199
679 * elf.c (vma_page_aligned_bias): Handle a maxpagesize value of
680 zero.
681
682 2014-01-02 Yuanhui Zhang <asmwarrior@gmail.com>
683
684 PR binutils/14289
685 * pef.c (bfd_pef_xlib_read_header): Increase buffer size to 80.
686
687 2014-01-02 Nick Clifton <nickc@redhat.com>
688
689 PR binutils/11983
690 * archive.c (_bfd_get_elt_at_filepos): Store a copy of the
691 filename in the bfd's filename field.
692 * elfcode.h (bfd_from_remote_memory): Likewise.
693 * ieee.c (ieee_object_p): Likewise.
694 * mach-o.c (bfd_mach_o_fat_member_init): Likewise.
695 * oasys.c (oasys_openr_next_archived_file): Likewise.
696 * vms-lib.c (_bfd_vms_lib_get_module): Likewise.
697 * opncls.c (bfd_fopen): Likewise.
698 (bfd_openstreamr): Likewise.
699 (bfd_openr_iovec): Likewise.
700 (bfd_openw): Likewise.
701 (bfd_create): Likewise.
702 (_bfd_delete_bfd): Free filename.
703
704 For older changes see ChangeLog-2013
705 \f
706 Copyright (C) 2014 Free Software Foundation, Inc.
707
708 Copying and distribution of this file, with or without modification,
709 are permitted in any medium without royalty provided the copyright
710 notice and this notice are preserved.
711
712 Local Variables:
713 mode: change-log
714 left-margin: 8
715 fill-column: 74
716 version-control: never
717 End:
This page took 0.050213 seconds and 4 git commands to generate.