1 2010-09-23 Alan Modra <amodra@gmail.com>
3 * cpu-d10v.c: Make bits_per_address 18 for all arch_info entries.
5 2010-09-23 Alan Modra <amodra@gmail.com>
7 * elf.c (_bfd_elf_init_private_section_data): Allow for SEC_RELOC
8 difference between input and output section.
10 2010-09-22 Kai Tietz <kai.tietz@onevision.com>
12 * coffcode.h (sec_to_styp_flags): Adjust debug
13 sections to be conform to pe-coff specification
14 and avoid marking them as excluded.
15 (styp_to_sec_flags): Doing reverse mapping.
17 * peXXigen.c (_bfd_XXi_final_link_postscript): Add handling for
18 setting IAT directory entry.
20 2010-09-20 Richard Henderson <rth@redhat.com>
22 * elf64-alpha.c (elf64_alpha_howto_table): Use bfd_elf_generic_reloc.
24 2010-09-19 Richard Sandiford <rdsandiford@googlemail.com>
26 * elfxx-mips.c (mips_elf_link_hash_entry): Add got_only_for_calls.
27 (mips_elf_link_hash_newfunc): Initialize it.
28 (mips_elf_record_global_got_symbol): Add a for_call parameter.
29 (mips_elf_count_got_symbols): Check SYMBOL_CALLS_LOCAL rather
30 than SYMBOL_REFERENCES_LOCAL if the GOT entry is only used for calls.
31 Try to remove .got entries in favour of .got.plt entries on VxWorks.
32 (_bfd_mips_elf_check_relocs): Do not try to avoid allocating
33 a global GOT entry for VxWorks calls. Update uses of
34 mips_elf_record_global_got_symbol.
35 (allocate_dynrelocs): Set got_only_for_calls to false if the GOT
36 entry is used for dynamic relocations.
38 2010-09-19 Richard Sandiford <rdsandiford@googlemail.com>
40 * elfxx-mips.c (mips_got_entry): Adjust commentary.
41 (mips_elf_create_local_got_entry): If given a symbol, check that it
42 has been assigned to the local part of the GOT.
43 (mips_elf_count_got_symbols): Take the bfd_link_info as argument
44 instead of the master GOT. Put all locally-binding symbols in
46 (mips_elf_make_got_per_bfd): Use global_got_area to decide whether
47 a symbol lives in the local or global area.
48 (mips_elf_local_relocation_p): Remove check_forced argument and
49 retain only the !check_forced behavior.
50 (mips_elf_calculate_relocation): Adjust call accordingly.
51 Use global_got_area to decide whether an output relocation
52 should be local or global. Explicitly decay R_MIPS_GOT_PAGE
53 into R_MIPS_GOT_DISP where appropriate. Fix selection of
54 local vs. global semantics for R_MIPS*_26. Remove redundant
55 reevaluation of what is stored in was_local_p.
56 (mips_elf_create_dynamic_relocation): Use global_got_area to decide
57 whether the relocation should be against a global or local symbol.
58 (mips_elf_lay_out_got): Update the GOT traversal after the above
59 change to mips_elf_count_got_symbols.
60 (mips_elf_adjust_addend): Adjust call to mips_elf_local_relocation_p.
61 (_bfd_mips_elf_relocate_section): Likewise.
62 (_bfd_mips_elf_finish_dynamic_symbol): Use global_got_area to decide
63 whether the symbol has a global got entry.
64 (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
66 2010-09-19 Richard Sandiford <rdsandiford@googlemail.com>
68 * elfxx-mips.c (allocate_dynrelocs): Don't add relocation symbols
69 to the global GOT on VxWorks.
71 2010-09-19 Richard Sandiford <rdsandiford@googlemail.com>
73 * elfxx-mips.c (_bfd_mips_elf_check_relocs): On VxWorks,
74 exclude __GOTT_BASE__ and __GOTT_INDEX__ from the warning
75 about HI/LO relocations in shared objects.
77 2010-09-16 Alan Modra <amodra@gmail.com>
79 * elf32-spu.c (spu_elf_size_sections): Omit fixups for non-alloc
81 (spu_elf_create_sections): Mark .fixup with SEC_LINKER_CREATED and
83 (spu_elf_finish_dynamic_sections): New function.
84 (elf_backend_finish_dynamic_sections): Define.
86 2010-09-16 Alan Modra <amodra@gmail.com>
88 * elf.c (bfd_elf_get_default_section_type): Don't test SEC_NEVER_LOAD.
89 * elflink.c (elf_link_input_bfd): Likewise.
91 2010-09-15 Kai Tietz <kai.tietz@onevision.com>
93 * pei-x86_64.c (pex64_get_unwind_info): Reorgnized.
94 (pex64_get_scope_entry): Removed.
95 (find_next_xdata_or_end): New helper.
96 (pex64_dump_xdata): Reworked.
97 (pex64_bfd_print_pdata): Add checking for
98 valid pdata sorting and values. Reworked
101 2010-09-15 H.J. Lu <hongjiu.lu@intel.com>
104 * plugin.c (bfd_plugin_object_p): Handle NULL iostream.
106 2010-09-14 Kai Tietz <kai.tietz@onevision.com>
108 * pe-x86_64.c (COFF_SECTION_ALIGNMENT_ENTRIES): Make
109 .rdata, .data, and .text partial matched section names.
110 * pei-x86_64.c: Likewise.
112 * peXXigen.c (sort_x64_pdata): New helper.
113 (_bfd_XXi_final_link_postscript): Do pdata sorting.
115 2010-09-09 H.J. Lu <hongjiu.lu@intel.com>
118 * elf.c (assign_file_positions_for_load_sections): Don't warn
121 2010-09-09 Bernd Schmidt <bernds@codesourcery.com>
124 * elflink.c (bfd_elf_final_link): Correct calculation of
125 max_external_reloc_size.
127 2010-09-07 Alan Modra <amodra@gmail.com>
128 Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de>
130 * peXXigen.c: Whitespace.
131 (pe_print_idata): Correct section limit calculations. Tidy array
133 (_bfd_XX_print_ce_compressed_pdata): Don't leak memory.
135 2010-09-02 Richard Henderson <rth@redhat.com>
137 * config.bfd (x86_64-*-mingw*): Select 32-bit pei vectors too.
139 2010-09-01 Pedro Alves <pedro@codesourcery.com>
141 * netbsd-core.c (netbsd_core_core_file_pid): Renamed to ...
142 (netbsd_core_file_pid): ... this.
144 2010-09-01 Tristan Gingold <gingold@adacore.com>
146 * coffcode.h (coff_slurp_line_table): Add a cast.
147 (coff_slurp_reloc_table): Ditto.
149 2010-08-30 Gunther Nikl <gnikl@users.sourceforge.net>
151 * cisco-core.c (cisco_core_file_pid): Define.
153 2010-08-30 Alan Modra <amodra@gmail.com>
156 * elf.c (copy_elf_program_header): Calculate map->header_size
157 from lowest_section, not first_section. Validate program
158 header p_paddr against section lma. Find lowest_section in
159 second loop over headers.
161 2010-08-28 Alan Modra <amodra@gmail.com>
163 * elflink.c (_bfd_elf_dynamic_symbol_p): Rename param. Make
165 (_bfd_elf_symbol_refs_local_p): Expand comment.
166 (elf_link_output_extsym): Fix style nit.
168 2010-08-26 Nathan Sidwell <nathan@codesourcery.com>
170 * elf32-arm.c (elf32_arm_final_link): Process stub sections
173 2010-08-25 H.J. Lu <hongjiu.lu@intel.com>
176 * elflink.c (elf_link_add_object_symbols): Don't set
177 unique_global for non-ELF hash link table.
179 2010-08-25 H.J. Lu <hongjiu.lu@intel.com>
182 * elf-bfd.h (elf_backend_data): Add target_id.
183 (bfd_elf_make_generic_object): Renamed to ...
184 (bfd_elf_make_object): This.
186 * elf.c (bfd_elf_make_generic_object): Removed.
187 (bfd_elf_make_object): New.
188 (bfd_elf_mkcorefile): Really treat it as an object file.
190 * elf-m10300.c (ELF_TARGET_ID): New.
191 * elf32-arm.c (ELF_TARGET_ID): Likewise.
192 * elf32-bfin.c (ELF_TARGET_ID): Likewise.
193 * elf32-cris.c (ELF_TARGET_ID): Likewise.
194 * elf32-frv.c (ELF_TARGET_ID): Likewise.
195 * elf32-i386.c (ELF_TARGET_ID): Likewise.
196 * elf32-lm32.c (ELF_TARGET_ID): Likewise.
197 * elf32-m32r.c (ELF_TARGET_ID): Likewise.
198 * elf32-m68hc11.c (ELF_TARGET_ID): Likewise.
199 * elf32-m68hc12.c (ELF_TARGET_ID): Likewise.
200 * elf32-m68k.c (ELF_TARGET_ID): Likewise.
201 * elf32-microblaze.c (ELF_TARGET_ID): Likewise.
202 * elf32-ppc.c (ELF_TARGET_ID): Likewise.
203 * elf32-s390.c (ELF_TARGET_ID): Likewise.
204 * elf32-sh.c (ELF_TARGET_ID): Likewise.
205 * elf32-sparc.c (ELF_TARGET_ID): Likewise.
206 * elf32-spu.c (ELF_TARGET_ID): Likewise.
207 * elf32-tic6x.c (ELF_TARGET_ID): Likewise.
208 * elf32-xtensa.c (ELF_TARGET_ID): Likewise.
209 * elf64-alpha.c (ELF_TARGET_ID): Likewise.
210 * elf64-hppa.c (ELF_TARGET_ID): Likewise.
211 * elf64-ppc.c (ELF_TARGET_ID): Likewise.
212 * elf64-s390.c (ELF_TARGET_ID): Likewise.
213 * elf64-x86-64.c (ELF_TARGET_ID): Likewise.
214 * elfxx-ia64.c (ELF_TARGET_ID): Likewise.
216 * elf32-hppa.c (elf32_hppa_mkobject): Removed.
217 (bfd_elf32_mkobject): Likewise.
218 (ELF_TARGET_ID): New.
220 * elf32-mips.c (ELF_TARGET_ID): New.
221 (bfd_elf32_mkobject): Removed.
223 * elf64-mips.c (ELF_TARGET_ID): New.
224 (bfd_elf64_mkobject): Removed.
226 * elfn32-mips.c (ELF_TARGET_ID): New.
227 (bfd_elf32_mkobject): Removed.
229 * elfxx-mips.c (_bfd_mips_elf_mkobject): Removed.
230 * elfxx-mips.h (_bfd_mips_elf_mkobject): Likewise.
232 * elfxx-target.h (bfd_elfNN_mkobject): Default to
234 (ELF_TARGET_ID): New. Default to GENERIC_ELF_DATA.
235 (elfNN_bed): Initialize target_id.
237 2010-08-25 Julian Brown <julian@codesourcery.com>
239 * elf32-arm.c (arm_stub_required_alignment): New.
240 (arm_build_one_stub): Use above to partition stubs.
241 (make_branch_to_a8_stub): Use arm_stub_a8_veneer_lwm not
242 arm_stub_a8_veneer_b_cond.
244 2010-08-25 Alan Modra <amodra@gmail.com>
246 * aout-arm.c (MY(bfd_reloc_type_lookup)): Use bfd_arch_bits_per_address.
247 * aout-ns32k.c (MY(bfd_reloc_type_lookup)): Likewise.
248 * aoutx.h (NAME(aout,reloc_type_lookup)): Likewise.
249 * coff-arm.c (coff_arm_reloc_type_lookup): Likewise.
250 * elf-hppa.h (elf_hppa_reloc_final_type): Likewise.
251 * reloc.c (bfd_default_reloc_type_lookup): Likewise.
252 * riscix.c (riscix_reloc_type_lookup): Likewise.
254 2010-08-25 Alan Modra <amodra@gmail.com>
256 * elf.c (_bfd_elf_map_sections_to_segments): Don't load program
257 headers if any loaded section wraps the address space. Simplify
258 ~(m-1) to -m. Use lma rather than vma when determining whether
259 note sections are adjacent.
261 2010-08-22 H.J. Lu <hongjiu.lu@intel.com>
264 * elflink.c (elf_link_add_object_symbols): Don't check relocation
265 if input ELF object ID doesn't match output.
267 2010-08-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
269 * configure: Regenerate.
271 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
273 * merge.c (sec_merge_emit): Revert the last checkin.
275 2010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
277 * elf32-sh.c (sh_elf_relocate_section): Handle non-ELF output
280 2010-08-20 Maciej W. Rozycki <macro@codesourcery.com>
282 * elf32-m68k.c (bfd_elf_m68k_set_target_options): Don't set GOT
283 options unless an m68k hash table has been found.
285 2010-08-20 Nick Clifton <nickc@redhat.com>
287 * merge.c (sec_merge_emit): Do not zero pad sections that do not
290 2010-08-18 Pedro Alves <pedro@codesourcery.com>
294 * bfd-in2.h: Regenerate.
295 * corefile.c (bfd_core_file_pid): New.
297 * targets.c (BFD_JUMP_TABLE_CORE): Add NAME##_core_file_pid.
298 (struct bfd_target) <_core_file_pid>: New.
300 * libbfd-in.h (_bfd_nocore_core_file_pid): Declare.
301 * libbfd.c (_bfd_nocore_core_file_pid): New.
303 * elf-bfd.h (bfd_elf32_core_file_pid, bfd_elf64_core_file_pid):
305 * elfcode.h (elf_core_file_pid): New define.
306 * elfcore.h (elf_core_file_pid): New function.
308 * elf.c (elfcore_make_pid): Rewrite.
309 (elfcore_grok_prstatus): Only set core_pid if not set yet.
310 (elfcore_grok_prstatus) [!HAVE_PRSTATUS_T_PR_WHO]: Fallback to
311 getting the lwpid from prstat.pr_pid.
313 * elf64-x86-64.c (elf64_x86_64_grok_prstatus): Write the LWPID to
314 elf_tdata's core_lwpid instead of to core_pid.
315 (elf64_x86_64_grok_psinfo): Extract the the main process's PID,
316 and store it in elf_tdata's core_pid field.
317 * elf32-i386.c (elf_i386_grok_prstatus): Write the LWPID to
318 elf_tdata's core_lwpid instead of to core_pid.
319 (elf_i386_grok_psinfo): Extract the the main process's PID, and
320 store it in elf_tdata's core_pid field.
322 * elf32-am33lin.c (elf32_am33lin_grok_prstatus): Write the LWPID
323 to elf_tdata's core_lwpid instead of to core_pid.
324 * elf32-arm.c (elf32_arm_nabi_grok_prstatus): Write the LWPID to
325 elf_tdata's core_lwpid instead of to core_pid.
326 * elf32-cris.c (cris_elf_grok_prstatus): Write the LWPID to
327 elf_tdata's core_lwpid instead of to core_pid.
328 * elf32-frv.c (elf32_frv_grok_prstatus): Write the LWPID to
329 elf_tdata's core_lwpid instead of to core_pid.
330 * elf32-hppa.c (elf32_hppa_grok_prstatus): Write the LWPID to
331 elf_tdata's core_lwpid instead of to core_pid.
332 * elf32-mips.c (elf32_mips_grok_prstatus): Write the LWPID to
333 elf_tdata's core_lwpid instead of to core_pid.
334 * elf32-ppc.c (ppc_elf_grok_prstatus): Write the LWPID to
335 elf_tdata's core_lwpid instead of to core_pid.
336 * elf32-s390.c (elf_s390_grok_prstatus): Write the LWPID to
337 elf_tdata's core_lwpid instead of to core_pid.
338 * elf32-score.c (s3_bfd_score_elf_grok_prstatus): Write the LWPID
339 to elf_tdata's core_lwpid instead of to core_pid.
340 * elf32-score7.c (s7_bfd_score_elf_grok_prstatus): Write the LWPID
341 to elf_tdata's core_lwpid instead of to core_pid.
342 * elf32-sh.c (elf32_shlin_grok_prstatus): Write the LWPID to
343 elf_tdata's core_lwpid instead of to core_pid.
344 * elf32-xtensa.c (elf_xtensa_grok_prstatus): Write the LWPID to
345 elf_tdata's core_lwpid instead of to core_pid.
346 * elf64-hppa.c (elf64_hppa_grok_prstatus): Write the LWPID to
347 elf_tdata's core_lwpid instead of to core_pid.
348 * elf64-mips.c (elf64_mips_grok_prstatus): Write the LWPID to
349 elf_tdata's core_lwpid instead of to core_pid.
350 * elf64-ppc.c (ppc64_elf_grok_prstatus): Write the LWPID to
351 elf_tdata's core_lwpid instead of to core_pid.
352 * elfn32-mips.c (elf32_mips_grok_prstatus): Write the LWPID to
353 elf_tdata's core_lwpid instead of to core_pid.
355 * plugin.c (bfd_plugin_core_file_pid): New function.
356 * aout-target.h (MY_core_file_pid): Define.
357 * aout-tic30.c (MY_core_file_pid, MY_core_file_p): New defines.
358 * coff-rs6000.c (coff_core_file_pid): New define.
359 (rs6000coff_vec, pmac_xcoff_vec): Use BFD_JUMP_TABLE_CORE.
360 * coff64-rs6000.c (coff_core_file_pid): New define.
361 (rs6000coff64_vec): Use BFD_JUMP_TABLE_CORE.
362 (xcoff64_core_file_pid): New define.
363 (aix5coff64_vec): Use BFD_JUMP_TABLE_CORE.
364 * mach-o-target.c (bfd_mach_o_core_file_pid): New define.
365 * aix386-core.c (aix386_core_file_pid): New define.
366 * hppabsd-core.c (hppabsd_core_core_file_pid): New define.
367 * hpux-core.c (hpux_core_core_file_pid): New define.
368 * irix-core.c (irix_core_core_file_pid): New define.
369 * lynx-core.c (lynx_core_file_pid): New define.
370 * osf-core.c (osf_core_core_file_pid): New define.
371 * ptrace-core.c (ptrace_unix_core_file_pid): New define.
372 * sco5-core.c (sco5_core_file_pid): New define.
373 * xcoff-target.h (coff_core_file_pid): New define.
374 * netbsd-core.c (netbsd_core_core_file_pid): New define.
376 2010-08-13 H.J. Lu <hongjiu.lu@intel.com>
379 * elf32-i386.c (elf_i386_finish_dynamic_sections): Check if
380 .got.plt section is discarded.
381 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Likewise.
383 2010-08-13 Nathan Sidwell <nathan@codesourcery.com>
385 * elf32-m69k.c (elf32_m68k_print_private_bfd_data): Detect EMAC_B
388 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
391 * Makefile.am (coff-tic4x.lo): New. Disable -Werror.
392 (coff-tic54x.lo): Likewise.
393 * Makefile.in: Regenerated.
395 2010-08-12 Todd Veldhuizen <todd.veldhuizen@logicblox.com>
398 * elflink.c (compute_bucket_count): Avoid futile long searches for
399 the best bucket size.
401 2010-08-09 Richard Henderson <rth@redhat.com>
404 * elf64-alpha.c (elf64_alpha_relax_tls_get_addr): Disallow relaxing
405 to tlshi/lo until pos0 and pos1 are adjacent. Use the destination
406 register from the tldgd insn.
408 2010-08-09 Catherine Moore <clm@codesourcery.com>
410 * elfxx-mips.c (mips_elf_perform_relocation): Improve
411 interlinking error message.
413 2010-08-06 Alan Modra <amodra@gmail.com>
415 * elf64-ppc.c (ha_reloc_match): Allow matches to other than r2.
416 (ppc64_elf_relocate_section): Nop out high part insn of large toc
417 code sequence when the high part of offset is zero.
419 2010-08-04 Tristan Gingold <gingold@adacore.com>
421 * vms-alpha.c (alpha_vms_build_fixups): Write the EICP.
422 (alpha_vms_bfd_final_link): Explicitly forbid relocatable links.
423 Clear the SEC_RELOC flag.
425 2010-08-04 Tristan Gingold <gingold@adacore.com>
427 * vms-alpha.c (alpha_vms_create_eisd_for_section): Make writable
428 sections with relocs.
429 (alpha_vms_add_fixup_lp): Set SEC_RELOC flag.
430 (alpha_vms_add_fixup_ca): Ditto.
431 (alpha_vms_add_fixup_qr): Ditto.
434 2010-08-04 Tristan Gingold <gingold@adacore.com>
436 * vms-alpha.c (alpha_vms_create_eisd_for_section): Do not make
437 CODE sections writable.
439 2010-08-04 Tristan Gingold <gingold@adacore.com>
441 * vms-alpha.c (alpha_vms_add_lw_fixup): Renamed to ...
442 (alpha_vms_add_fixup_lr): ... this for consistency.
443 (alpha_vms_add_qw_fixup): Removed.
445 (vms_get_symbol_info): Adjust type for unknown sections.
447 2010-08-04 Tristan Gingold <gingold@adacore.com>
449 * vms-alpha.c (_bfd_vms_slurp_egsd): Use the canonical absolute
450 section for any absolute section. Remove some debugging code.
452 2010-08-03 DJ Delorie <dj@redhat.com>
454 * elf32-m32c.c (ELF_MAXPAGESIZE): Change page size to 256 bytes.
456 2010-08-03 Tristan Gingold <gingold@adacore.com>
458 * vms-misc.c (vms_convert_to_var): Make it static.
459 (_bfd_vms_convert_to_var_unix_filename): Make it public.
461 2010-08-03 Tristan Gingold <gingold@adacore.com>
463 * makefile.vms (OBJS): Update list.
465 2010-08-03 Tristan Gingold <gingold@adacore.com>
467 * vms-alpha.c (_bfd_vms_slurp_egsd): Do not set SEC_HAS_CONTENTS
468 nor SEC_RELOC for empty sections.
470 2010-08-03 Tristan Gingold <gingold@adacore.com>
472 * vms-alpha.c (evax_section_flags): Fix flags for absolute
473 section. Remove useless parenthesis.
475 2010-08-03 Tristan Gingold <gingold@adacore.com>
477 * vms-lib.c (vms_lib_bread_raw): Change type of BUF argument.
478 (vms_lib_bread, vms_lib_bopen): Adjust.
480 2010-08-02 Alan Modra <amodra@gmail.com>
483 * elf.c (assign_file_positions_for_load_sections): Use p_vaddr to
484 calculate off_adjust rather than first section vma.
486 2010-07-30 H.J. Lu <hongjiu.lu@intel.com>
488 * elflink.c (compute_bucket_count): Add ATTRIBUTE_UNUSED to info.
490 2010-07-30 Anthony Green <green@moxielogic.com>
492 * config.bfd (targ_cpu): Add moxie-*-rtems support.
494 2010-07-29 Alan Modra <amodra@gmail.com>
496 * elf64-ppc.c (ppc64_elf_edit_toc): Always adjust local syms in
497 .toc section, even when none are used in relocs.
499 2010-07-27 Maciej W. Rozycki <macro@codesourcery.com>
501 * elfxx-mips.h: Include "elf/mips.h".
502 (gprel16_reloc_p): New static inline function.
503 * elfxx-mips.c (_bfd_mips_elf_check_relocs)
504 [R_MIPS16_GOT16, R_MIPS_GOT16, R_MIPS_GOT_HI16, R_MIPS_GOT_LO16]:
506 (_bfd_mips_elf_relocate_section)[bfd_reloc_overflow]: Use
508 * elf32-mips.c (mips_info_to_howto_rel): Likewise.
509 * elfn32-mips.c (mips_info_to_howto_rel): Likewise.
511 2010-07-27 Maciej W. Rozycki <macro@codesourcery.com>
513 * elf64-mips.c (mips_elf64_howto_table_rela)
514 [R_MIPS_TLS_DTPMOD64]: Clear partial_inplace.
515 [R_MIPS_TLS_DTPREL64, R_MIPS_TLS_GD, R_MIPS_TLS_LDM]: Likewise.
516 [R_MIPS_TLS_DTPREL_HI16, R_MIPS_TLS_DTPREL_LO16]: Likewise.
517 [R_MIPS_TLS_GOTTPREL, R_MIPS_TLS_TPREL64]: Likewise.
518 [R_MIPS_TLS_TPREL_HI16, R_MIPS_TLS_TPREL_LO16]: Likewise.
519 * elfn32-mips.c (elf_mips_howto_table_rela)
520 [R_MIPS_TLS_DTPMOD32]: Likewise.
521 [R_MIPS_TLS_DTPREL32, R_MIPS_TLS_GD, R_MIPS_TLS_LDM]: Likewise.
522 [R_MIPS_TLS_DTPREL_HI16, R_MIPS_TLS_DTPREL_LO16]: Likewise.
523 [R_MIPS_TLS_GOTTPREL, R_MIPS_TLS_TPREL32]: Likewise.
524 [R_MIPS_TLS_TPREL_HI16, R_MIPS_TLS_TPREL_LO16]: Likewise.
526 2010-07-23 Naveen.H.S <naveen.S@kpitcummins.com>
527 Ina Pandit <ina.pandit@kpitcummins.com>
529 * archures.c (DESCRIPTION): Define bfd_mach_v850e2 and
531 * reloc.c (bfd_architecture): Define bfd_mach_v850e2 and
533 (BFD_RELOC_V850_16_PCREL, BFD_RELOC_V850_17_PCREL,
534 BFD_RELOC_V850_22_PCREL, BFD_RELOC_V850_23,
535 BFD_RELOC_V850_32_PCREL, BFD_RELOC_V850_32_ABS,
536 BFD_RELOC_V850_16_SPLIT_OFFSET, BFD_RELOC_V850_16_S1,
537 BFD_RELOC_V850_LO16_SPLIT_OFFSET, BFD_RELOC_V850_SDA_15_16_OFFSET,
538 BFD_RELOC_V850_ZDA_16_16_OFFSET, BFD_RELOC_V850_CALLT_15_16_OFFSET,
539 BFD_RELOC_V850_32_GOTPCREL, BFD_RELOC_V850_16_GOT,
540 BFD_RELOC_V850_32_GOT, BFD_RELOC_V850_22_PLT_PCREL,
541 BFD_RELOC_V850_32_PLT_PCREL, BFD_RELOC_V850_COPY,
542 BFD_RELOC_V850_GLOB_DAT, BFD_RELOC_V850_JMP_SLOT,
543 BFD_RELOC_V850_RELATIVE, BFD_RELOC_V850_16_GOTOFF,
544 BFD_RELOC_V850_32_GOTOFF, BFD_RELOC_V850_CODE,
545 BFD_RELOC_V850_DATA): New relocations for V850 target.
546 * config.bfd: Match all v850 targets.
547 * cpu-v850.c (arch_info_struct): Define V850e2 and V850e2v3.
548 * elf32-v850.c (v850_elf_check_relocs): Check the newly added
550 (v850_elf_perform_relocation ): Update the newly added
552 (v850_elf_howto_t): Update the specifications of added
554 (v850_elf_reloc_map): Update the relocation mappings.
555 (v850_elf_final_link_relocate): Maps added relocation into the
556 appropriate howto structure.
557 (v850_elf_object_p): Add support for V850E2 and V850E2V3.
558 (v850_elf_final_write_processing): Likewise.
559 (v850_elf_merge_private_bfd_data): Likewise.
560 (v850_elf_print_private_bfd_data): Likewise.
561 * libbfd.h: Regenerate.
562 * bfd-in2.h: Regenerate.
564 2010-07-23 Alan Modra <amodra@gmail.com>
566 * archive.c (_bfd_archive_bsd44_construct_extended_name_table):
567 Correct format specifier.
569 2010-07-22 Alan Modra <amodra@gmail.com>
571 * ecoff.c: Don't include aout/ranlib.h.
572 (_bfd_ecoff_slurp_armap): Use correct struct for ardata->symdefs.
573 (_bfd_ecoff_write_armap): Output ar_date and ar_size using
576 2010-07-22 Alan Modra <amodra@gmail.com>
578 * aoutx.h (some_aout_object_p): Don't set EXEC_P for files with
581 2010-07-20 Alan Modra <amodra@gmail.com>
583 * elf.c (assign_file_positions_for_load_sections): Check that
584 zero size sections are allocated in segments too.
585 (assign_file_positions_for_non_load_sections): Warn if zero
586 size alloc sections are found here.
587 (copy_elf_program_header): Don't drop zero size sections from
589 (copy_private_bfd_data): Check for changes in zero size sections.
591 2010-07-17 Alan Modra <amodra@gmail.com>
593 * elf.c (_bfd_elf_map_sections_to_segments): Force new segment
594 for sections with overlapping LMAs.
595 (assign_file_positions_for_load_sections): Catch overlap for
596 sections that wrap around the address space. Replace a
597 warning that duplicates ld's --check-sections error with a
598 warning that lma has been adjusted for overlapping sections.
600 2010-07-14 Cary Coutant <ccoutant@google.com>
603 * dwarf2.c (read_section): Revert patch for compressed debug sections.
604 (find_line): Likewise.
605 (read_and_uncompress_section): Remove.
607 2010-07-13 H.J. Lu <hongjiu.lu@intel.com>
610 * elf32-i386.c (elf_i386_size_dynamic_sections): Don't
611 allocate .got.plt section if there are no GOT nor PLT
613 * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Likewise.
615 2010-07-13 H.J. Lu <hongjiu.lu@intel.com>
618 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Support
619 garbage collection against STT_GNU_IFUNC symbols.
621 * elf32-i386.c (elf_i386_get_local_sym_hash): Don't set
622 elf.plt.offset/elf.got.offset to -1.
623 (elf_i386_tls_transition): Skip TLS transition for functions.
624 (elf_i386_gc_sweep_hook): Support STT_GNU_IFUNC symbols.
626 * elf64-x86-64.c (elf64_x86_64_get_local_sym_hash): Don't set
627 elf.plt.offset/elf.got.offset to -1.
628 (elf64_x86_64_tls_transition): Skip TLS transition for functions.
629 (elf64_x86_64_gc_sweep_hook): Support STT_GNU_IFUNC symbols.
631 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
633 * elf32-i386.c (elf_i386_check_relocs): Re-indent.
634 (elf_i386_relocate_section): Likewise.
636 2010-07-06 H.J. Lu <hongjiu.lu@intel.com>
638 * dwarf2.c (add_line_info): Initialize prev_line.
640 2010-07-06 Alan Modra <amodra@gmail.com>
642 * elf32-ppc.c (ppc_elf_relax_section): Insert branch around
643 trampolines only for .init and .fini sections.
645 2010-07-05 Alan Modra <amodra@gmail.com>
647 * elf32-ppc.c: Formatting.
648 (ppc_elf_finish_dynamic_sections): Don't make plt_entry var static.
650 2010-07-03 Cary Coutant <ccoutant@google.com>
652 * compress.c (bfd_uncompress_section_contents): Add ATTRIBUTE_UNUSED.
653 * dwarf2.c (read_and_uncompress_section): New function.
654 (read_section): Call it.
655 (find_line): Likewise.
657 2010-07-01 Alan Modra <amodra@gmail.com>
659 * elf64-ppc.c (ppc64_elf_edit_toc): Use SYMBOL_CALLS_LOCAL rather
660 than SYMBOL_REFERENCES_LOCAL.
661 (ppc64_elf_relocate_section): Likewise.
663 2010-07-01 Alan Modra <amodra@gmail.com>
665 * elf64-ppc.c (ppc64_elf_edit_toc): Keep toc entries for ifuncs.
667 2010-06-29 Alan Modra <amodra@gmail.com>
669 * cpu-maxq.c: Delete file.
670 * coff-maxq.c: Delete file.
671 * Makefile.am: Remove references to maxq.
672 * archures.c: Likewise.
673 * coffcode.h: Likewise.
674 * configure.in: Likewise.
675 * targets.c: Likewise.
676 * config.bfd: Move maxq from obsolete to removed.
677 * Makefile.in: Regenerate.
678 * bfd-in2.h: Regenerate.
679 * configure: Regenerate.
680 * libbfd.h: Regenerate.
681 * po/SRC-POTFILES.in: Regenerate.
683 2010-06-28 Alan Modra <amodra@gmail.com>
685 * compress.c (bfd_uncompress_section_contents): Use ATTRIBUTE_UNUSED
686 to silence gcc warning.
688 2010-06-27 Alan Modra <amodra@gmail.com>
690 * elf64-ppc.c (get_tls_mask): Don't segfault on NULL elf_section_data.
691 (group_sections): Likewise.
693 2010-06-27 Alan Modra <amodra@gmail.com>
695 * bout.c (aligncode): Delete set but unused variables.
696 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
697 * coff-ppc.c (ppc_record_toc_entry): Likewise.
698 (coff_ppc_relocate_section): Likewise.
699 * coff-rs6000.c (xcoff_complain_overflow_bitfield_func): Likewise.
700 * elf-m10200.c (mn10200_elf_relax_delete_bytes): Likewise.
701 * elf-m10300.c (mn10300_elf_final_link_relocate): Likewise.
702 (mn10300_elf_relax_section): Likewise.
703 * elf32-arm.c (arm_build_one_stub, arm_size_one_stub): Likewise.
704 (record_vfp11_erratum_veneer): Likewise.
705 (bfd_elf32_arm_vfp11_erratum_scan): Likewise.
706 (elf32_arm_final_link_relocate): Likewise.
707 (elf32_arm_check_relocs, arm_map_one_stub): Likewise.
708 * elf32-avr.c (elf32_avr_relax_delete_bytes): Likewise.
709 (elf32_avr_relax_section): Likewise.
710 (avr_mark_stub_not_to_be_necessary): Likewise.
711 * elf32-bfin.c (_bfin_create_got_section): Likewise.
712 * elf32-cr16.c (cr16_elf_final_link_relocate): Likewise.
713 (elf32_cr16_relax_delete_bytes): Likewise.
714 * elf32-cr16c.c (cr16c_elf_final_link_relocate): Likewise.
715 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
716 * elf32-crx.c (elf32_crx_relax_delete_bytes): Likewise.
717 * elf32-h8300.c (elf32_h8_relax_section): Likewise.
718 (elf32_h8_relax_delete_bytes): Likewise.
719 * elf32-hppa.c (elf32_hppa_check_relocs): Likewise.
720 * elf32-i370.c (i370_elf_check_relocs): Likewise.
721 (elf_relocate_section): Likewise.
722 * elf32-ip2k.c (adjust_all_relocations): Likewise.
723 (ip2k_elf_relax_section): Likewise.
724 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
725 (lm32_elf_check_relocs): Likewise.
726 (lm32_elf_finish_dynamic_sections): Likewise.
727 (lm32_elf_finish_dynamic_symbol): Likewise.
728 * elf32-m32c.c (m32c_offset_for_reloc): Likewise.
729 (m32c_elf_relax_delete_bytes): Likewise.
730 * elf32-m32r.c (m32r_elf_finish_dynamic_symbol): Likewise.
731 (m32r_elf_finish_dynamic_sections): Likewise.
732 (m32r_elf_check_relocs, m32r_elf_fake_sections): Likewise.
733 * elf32-m68hc11.c (m68hc11_elf_relax_section): Likewise.
734 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
735 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise.
736 * elf32-microblaze.c (microblaze_elf_relocate_section): Likewise.
737 (microblaze_elf_check_relocs): Likewise.
738 (microblaze_elf_finish_dynamic_symbol): Likewise.
739 * elf32-msp430.c (msp430_elf_relax_delete_bytes): Likewise.
740 * elf32-ppc.c (ppc_elf_tls_optimize): Likewise.
741 * elf32-rx.c (rx_elf_relocate_section): Likewise.
742 (elf32_rx_relax_delete_bytes, rx_offset_for_reloc): Likewise.
743 (elf32_rx_relax_section): Likewise.
744 * elf32-score.c (score_elf_got_offset_from_index): Likewise.
745 (score_elf_final_link_relocate): Likewise.
746 (s3_bfd_score_elf_relocate_section): Likewise.
747 * elf32-score7.c (score_elf_got_offset_from_index): Likewise.
748 (s7_bfd_score_elf_relocate_section): Likewise.
749 * elf32-sh.c (sh_elf_check_relocs): Likewise.
750 * elf32-spu.c (spu_elf_relocate_section): Likewise.
751 * elf32-v850.c (v850_elf_check_relocs): Likewise.
752 (find_remembered_hi16s_reloc): Likewise.
753 * elf32-vax.c (elf32_vax_merge_private_bfd_data): Likewise.
754 (elf_vax_relocate_section): Likewise.
755 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
756 * elf32-xtensa.c (xlate_offset_with_removed_text): Likewise.
757 (move_literal): Likewise.
758 * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise.
759 (elf64_hppa_check_relocs): Likewise.
760 (elf64_hppa_finish_dynamic_symbol): Likewise.
761 (elf64_hppa_relocate_section): Likewise.
762 * elf64-mmix.c (mmix_elf_reloc, mmix_elf_relax_section): Likewise.
763 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
764 (ppc64_elf_edit_opd, ppc64_elf_edit_toc): Likewise.
765 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise.
766 (elfNN_vms_section_from_shdr): Likewise.
767 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
768 (_bfd_sparc_elf_relocate_section): Likewise.
769 * hp300hpux.c (slurp_symbol_table): Likewise.
770 * i386lynx.c (swap_std_reloc_out, swap_std_reloc_in): Likewise.
771 * mach-o.c (bfd_mach_o_write_thread): Likewise.
772 * mmo.c (mmo_scan, mmo_write_symbols_and_terminator): Likewise.
773 * nlm32-sparc.c (nlm_sparc_read_reloc): Likewise.
774 * pdp11.c (pdp11_aout_link_input_section): Likewise.
775 (aout_link_input_section, aout_link_input_bfd): Likewise.
776 * pe-mips.c (mips_swap_reloc_out): Likewise.
777 (coff_pe_mips_relocate_section): Likewise.
778 * som.c (som_bfd_ar_write_symbol_stuff): Likewise.
779 * vms-alpha.c (_bfd_vms_slurp_egsd): Likewise.
780 * xsym.c (bfd_sym_fetch_type_information_table_ent): Likewise.
782 * coff-i860.c (i860_reloc_processing): Avoid set but unused warning.
783 * coffcode.h (coff_compute_section_file_positions): Likewise.
784 (coff_slurp_reloc_table): Likewise.
785 * cpu-arm.c (arm_check_note): Likewise.
786 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Likewise.
787 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
788 * elf32-bfin.c (elf32_bfin_merge_private_bfd_data): Likewise.
789 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
790 * elf32-moxie.c (moxie_elf_relocate_section): Likewise.
791 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
792 * elf32-sh64.c (_bfd_sh_align_load_span): Likewise.
793 * ieee.c (parse_expression): Likewise.
794 (ieee_slurp_external_symbols, drop_int): Likewise.
795 * peXXigen.c (pe_print_pdata): Likewise.
796 * versados.c (process_esd): Likewise.
798 2010-06-25 Tristan Gingold <gingold@adacore.com>
800 * vms-alpha.c (_bfd_vms_write_egsd): Check absolute section with
801 its flags. Create an absolute section if needed.
803 2010-06-25 Tristan Gingold <gingold@adacore.com>
805 * vms-alpha.c (_bfd_vms_write_egsd): Set target_index field of
806 sections. Mark .vmsdebug section as SEC_DEBUGGING. Do not create
807 dummy psect anymore. Adjust.
808 (_bfd_vms_write_eeom): Adjust (use target_index instead of index)
809 (_bfd_vms_write_etir): Ditto.
810 (start_etir_or_etbt_record): Test for SEC_DEBUGGING instead of
811 section name. Adjust.
813 2010-06-25 Tristan Gingold <gingold@adacore.com>
815 * vms-alpha.c (alpha_vms_write_exec): Set linktime field.
817 2010-06-25 Alan Modra <amodra@gmail.com>
819 * elf64-ppc.c (toc_skip_enum): Define.
820 (ppc64_elf_edit_toc): Use two low bits of skip array as markers.
821 Optimize largetoc sequences.
822 (adjust_toc_syms): Update for skip array change.
823 (ppc64_elf_relocate_section): Handle R_PPC64_LO_DS_OPT.
825 2010-06-25 Alan Modra <amodra@gmail.com>
827 * elf64-ppc.c (is_static_defined): New function.
828 (get_tls_mask, ppc_type_of_stub): Use it here.
829 (ppc64_elf_edit_opd): Ensure we only attempt to edit ppc64 input.
830 (ppc64_elf_tls_setup): Typo fix.
831 (adjust_toc_syms): Correctly handle symbols defined past the end
832 of the toc. Move syms on removed entries to next entry rather
833 than to start of toc.
834 (ppc64_elf_edit_toc): Likewise. Ensure we only attempt to
835 edit ppc64 input. Allocate one extra word in skip array.
836 Honour info->keep_memory when reading relocs if we can.
837 Adjust toc relocs after adjusting symbols.
839 2010-06-23 Nathan Sidwell <nathan@codesourcery.com>
841 * archive64.c (bfd_elf64_archive_write_armap): Fix buffer overrun
844 2010-06-17 Tristan Gingold <gingold@adacore.com>
846 * Makefile.am (BFD32_BACKENDS_CFILES): Move vms-alpha.c to ...
847 (BFD64_BACKENDS_CFILES): ... here.
848 (BFD32_BACKENDS): Move vms-alpha.lo to ...
849 (BFD64_BACKENDS): ... here.
850 * Makefile.in: Regenerate.
852 2010-06-15 Joseph Myers <joseph@codesourcery.com>
854 * elf-bfd.h (LEAST_KNOWN_OBJ_ATTRIBUTE): Decrease to 2.
855 * elf32-tic6x.c (elf32_tic6x_obj_attrs_arg_type,
856 elf32_tic6x_merge_arch_attributes, elf32_tic6x_merge_attributes,
857 elf32_tic6x_merge_private_bfd_data): New.
858 (bfd_elf32_bfd_merge_private_bfd_data,
859 elf_backend_obj_attrs_arg_type, elf_backend_obj_attrs_section,
860 elf_backend_obj_attrs_section_type, elf_backend_obj_attrs_vendor):
862 * elf32-tic6x.h (elf32_tic6x_merge_arch_attributes): Declare.
864 2010-06-15 Joseph Myers <joseph@codesourcery.com>
866 * elf-bfd.h (LEAST_KNOWN_OBJ_ATTRIBUTE): Define.
867 (struct elf_backend_data): Update comment on obj_attrs_order.
868 * elf-attrs.c (vendor_obj_attr_size, vendor_set_obj_attr_contents,
869 _bfd_elf_copy_obj_attributes): Use LEAST_KNOWN_OBJ_ATTRIBUTE
870 instead of hardcoded 4.
871 * elf32-arm.c (elf32_arm_obj_attrs_order): Use
872 LEAST_KNOWN_OBJ_ATTRIBUTE and LEAST_KNOWN_OBJ_ATTRIBUTE + 1
873 instead of hardcoded 4 and 5.
874 (elf32_arm_merge_eabi_attributes): Use LEAST_KNOWN_OBJ_ATTRIBUTE
875 instead of hardcoded 4.
877 2010-06-14 Kevin Buettner <kevinb@redhat.com>
879 * elf32-h8300.c (elf_symbol_leading_char): Define.
881 2010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
883 * vms-alpha.c (_bfd_vms_write_egsd): Make sname const.
885 2010-06-11 Tristan Gingold <gingold@adacore.com>
887 * vms-alpha.c (_bfd_vms_slurp_egsd): Always set vma of absolute
890 2010-06-11 Tristan Gingold <gingold@adacore.com>
892 * vms-alpha.c (evax_bfd_print_etir): Handle ETIR__C_STO_GBL_LW.
894 2010-06-11 Tristan Gingold <gingold@adacore.com>
896 * vms-misc.c (_bfd_vms_output_counted): Make VALUE argument const.
898 (_bfd_vms_output_dump): Make DATA argument const, adjust cast.
899 * vms.h (_bfd_vms_output_counted, _bfd_vms_output_dump): Adjust.
900 * vms-alpha.c (evax_section_flags): Make it const.
901 (vms_secflag_by_name): Remove unused ABFD argument.
902 Make SECTION_FLAGS and NAME arguments const. Clarify comment.
903 (vms_esecflag_by_name): Make SECTION_FLAGS and NAME arguments const.
904 (_bfd_vms_slurp_egsd): Adjust call to vms_secflag_by_name.
905 (_bfd_vms_write_egsd): Remove useless cast.
907 2010-06-10 Tristan Gingold <gingold@adacore.com>
909 * config.bfd: Remove #if/#endif so that som can be compiled on any
911 * targets.c (_bfd_target_vector): Remove #if/#endif so that som
912 can be used on any host.
914 2010-06-10 Tristan Gingold <gingold@adacore.com>
916 * som.c: Can now be compiled on any host.
917 Include bfd headers instead of system one.
918 (som_compute_checksum): Parameter is now a pointer to a
919 som_external_header structure. Adjust.
920 (struct section_to_type): Field section is now const.
921 (R_DLT_REL, R_AUX_UNWIND, R_SEC_STMT): Removed conditional
923 (R_LONG_PCREL_MODE, R_N0SEL, R_N1SEL, R_LINETAB): Ditto.
924 (R_LINETAB_ESC, R_LTP_OVERRIDE, R_COMMENT): Ditto.
925 (som_swap_clock_in, som_swap_clock_out): New functions.
926 (som_swap_header_in, som_swap_header_out): Likewise.
927 (som_swap_space_dictionary_in): Likewise.
928 (som_swap_space_dictionary_out): Likewise.
929 (som_swap_subspace_dictionary_in): Likewise.
930 (som_swap_subspace_dictionary_record_out): Likewise.
931 (som_swap_aux_id_in, som_swap_aux_id_out): Likewise.
932 (som_swap_string_auxhdr_out): Likewise.
933 (som_swap_compilation_unit_out): Likewise.
934 (som_swap_exec_auxhdr_in): Likewise.
935 (som_swap_exec_auxhdr_out): Likewise.
936 (som_swap_lst_header_in): Likewise.
937 (som_object_setup): Adjust parameter type using bfd types.
938 (setup_sections): Likewise. Ditto for object file types.
939 Use intermediate variables for external representation and use the
940 swap functions to convert.
941 (som_object_p): Ditto. Remove #ifdef/#endif on always defined
943 (som_prep_headers): Likewise.
944 (som_write_symbol_strings): Likewise.
945 (som_begin_writing): Likewise.
946 (som_finish_writing): Likewise.
947 (som_build_and_write_symbol_table): Likewise.
948 (bfd_section_from_som_symbol): Likewise.
949 (som_slurp_symbol_table): Likewise.
950 (som_bfd_print_private_bfd_data): Likewise.
951 (bfd_som_attach_aux_hdr): Likewise. Clear the padding.
952 (bfd_som_attach_compilation_unit): Likewise.
953 (som_bfd_count_ar_symbols): Likewise.
954 (som_bfd_fill_in_ar_symbols): Likewise.
955 (som_slurp_armap): Likewise.
956 (som_bfd_ar_write_symbol_stuff): Likewise.
957 (som_write_armap): Likewise. Use _bfd_ar_spacepad instead of
958 sprintf to write header fields.
959 * som.h: Include bfd headers instead of system one.
960 (FILE_HDR_SIZE, AUX_HDR_SIZE): Removed.
961 (struct somdata): Use bfd structures instead of system ones.
962 (struct som_section_data_struct): Likewise.
963 (struct som_subspace_dictionary_record): Removed (now in
964 include/som/internal.h)
966 2010-06-10 Tristan Gingold <gingold@adacore.com>
968 * targets.c (bfd_target_list): Remove hp/ux compiler work-around
969 as bfd requires an ANSI-C compiler.
971 2010-06-09 Tristan Gingold <gingold@adacore.com>
973 * bfdio.c (bfd_bread): Fix the code to prevent reading past the
974 end of archive members.
976 2010-06-08 Tristan Gingold <gingold@adacore.com>
978 * som.c (som_bfd_free_cached_info): Do not free relocations as
979 they were allocated with bfd_zalloc.
981 2010-06-08 Tristan Gingold <gingold@adacore.com>
983 * vms-lib.c (_bfd_vms_lib_write_archive_contents): Increment
986 2010-06-08 Tristan Gingold <gingold@adacore.com>
988 * vms-lib.c (_bfd_vms_lib_ia64_mkarchive): New function.
989 * libbfd-in.h (_bfd_vms_lib_ia64_mkarchive): Declare.
990 * libbfd.h: Regenerate.
991 * elfxx-ia64.c (bfd_elfNN_write_archive_contents): Redefine for VMS.
992 (bfd_elfNN_mkarchive): Ditto.
994 2010-06-02 Tristan Gingold <gingold@adacore.com>
996 * vms-alpha.c (alpha_vms_bfd_final_link): Fix 64bit constant.
998 2010-06-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1000 * configure: Regenerate.
1002 2010-06-01 Tristan Gingold <gingold@adacore.com>
1004 * vms-alpha.c (struct vms_private_data_struct): Add
1005 transfer_address field. Remove unused dst_info field.
1006 (alpha_vms_write_exec): Use transfer_address.
1007 (_bfd_vms_write_egsd): Add a comment about LIB$INITIALIZE.
1008 (alpha_vms_bfd_final_link): Set transfer_address.
1010 2010-05-31 Tristan Gingold <gingold@adacore.com>
1012 * vms-lib.c (credat_lo, credat_hi): New fields.
1013 (vms_read_block): Adjust comments.
1014 (vms_write_block): New function.
1015 (_bfd_vms_lib_archive_p): Decode majorid once. Replace some
1016 hard-coded values with constants. Set credat_lo and credat_hi.
1017 (_bfd_vms_lib_mkarchive): Add argument kind.
1018 Set ver, mhd_size and type according to kind.
1019 (_bfd_vms_lib_alpha_mkarchive): New function.
1020 (struct lib_index): Renamed from struct vms_index
1021 (lib_index_cmp): Renamed from vms_index_cmp. Adjusted.
1022 (get_idxlen): Type of idx argument adjusted. Add is_elfidx
1023 argument and handle it.
1024 (vms_write_index): Adjust argument idx. Handle elf indexes.
1025 (_bfd_vms_lib_build_map): Adjust type of arguments modules and res.
1026 (_bfd_vms_lib_write_archive_contents): Add is_elfidx variable and
1027 use it. Handle elf indexes. Set credat.
1028 * libbfd-in.h (_bfd_vms_lib_mkarchive): Renamed to ...
1029 (_bfd_vms_lib_alpha_mkarchive): ... this.
1030 * libbfd.h: Regenerated.
1031 * vms-alpha.c (vms_alpha_vec): Adjust after previous renaming.
1033 2010-05-28 Sterling Augustine <sterling@tensilica.com>
1035 * elf32-xtensa.c (elf_xtensa_relocate_section): Add a large amount
1036 of code to change the bits in the instructions to match the changes
1037 in the relocations. Declare dest_addr and sym_sec to help.
1039 2010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1041 Workaround GCC PR middle-end/4210.
1042 * vms-misc.c (vms_time_t_to_vms_time): Use ternary operator for val[2]
1045 2010-05-27 Tristan Gingold <gingold@adacore.com>
1047 * vms-misc.c: Define __NEW_STARLET. Remove trailing spaces.
1048 (VMS_TIME_FACTOR, VMS_TIME_OFFSET): New macros.
1049 (vms_time_to_time_t): Use them instead of local const.
1050 (vms_time_t_to_vms_time): New function.
1051 (vms_get_time): Likewise.
1052 (vms_raw_get_time): Likewise.
1053 * vms.h (vms_time_t_to_vms_time): New declaration.
1054 (vms_get_time): Likewise.
1055 (vms_raw_get_time): Likewise.
1057 2010-05-26 Tristan Gingold <gingold@adacore.com>
1059 * vms-alpha.c: Update comments.
1060 (alpha_vms_write_exec): Set lnkflags. Write the GST.
1061 (alpha_vms_link_output_symbol): New function.
1062 (alpha_vms_bfd_final_link): Generate the VMS symbol table.
1063 Set dst_section private field.
1064 (alpha_vms_bfd_final_link): Remove code that set dst_section.
1066 2010-05-26 Tristan Gingold <gingold@adacore.com>
1068 * bfdio.c: Declare and define _bfd_memory_iovec.
1069 (bfd_bread): Move code for BFD_IN_MEMORY...
1070 (bfd_bwrite): ... Ditto ...
1071 (bfd_tell): ... Ditto ...
1072 (bfd_flush): ... Ditto ...
1073 (bfd_stat): ... Ditto ...
1074 (bfd_seek): ... Ditto ...
1075 (bfd_get_size): ... Ditto ...
1076 (bfd_mmap): ... Ditto ...
1077 (memory_bread): ... to these new functions.
1078 (memory_bwrite): Ditto.
1079 (memory_btell): Ditto.
1080 (memory_bseek): Ditto.
1081 (memory_bflush): Ditto.
1082 (memory_bstat): Ditto.
1083 (memory_bmmap): Ditto.
1084 (memory_bclose): New function.
1085 * peicode.h (pe_ILF_build_a_bfd): Use BFD_IN_MEMORY.
1086 * xcofflink.c (bfd_xcoff_link_generate_rtinit): Ditto.
1087 * opncls.c (bfd_close): Do not handle BFD_IN_MEMORY case.
1088 (bfd_make_writable): Use _bfd_memory_iovec.
1089 * elfcode.h (bfd_from_remote_memory): Use _bfd_memory_iovec.
1090 * coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Use
1092 (alpha_ecoff_openr_next_archived_file): Use proxy_origin
1094 * libbfd.h: Regenerate.
1096 2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
1097 Joseph Myers <joseph@codesourcery.com>
1098 Andrew Stubbs <ams@codesourcery.com>
1100 * config.bfd (sh-*-uclinux* | sh[12]-*-uclinux*): Add
1101 bfd_elf32_shl_vec, and FDPIC vectors to targ_selvecs.
1102 * configure.in: Handle FDPIC vectors.
1103 * elf32-sh-relocs.h: Add FDPIC and movi20 relocations.
1104 * elf32-sh.c (DEFAULT_STACK_SIZE): Define.
1105 (SYMBOL_FUNCDESC_LOCAL): Define. Use it instead of
1106 SYMBOL_REFERENCES_LOCAL for function descriptors.
1107 (fdpic_object_p): New.
1108 (sh_reloc_map): Add FDPIC and movi20 relocations.
1109 (sh_elf_info_to_howto, sh_elf_relocate_section): Handle new invalid
1111 (struct elf_sh_plt_info): Add got20 and short_plt. Update all
1113 (FDPIC_PLT_ENTRY_SIZE, FDPIC_PLT_LAZY_OFFSET): Define.
1114 (fdpic_sh_plt_entry_be, fdpic_sh_plt_entry_le, fdpic_sh_plts): New.
1115 (FDPIC_SH2A_PLT_ENTRY_SIZE, FDPIC_SH2A_PLT_LAZY_OFFSET): Define.
1116 (fdpic_sh2a_plt_entry_be, fdpic_sh2a_plt_entry_le)
1117 (fdpic_sh2a_short_plt_be, fdpic_sh2a_short_plt_le, fdpic_sh2a_plts):
1119 (get_plt_info): Handle FDPIC.
1120 (MAX_SHORT_PLT): Define.
1121 (get_plt_index, get_plt_offset): Handle short_plt.
1122 (union gotref): New.
1123 (struct elf_sh_link_hash_entry): Add funcdesc, rename tls_type to
1124 got_type and adjust all uses. Add GOT_FUNCDESC.
1125 (struct sh_elf_obj_tdata): Add local_funcdesc. Rename
1126 local_got_tls_type to local_got_type.
1127 (sh_elf_local_got_type): Renamed from sh_elf_local_got_tls_type. All
1129 (sh_elf_local_funcdesc): Define.
1130 (struct elf_sh_link_hash_table): Add sfuncdesc, srelfuncdesc, fdpic_p,
1132 (sh_elf_link_hash_newfunc): Initialize new fields.
1133 (sh_elf_link_hash_table_create): Set fdpic_p.
1134 (sh_elf_omit_section_dynsym): New.
1135 (create_got_section): Create .got.funcdesc, .rela.got.funcdesc
1137 (allocate_dynrelocs): Allocate local function descriptors and space
1138 for R_SH_FUNCDESC-related relocations, and for rofixups.
1139 Handle GOT_FUNCDESC. Create fixups. Handle GOT entries which
1140 require function descriptors.
1141 (sh_elf_always_size_sections): Handle PT_GNU_STACK and __stacksize.
1142 (sh_elf_modify_program_headers): New.
1143 (sh_elf_size_dynamic_sections): Allocate function descriptors for
1144 local symbols. Allocate .got.funcdesc contents. Allocate rofixups.
1145 Handle local GOT entries of type GOT_FUNCDESC. Create fixups for
1146 local GOT entries. Ensure that FDPIC libraries always have a PLTGOT
1147 entry in the .dynamic section.
1148 (sh_elf_add_dyn_reloc, sh_elf_got_offset, sh_elf_initialize_funcdesc)
1149 (sh_elf_add_rofixup, sh_elf_osec_to_segment)
1150 (sh_elf_osec_readonly_p, install_movi20_field): New functions.
1151 (sh_elf_relocate_section): Handle new relocations, R_SH_FUNCDESC,
1152 R_SH_GOTFUNCDESC and R_SH_GOTOFFFUNCDESC. Use sh_elf_got_offset
1153 and .got.plt throughout to find _GLOBAL_OFFSET_TABLE_. Add rofixup
1154 read-only section warnings. Handle undefined weak symbols. Generate
1155 fixups for R_SH_DIR32 and GOT entries. Check for cross-segment
1156 relocations and clear EF_SH_PIC. Handle 20-bit relocations.
1157 Always generate R_SH_DIR32 for FDPIC instead of R_SH_RELATIVE.
1158 (sh_elf_gc_sweep_hook): Handle R_SH_FUNCDESC, R_SH_GOTOFF20,
1159 R_SH_GOTFUNCDESC, R_SH_GOTFUNCDESC20, and R_SH_GOTOFFFUNCDESC.
1160 Handle 20-bit relocations.
1161 (sh_elf_copy_indirect_symbol): Copy function descriptor reference
1163 (sh_elf_check_relocs): Handle new relocations. Make symbols
1164 dynamic for FDPIC relocs. Account for rofixups. Error for FDPIC
1165 symbol mismatches. Allocate a GOT for R_SH_DIR32. Allocate fixups
1167 (sh_elf_copy_private_data): Copy PT_GNU_STACK size.
1168 (sh_elf_merge_private_data): Copy initial flags. Do not clobber
1169 non-mach flags. Set EF_SH_PIC for FDPIC. Reject FDPIC mismatches.
1170 (sh_elf_finish_dynamic_symbol): Do not handle got_funcdesc entries
1171 here. Rename sgot to sgotplt and srel to srelplt. Handle short_plt,
1172 FDPIC descriptors, and got20. Create R_SH_FUNCDESC_VALUE for FDPIC.
1173 Use install_movi20_field. Rename srel to srelgot. Always generate
1174 R_SH_DIR32 for FDPIC instead of R_SH_RELATIVE.
1175 (sh_elf_finish_dynamic_sections): Fill in the GOT pointer in rofixup.
1176 Do not fill in reserved GOT entries for FDPIC. Correct DT_PLTGOT.
1177 Rename sgot to sgotplt. Assert that the right number of rofixups
1178 and dynamic relocations were allocated.
1179 (sh_elf_use_relative_eh_frame, sh_elf_encode_eh_address): New.
1180 (elf_backend_omit_section_dynsym): Use sh_elf_omit_section_dynsym.
1181 (elf_backend_can_make_relative_eh_frame)
1182 (elf_backend_can_make_lsda_relative_eh_frame)
1183 (elf_backend_encode_eh_address): Define.
1184 (TARGET_BIG_SYM, TARGET_BIG_NAME, TARGET_LITTLE_SYM)
1185 (TARGET_LITTLE_NAME, elf_backend_modify_program_headers, elf32_bed):
1186 Redefine for FDPIC vector.
1187 * reloc.c: Add SH FDPIC and movi20 relocations.
1188 * targets.c (_bfd_target_vector): Add FDPIC vectors.
1189 * configure, bfd-in2.h, libbfd.h: Regenerated.
1191 2010-05-25 Jay Krell <jay.krell@cornell.edu>
1194 * archive.c (_bfd_calloc_wrapper): New function.
1195 (_bfd_add_bfd_to_archive_cache): Use it.
1197 * configure.in: Add alpha*-*-*vms* to list of natives.
1198 * configure: Regenerate.
1200 * vms-misc.c: Define globalref if necessary.
1201 (vms_convert_to_var_unix_filename): Rename to
1202 _bfd_vms_convert_to_var_unix_filename and export.
1203 * vms.h: Add prototype for _bfd_vms_convert_to_var_unix_filename.
1204 * vms-alpha.c (vms_close_and_cleanup): Update invocation of
1205 vms_convert_to_var_unix_filename.
1207 2010-05-24 Tristan Gingold <gingold@adacore.com>
1209 * vms-alpha.c (add_symbol_entry): New function extrated from ...
1210 (add_symbol): ... adjusted.
1212 2010-05-24 Tristan Gingold <gingold@adacore.com>
1214 * vms-alpha.c (_bfd_vms_slurp_egsd): Fix indentation.
1215 (alpha_vms_write_exec): Add a comment.
1216 (_bfd_vms_write_egsd): Ditto.
1217 (alpha_vms_convert_symbol): Remove a blank line.
1219 2010-05-21 Tristan Gingold <gingold@adacore.com>
1221 * vms-alpha.c (_bfd_vms_slurp_eihs): Do not create a bfd section
1224 2010-05-21 Tristan Gingold <gingold@adacore.com>
1226 * vms-alpha.c (_bfd_vms_slurp_eisd): Set SEC_HAS_CONTENTS and
1227 SEC_LOAD if isect has data.
1228 (vms_get_symbol_info): Refine the condition for 'T' type.
1230 2010-05-18 Tristan Gingold <gingold@adacore.com>
1232 * vms-alpha.c (_bfd_vms_write_emh): New function.
1233 (_bfd_vms_write_lmn): New function.
1234 (_bfd_vms_write_eeom): Moved.
1235 (hash_string): Likewise.
1236 (_bfd_vms_length_hash_symbol): Likewise.
1237 (_bfd_vms_write_ehdr): Code moved to _bfd_vms_write_emh
1238 and _bfd_vms_write_lmn, and call these functions.
1240 2010-05-18 Tristan Gingold <gingold@adacore.com>
1242 * vms-alpha.c (evax_bfd_print_dst): Handle INCR_LINUM_L.
1243 Add details in the messages.
1244 (evax_bfd_print_image): Change message.
1246 2010-05-18 H.J. Lu <hongjiu.lu@intel.com>
1249 * elf.c (_bfd_elf_make_section_from_shdr): Handle SHF_EXCLUDE
1250 (elf_fake_sections): Likewise.
1252 * elf32-i370.c (i370_elf_section_from_shdr): Don't handle
1254 * elf32-ppc.c (ppc_elf_fake_sections): Likewise.
1256 2010-05-17 Tristan Gingold <gingold@adacore.com>
1258 * vms-alpha.c: Include esgps.h and eidc.h.
1259 (_bfd_vms_slurp_egsd): Ignore SPSC and IDC sub-records.
1260 (evax_bfd_print_egsd_flags): New function, extracted from ...
1261 (evax_bfd_print_egsd): ..., calls evax_bfd_print_egsd_flags. Handles
1262 EGSD__C_SPSC and EGSD__C_IDC.
1264 2010-05-14 Tristan Gingold <gingold@adacore.com>
1266 * vms-alpha.c (alpha_vms_object_p): Accept header size of 0.
1267 (_bfd_vms_get_object_record): Handle align byte only in the
1270 2010-05-14 Tristan Gingold <gingold@adacore.com>
1272 * vms-lib.c (_bfd_vms_lib_ia64_archive_p): New function.
1273 * libbfd-in.h (_bfd_vms_lib_ia64_archive_p): Add prototype.
1274 * libbfd.h: Regenerate.
1275 * configure.in (havevecs): Define HAVE_all_vecs when
1276 --enable-targets=all is set. Use AC_SUBST on it.
1277 (tdefaults): Do not add havevecs.
1278 (bfd_elf64_ia64_vms_vec): Add vms-lib.lo and vms-misc.lo
1279 * configure: Regenerate.
1280 * Makefile.am (HAVEVECS): New variable.
1281 (INCLUDES): Add HAVEVECS.
1282 * Makefile.in: Regenerate.
1283 * elfxx-ia64.c (INCLUDE_IA64_VMS): New macro, defined if vms
1284 target is selected. Add #ifdef/#endif around vms specific code.
1285 (bfd_elfNN_archive_p, bfd_elfNN_archive_slurp_armap,
1286 bfd_elfNN_archive_slurp_extended_name_table,
1287 bfd_elfNN_archive_construct_extended_name_table,
1288 bfd_elfNN_archive_truncate_arname,
1289 bfd_elfNN_archive_write_armap,
1290 bfd_elfNN_archive_read_ar_hdr,
1291 bfd_elfNN_archive_write_ar_hdr,
1292 bfd_elfNN_archive_openr_next_archived_file,
1293 bfd_elfNN_archive_get_elt_at_index,
1294 bfd_elfNN_archive_generic_stat_arch_elt,
1295 bfd_elfNN_archive_update_armap_timestamp): Define to use vms archives.
1297 2010-05-11 Jie Zhang <jie@codesourcery.com>
1299 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Merge
1300 Tag_ABI_HardFP_use correctly.
1302 2010-05-11 Alan Modra <amodra@gmail.com>
1304 * coffcode.h (coff_write_object_contents): Enclose all occurrences
1305 of hasdebug and is_reloc_section in #ifdef COFF_IMAGE_WITH_PE.
1307 2010-05-07 Daniel Jacobowitz <dan@codesourcery.com>
1309 * elf32-arm.c (struct a8_erratum_reloc): Add hash member. Move
1310 sym_name to improve packing.
1311 (cortex_a8_erratum_scan): Check for PLT entries.
1312 (elf32_arm_size_stubs): Save the target symbol for a8 relocs.
1314 2010-05-07 Tristan Gingold <gingold@adacore.com>
1316 * Makefile.in: Regenerate with automake 1.11.1.
1317 * aclocal.m4: Ditto.
1319 2010-05-05 Nick Clifton <nickc@redhat.com>
1321 * po/es.po: Updated Spanish translation.
1323 2010-05-03 Tristan Gingold <gingold@adacore.com>
1325 * vms-lib.c (vms_lib_bopen): Fix the size threshold to read
1326 selective_search flag.
1328 * vms-alpha.c (alpha_vms_bfd_final_link): Create the DMT section
1329 before output_has_begun is set.
1331 2010-05-03 Tristan Gingold <gingold@adacore.com>
1333 * vms-alpha.c: Add comments.
1334 (struct vms_private_data_struct): Remove image_autoextend field.
1335 (dst_check_allocation): Removed.
1336 (image_write): Remove call to dst_check_allocation.
1337 (vms_slurp_debug): Do not set image_autoextend. Adjust section
1339 (_bfd_vms_slurp_object_records): Remove useless new_type variable.
1340 (alpha_vms_write_exec): Use dst_section to get the dst section.
1341 Write the dmt section.
1342 (evax_bfd_print_image): Also print the dst size in hexa. Fix typo.
1343 (alpha_vms_read_sections_content): Do not set image_autoextend.
1344 (alpha_vms_bfd_final_link): Generate the dst.
1346 2010-05-03 Tristan Gingold <gingold@adacore.com>
1348 * vms-lib.c (_bfd_vms_lib_archive_p): Adjust for a possible empty
1350 (vms_lib_dcx): Adjust for the above change.
1352 2010-04-30 H.J. Lu <hongjiu.lu@intel.com>
1355 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): New.
1357 * elf32-i386.c (elf_i386_relocate_section): Use it.
1358 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
1360 2010-04-30 Tristan Gingold <gingold@adacore.com>
1362 * vms-lib.c (vms_read_block): New function.
1363 (vms_traverse_index): Use vms_read_block. Handle long key names.
1365 2010-04-30 Tristan Gingold <gingold@adacore.com>
1367 * vms-lib.c (struct lib_tdata): Field artdata added, fields nbr_syms
1369 (struct carsym_mem): New structure.
1370 (vms_add_index): New function.
1371 (vms_add_indexes_from_list): New function.
1372 (vms_traverse_index): Parameter carsym changed to carsym_mem.
1373 Code adjusted to handle elfidx.
1374 (vms_lib_read_index): Adjusted for vms_traverse_index changes.
1375 Parameter NBREL is now a pointer.
1376 (_bfd_vms_lib_archive_p): Adjust for above change. Handle ia64
1378 (_bfd_vms_lib_mkarchive): Adjusted for changes in struct lib_tdata.
1379 (_bfd_vms_lib_find_symbol): Ditto.
1380 (vms_lib_bopen): Fix two typos: return FALSE in case of error,
1382 (_bfd_vms_lib_get_module): New function.
1383 (_bfd_vms_lib_get_elt_at_index): Rewritten using the above
1385 (_bfd_vms_lib_openr_next_archived_file): Use _bfd_vms_lib_get_module.
1386 (_bfd_vms_lib_generic_stat_arch_elt): Handle ia64 archives.
1387 (vms_write_index): Adjust for structure renamed.
1388 * vms-alpha.c (alpha_vms_link_add_archive_symbols): Adjust for
1389 changes of _bfd_vms_lib_find_symbol.
1391 2010-04-28 Kai Tietz <kai.tietz@onevision.com>
1393 * config.bfd: Correct accidential reverted patch
1396 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
1398 * pe-x86_64.c (TARGET_UNDERSCORE): Set value dependent
1399 to USE_MINGW64_LEADING_UNDERSCORES.
1400 * pei-x86_64.c (TARGET_UNDERSCORE): Likewise.
1401 * config.bfd: Change underscoring default for x64 mingw
1403 * coffcode.h (coff_write_relocs): Add check that dereferenced
1404 sym_ptr_ptr isn't NULL.
1405 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
1406 * configure: Regenerated.
1407 * configure.in: Add option '--enable-leading-mingw64-underscores'
1408 and define config.in variable USE_MINGW64_LEADING_UNDERSCORES.
1410 2010-04-27 Nick Clifton <nickc@redhat.com>
1413 * coffgen.c (coff_find_nearest_line): Incldue the section address
1414 of function name symbols in address comparisons.
1416 2010-04-27 Nick Clifton <nickc@redhat.com>
1418 * po/fr.po: Updated French translation.
1420 2010-04-23 Alan Modra <amodra@gmail.com>
1422 * elf.c: Replace use of ELF_IS_SECTION_IN_SEGMENT and
1423 ELF_IS_SECTION_IN_SEGMENT_FILE with ELF_SECTION_IN_SEGMENT
1425 (assign_file_positions_for_load_sections): Modify section in
1426 segment warning to ignore overlay vmas.
1427 * elf32-spu.c (spu_elf_object_p): Replace use of
1428 ELF_IS_SECTION_IN_SEGMENT_MEMORY with ELF_SECTION_IN_SEGMENT.
1430 2010-04-22 Nick Clifton <nickc@redhat.com>
1432 * po/bfd.pot: Updated by the Translation project.
1433 * po/vi.po: Updated Vietnamese translation.
1435 2010-04-22 Alan Modra <amodra@gmail.com>
1437 * elf.c (assign_file_positions_for_load_sections): Revert 2008-05-29
1438 change. Tidy. Don't error on sections not allocated in segment.
1440 2010-04-15 Andrew Haley <aph@redhat.com>
1442 * bfd-in.h (elf32_arm_fix_exidx_coverage): Add new flag:
1443 merge_exidx_entries.
1444 * bfd-in2.h: Likewise.
1445 * elf32-arm.c (elf32_arm_fix_exidx_coverage): Likewise. Use it to
1446 control merging of exidx entries.
1448 2010-04-20 Joseph Myers <joseph@codesourcery.com>
1450 * elf32-tic6x.h: New.
1451 * elf-bfd.h (enum elf_target_id): Define TIC6X_ELF_DATA.
1452 * elf32-tic6x.c (struct elf32_tic6x_obj_tdata, elf32_tic6x_tdata,
1453 elf32_tic6x_howto_table_rel, elf32_tic6x_info_to_howto_rel,
1454 elf32_tic6x_set_use_rela_p, elf32_tic6x_mkobject,
1455 elf32_tic6x_new_section_hook, elf32_tic6x_rel_relocation_p,
1456 bfd_elf32_mkobject, bfd_elf32_new_section_hook): New.
1457 (elf32_tic6x_reloc_type_lookup, elf32_tic6x_reloc_name_lookup,
1458 elf32_tic6x_relocate_section): Handle REL relocations.
1459 (elf_info_to_howto_rel): Define to elf32_tic6x_info_to_howto_rel.
1461 2010-04-20 Jakub Jelinek <jakub@redhat.com>
1463 * dwarf2.c (find_abstract_instance_name, scan_unit_for_symbols): Treat
1464 DW_AT_linkage_name the same as DW_AT_MIPS_linkage_name.
1466 2010-04-19 Nick Clifton <nickc@redhat.com>
1468 * archive64.c (bfd_elf64_archive_slurp_armap): Remove unused
1470 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add unused
1471 attribute to warned variable. Remove unused val, type and type2
1474 2010-04-16 Andreas Schwab <schwab@redhat.com>
1476 * vms-alpha.c (alpha_vms_link_add_object_symbols): Avoid breaking
1477 strict-aliasing rules.
1479 2010-04-16 Tristan Gingold <gingold@adacore.com>
1481 * vms-alpha.c (_bfd_vms_slurp_eihd): Fix typo.
1482 (_bfd_vms_get_object_record): Always assume there is a pad byte
1485 * vms-lib.c: Add a few comments.
1487 2010-04-15 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1489 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Support additions to
1490 attributes in v2.08 of the ABI.
1492 2010-04-15 Alan Modra <amodra@gmail.com>
1494 * config.bfd (vax*-*-*vms*): Delete.
1496 2010-04-14 Tristan Gingold <gingold@adacore.com>
1498 * Makefile.am (BFD32_BACKENDS): Remove vms-gsd.lo, vms-hdr.lo,
1499 vms-tir.lo, vms.lo and add vms-alpha.lo
1500 (BFD32_BACKENDS_CFILES): Remove vms-gsd.c, vms-hdr.c,
1501 vms-tir.c, vms.c and add vms-alpha.c
1502 * Makefile.in: Regenerate.
1503 * configure.in (TDEFINES): Adjust file list for vms_alpha_vec.
1505 * configure: Regenerate.
1506 * targets.c (vms_vax_vec): Remove the declaration.
1507 (_bfd_target_vector): Remove vms_vax_vec.
1508 * vms-alpha.c: New file.
1509 * vms-gsd.c: Removed, rewritten in vms-alpha.c
1513 * vms-misc.c: Fix indentation and comments. Replace most of
1514 #if VMS_DEBUG/vms_debug with vms_debug2.
1515 (_bfd_vms_hash_newfunc): Moved to vms-alpha.c
1516 (hash_string): Ditto.
1517 (_bfd_vms_length_hash_symbol): Ditto.
1518 (maybe_adjust_record_pointer_for_object): Ditto.
1519 (_bfd_vms_get_object_record): Ditto.
1520 (vms_get_remaining_object_record): Ditto.
1521 (_bfd_vms_push): Ditto.
1522 (_bfd_vms_pop): Ditto.
1523 (_bfd_vms_get_header_values): Removed.
1524 (_bfd_vms_get_first_record): Removed.
1525 (vms_get_remaining_image_record): Removed.
1526 (new_symbol): Removed.
1527 (_bfd_vms_enter_symbol): Removed.
1528 (_bfd_vms_save_sized_string): Use memcpy instead of strncpy.
1529 (_bfd_vms_output_begin): Remove rechead parameter. Replace bfd
1530 parameter with struct vms_rec_wr.
1531 (_bfd_vms_output_push): Removed and replaced by ...
1532 (_bfd_vms_output_begin_subrec): ... new function.
1533 (_bfd_vms_output_alignment): Replace bfd parameter with
1534 struct vms_rec_wr, and adjust.
1535 (_bfd_vms_output_check): Ditto
1536 (_bfd_vms_output_byte): Ditto.
1537 (_bfd_vms_output_short): Ditto.
1538 (_bfd_vms_output_long): Ditto.
1539 (_bfd_vms_output_quad): Ditto.
1540 (_bfd_vms_output_counted): Ditto.
1541 (_bfd_vms_output_dump): Ditto.
1542 (_bfd_vms_output_fill): Ditto.
1543 (_bfd_vms_output_pop): Removed and replaced by ...
1544 (_bfd_vms_output_end_subrec): ... new function.
1545 (_bfd_vms_output_flush): Removed.
1546 (_bfd_vms_output_align): New function.
1547 (_bfd_vms_output_end): Add recwr parameter. Adjust for this new
1549 (vms_convert_to_var): New function imported from vms.c
1550 (vms_convert_to_var_1): Ditto.
1551 (vms_convert_to_var_unix_filename): Ditto.
1552 (vms_get_module_name): Ditto.
1553 (get_vms_time_string): Ditto.
1554 (vms_time_to_time_t): Ditto.
1555 (vms_rawtime_to_time_t): Ditto.
1556 * vms.h: All macros for the VMS file format are now in include/vms.
1557 Prototypes for vms.c, vms-gsd.c, vms-misc.c, vms-hdr.c, vms-tir.c
1559 (struct vms_symbol_struct, struct stack_struct): Moved to vms-alpha.c
1560 (struct fileinfo, struct srecinfo, struct lineinfo): Ditto.
1561 (struct funcinfo, struct vms_private_data_struct): Ditto.
1562 (struct vms_section_data_struct): Ditto.
1563 (struct vms_rec_rd, stryct vms_rec_wr): New declarations.
1564 (vms_get_module_name, get_vms_time_string): New declarations.
1565 (vms_time_to_time_t, vms_rawtime_to_time_t): Ditto.
1566 (_bfd_vms_output_begin_subrec, _bfd_vms_output_end_subrec): Ditto.
1567 (_bfd_vms_save_sized_string, _bfd_vms_save_counted_string): Adjusted.
1568 (_bfd_vms_output_begin, _bfd_vms_output_alignment): Ditto.
1569 (_bfd_vms_output_end,_bfd_vms_output_check): Ditto.
1570 (_bfd_vms_output_byte, _bfd_vms_output_short): Ditto.
1571 (_bfd_vms_output_long, _bfd_vms_output_quad): Ditto.
1572 (_bfd_vms_output_counted, _bfd_vms_output_dump): Ditto.
1573 (_bfd_vms_output_fill): Ditto.
1574 (bfd_vms_set_section_flags): Ditto.
1576 2010-04-14 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1578 * elflink.c (_bfd_elf_merge_symbol): Tighten up the test for early
1579 exit due to merging the same weak symbol to test that the symbols are
1582 2010-04-13 Alan Modra <amodra@gmail.com>
1584 * elf64-ppc.c (ppc64_elf_relocate_section): Correct NOP location
1585 when optimizing high got_tlsgd/ld insns.
1587 2010-04-10 H.J. Lu <hongjiu.lu@intel.com>
1589 * hosts/x86-64linux.h (HAVE_PRPSINFO32_T): Undefine before
1591 (HAVE_PRSTATUS32_T): Likewise.
1593 2010-04-10 H.J. Lu <hongjiu.lu@intel.com>
1596 * configure.in (CORE_HEADER): New. Set to hosts/x86-64linux.h
1597 for x86_64-*-linux*.
1598 * config.in: Regenerated.
1599 * configure: Likewise.
1601 * elf.c: Include CORE_HEADER if it is defined.
1603 2010-04-10 H.J. Lu <hongjiu.lu@intel.com>
1604 Jan Kratochvil <jan.kratochvil@redhat.com>
1606 * hosts/x86-64linux.h: New.
1608 2010-04-09 Nick Clifton <nickc@redhat.com>
1610 * aoutx.h (aout_link_input_bfd): Remove unused variable sym_count.
1611 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Remove unused
1612 variables htab and hdr_info and mark info parameter as unused.
1613 * elf.c (prep_headers): Remove unused variable i_phdrp.
1614 (_bfd_elf_write_object_contents): Remove unused variable i_ehdrp.
1615 * elf32-i386.c (elf_i386_relocate_section): Mark variabled warned
1617 * peXXigen.c (pe_print_reloc): Remove unused variable datasize.
1618 * verilog.c (verilog_write_section): Remove unused variable
1621 2010-04-07 Alan Modra <amodra@gmail.com>
1623 * warning.m4 (GCC_WARN_CFLAGS): Only add -Wshadow for gcc-4 and above.
1624 * configure: Regenerate.
1626 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
1629 * elf-bfd.h (SYMBOLIC_BIND): Don't bind unique symbol locally.
1631 2010-04-06 Tristan Gingold <gingold@adacore.com>
1633 * vms-lib.c (_bfd_vms_lib_write_archive_contents): Fix idd flags.
1635 2010-04-05 Jakub Jelinek <jakub@redhat.com>
1637 * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Handle CIE version 4
1638 provided that it has the expected address size and zero segment
1641 * dwarf2.c (struct line_head): Add maximum_ops_per_insn field.
1642 (struct line_info): Add op_index field, change end_sequence type to
1644 (new_line_sorts_after): For the same address compare op_index.
1645 (add_line_info): Add op_index argument, store it into the structure.
1646 (decode_line_info): Complain about unknown versions of .debug_line.
1647 Initialize maximum_ops_per_insn. Add op_index state register and
1650 2010-04-01 Nathan Sidwell <nathan@codesourcery.com>
1652 * elf32-ppc.c (apuinfo_set): New static var.
1653 (ppc_elf_begin_write_processing): Set it here, always create an
1654 APUinfo section if there were any in the inputs.
1655 (ppc_elf_write_section): Check apuinfo_set.
1656 (ppc_elf_final_write_processing): Likewise.
1658 2010-04-01 Tristan Gingold <gingold@adacore.com>
1660 * vms.h: Include time.h. Add prototypes for vms_get_module_name,
1661 vms_time_to_time_t and vms_rawtime_to_time_t.
1662 * vms.c (vms_alpha_vec): Add archives support.
1663 * vms-misc.c: Include safe-ctype.h
1664 (vms_get_module_name): New function.
1665 (vms_time_to_time_t, vms_rawtime_to_time_t): Ditto.
1666 * vms-hdr.c (_bfd_vms_write_hdr): Put module name creation to the
1667 vms_get_module_name function. Use this function.
1668 * targets.c: Declare vms_lib_txt_vec. Add it to _bfd_target_vector.
1669 * libbfd-in.h: Add prototype for _bfd_append_relative_path.
1670 Add prototypes for vms-lib.c
1671 * libbfd.h: Regenerate.
1672 * configure.in (TDEFINES): Add an entry for vms_lib_txt_vec. Add
1673 vms-lib.lo to vms_alpha_vec.
1674 * config.bfd (targ_cpu): Add targ_selvecs for alpha*-*-*vms*.
1675 * configure: Regenerate.
1676 * bfd.c: Add selective_search field.
1677 * bfd-in2.h: Regenerate.
1678 * archive.c (append_relative_path): Rename to
1679 _bfd_append_relative_path and make it public.
1680 (_bfd_get_elt_at_filepos): Adjust for above renaming.
1681 * Makefile.am (BFD32_BACKENDS): Add vms-lib.lo
1682 (BFD32_BACKENDS_CFILES): Add vms-lib.c
1683 * Makefile.in: Regenerate.
1685 2010-04-01 Jakub Jelinek <jakub@redhat.com>
1687 * dwarf2.c (read_attribute_value): Handle CU version 4
1688 for DW_FORM_ref_addr, handle DW_FORM_sec_offset, DW_FORM_exprloc
1689 and DW_FORM_flag_present. For unknown form value return NULL.
1690 (scan_unit_for_symbols): For DW_AT_location handle DW_FORM_exprloc
1692 (parse_comp_unit): Allow CU version 4.
1694 2010-04-01 Hans-Peter Nilsson <hp@axis.com>
1696 * elf32-cris.c (cris_elf_relocate_section): Correct first argument
1697 to _bfd_elf_get_dynamic_reloc_section.
1698 (elf_cris_discard_excess_dso_dynamics): Ditto.
1700 2010-03-31 Kai Tietz <kai.tietz@onevision.com>
1702 * coff-i386.c (in_reloc_p): Check also for R_SECREL32.
1703 * coff-x86_64.c (in_reloc_p): Check also for R_AMD64_SECREL.
1705 2010-03-31 Alan Modra <amodra@gmail.com>
1707 * elf64-ppc.c (ppc64_elf_relocate_section): Nop out optimized
1708 TPREL16_HI and TPREL16_HA insns.
1710 2010-03-31 Hans-Peter Nilsson <hp@axis.com>
1713 * elf32-cris.c (elf_cris_copy_indirect_symbol): Remove invalid
1714 assert of empty pcrel_relocs_copied on the direct symbol. Instead
1715 of moving the list from the indirect symbol to the direct symbol,
1716 merge into any existing list.
1717 (cris_elf_check_relocs): Store the original section in the
1718 pcrel_relocs_copied list, not the relocation section.
1719 (elf_cris_discard_excess_dso_dynamics): Adjust accordingly to find
1720 the relocation section, for reducing its size. Change the
1721 BFD_ASSERT into a check for the section being read-only, and only
1722 emit warnings and TEXTREL marker when there's an entry for a
1725 2010-03-29 Daniel Jacobowitz <dan@codesourcery.com>
1727 * elf32-arm.c (using_thumb_only): Handle v6-M.
1729 2010-03-26 Alan Modra <amodra@gmail.com>
1731 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_EMB_RELSDA>): Not pc-relative.
1732 * bfd-in.h (elf_discarded_section): Clarify comment.
1733 * reloc.c (struct reloc_howto_struct <pc_relative>): Likewise.
1734 * bfd-in2.h: Regenerate.
1736 2010-03-26 Matt Rice <ratmice@gmail.com>
1738 * archive.c (_bfd_compute_and_write_armap): Allow symbols flagged
1739 as unique in the armap.
1741 2010-03-26 Alan Modra <amodra@gmail.com>
1744 * elf64-ppc.c (ppc64_elf_relocate_section): Always look up a
1745 possible stub on branches.
1747 2010-03-25 Joseph Myers <joseph@codesourcery.com>
1749 * Makefile.am (ALL_MACHINES): Add cpu-tic6x.lo.
1750 (ALL_MACHINES_CFILES): Add cpu-tic6x.c.
1751 (BFD32_BACKENDS): Add elf32-tic6x.lo.
1752 (BFD32_BACKENDS_CFILES): Add elf32-tic6x.c.
1753 * Makefile.in: Regenerate.
1754 * archures.c (bfd_arch_tic6x, bfd_tic6x_arch): New.
1755 (bfd_archures_list): Update.
1756 * config.bfd (tic6x-*-elf): New.
1757 * configure.in (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec):
1759 * configure: Regenerate.
1760 * cpu-tic6x.c, elf32-tic6x.c: New.
1761 * reloc.c (BFD_RELOC_C6000_PCR_S21, BFD_RELOC_C6000_PCR_S12,
1762 BFD_RELOC_C6000_PCR_S10, BFD_RELOC_C6000_PCR_S7,
1763 BFD_RELOC_C6000_ABS_S16, BFD_RELOC_C6000_ABS_L16,
1764 BFD_RELOC_C6000_ABS_H16, BFD_RELOC_C6000_SBR_U15_B,
1765 BFD_RELOC_C6000_SBR_U15_H, BFD_RELOC_C6000_SBR_U15_W,
1766 BFD_RELOC_C6000_SBR_S16, BFD_RELOC_C6000_SBR_L16_B,
1767 BFD_RELOC_C6000_SBR_L16_H, BFD_RELOC_C6000_SBR_L16_W,
1768 BFD_RELOC_C6000_SBR_H16_B, BFD_RELOC_C6000_SBR_H16_H,
1769 BFD_RELOC_C6000_SBR_H16_W, BFD_RELOC_C6000_SBR_GOT_U15_W,
1770 BFD_RELOC_C6000_SBR_GOT_L16_W, BFD_RELOC_C6000_SBR_GOT_H16_W,
1771 BFD_RELOC_C6000_DSBT_INDEX, BFD_RELOC_C6000_PREL31,
1772 BFD_RELOC_C6000_COPY, BFD_RELOC_C6000_ALIGN,
1773 BFD_RELOC_C6000_FPHEAD, BFD_RELOC_C6000_NOCMP): New.
1774 * targets.c (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec): New.
1775 (_bfd_target_vector): Update.
1776 * bfd-in2.h, libbfd.h: Regenerate.
1778 2010-03-24 H.J. Lu <hongjiu.lu@intel.com>
1780 * aout-target.h: Update copyright year.
1781 * aout-tic30.c: Likewise.
1782 * coff-alpha.c: Likewise.
1783 * coff-rs6000.c: Likewise.
1784 * coff64-rs6000.c: Likewise.
1785 * elf64-mips.c: Likewise.
1787 * libecoff.h: Likewise.
1788 * mach-o-target.c: Likewise.
1789 * mach-o.c: Likewise.
1790 * oasys.c: Likewise.
1791 * targets.c: Likewise.
1793 2010-03-24 H.J. Lu <hongjiu.lu@intel.com>
1795 * libbfd-in.h: Update copyright year.
1797 2010-03-21 H.J. Lu <hongjiu.lu@intel.com>
1800 * elflink.c (_bfd_elf_add_default_symbol): Check !executable
1803 2010-03-19 Jie Zhang <jie@codesourcery.com>
1805 * elf32-arm.c (struct section_list): Remove.
1806 (section_list): Remove typedef.
1807 (record_section_with_arm_elf_section_data): Remove.
1808 (find_arm_elf_section_entry): Remove.
1809 (get_arm_elf_section_data): Use is_arm_elf.
1810 (unrecord_section_with_arm_elf_section_data): Remove.
1811 (elf32_arm_new_section_hook): Don't call
1812 record_section_with_arm_elf_section_data.
1813 (elf32_arm_write_section): Set mapcount to -1 when
1814 the map has been used. Don't call
1815 unrecord_section_with_arm_elf_section_data.
1816 (unrecord_section_via_map_over_sections): Remove.
1817 (elf32_arm_close_and_cleanup): Remove.
1818 (elf32_arm_bfd_free_cached_info): Remove.
1819 (bfd_elf32_close_and_cleanup): Don't define.
1820 (bfd_elf32_bfd_free_cached_info): Don't define.
1822 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
1825 * libcoff-in.h (pe_tdata): Add dont_strip_reloc.
1826 * libcoff.h: Regenerated.
1828 * peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Clear F_RELFLG
1829 if dont_strip_reloc is set.
1830 (_bfd_XX_bfd_copy_private_bfd_data_common): Set
1831 dont_strip_reloc on output if there is no .reloc and
1832 IMAGE_FILE_RELOCS_STRIPPED isn't set in input.
1834 2010-03-18 Wei Guozhi <carrot@google.com>
1837 * elf32-arm.c (elf32_arm_reloc_map): Map BFD_RELOC_ARM_GOT_PREL to
1839 * reloc.c (BFD_RELOC_ARM_GOT_PREL): New ARM relocation.
1840 * bfd-in2.h: Regenerate.
1841 * libbfd.h: Regenerate.
1843 2010-03-17 H.J. Lu <hongjiu.lu@intel.com>
1845 * reloc.c (BFD_RELOC_SPU_PIC18): Removed.
1846 (BFD_RELOC_SPU_STUB): Likewise.
1848 2010-03-17 Jie Zhang <jie@codesourcery.com>
1850 * elf.c (assign_file_positions_for_load_sections): Avoid
1853 2010-03-17 Alan Modra <amodra@gmail.com>
1856 * plugin.c (bfd_plugin_object_p): Pass iostream to fileno using
1859 2010-03-17 Alan Modra <amodra@gmail.com>
1861 * elf32-arm.c (cortex_a8_erratum_scan): Warning fix.
1863 2010-03-16 Alan Modra <amodra@gmail.com>
1865 * elf64-ppc.c (struct ppc_link_hash_table): Add do_toc_opt.
1866 (ppc64_elf_edit_toc): Set it here.
1867 (ha_reloc_match): New function.
1868 (ppc64_elf_relocate_section): Optimize bigtoc insn sequences.
1870 2010-03-15 Alan Modra <amodra@gmail.com>
1872 * elf64-ppc.c (ppc64_elf_has_small_toc_reloc): New function.
1873 * elf64-ppc.h (ppc64_elf_has_small_toc_reloc): Declare.
1875 2010-03-14 Alan Modra <amodra@gmail.com>
1878 * elf64-ppc.h (ppc64_elf_check_init_fini): Declare.
1879 * elf64-ppc.c (call_check_done): Define.
1880 (ppc64_elf_add_symbol_hook): Substitute bfd_get_section_name macro.
1881 (ppc64_elf_check_relocs, ppc64_elf_size_dynamic_sections): Likewise.
1882 (ppc64_elf_finish_multitoc_partition): Remove unnecessary check.
1883 (toc_adjusting_stub_needed): Use call_check_done rather than toc_off.
1884 Simplify return logic. Iterate over all .init and .fini fragments
1885 by recursion. Set makes_toc_func_call here..
1886 (ppc64_elf_next_input_section): ..rather than here.
1887 (check_pasted_section, ppc64_elf_check_init_fini): New functions.
1889 2010-03-13 Alan Modra <amodra@gmail.com>
1892 * elf64-ppc.c (ppc_type_of_stub): Always set *hash to the
1893 function descriptor symbol if there is one, not just for plt stubs.
1894 (ppc64_elf_relocate_section): Use fdh on all ppc_get_stub_entry calls.
1896 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1898 * elflink.c (bfd_elf_size_dynamic_sections): Don't emit base
1900 Skip it when constructing def.vd_next.
1902 * elf32-i386.c (TARGET_LITTLE_SYM): Redefine to
1903 bfd_elf32_i386_sol2_vec.
1904 (TARGET_LITTLE_NAME): Redefine to elf32-i386-sol2.
1905 (elf32_bed): Redefine to elf32_i386_sol2_bed.
1906 (elf_backend_want_plt_sym): Redefine to 1.
1908 * elf64-x86-64.c (TARGET_LITTLE_SYM): Redefine to
1909 bfd_elf64_x86_64_sol2_vec.
1910 (TARGET_LITTLE_NAME): Redefine to elf64-x86-64-sol2.
1911 (elf64_bed): Redefine to elf64_x86_64_sol2_bed.
1912 (elf_backend_want_plt_sym): Redefine to 1.
1914 * config.bfd (i[3-7]86-*-solaris2*): Set targ_defvec to
1915 bfd_elf32_i386_sol2_vec.
1916 Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
1918 (x86_64-*-solaris2*): Set targ_defvec to bfd_elf32_i386_sol2_vec.
1919 Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
1922 * configure.in: Handle bfd_elf32_i386_sol2_vec,
1923 bfd_elf64_x86_64_sol2_vec.
1924 * configure: Regenerate.
1926 * targets.c (bfd_elf32_i386_sol2_vec): Declare.
1927 (bfd_elf64_x86_64_sol2_vec): Declare.
1928 (_bfd_target_vector): Add bfd_elf32_i386_sol2_vec,
1929 bfd_elf64_x86_64_sol2_vec.
1931 2010-03-04 Daniel Jacobowitz <dan@codesourcery.com>
1933 * elf32-arm.c (elf32_arm_output_arch_local_syms): Skip non-program
1936 2010-03-04 Alan Modra <amodra@gmail.com>
1939 * dwarf2.c (read_abbrevs): Return NULL on alloc failures.
1940 (read_attribute_value, decode_line_info): Likewise.
1941 (add_line_info, read_rangelist): Return FALSE on alloc failures.
1942 (arange_add, sort_line_sequences): Likewise.
1943 (find_abstract_instance_name): Handle failures from called funcs.
1944 (scan_unit_for_symbols, parse_comp_unit, decode_line_info): Likewise.
1945 (find_line): Realloc to a temp, and handle alloc fail.
1947 2010-03-03 Daniel Jacobowitz <dan@codesourcery.com>
1949 * elf32-arm.c (elf32_arm_output_arch_local_syms): Do not add
1950 a mapping symbol to an empty section.
1952 2010-03-02 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1954 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add a check of the
1955 return value from the call to _bfd_elf_merge_object_attributes.
1957 2010-03-02 Christophe Lyon <christophe.lyon@st.com>
1958 Alan Modra <amodra@gmail.com>
1960 * elf32-arm.c (a8_erratum_fix): Add st_type field to record the
1961 destination mode of the a8 stub.
1962 (elf32_arm_link_hash_table): Add top_id field.
1963 (elf32_arm_link_hash_table_create): Initialize top_id.
1964 (arm_type_of_stub): Update prototype, st_type can now be updated
1965 by this function. Actual destination address in case of PLT is
1966 computed here, to help factorizing code.
1967 (elf32_arm_stub_name): Update prototype, use stub_type additional
1968 parameter to build stub name.
1969 (elf32_arm_get_stub_entry): Update prototype, use stub_type
1970 additional parameter to build stub entry.
1971 (arm_build_one_stub): Use bfd_put_16/bfd_put_32 instead of
1972 put_thumb_insn/put_arm_insn as BE8 encoding is now handled later.
1973 Call elf32_arm_final_link_relocate to process all in-stub
1975 (elf32_arm_setup_section_lists): Update top_id.
1976 (cortex_a8_erratum_scan): Record stub destination mode.
1977 (elf32_arm_size_stubs): Update call to arm_type_of_stub according
1979 (elf32_arm_final_link_relocate): Enable processing of in-stub
1980 REL32 relocations. Rely on arm_type_of_stub to detect if a stub is
1981 needed, enabling code factorization.
1982 (elf32_arm_final_link): Process stub sections.
1983 (elf32_arm_output_map_sym): Add entry to code/data map.
1985 2010-03-01 David S. Miller <davem@davemloft.net>
1987 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): When STT_GNU_IFUNC and
1988 h->def_regular, set h->ref_regular.
1989 (allocate_dynrelocs): Only force output of STT_GNU_IFUNC plt entries
1990 and dynamic relocations if h->ref_regular.
1992 * elfxx-sparc.c (struct elf_reloc_map): Delete.
1993 (sparc_reloc_map): Delete.
1994 (_bfd_sparc_elf_reloc_type_lookup): Explicitly handle each
1995 relocation type in switch statements.
1997 2010-02-25 Alan Modra <amodra@gmail.com>
2000 * elf.c (_bfd_elf_init_private_section_data): Rename need_group
2001 to final_link and invert. For final link allow some flags to
2002 differ. Don't specially allow flags to be all zero.
2004 2010-02-24 Alan Modra <amodra@gmail.com>
2007 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Ise
2008 SYMBOL_REFERENCES_LOCAL to exclude entries from the dynamic symbol
2011 2010-02-23 Andrew Zabolotny <anpaza@mail.ru>
2014 * elf32-avr.c (elf_avr_howto_table): Add R_AVR_8.
2015 (avr_reloc_map): Map BFD_RELOC_8 to R_AVR_8.
2017 2010-02-22 Alan Modra <amodra@gmail.com>
2019 * reloc.c (bfd_check_overflow): When forming addrmask, shift
2020 fieldmask left by rightshift.
2021 (_bfd_relocate_contents): Likewise. Use rightshift addrmask in all
2024 2010-02-20 H.J. Lu <hongjiu.lu@intel.com>
2026 * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Don't check
2027 STT_GNU_IFUNC on large common symbol.
2029 2010-02-18 H.J. Lu <hongjiu.lu@intel.com>
2031 * elf32-i386.c (elf_i386_add_symbol_hook): Don't set
2032 has_ifunc_symbols if the symbol comes from a shared library.
2033 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
2034 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
2035 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
2036 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
2037 * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Likewise.
2039 2010-02-19 Alan Modra <amodra@gmail.com>
2041 * elf.c (_bfd_elf_fixup_group_sections): New function, split out from..
2042 (_bfd_elf_copy_private_header_data): ..here.
2043 * elflink.c (_bfd_elf_size_group_sections): New function.
2044 (bfd_elf_size_dynamic_sections): Call it.
2045 * elf-bfd.h (_bfd_elf_size_group_sections): Declare.
2046 (_bfd_elf_fixup_group_sections): Declare.
2048 2010-02-18 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2050 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add support for
2051 merging Tag_DIV_use, Tag_MPextension_use, and
2052 Tag_MPextension_use_legacy tags.
2054 2010-02-18 Alan Modra <amodra@gmail.com>
2056 * elf.c (bfd_elf_set_group_contents): Revert accidental 2009-01-15
2057 commit. Don't write zeros for removed group members.
2058 (_bfd_elf_copy_private_header_data): Adjust size of group section
2059 when group members are removed by objcopy.
2061 2010-02-15 Dave Korn <dave.korn.cygwin@gmail.com>
2064 * configure.host (*-*-solaris2.11): Add host define to select
2065 valid default code page for windres/windmc on solaris.
2067 2010-02-15 Nick Clifton <nickc@redhat.com>
2069 * po/vi.po: Updated Vietnamese translation.
2071 2010-02-12 Daniel Gutson <dgutson@codesourcery.com>
2073 * elf32-arm.c (elf32_arm_output_arch_local_syms): add
2074 missing mapping symbol to data only sections.
2076 2010-02-11 David S. Miller <davem@davemloft.net>
2078 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): For R_SPARC_GOTDATA_OP_HIX22
2079 and R_SPARC_GOTDATA_OP_LOX10, only bump the GOT refcount for global
2081 (_bfd_sparc_elf_gc_sweep_hook): Likewise only decrement the GOT count for
2082 these relocs on global symbols.
2084 (_bfd_sparc_elf_relocate_section): Perform GOTDATA optimizations on
2085 local symbol references which are not STT_GNU_IFUNC. Handle
2086 relocation of them like R_SPARC_HIX22 and R_SPARC_LOX10 respectively,
2087 and deal with negative vs. non-negative values properly.
2089 2010-02-09 Tristan Gingold <gingold@adacore.com>
2091 * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Adjust addend for
2092 non-external relocation.
2094 2010-02-09 Alan Modra <amodra@gmail.com>
2096 * elf64-ppc.c (merge_got_entries): Move earlier in file.
2097 (allocate_dynrelocs): Merge got entries here if not doing multi-toc.
2098 (ppc64_elf_size_dynamic_sections): Similarly merge tlsld_got.
2099 (ppc64_elf_layout_multitoc): Don't resize if we have already
2102 2010-02-09 Michael Holzheu <holzheu@de.ibm.com>
2104 * elf-bfd.h (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
2105 elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
2106 elfcore_write_s390_prefix): New.
2107 * elf.c (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
2108 elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
2109 elfcore_write_s390_prefix): New.
2110 (elfcore_grok_note): Handle NT_S390_TIMER, NT_S390_TODCMP,
2111 NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX.
2112 (elfcore_write_register_note): Handle .reg-s390-timer,
2113 .reg-s390-todcmp, .reg-s390-todpreg, .reg-s390-ctrs,
2114 .reg-s390-prefix section.
2116 2010-02-09 Alan Modra <amodra@gmail.com>
2118 * elf64-ppc.c (struct got_entry): Make tls_type and is_indirect
2119 unsigned char. Update variables and code using them throughout file.
2120 (struct ppc_link_hash_entry): Likewise for tls_mask.
2122 * elf64-ppc.c (ppc64_elf_layout_multitoc): Don't merge local got ents.
2124 * elf64-ppc.c (has_small_toc_reloc): Don't define.
2125 (makes_toc_func_call, call_check_in_progress): Shuffle flags.
2126 (struct ppc64_elf_obj_tdata): Add has_small_toc_reloc. Update
2127 code setting the flag.
2128 (ppc64_elf_next_toc_section): Group big-toc sections in
2131 2010-02-08 David S. Miller <davem@davemloft.net>
2133 * elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove sgot,
2134 srelgot, splt, srelplt, and sgotplt members in favor of generic copies.
2136 * elfxx-sparc.c (create_got_section): Delete.
2137 (_bfd_sparc_elf_create_dynamic_sections): Don't call, the dynamic
2138 section creator does that work for us. Use ->elf.foo instead of
2139 ->foo where applicable.
2140 (_bfd_sparc_elf_check_relocs): Use ->elf.foo instead of ->foo
2142 (allocate_dynrelocs): Likewise.
2143 (_bfd_sparc_elf_size_dynamic_sections): Likewise.
2144 (_bfd_sparc_elf_relocate_section): Likewise.
2145 (sparc_vxworks_build_plt_entry): Likewise.
2146 (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
2147 (sparc_finish_dyn): Likewise.
2148 (sparc_vxworks_finish_exec_plt): Likewise.
2149 (sparc_vxworks_finish_shared_plt): Likewise.
2150 (_bfd_sparc_elf_finish_dynamic_sections): Likewise.
2152 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use the SYMBOL_*
2153 macros for visibilty and locality checks.
2154 (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
2155 (allocate_dynrelocs): Likewise.
2156 (_bfd_sparc_elf_relocate_section): Likewise.
2157 (_bfd_sparc_elf_finish_dynamic_symbol):Likewise.
2159 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove set
2160 but never used local var 'dynobj'.
2162 * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Handle
2165 * reloc.c (BFD_RELOC_SPARC_JMP_IREL): New.
2166 (BFD_RELOC_SPARC_IRELATIVE): Likewise.
2167 * bfd-in2.h: Regenerate.
2168 * libbfd.h: Regenerate.
2170 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add loc_hash_table
2171 and loc_hash_memory.
2172 (_bfd_sparc_elf_link_hash_table_free): Declare.
2173 * elf32-sparc.c (elf32_sparc_add_symbol_hook): New.
2174 (elf_backend_add_symbol_hook, elf_backend_post_process_headers,
2175 bfd_elf32_bfd_link_hash_table_free): Define.
2176 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Set
2177 has_ifunc_symbols if STT_GNU_IFUNC.
2178 (bfd_elf64_bfd_link_hash_table_free): Define.
2179 (elf_backend_post_process_headers): Define always.
2180 * elfxx-sparc.c (sparc_jmp_irel_howto, sparc_irelative_howto): New.
2181 (sparc_reloc_map): Add entries for new IFUNC relocs.
2182 (_bfd_sparc_elf_reloc_type_lookup): Handle new IFUNC relocs.
2183 (_bfd_sparc_elf_info_to_howto_ptr): Likewise.
2184 (elf_sparc_local_htab_hash, elf_sparc_local_htab_eq,
2185 elf_sparc_get_local_sym_hash): New.
2186 (_bfd_sparc_elf_create_dynamic_sections): Move PLT ops initialization
2188 (_bfd_sparc_elf_link_hash_table_create): ... to here. Allocate
2190 (_bfd_sparc_elf_link_hash_table_free): New.
2191 (create_ifunc_sections): New.
2192 (_bfd_sparc_elf_check_relocs): Unconditionally assign htab->elf.dynobj
2193 and call create_ifunc_sections(). For local STT_GNU_IFUNC symbols
2194 cons up a fake local hash table entry for it. Unconditionally add
2195 a PLT refcount for STT_GNU_IFUNC symbols when h->def_regular. Count
2196 dyn relocs for ifunc.
2197 (_bfd_sparc_elf_adjust_dynamic_symbol): Handle ifunc.
2198 (allocate_dynrelocs): Unconditionally emit a PLT entry when
2199 STT_GNU_IFUNC and h->def_regular. Count GOT dyn relocs for ifunc.
2200 (allocate_local_dynrelocs): New function.
2201 (_bfd_sparc_elf_size_dynamic_sections): Invoke it over the local hash
2202 table. Emit dynamic relocs to irelplt when not shared. Treat iplt
2204 (_bfd_sparc_elf_relocate_section): Handle ifunc relocations by hand.
2205 (_bfd_sparc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc
2206 plt in iplt/irelplt.
2208 2010-02-08 Richard Sandiford <r.sandiford@uk.ibm.com>
2210 * xcofflink.c (_bfd_xcoff_bfd_final_link): When calculating
2211 max_contents_size, only consider sections whose contents must
2214 2010-02-09 Alan Modra <amodra@gmail.com>
2216 * elf64-ppc.c (allocate_dynrelocs): Remove unused got structs here..
2217 (ppc64_elf_size_dynamic_sections): ..and here..
2218 (merge_got_entries): ..rather than here.
2220 2010-02-09 Alan Modra <amodra@gmail.com>
2222 * elf64-ppc.c (struct ppc_link_hash_table): Add do_multi_toc.
2223 (has_small_toc_reloc): Define.
2224 (ppc64_elf_check_relocs): Set the above flags.
2225 (ppc64_elf_edit_opd): Delete obfd param.
2226 (ppc64_elf_tls_optimize): Likewise.
2227 (ppc64_elf_edit_toc): Likewise.
2228 (ppc64_elf_tls_setup): Likewise. Add no_multi_toc param.
2229 * elf64-ppc.h: Update prototypes.
2231 2010-02-08 Alan Modra <amodra@gmail.com>
2233 * section.c (struct bfd_section): Delete has_tls_reloc,
2234 has_tls_get_addr_call, has_gp_reloc, need_finalize_relax, reloc_done.
2235 Add sec_flg0 thru sec_flg5.
2236 (BFD_FAKE_SECTION): Update for changed flags.
2237 * ecoff.c (bfd_debug_section): Likewise.
2238 * elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
2239 * elf64-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
2240 (has_toc_reloc, makes_toc_func_call, call_check_in_progress): Update.
2241 * elf32-xtensa.c (reloc_done): Define.
2242 * elfxx-ia64.c (skip_relax_pass_0, skip_relax_pass_1): Update.
2243 * bfd-in2.h: Regenerate.
2245 2010-02-08 Tristan Gingold <gingold@adacore.com>
2247 * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Set reloc.r_extern
2248 for non-scattered relocations.
2250 2010-02-08 Nathan Sidwell <nathan@codesourcery.com>
2252 * elf32-ppc.c (ppc_elf_begin_write_processing): Allow empty
2253 apuinfo sections, only scan input sections once and reuse the
2256 2010-02-08 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2258 * archures.c (bfd_mach_ppc_titan): Define.
2259 * bfd-in2.h: Regenerate.
2260 * cpu-powerpc.c (bfd_powerpc_archs): Add titan entry.
2262 2010-02-08 Alan Modra <amodra@gmail.com>
2264 * elf32-ppc.c (ppc_elf_check_relocs): Remove dead ifunc code.
2266 2010-02-05 Sterling Augustine <sterling@tensilica.com>
2268 * elf.c (assign_file_positions_for_load_sections) Update lma of
2269 section if necessary. Fixes Bugzilla 11219.
2271 2010-02-05 H.J. Lu <hongjiu.lu@intel.com>
2273 * elf32-i386.c: Remove trailing white spaces.
2274 * elf64-x86-64.c: Likewise.
2276 2010-02-03 Nick Clifton <nickc@redhat.com>
2278 * elf-bfd.h (emum elf_object_id): Rename to elf_target_id. Add
2279 entries for other architectures.
2280 (struct elf_link_hash_table): Add hash_table_id field.
2281 (elf_hash_table_id): New accessor macro.
2282 * elflink.c (_bfd_elf_link_hash_table_init): Add target_id
2284 * elf-m10300.c (elf32_mn10300_hash_table): Check table id before
2285 returning cast pointer.
2286 (elf32_mn10300_link_hash_table_create): Identify new table as
2287 containing MN10300 extensions.
2288 (mn10300_elf_relax_section): Check pointer returned by
2289 elf32_mn10300_hash_table.
2290 * elf32-arm.c: Likewise, except using ARM extensions.
2291 * elf32-avr.c: Likewise, except using AVR extensions.
2292 * elf32-bfin.c: Likewise, except using BFIN extensions.
2293 * elf32-cris.c: Likewise, except using CRIS extensions.
2294 * elf32-frv.c: Likewise, except using FRV extensions.
2295 * elf32-hppa.c: Likewise, except using HPPA32 extensions.
2296 * elf32-i386.c: Likewise, except using I386 extensions.
2297 * elf32-lm32.c: Likewise, except using LM32 extensions.
2298 * elf32-m32r.c: Likewise, except using M32RM extensions.
2299 * elf32-m68hc11.c: Likewise, except using M68HC11 extensions.
2300 * elf32-m68hc1x.c: Likewise, except using M68HC11 extensions.
2301 * elf32-m68hc1x.h: Likewise, except using M68HC11 extensions.
2302 * elf32-m68k.c: Likewise, except using M68K extensions.
2303 * elf32-microblaze.c: Likewise, except using MICROBLAZE extensions.
2304 * elf32-ppc.c: Likewise, except using PPC32 extensions.
2305 * elf32-s390.c: Likewise, except using S390 extensions.
2306 * elf32-sh.c: Likewise, except using SH extensions.
2307 * elf32-spu.c: Likewise, except using SPU extensions.
2308 * elf32-xtensa.c: Likewise, except using XTENSA extensions.
2309 * elf64-alpha.c: Likewise, except using ALPHA extensions.
2310 * elf64-hppa.c: Likewise, except using HPPA64 extensions.
2311 * elf64-ppc.c: Likewise, except using PPC64 extensions.
2312 * elf64-s390.c: Likewise, except using S390 extensions.
2313 * elf64-x86-64.c: Likewise, except using X86_64 extensions.
2314 * elfxx-ia64.c: Likewise, except using IA64 extensions.
2315 * elfxx-mips.c: Likewise, except using MIPS extensions.
2316 * elfxx-sparc.c: Likewise, except using SPARC extensions.
2317 * elfxx-sparc.h: Likewise, except using SPARC extensions.
2318 * elf32-cr16.c (struct elf32_cr16_link_hash_table): Delete
2319 redundant structure.
2320 (elf32_cr16_hash_table): Delete unused macro.
2321 (elf32_cr16_link_hash_traverse): Delete unused macro.
2322 * elf32-score.c: Likewise.
2323 * elf32-score7.c: Likewise.
2324 * elf32-vax.c: Likewise.
2325 * elf64-sh64.c: Likewise.
2327 2010-02-03 Alan Modra <amodra@gmail.com>
2329 * elf64-ppc.c (struct plt_entry): Move earlier in file.
2330 (struct got_entry): Likewise. Add is_indirect and got.ent fields.
2331 (struct ppc64_elf_obj_tdata): Change tlsld_got to be a struct got_entry.
2333 (struct ppc_link_hash_table): Add got_reli_size and second_toc_pass.
2334 Remove no_multi_toc.
2335 (update_local_sym_info, ppc64_elf_check_relocs): Clear is_indirect
2336 when allocating a new struct got_entry.
2337 (allocate_got): New function, extracted from..
2338 (allocate_dynrelocs): ..here. Abort on got entry in non-ppc64 bfd.
2339 (ppc64_elf_size_dynamic_sections): Track got relocs allocated in
2340 .reliplt by got_reli_size. Set owner on ppc64_tlsld_got entries.
2341 (ppc64_elf_setup_section_lists): Remove output_bfd param and
2342 no_multi_toc, add add_stub_section and layout_sections_again. Stash
2343 new params in htab. Extract some code to..
2344 (ppc64_elf_start_multitoc_partition): ..here. New function.
2345 (ppc64_elf_next_toc_section): Check for linker script errors. Handle
2346 second pass toc scan.
2347 (merge_got_entries, merge_global_got, reallocate_got): New functions.
2348 (ppc64_elf_reinit_toc): Rename to..
2349 (ppc64_elf_finish_multitoc_partition): ..this.
2350 (ppc64_elf_layout_multitoc): New function.
2351 (ppc64_elf_size_stubs): Delete output_bfd, add_stub_section and
2352 layout_sections_again params.
2353 (ppc64_elf_relocate_section): Handle indirect got entries.
2354 * elf64-ppc.h: Update prototypes. Declare new functions.
2356 2010-02-02 H.J. Lu <hongjiu.lu@intel.com>
2358 * elf-bfd.h (elfcore_write_xstatereg): New.
2360 * elf.c (elfcore_grok_xstatereg): New.
2361 (elfcore_write_xstatereg): Likewise.
2362 (elfcore_grok_note): Handle NT_X86_XSTATE.
2363 (elfcore_write_register_note): Handle .reg-xstate section.
2365 2010-02-01 Tristan Gingold <gingold@adacore.com>
2367 * som.c (som_write_ar_hdr): Define this macro.
2369 2010-01-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2371 * elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L,
2372 R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations that use the
2373 linkage table pointer to use the global table pointer if not doing
2376 2010-01-29 Joel Brobecker <brobecker@adacore.com>
2378 * elf.c (elfcore_grok_lwpstatus): Do not overwrite the core signal
2379 if it has already been set.
2381 2010-01-27 Tristan Gingold <gingold@adacore.com>
2383 * vms.h: Remove trailing spaces.
2384 (struct hdr_struct): Remove unused hdr_c_cpr field.
2385 (enum file_format_enum): Add comments.
2386 * vms.c (vms_bfd_print_private_bfd_data): New function that
2388 Remove trailing spaces.
2389 * vms-misc.c: Improve comments.
2390 (_bfd_vms_get_object_record): Also handle files without pads.
2391 * vms-hdr.c (_bfd_vms_write_dbg): Fix format string.
2392 * vms-gsd.c (struct flagdescstruct): Make name field const.
2393 (gsyflagdesc): Fix typo.
2395 2010-01-27 Alan Modra <amodra@gmail.com>
2398 * elf64-ppc.c (struct ppc_link_hash_table): Add toc_bfd, toc_first_sec.
2399 (ppc64_elf_setup_section_lists): Init them.
2400 (ppc64_elf_next_toc_section): Don't partition multi-toc between .got
2401 and .toc on the same input file.
2402 (ppc64_elf_relocate_section): Correct GOT entry offset.
2404 2010-01-26 Tristan Gingold <gingold@adacore.com>
2406 * targets.c (BFD_JUMP_TABLE_ARCHIVE): Add initializer for write_ar_hdr.
2407 (bfd_target): Add _bfd_write_ar_hdr_fn field.
2408 * archive.c (is_bsd44_extended_name): New macro.
2409 (_bfd_generic_read_ar_hdr_mag): Use it. Add extra_size.
2410 (bfd_slurp_armap): Also check for "__.SYMDEF" as a BSD4.4 extended
2412 (_bfd_archive_bsd44_construct_extended_name_table): New function.
2413 (_bfd_generic_write_ar_hdr): Ditto.
2414 (_bfd_bsd44_write_ar_hdr): Ditto.
2415 (_bfd_write_archive_contents): Call _bfd_write_ar_hdr.
2416 (bsd_write_armap): Adjust firstreal computation.
2417 * libbfd-in.h (struct areltdata): Add extra_size field.
2418 (_bfd_generic_write_ar_hdr): Add prototype.
2419 (_bfd_bsd44_write_ar_hdr): Ditto.
2420 (_bfd_write_ar_hdr): Define.
2421 (_bfd_noarchive_write_ar_hdr): Ditto.
2422 (_bfd_archive_bsd_write_ar_hdr): Ditto.
2423 (_bfd_archive_coff_write_ar_hdr): Ditto.
2424 (_bfd_archive_bsd44_slurp_armap): Ditto.
2425 (_bfd_archive_bsd44_slurp_extended_name_table): Ditto.
2426 (_bfd_archive_bsd44_construct_extended_name_table): New prototype.
2427 (_bfd_archive_bsd44_truncate_arname): Ditto.
2428 (_bfd_archive_bsd44_write_armap): Ditto.
2429 (_bfd_archive_bsd44_read_ar_hdr): Ditto.
2430 (_bfd_archive_bsd44_write_ar_hdr): Ditto.
2431 (_bfd_archive_bsd44_openr_next_archived_file): Ditto.
2432 (_bfd_archive_bsd44_get_elt_at_index): Ditto.
2433 (_bfd_archive_bsd44_generic_stat_arch_elt): Ditto.
2434 (_bfd_archive_bsd44_update_armap_timestamp): Ditto.
2435 * libbfd.h: Regenerate.
2436 * oasys.c (oasys_write_ar_hdr): Define.
2437 * libecoff.h (_bfd_ecoff_write_ar_hdr): Define.
2438 * ieee.c (ieee_write_ar_hdr): Define.
2439 * elf64-mips.c (bfd_elf64_archive_write_ar_hdr): Define.
2440 * coff-rs6000.c (rs6000coff_vec): Adjust for write_ar_hdr field.
2441 (bfd_pmac_xcoff_backend_data): Ditto.
2442 * coff64-rs6000.c (rs6000coff64_vec): Ditto.
2443 (bfd_xcoff_aix5_backend_data): Ditto.
2444 * coff-alpha.c (alpha_ecoff_write_ar_hdr): Define.
2445 * aout-target.h (MY_write_ar_hdr): Define it if not defined.
2446 * aout-tic30.c (MY_write_ar_hdr): Ditto.
2447 * mach-o-target.c (TARGET_NAME): Use _bfd_archive_bsd44 archive.
2448 (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
2449 (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
2450 (bfd_mach_o_construct_extended_name_table)
2451 (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
2452 (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
2453 (bfd_mach_o_update_armap_timestamp): Moved to mach-o.c
2454 * mach-o.c (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
2455 (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
2456 (bfd_mach_o_construct_extended_name_table)
2457 (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
2458 (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
2459 (bfd_mach_o_update_armap_timestamp): Moved from mach-o-target.c
2460 * bfd-in2.h: Regenerate.
2462 2010-01-26 Alan Modra <amodra@gmail.com>
2463 H.J. Lu <hongjiu.lu@intel.com>
2466 * elflink.c (elf_link_output_extsym): Do not ignore undefined
2467 symbols with ref_regular set when gc_sections is active.
2469 2010-01-25 Alan Modra <amodra@gmail.com>
2472 * elf64-ppc.c (ppc64_elf_tls_optimize): Optimize tls sequences
2473 with relocations against undefined weak symbols.
2474 (ppc64_elf_relocate_section): Don't optimize calls to undefined
2475 weak functions if the symbol is dynamic.
2476 (ppc64_elf_relocate_section): Edit tprel tls sequences.
2477 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
2478 (_bfd_elf_ppc_at_tprel_transform): New function.
2479 * bfd-in.h (_bfd_elf_ppc_at_tprel_transform): Declare.
2480 * bfd-in2.h: Regenerate.
2482 2010-01-23 Richard Sandiford <r.sandiford@uk.ibm.com>
2484 * coff-rs6000.c (xcoff_howto_table): Change size to 0 and bitsize to 1.
2485 (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_NONE.
2486 * coff64-rs6000.c (xcoff64_howto_table): Change size to 0 and
2488 (xcoff64_reloc_type_lookup): Handle BFD_RELOC_NONE.
2490 2010-01-21 Nick Clifton <nickc@redhat.com>
2492 * elflink.c (elf_link_add_object_symbols): Look up name of
2493 undefined symbol both before and after versioning has been
2494 applied. Do not bother with symbols that are weakly undefined.
2496 2010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2498 * elf32-s390.c (elf32_s390_merge_private_bfd_data): New function.
2499 (bfd_elf32_bfd_merge_private_bfd_data): New macro definition.
2501 2010-01-19 Cary Coutant <ccoutant@google.com>
2503 * dwarf2.c (read_attribute_value): Add DW_FORM_ref_sig8.
2505 2010-01-19 Daisuke Hatayama <d.hatayama@jp.fujitsu.com>
2506 Alan Modra <amodra@gmail.com>
2508 * elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff.
2509 (elf_object_p): Read e_phnum extension.
2510 (elf_write_shdrs_and_ehdr): Write e_phnum extension.
2511 * elfcore.h (elf_core_file_p): Read e_phnum extension. Sanity check
2512 that we can read last program header.
2514 2010-01-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2516 * elf32-arm.c (elf32_arm_howto_table_1): Correct bitsize of
2517 R_ARM_THM_CALL entry.
2518 (elf32_arm_final_link_relocate): Correct calculation of
2519 reloc_signed_max when doing a R_ARM_THM_CALL, R_ARM_THM_XPC22,
2520 or R_ARM_THM_JUMP24 relocation.
2522 2010-01-18 Alan Modra <amodra@gmail.com>
2525 * coffcode.h (coff_compute_section_file_positions): Move Rs6000COFF_C
2526 block past vars in COFF_IMAGE_WITH_PE block. Report error on more
2529 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2531 Fix compilation warning on gcc-3.4.
2532 * vms-tir.c (start_etir_record, sto_imm): Rename the prototype
2533 parameter index to sec_index according to the function definition.
2535 2010-01-13 Chao-ying Fu <fu@mips.com>
2537 * elfxx-mips.c (JR_TO_B_P): New define to transform JR to B.
2538 It is true for all CPUs.
2539 (jal_reloc_p): New function.
2540 (mips_elf_calculate_relocation): Rename require_jalxp to
2542 Update comment for CROSS_MODE_JUMP_P.
2543 Set up cross_mode_jump_p based on the mode change.
2544 (mips_elf_perform_relocation): Rename require_jalx to cross_mode_jump_p.
2545 Update comment for CROSS_MODE_JUMP_P.
2546 Test cross_mode_jump_p and jal_reloc_p to turn jal to jalx.
2547 Use !cross_mode_jump_p to guard conversion.
2548 Convert "jr t9" to "b", if possible.
2549 (_bfd_mips_elf_relocate_section): Rename require_jalx to
2551 Pass &cross_mode_jump_p to call mips_elf_calculate_relocation.
2552 Pass cross_mode_jump_p to call mips_elf_perform_relocation.
2554 2010-01-13 Nick Clifton <nickc@redhat.com>
2556 * cpu-m32c.c (m32c_scan): New function. Ensures that a scan for
2557 "m32c" returns the m32c arch_info_struct and not the m16c
2559 (arch_info_struct): Use the new scan function.
2560 (bfd_m32c_arch): Likewise.
2562 2010-01-13 Tristan Gingold <gingold@adacore.com>
2564 * config.bfd: Remove duplicated target vector for i386-*-darwin.
2565 Appends new arch instead of overriding.
2566 Use mach_o_x86_64_vec for x86_64-*-darwin.
2567 * configure.in: Add mach_o_x86_64_vec.
2568 * configure: Regenerate.
2569 * targets.c: Declare mach_o_x86_64_vec, add it to _bfd_target_vector.
2570 * Makefile.am (BFD64_BACKENDS): Add mach-o-x86-64.lo
2571 (BFD64_BACKENDS_CFILES): Add mach-o-x86-64.c
2572 * Makefile.in: Regenerate.
2573 * mach-o-x86-64.c: New file.
2575 2010-01-13 Tristan Gingold <gingold@adacore.com>
2577 * reloc.c: Add MACH_O_X86_64 relocations.
2578 * bfd-in2.h: Regenerate.
2579 * libbfd.h: Regenerate.
2581 2010-01-13 Tristan Gingold <gingold@adacore.com>
2583 * archive.c (normalize): Use lbasename.
2584 (bfd_bsd_truncate_arname): Ditto.
2585 (bfd_gnu_truncate_arname): Ditto.
2587 2010-01-12 Tristan Gingold <gingold@adacore.com>
2589 * makefile.vms (CFLAGS): Turns warnings into informational messages.
2591 2010-01-11 Tristan Gingold <gingold@adacore.com>
2593 * mach-o.h: Add x86-64 relocation types.
2595 2010-01-11 Tristan Gingold <gingold@adacore.com>
2597 * mach-o.h (bfd_mach_o_backend_data): Add arch field.
2598 (bfd_mach_o_set_arch_mach): New prototype.
2599 * mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject.
2600 (bfd_mach_o_set_arch_mach): New function.
2601 (bfd_mach_o_gen_mkobject): New function.
2602 Set TARGET_ARCHITECTURE for the generic back-ends.
2603 * mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define.
2604 Check that TARGET_ARCHITECTURE is defined.
2605 Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure.
2606 * mach-o-i386.c (TARGET_ARCHITECTURE): Define.
2608 2010-01-11 Tristan Gingold <gingold@adacore.com>
2610 * archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap.
2612 2010-01-11 Nick Clifton <nickc@redhat.com>
2614 * elf32-v850.c (v850_elf_perform_relocation): Fix overflow
2615 handling of R_V850_HI16_S relocation.
2617 2010-01-11 Alan Modra <amodra@gmail.com>
2620 * dwarf1.c (parse_die): Correct FORM_STRING data pointer increment.
2622 2010-01-11 Alan Modra <amodra@gmail.com>
2625 * dwarf2.c (struct comp_unit): Add sec_info_ptr.
2626 (find_abstract_instance_name): Use it.
2627 (parse_comp_unit): Set it.
2629 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2631 * Makefile.in: Regenerate.
2632 * configure: Regenerate.
2634 2010-01-08 Tristan Gingold <gingold@adacore.com>
2636 * archive.c: Remove bfd_special_undocumented_glue.
2638 2010-01-08 Alan Modra <amodra@gmail.com>
2641 * elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook.
2642 * elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise.
2643 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
2645 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
2648 * elflink.c (elf_link_check_versioned_symbol): Don't abort if
2649 a symbol referenced by DSO is is defined in a non-shared object
2652 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
2655 * elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for
2656 undefined __start_XXX/__stop_XXX in all input files and set
2659 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
2662 * elflink.c (elf_gc_sweep): Keep SHT_NOTE section.
2664 2010-01-04 Daniel Gutson <dgutson@codesourcery.com>
2666 * bfd.m4 (BFD_HAVE_SYS_PROCFS_TYPE): Define _STRUCTURE_PROC
2667 before including procfs.h.
2668 (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise.
2669 * configure.in: Added autoconf probe for the pr_fpreg member.
2670 * configure: Regenerated.
2671 * config.in: Regenerated.
2672 * elf.c: Define _STRUCTURE_PROC before including procfs.h.
2674 2010-01-04 Joel Brobecker <brobecker@adacore.com>
2676 Fix -Wshadow warnings in dwarf2.c (seen on alpha-tru64).
2677 * dwarf2.c (concat_filename): Rename dirname with dir_name
2678 to void shadowing the dirname function.
2679 Rename subdirname with subdir_name to stay consistent with
2680 the new dir_name variable name.
2682 2010-01-04 Edmar Wienskoski <edmar@freescale.com>
2684 * archures.c: Add bfd_mach_ppc_e500mc64.
2685 * bfd-in2.h: Regenerate.
2686 * cpu-powerpc.c (bfd_powerpc_archs): Add entry for
2687 bfd_mach_ppc_e500mc64.
2689 2010-01-01 Joel Brobecker <brobecker@adacore.com>
2691 Fix -Wshadow warnings (seen on ppc-aix)
2692 * xcofflink.c: Replace finfo by flinfo throughout.
2694 For older changes see ChangeLog-2009
2700 version-control: never