1 2009-05-13 Andrew Jenner <andrew@codesourcery.com>
3 * elf32-arm.c: Move sysdep.h to start of file.
5 2009-05-11 Ulrich Weigand <uweigand@de.ibm.com>
7 * elf32-spu.c (spu_elf_find_overlays): Don't use .ovl.init lma as
9 (spu_elf_build_stubs): Don't define __icache_tagbase. Define
10 __icache_tag_array and __icache_tag_array_size.
12 2009-05-11 Masaki Muranaka <monaka@monami-software.com>
14 * elf32-bfin.c (bfin_bfd_reloc_type_lookup): Remove unnecessary
16 (bfinfdpic_link_omit_section_dynsym): Likewise.
17 (elf32_bfinfdpic_finish_dynamic_sections): Likewise.
19 2009-05-05 Paul Brook <paul@codesourcery.com>
21 * bfd-in.h (elf32_arm_fix_exidx_coverage): Add prototype.
22 * bfd-in2.h: Regenerate.
23 * elf32-arm.c (arm_unwind_edit_type, arm_unwind_table_edit): Define.
24 (_arm_elf_section_data): Add text and exidx fields.
25 (add_unwind_table_edit, get_arm_elf_section_data, adjust_exidx_size,
26 insert_cantunwind_after, elf32_arm_fix_exidx_coverage, offset_prel31,
27 copy_exidx_entry): New functions.
28 (elf32_arm_write_section): Fixup .ARM.exidx contents.
30 2009-05-05 Christophe lyon <christophe.lyon@st.com>
32 * elf32-arm.c (DEF_STUBS): New helper define.
35 (stub_definitions): New array, containing stub template pointers
37 (arm_size_one_stub): Make use of stub_definitions.
39 2009-05-04 Dave Korn <dave.korn.cygwin@gmail.com>
41 * elflink.c (find_version_for_sym): Remove from here, ...
42 * linker.c (bfd_find_version_for_sym): ... rename, replace
43 here, make public and update all callers.
44 * bfd-in2.h: Regenerate.
46 2009-04-30 Nick Clifton <nickc@redhat.com>
48 * elf-bfd.h (struct bfd_elf_section_data): Add indirect_relocs
50 (struct elf_obj_data): Add has_ifunc_symbols boolean.
51 * elf.c (swap_out_syms): Convert BSF_GNU_INDIRECT_FUNCTION flags
52 into a STT_GNU_IFUNC symbol type.
53 (_bfd_elf_is_function_type): Accept STT_GNU_IFUNC as a function
55 (_bfd_elf_set_osabi): Set the osasbi field to ELFOSABI_LINUX if
56 the binary contains ifunc symbols.
57 * elfcode.h (elf_slurp_symbol_table): Translate the STT_GNU_IFUNC
58 symbol type into a BSF_GNU_INDIRECT_FUNCTION flag.
59 * elf32-i386.c (is_indirect_function): New function.
60 (elf_i386_check_relocs): Create an ifunc output section.
61 (allocate_dynrelocs): Create dynamic relocs in the ifunc output
63 (elf_i386_relocate_section): Emit a reloc against an ifunc symbol
65 (elf_i386_add_symbol_hook): New function. Set the
66 has_ifunc_symbols field of the elf_obj_data structure if an ifunc
67 symbol is encountered.
68 (elf_backend_post_process_headers): Define.
69 (elf_backend_add_symbol_hook): Define.
70 (elf_i386_post_process_headers): Rename to
71 elf_i388_fbsd_post_process_headers.
72 * elf64-x86_64.c (IS_X86_64_PCREL_TYPE): New macro.
73 (is_indirect_function): New function.
74 (elf64_x86_64_check_relocs): Create an ifunc output section.
75 (allocate_dynrelocs): Create dynamic relocs in the ifunc output
77 (elf64_x86_64_relocate_section): Emit a reloc against an ifunc
79 (elf_i386_add_symbol_hook): Set the has_ifunc_symbols field of the
80 elf_obj_data structure if an ifunc symbol is encountered.
81 (elf_backend_post_process_headers): Define.
82 * elflink.c (_bfd_elf_adjust_dynamic_symbol): Always create a PLT
83 if we have ifunc symbols to handle.
84 (get_ifunc_reloc_section_name): New function. Computes the name
86 (_bfd_elf_make_ifunc_reloc_section): New function. Creates a
87 section to hold ifunc relocs.
88 * syms.c (BSF_GNU_INDIRECT_FUNCTION): Define.
89 (bfd_print_symbol_vandf): Handle ifunc symbols.
90 (bfd_decode_symclass): Likewise.
91 * bfd-in2.h: Regenerate.
93 2009-04-30 Joseph Myers <joseph@codesourcery.com>
95 * elf32-arm.c (elf32_arm_check_relocs): Give errors for absolute
96 MOVW and MOVT relocations in a shared library link.
98 2009-04-27 Anthony Green <green@moxielogic.com>
100 * verilog.c: New file.
101 * Makefile.am (BFD32_LIBS): Add verilog.c.
102 (BFD32_LIBS_CFILES): Add verilog.c.
103 (verilog.lo): New build rule.
104 * Makefile.in: Rebuilt.
105 * targets.c: Add verilog support.
106 * bfd.c (tdata union): Add Verilog private data field.
107 * bfd-in2.h: Regenerate.
109 2009-04-27 H.J. Lu <hongjiu.lu@intel.com>
111 * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Don't
114 2009-04-23 Matthias Klose <doko@ubuntu.com>
116 * peXXigen.c (_bfd_XXi_swap_sym_in): Initialize `name'.
118 2009-04-22 Christophe Lyon <christophe.lyon@st.com>
121 * elf32-arm.c (arm_type_of_stub): Handle R_ARM_THM_JUMP24,
122 R_ARM_JUMP24 and R_ARM_PLT32 relocations.
123 (elf32_arm_size_stubs): Likewise.
124 (record_thumb_to_arm_glue): Deleted unused function.
125 (bfd_elf32_arm_process_before_allocation): No longer handle
126 R_ARM_THM_JUMP24, R_ARM_JUMP24 and R_ARM_PLT32 relocations here.
127 (elf32_arm_final_link_relocate): Handle R_ARM_THM_JUMP24,
128 R_ARM_JUMP24 and R_ARM_PLT32 relocations.
130 2009-04-21 Daniel Jacobowitz <dan@codesourcery.com>
132 * elf32-arm.c (INTERWORK_FLAG): Check BFD_LINKER_CREATED.
133 (elf32_arm_write_section): Declare early.
134 (elf32_arm_size_stubs): Skip non-stub sections in the stub BFD.
135 (arm_allocate_glue_section_space): Exclude empty sections.
136 (ARM_GLUE_SECTION_FLAGS): Add SEC_LINKER_CREATED.
137 (bfd_elf32_arm_add_glue_sections_to_bfd): Do not skip the stub
139 (elf32_arm_output_glue_section, elf32_arm_final_link): New.
140 (elf32_arm_merge_eabi_attributes): Skip the stub BFD.
141 (elf32_arm_size_dynamic_sections): Allocate interworking
143 (bfd_elf32_bfd_final_link): Define.
145 2009-04-21 H.J. Lu <hongjiu.lu@intel.com>
147 * coff-ia64.c (COFF_PAGE_SIZE): Changed to 8K.
149 * coffcode.h (coff_compute_section_file_positions): Clear
150 D_PAGED if PE section alignment is smaller than COFF_PAGE_SIZE.
152 * libcoff-in.h (pe_tdata): Remove force_minimum_alignment and
153 force_minimum_alignment.
155 * libcoff.h: Regenerated.
157 * pei-ia64.c (PEI_TARGET_SUBSYSTEM): Removed.
158 (PEI_FORCE_MINIMUM_ALIGNMENT): Likewise.
160 * peicode.h (pe_mkobject): Don't set force_minimum_alignment
161 nor target_subsystem.
163 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Don't check
164 force_minimum_alignment nor target_subsystem.
166 2009-04-21 Kai Tietz <kai.tietz@onevision.com>
168 * coff-x86_64.c (PEI_HEADERS): Protect includes.
169 (bfd_pe_print_pdata): Remove #ifdef PE variation.
170 * pei-x86_64.c (PEI_HEADERS): Define to prevent double
171 include in coff-x86_64.c of headers.
172 (PDATA_ROW_SIZE): New define.
173 (pex_regs[]): New static array.
174 (pex64_get_runtime_function): New static function.
175 (pex64_get_unwind_info): Likewise.
176 (pex64_get_scope_entry): Likewise.
177 (pex64_xdata_print_uwd_codes): Likewise.
178 (pex64_get_section_by_rva): Likewise.
179 (pex64_dump_xdata): Likewise.
180 (pex64_bfd_print_pdata): Likewise.
181 (bfd_pe_print_pdata): Define as pex64_bfd_print_pdata.
182 * peXXigen.c (_bfd_pex64_print_pdata): Removed implementation.
183 * libpei.h (_bfd_pex64_print_pdata): Removed declaration.
185 2009-04-19 Peter O'Gorman <binutils@mlists.thewrittenword.com>
186 Alan Modra <amodra@bigpond.net.au>
187 Dave Korn <dave.korn.cygwin@gmail.com>
189 * peXXigen.c (_bfd_XXi_swap_sym_in): Fix name handling w.r.t
190 long names and non-NUL-terminated strings.
192 2009-04-17 H.J. Lu <hongjiu.lu@intel.com>
194 * bfd-in2.h: Regenerated.
196 2009-04-17 H.J. Lu <hongjiu.lu@intel.com>
198 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Replace
199 IMAGE_SUBSYSTEM_EFI_ROM with IMAGE_SUBSYSTEM_SAL_RUNTIME_DRIVER.
201 2009-04-17 H.J. Lu <hongjiu.lu@intel.com>
204 * coffcode.h (bfd_pei_p): New.
206 * config.bfd: Remove bfd_efi_bsdrv_ia32_vec,
207 bfd_efi_rtdrv_ia32_vec, bfd_efi_bsdrv_x86_64_vec,
208 bfd_efi_rtdrv_x86_64_vec, bfd_efi_bsdrv_ia64_vec and
209 bfd_efi_rtdrv_ia64_vec. Replace bfd_efi_app_ia32_vec,
210 bfd_efi_app_x86_64_vec and bfd_efi_app_ia64_vec with
211 i386pei_vec, x86_64pei_vec and bfd_pei_ia64_vec, respectively.
213 * configure.in: Remove bfd_efi_bsdrv_ia32_vec,
214 bfd_efi_rtdrv_ia32_vec, bfd_efi_bsdrv_x86_64_vec,
215 bfd_efi_rtdrv_x86_64_vec,
216 bfd_efi_bsdrv_ia64_vec and bfd_efi_rtdrv_ia64_vec. Replace
217 bfd_efi_ia64_vec with bfd_pei_ia64_vec.
218 * targets.c: Likewise.
220 * configure: Regenerated.
221 * libcoff.h: Likewise.
222 * Makefile.in: Likewise.
224 * efi-app-ia32.c: Removed.
225 * efi-app-x86_64.c: Likewise.
226 * efi-bsdrv-ia32.c: Likewise.
227 * efi-bsdrv-ia64.c: Likewise.
228 * efi-bsdrv-x86_64.c: Likewise.
229 * efi-rtdrv-ia32.c: Likewise.
230 * efi-rtdrv-ia64.c: Likewise.
231 * efi-rtdrv-x86_64.c: Likewise.
232 * efi-rtdrv-ia32.c: Likewise.
234 * efi-app-ia64.c: Moved to ...
236 (TARGET_SYM): Set to bfd_pei_ia64_vec.
237 (TARGET_NAME): Set to pei-ia64.
239 * libpei.h (bfd_target_pei_p): Removed.
240 (bfd_target_pei_arch): Likewise.
241 (bfd_target_efi_app_p): Likewise.
242 (bfd_target_efi_app_arch): Likewise.
243 (bfd_target_efi_bsdrv_p): Likewise.
244 (bfd_target_efi_bsdrv_arch): Likewise.
245 (bfd_target_efi_rtdrv_p): Likewise.
246 (bfd_target_efi_rtdrv_arch): Likewise.
247 (bfd_pe_executable_p): Likewise.
249 * Makefile.am (BFD32_BACKENDS): Remove efi-app-ia32.lo,
250 efi-bsdrv-ia32.lo and efi-rtdrv-ia32.lo.
251 (BFD32_BACKENDS_CFILES): Remove efi-app-ia32.c, efi-bsdrv-ia32.c
252 and efi-rtdrv-ia32.c.
253 (BFD64_BACKENDS): Remove efi-app-ia64.lo, efi-bsdrv-ia64.lo,
254 efi-rtdrv-ia64.lo, efi-app-x86_64.lo, efi-bsdrv-x86_64.lo and
255 efi-rtdrv-x86_64.lo. Add pei-ia64.lo.
256 (BFD64_BACKENDS_CFILES): Remove efi-app-ia64.c, efi-bsdrv-ia64.c,
257 efi-rtdrv-ia64.c, efi-app-x86_64.c, efi-bsdrv-x86_64.c and
258 efi-rtdrv-x86_64.c. Add pei-ia64.c.
259 (efi-app-ia64.lo): Removed.
260 (efi-bsdrv-ia32.lo): Likewise.
261 (efi-rtdrv-ia32.lo): Likewise.
262 (efi-app-ia64.lo): Likewise.
263 (efi-bsdrv-ia64.lo): Likewise.
264 (efi-rtdrv-ia64.lo): Likewise.
265 (efi-app-x86_64.lo): Likewise.
266 (efi-bsdrv-x86_64.lo): Likewise.
267 (efi-rtdrv-x86_64.lo): Likewise.
270 * peicode.h (coff_swap_scnhdr_in): Replace bfd_pe_executable_p
272 (arch_type): Removed.
274 (pe_bfd_object_p): Just return coff_object_p.
276 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Replace
277 bfd_pe_executable_p with bfd_pei_p.
279 2009-04-17 Christophe Lyon <christophe.lyon@st.com>
281 * elf32-arm.c (elf32_arm_size_stubs): Handle long branches through
282 PLT entries to an undefined symbol when generating a shared
285 2009-04-17 Nick Clifton <nickc@redhat.com>
288 * coffcode.h (handle_COMDAT): Allow for external COMDAT symbols.
290 2009-04-16 Richard Sandiford <r.sandiford@uk.ibm.com>
292 * aout-adobe.c (aout_32_bfd_define_common_symbol): Define.
293 * aout-target.h (MY_bfd_define_common_symbol): Likewise.
294 * aout-tic30.c (MY_bfd_define_common_symbol): Likewise.
295 * binary.c (binary_bfd_define_common_symbol): Likewise.
296 * bout.c (b_out_bfd_define_common_symbol): Likewise.
297 * coff-alpha.c (_bfd_ecoff_bfd_define_common_symbol): Likewise.
298 * coff-mips.c (_bfd_ecoff_bfd_define_common_symbol): Likewise.
299 * coffcode.h (coff_bfd_define_common_symbol): Likewise.
300 * elfxx-target.h (bfd_elfNN_bfd_define_common_symbol): Likewise.
301 * i386msdos.c (msdos_bfd_define_common_symbol): Likewise.
302 * i386os9k.c (os9k_bfd_define_common_symbol): Likewise.
303 * ieee.c (ieee_bfd_define_common_symbol): Likewise.
304 * ihex.c (ihex_bfd_define_common_symbol): Likewise.
305 * libbfd-in.h (_bfd_nolink_bfd_define_common_symbol): Likewise.
306 * mach-o.c (bfd_mach_o_bfd_define_common_symbol): Likewise.
307 * mmo.c (mmo_bfd_define_common_symbol): Likewise.
308 * nlm-target.h (nlm_bfd_define_common_symbol): Likewise.
309 * oasys.c (oasys_bfd_define_common_symbol): Likewise.
310 * pef.c (bfd_pef_bfd_define_common_symbol): Likewise.
311 * ppcboot.c (ppcboot_bfd_define_common_symbol): Likewise.
312 * som.c (som_bfd_define_common_symbol): Likewise.
313 * srec.c (srec_bfd_define_common_symbol): Likewise.
314 * tekhex.c (tekhex_bfd_define_common_symbol): Likewise.
315 * versados.c (versados_bfd_define_common_symbol): Likewise.
316 * vms.c (vms_bfd_define_common_symbol): Likewise.
317 * xcoff-target.h (_bfd_xcoff_bfd_define_common_symbol): Likewise.
318 * xsym.c (bfd_sym_bfd_define_common_symbol): Likewise.
319 * coff-rs6000.c (rs6000coff_vec): Add _bfd_xcoff_define_common_symbol.
320 (pmac_xcoff_vec): Likewise.
321 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
322 (aix5coff64_vec): Likewise.
323 * linker.c (bfd_generic_define_common_symbol): New function.
324 * targets.c (BFD_JUMP_TABLE_LINK): Add NAME##_bfd_define_common_symbol.
325 (_bfd_define_common_symbol): New field.
326 * libcoff-in.h (_bfd_xcoff_define_common_symbol): Declare.
327 * xcofflink.c (_bfd_xcoff_define_common_symbol): New function.
328 (xcoff_build_ldsyms): Don't set XCOFF_DEF_REGULAR for common
330 * bfd-in2.h: Regenerate.
331 * libbfd.h: Likewise.
332 * libcoff.h: Likewise.
334 2009-04-15 Anthony Green <green@moxielogic.com>
336 * targets.c: Add moxie support.
337 * Makefile.am: Ditto.
338 * Makefile.in: Rebuilt.
339 * cpu-moxie.c, elf32-moxie.c: New files.
340 * archures.c: Add moxie support.
341 * configure.in: Add moxie support.
342 * configure: Rebuilt.
343 * config.bfd, archures.c: Add moxie support.
344 * bfd-in2.h: Rebuilt.
346 2009-04-15 Christophe Lyon <christophe.lyon@st.com>
348 * elf32-arm.c (elf32_arm_final_link_relocate): Don't convert ARM
349 branch to an undef weak symbol into a jump to next instruction if
350 a PLT entry will be created.
352 2009-04-14 Dave Korn <dave.korn.cygwin@gmail.com>
354 * coffgen.c (make_a_section_from_file): Set the backend long
355 section names enable if long section names found on input.
356 * coffcode.h: Extend long section names documentation to match.
358 2009-04-08 H.J. Lu <hongjiu.lu@intel.com>
360 * elflink.c (elf_link_add_object_symbols): Warn alternate ELF
363 2009-04-07 DJ Delorie <dj@redhat.com>
365 * archures.c: Add bfd_mach_mep_c5.
366 * bfd-in2.h: Likewise.
367 * cpu-mep.c: Add bfd_c5_arch.
368 * elf32-mep.c: Support it.
370 2009-04-07 H.J. Lu <hongjiu.lu@intel.com>
372 * elflink.c (_bfd_elf_section_already_linked): Add `\n' for
373 info->callbacks->einfo.
374 * linker.c (_bfd_generic_section_already_linked): Likewise.
376 2009-04-06 DJ Delorie <dj@redhat.com>
378 * elf32-h8300.c (elf32_h8_relax_section): Relax MOVA opcodes.
380 2009-04-06 H.J. Lu <hongjiu.lu@intel.com>
382 * coff-x86_64.c (bfd_pe_print_pdata): Defined to
383 _bfd_pex64_print_pdata only if PE is defined.
385 * libpei.h (_bfd_pep_print_x64_pdata): Renamed to ...
386 (_bfd_pex64_print_pdata): This.
388 * peXXigen.c (_bfd_pep_print_x64_pdata): Renamed to ...
389 (_bfd_pex64_print_pdata): This. Defined only if COFF_WITH_pex64
392 2009-04-05 Kai Tietz <kai.tietz@onevision.com>
394 * coff-x86_64.c (bfd_pe_print_pdata): Define as
395 _bfd_pep_print_x64_pdata.
396 * libpei.h (_bfd_pep_print_x64_pdata): Add prototype.
397 * peXXigen.c (_bfd_pep_print_x64_pdata): New.
399 2009-04-02 Sterling Augustine <sterling@jaw.hq.tensilica.com>
401 * elf32-xtensa.c (relax_property_section): Always set r_offset
404 2009-04-02 Christophe Lyon <christophe.lyon@st.com>
406 * elf32-arm.c (elf32_arm_stub_long_branch_v4t_thumb_thumb,
407 elf32_arm_stub_long_branch_v4t_thumb_thumb_pic): Two new long
409 (elf32_arm_stub_type): New enum values for the two new stubs.
410 (arm_type_of_stub): Make use of the two new stubs.
411 (arm_size_one_stub): Handle the two new stubs.
413 2009-04-01 Matt Thomas <matt@netbsd.org>
415 * elf32-vax.c (elf_vax_check_relocs): Do not put relocations against
416 hidden symbols into the GOT or PLT.GOT.
417 (elf_vax_relocate_section): Do not emit a PCREL reloc
418 into a shared object if it is against a hidden symbol.
420 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
422 * xcofflink.c (xcoff_archive_info): Add contains_shared_object_p
423 and know_contains_shared_object_p.
424 (xcoff_archive_contains_shared_object_p): Add an "info" parameter.
425 Cache the result in the archive_info table.
426 (xcoff_auto_export_p): Add an "info" parameter and update the
427 call to xcoff_archive_contains_shared_object_p.
428 (xcoff_mark_auto_exports): Update accordingly.
429 (xcoff_post_gc_symbol): Likewise.
431 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
433 * xcofflink.c (bfd_link_input_bfd): Treat __rtinit as C_HIDEXT
436 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
438 * coff-rs6000.c (member_layout): New structure.
439 (archive_iterator): Likewise.
440 (member_layout_init): New function.
441 (archive_iterator_begin): Likewise.
442 (archive_iterator_next): Likewise.
443 (xcoff_write_armap_old): Use the new iterator functions.
444 (do_shared_object_padding): Delete.
445 (xcoff_write_armap_big): Use the new iterator functions. Simplify
446 handling of arch_info.
447 (xcoff_write_archive_contents_old): Allocate arelt_data in the
448 first loop rather than the second. Allocate a member header if
449 there isn't one, then work out the stat information and length
450 in the first loop too. Use the new iterators for the second loop.
451 (xcoff_write_archive_contents_big): Likewise.
453 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
455 * bfd-in.h (bfd_xcoff_split_import_path): Declare.
456 (bfd_xcoff_set_archive_import_path): Likewise.
457 * bfd-in2.h: Regenerate.
458 * xcofflink.c: Include libiberty.h.
459 (xcoff_archive_info): New structure.
460 (xcoff_archive_info_hash): New function.
461 (xcoff_archive_info_eq): Likewise.
462 (xcoff_get_archive_info): Likewise.
463 (_bfd_xcoff_bfd_link_hash_table_create): Initialize archive_info.
464 (bfd_xcoff_split_import_path): New function.
465 (bfd_xcoff_set_archive_import_path): Likewise.
466 (xcoff_set_import_path): Move earlier in file.
467 (xcoff_link_add_dynamic_symbols): Set the import path of a non-archive
468 object to the the directory part of the bfd's filename. Get the
469 import path and filename of an archive object from the archive's
470 xcoff_tdata, initializing it if necessary. Update use of
472 (bfd_link_input_bfd): Update use of import_file_id.
473 (xcoff_write_global_symbol): Likewise.
475 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
477 * xcofflink.c (xcoff_link_hash_table): Moved from include/coff/xcoff.h.
479 2009-04-01 Richard Sandiford <r.sandiford@uk.ibm.com>
481 * xcofflink.c (xcoff_link_create_extra_sections): Don't create
482 a .loader section for relocatable links.
483 (xcoff_need_ldrel_p): New function.
484 (xcoff_mark): Use it.
485 (bfd_xcoff_link_count_reloc): Only count loader relocs if there's
487 (xcoff_build_ldsym): New function, split out from...
488 (xcoff_build_ldsyms): ...here. Rename to...
489 (xcoff_post_gc_symbol): ...this. Only export symbols, and only
490 call xcoff_build_ldsym, if there's a loader section.
491 (xcoff_build_loader_section): New function, extracted verbatim from...
492 (bfd_xcoff_size_dynamic_sections): ...here. Only call it if
493 there's a loader section. Only add an __rtinit loader symbol
494 if there's a loader section. Update after above name change.
495 (xcoff_symbol_section, xcoff_create_ldrel): New functions.
496 (bfd_link_input_bfd): Use xcoff_need_ldrel_p, xcoff_symbol_section
497 and xcoff_create_ldrel.
498 (xcoff_write_global_symbol): Use xcoff_create_ldrel.
499 (xcoff_reloc_link_order): Likewise, but only call it if there's
500 a loader section. Use xcoff_symbol_section.
501 (_bfd_xcoff_bfd_final_link): Only use fdinfo.ldrel and fdinfo.ldsym
502 if there's a loader section.
504 2009-04-01 Richard Sandiford <rdsandiford@googlemail.com>
506 * xcofflink.c (bfd_link_input_bfd): Fix buffer overrun.
508 2009-04-01 Christophe Lyon <christophe.lyon@st.com>
510 * elf32-arm.c (group_sections): Rewrite loops for better
513 2009-03-30 DJ Delorie <dj@redhat.com>
515 * elflink.c (elf_link_input_bfd): Don't try to resolve complex
516 relocs when doing a relocatable link.
518 2009-03-28 Mark Mitchell <mark@codesourcery.com>
520 * coff-arm.c (coff_arm_merge_private_bfd_data): Use "error:", not
521 "ERROR:", in error messages.
522 * cpu-arm.c (bfd_arm_merge_machines): Likewise.
523 * elf-attrs.c (_bfd_elf_merge_object_attributes): Likewise.
524 * elf32-arm.c (tag_cpu_arch_combine): Likewise.
525 (elf32_arm_merge_eabi_attributes): Likewise.
526 (elf32_arm_merge_private_bfd_data): Likewise.
528 2009-03-27 Nick Clifton <nickc@redhat.com>
530 * section.c (bfd_get_section_contents): Detect and handle the case
531 where a section has the SEC_IN_MEMORY flag set but no actual
534 2009-03-26 Alan Modra <amodra@bigpond.net.au>
537 * elf.c (copy_elf_program_header): Do not check that PT_GNU_RELRO
538 p_filesz and p_memsz are equal. Use p_memsz as the segment size.
539 (assign_file_positions_for_non_load_sections): Zap PT_GNU_RELRO
540 if we don't find matching PT_LOAD when copying.
542 2009-03-25 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
544 * elf32-crx.c (crx_elf_howto_table): Zero the src_mask field of
545 the reloc descriptions.
547 2009-03-25 Hans-Peter Nilsson <hp@axis.com>
549 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
550 <R_CRIS_16_GOT_GD, case R_CRIS_32_GOT_GD>: Handle COMMON symbols.
551 <case R_CRIS_16_TPREL, R_CRIS_32_TPREL>: Ditto.
553 2009-03-24 H.J. Lu <hongjiu.lu@intel.com>
555 * cpu-i386.c (bfd_x86_64_arch_intel_syntax): Make it static.
556 (bfd_i386_arch_intel_syntax): Likewise.
557 (i8086_arch): Likewise.
558 (bfd_x86_64_arch): Likewise.
560 2009-03-24 Hans-Peter Nilsson <hp@axis.com>
562 * elf32-cris.c (cris_elf_relocate_section): <case
563 R_CRIS_16_DTPREL, R_CRIS_32_DTPREL>: Allow use of non-local
564 symbols for non-allocated sections. Don't check whether to
565 generate R_CRIS_DTPMOD for non-allocated sections.
566 (cris_elf_gc_sweep_hook) <case R_CRIS_32_DTPREL>: Don't
567 handle relocation GC:ing if applied to non-allocated section.
568 (cris_elf_check_relocs): Similar.
570 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
571 <R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: Don't include the TLS size
572 when emitting a known TP offset in the GOT.
574 2009-03-23 Alan Modra <amodra@bigpond.net.au>
576 * elf64-ppc.c (synthetic_opd): Delete.
577 (compare_symbols): Look for .opd name rather than section match.
578 (ppc64_elf_get_synthetic_symtab): Likewise.
580 2009-03-21 Alan Modra <amodra@bigpond.net.au>
582 * elf32-ppc.c (is_pic_glink_stub): Delete.
583 (is_nonpic_glink_stub): New function.
584 (ppc_elf_get_synthetic_symtab): Check for last non-pic stub rather
586 (struct ppc_elf_link_hash_table <glink_pltresolve>): Comment fix.
588 2009-03-20 Martin Schwidefsky <schwidefsky@de.ibm.com>
589 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
591 * elf32-s390.c (elf_s390_check_relocs): Use the SYMBOL_*
592 macros for visibilty and locality checks.
593 (elf_s390_adjust_dynamic_symbol): Likewise.
594 (allocate_dynrelocs): Likewise.
595 (elf_s390_relocate_section): Likewise.
596 (elf_s390_finish_dynamic_symbol): Likewise.
597 * elf64-s390.c (elf_s390_check_relocs): Likewise.
598 (elf_s390_adjust_dynamic_symbol): Likewise.
599 (allocate_dynrelocs): Likewise.
600 (elf_s390_relocate_section): Likewise.
601 (elf_s390_finish_dynamic_symbol): Likewise.
603 2009-03-19 Kai Tietz <kai.tietz@onevision.com>
605 * bfd-in2.h: Regenerated.
606 * coffcode.h (sec_to_styp_flags): For pe-coff add SEC_READONLY
607 for debugging sections and map memory read/write dependent on
609 (styp_to_sec_flags): Set SEC_COFF_NOREAD for sections
610 without memory read flags set.
611 * section.c: Add SEC_COFF_NOREAD to section flags.
613 2009-03-19 Andreas Schwab <schwab@linux-m68k.org>
615 * elf32-hppa.c (final_link_relocate): Cast bfd_vma values to long
618 2009-03-19 Alan Modra <amodra@bigpond.net.au>
620 * elf32-spu.c (spu_elf_find_overlays): Separate error return from
621 "no overlays" return. If there are overlays, create overlay
622 manager entry symbols here, so that..
623 (spu_elf_build_stubs): ..we don't need to set them up here.
624 Simplify entry symbol tests.
625 * elf32-spu.h (spu_elf_find_overlays): Update prototype.
627 2009-03-18 Mark Kettenis <kettenis@gnu.org>
629 * elf.c (elfcore_grok_openbsd_procinfo)
630 (elfcore_grok_openbsd_note): New functions.
631 (elf_parse_notes): Handle notes from OpenBSD ELF core files.
633 2009-03-18 Alan Modra <amodra@bigpond.net.au>
635 * vms-hdr.c: Don't include alloca.h.
636 * elf32-m68hc1x.c: Include alloca-conf.h.
638 * elf64-hppa.c: Likewise. Remove existing #if's handling alloca.
640 * Makefile.am: Run "make dep-am".
641 * Makefile.in: Regenerate.
643 2009-03-17 Daniel Jacobowitz <dan@codesourcery.com>
645 * elf32-arm.c (elf32_arm_check_relocs): Correct symbian_p test.
647 2009-03-17 Alan Modra <amodra@bigpond.net.au>
649 * elf32-spu.h (struct spu_elf_params): ovly_flavour now only 1 bit.
651 (emum _ovly_flavour): Delete ovly_compact, ovly_none.
652 * elf32-spu.c (struct spu_link_hash_table): Replace ovly_load and
653 ovly_return fields with ovly_entry[2]. Adjust all users.
654 (spu_elf_find_overlays): Set ovly_entry[1] from __icache_call_handler
656 (spu_elf_build_stubs): Likewise.
657 (ovl_stub_size): Change arg to spu_elf_params pointer. Adjust for
658 ovly_flavour changes. Update all callers.
659 (ovl_stub_size_log2): New function.
660 (build_stub): Handle compact icache stubs. Use different manager
661 entry point for stubs in non-icache area.
662 (spu_elf_size_stubs): Don't allocate space for indirect branch
664 (spu_elf_build_stubs): And don't built them.
666 2009-03-16 Andrew Stubbs <ams@codesourcery.com>
668 * dwarf2.c (read_section): Always use rawsize, if available.
670 2009-03-16 Alan Modra <amodra@bigpond.net.au>
672 * simple.c (bfd_simple_get_relocated_section_contents): Use larger
673 of rawsize and size for buffer.
675 2009-03-15 Ulrich Weigand <uweigand@de.ibm.com>
677 * elf32-spu.c (spu_elf_check_vma): Do not reset auto_overlay
678 parameter just because fixed sections fit into local store.
679 (spu_elf_auto_overlay): Do not declare as "noreturn". Skip
680 generating overlays if fixed sections plus reserved stack
681 and heap space fit into local store.
683 2009-03-15 Alan Modra <amodra@bigpond.net.au>
685 * elf32-spu.c (build_stub): Correct icache set_id.
686 (spu_elf_relocate_section): Likewise.
688 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
690 * xcofflink.c (xcoff_link_check_archive_element): Only free the
691 symbol table if it was created by the current call.
693 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
695 * xcofflink.c (xcoff_build_ldsyms): Give imported descriptors
696 class XMC_DS rather than XMC_UA.
698 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
700 * bfd-in.h (bfd_xcoff_size_dynamic_sections): Replace the
701 bfd_boolean export_defineds parameter with an unsigned int
702 auto_export_flags parameter.
703 * bfd-in2.h: Regenerate.
704 * xcofflink.c (xcoff_archive_contains_shared_object_p): New function,
705 split out from xcoff_build_ldsyms.
706 (xcoff_covered_by_expall_p): New function.
707 (xcoff_auto_export_p): New function, split out from xcoff_build_ldsyms
708 but with extra code to handle -bexpfull and -bexpall.
709 (xcoff_mark_auto_exports): New function.
710 (xcoff_build_ldsyms): Use xcoff_auto_export_p to decide whether
711 a function should be automatically exported.
712 (bfd_xcoff_size_dynamic_sections): Replace the export_defineds
713 parameter with an auto_export_flags parameter. Update ldinfo
714 accordingly. Use xcoff_mark_auto_exports to mark all automatically-
717 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
719 * xcofflink.c (xcoff_mark_symbol_by_name): New function.
720 (bfd_xcoff_size_dynamic_sections): Use it to mark the entry,
721 init and fini functions. Do garbage collection for objects
722 without an entry point too.
724 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
726 * coffcode.h (coff_pointerize_aux_hook): Update CSECT_SYM_P to
727 check whether a symbol has csect information.
728 (coff_print_aux): Likewise.
729 * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Handle auxillary csect
730 information for C_AIX_WEAKEXT too.
731 (_bfd_xcoff_swap_aux_out): Likewise.
732 (xcoff_reloc_type_br): Handle defweak symbols too.
733 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Handle auxillary csect
734 information for C_AIX_WEAKEXT too.
735 (_bfd_xcoff64_swap_aux_out): Likewise.
736 (xcoff64_reloc_type_br): Handle defweak symbols too.
737 * coffgen.c (coff_print_symbol): Handle auxillary function
738 information for C_AIX_WEAKEXT too.
739 * xcofflink.c (_bfd_xcoff_canonicalize_dynamic_symtab): Set BSF_WEAK
740 instead of BSF_GLOBAL if the L_WEAK flag is set.
741 (xcoff_dynamic_definition_p): New function.
742 (xcoff_link_add_dynamic_symbols): Use it to decide whether ldsym
743 defines h. Don't change h if ldsym isn't the definition. Otherwise,
744 always take the symbol class from the ldsym. Use weak bfd symbol
745 types for weak ldsyms.
746 (xcoff_link_add_symbols): Use CSECT_SYM_P and EXTERN_SYM_P.
747 Fix the check for whether a definition is from a shared object.
748 Allow redefinitions of weak symbols.
749 (xcoff_link_check_ar_symbols): Use EXTERN_SYM_P.
750 (xcoff_keep_symbol_p): Likewise.
751 (bfd_xcoff_size_dynamic_sections): Use CSECT_SYM_P.
752 (xcoff_link_input_bfd): Use CSECT_SYM_P and EXTERN_SYM_P.
753 Add .loader entries for C_AIX_WEAKEXT as well as C_EXT symbols,
754 but mark them as L_WEAK.
755 (xcoff_write_global_symbol): Treat weak symbols as C_AIX_WEAKEXT
756 instead of C_EXT if C_AIX_WEAKEXT == C_WEAKEXT.
758 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
760 * xcofflink.c (xcoff_mark): When walking the relocations,
761 only mark the target symbol or the target section, not both.
762 (xcoff_final_definition_p): New function.
763 (xcoff_keep_symbol_p): Use it to check whether an external XCOFF
764 symbol is a valid definition of the associated output symbol.
765 Use XCOFF_ALLOCATED to stop the same hash table entry having
767 (bfd_xcoff_size_dynamic_sections): Set XCOFF_ALLOCATED when
769 (xcoff_link_input_bfd): Use xcoff_final_definition_p.
771 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
773 * xcofflink.c (bfd_xcoff_import_symbol): Treat imported absolute
776 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
778 * libcoff-in.h (xcoff_tdata): Add a lineno_counts field.
779 * libcoff.h: Regenerate.
780 * xcofflink.c (xcoff_link_add_symbols): Record per-symbol
781 line-number counts in the bfd's lineno_counts field.
782 Don't keep per-csect line-number counts.
783 (xcoff_sweep): Don't update per-csect line-number counts.
784 (bfd_xcoff_size_dynamic_sections): Count the number of line-number
785 entries in each output section.
786 (xcoff_link_input_bfd): Get the number of line numbers from
787 the bfd's lineno_counts field, rather than recalculating it
788 from scratch. Fix the range check when updating C_BINCL and
790 (_bfd_xcoff_bfd_final_link): Don't count the output line numbers
791 here. Don't expect csects to have line-number counts.
793 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
795 * libcoff-in.h (xcoff_tdata): Change debug_indices to a signed long.
796 * libcoff.h: Regenerate.
797 * xcofflink.c (xcoff_keep_symbol_p): New function, using the
798 "skip" logic from xcoff_link_input_bfd.
799 (bfd_xcoff_size_dynamic_sections): Explicitly skip dynamic
800 objects in a dynamic link, rather than checking whether csectpp
801 is null. Always allocate debug_index for other objects,
802 and always go through the loop. Update the type of debug_index
803 after the change above. Read the auxillary csect information
804 and use xcoff_keep_symbol_p to decide whether a symbol should
805 be kept. Set its debug_index to -2 if not.
806 (xcoff_link_input_bfd): Update the type of debug_index after
807 the change above and always expect it to be nonnull. Use it to
808 test whether a symbol should be stripped, rather than making the
809 decision here. Postpone all symbol creation to the second pass.
811 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
813 * xcofflink.c: (xcoff_mark_symbol): Mark the TOC section when
814 creating a descriptor.
815 (xcoff_sweep): Don't mark toc_section unless it's needed.
816 (bfd_xcoff_size_dynamic_sections): Skip the toc_section
817 when marking every bfd.
818 (xcoff_link_input_bfd): Skip all TOC anchors.
819 (xcoff_toc_section_p, xcoff_find_tc0): New functions.
820 (_bfd_xcoff_bfd_final_link): Don't set the output bfd's TOC anchor
821 to -1; call xcoff_find_tc0 instead.
823 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
825 * libcoff-in.h (xcoff_section_tdata): Update commentary.
826 * libcoff.h: Regenerate.
827 * xcofflink.c (xcoff_link_add_symbols): Set the csect of XTY_ER
828 symbols to bfd_und_section_ptr or bfd_abs_section_ptr, rather than
829 the previous symbol's csect. Treat last_symndx as an inclusive value
830 and simplify its handling.
831 (xcoff_mark): Treat last_symndx as an inclusive value. Only mark
832 symbols with the right csect. Don't mark rsec when processing
833 relocations against undefined or absolute sections.
834 (bfd_xcoff_size_dynamic_sections): Don't check the SEC_MARK flag
835 of bfd_und_section_ptr.
836 (xcoff_link_input_bfd): Likewise.
838 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
840 * coff-rs6000.c (xcoff_ppc_relocate_section): Report relocations
841 against undefined symbols if the symbol's XCOFF_WAS_UNDEFINED
842 flag is set. Assert that all undefined symbols are either
843 imported or defined by a dynamic object.
844 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise.
845 * xcofflink.c (xcoff_link_add_symbols): Extend function-symbol
846 handling to all relocations. Only set XCOFF_CALLED for function
848 (xcoff_find_function): New function, split out from...
849 (bfd_xcoff_export_symbol) ...here.
850 (xcoff_set_import_path): New function, split out from...
851 (bfd_xcoff_import_symbol): ...here. Remove assertion for old
852 meaning of XCOFF_CALLED.
853 (xcoff_mark_symbol): If we mark an undefined and unimported
854 symbol, find some way of defining it. If the symbol is a function
855 descriptor, fill in its definition automatically. If the symbol
856 is a function, mark its descriptor and allocate room for global
857 linkage code. Otherwise mark the symbol as implicitly imported.
858 Move the code for creating function descriptors from...
859 (xcoff_build_ldsyms): ...here. Use XCOFF_WAS_UNDEFINED to
860 check for symbols that were implicitly defined.
861 (xcoff_mark): Don't count any dynamic relocations against
863 (bfd_xcoff_size_dynamic_sections): Save the rtld parameter
864 in the xcoff link info.
865 (xcoff_link_input_bfd): Remove handling of undefined and
868 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
870 * coff-rs6000.c (xcoff_reloc_type_br): Make the branch absolute
871 if the target is absolute. Fix comment typo.
872 (xcoff_ppc_relocate_section): Remove FIXME.
873 * coff64-rs6000.c (xcoff64_reloc_type_br): Make the branch absolute
874 if the target is absolute.
876 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
878 * xcofflink.c (xcoff_mark, xcoff_link_input_bfd): Don't copy
879 R_POS and R_NEG relocations against absolute symbols to the
882 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
884 * coff64-rs6000.c (xcoff64_write_object_contents): Set the cputype
885 to 2 for bfd_mach_ppc_620.
887 2009-03-14 Richard Sandiford <r.sandiford@uk.ibm.com>
889 * config.bfd: Treat AIX 6+ in the same way as AIX 5.
890 * configure.in: Likewise.
891 * configure: Regenerate.
893 2009-03-13 H.J. Lu <hongjiu.lu@intel.com>
896 * elf.c (assign_section_numbers): Generate symbol table if there
897 is any relocation in output.
898 (_bfd_elf_compute_section_file_positions): Likewise.
900 2009-03-13 Nick Clifton <nickc@redhat.com>
903 * elf-bfd.h (NUM_SHDR_ENTRIES): Cope with an empty section.
904 * elflink.c (elf_link_read_relocs_from_section): Use
905 NUM_SHDR_ENTRIES. Gracefully handle the case where there are
906 relocs but no symbol table.
907 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
909 2009-03-12 H.J. Lu <hongjiu.lu@intel.com>
912 * elf32-i386.c (elf_i386_check_tls_transition): Use strncmp
913 to check ___tls_get_addr.
915 * elf64-x86-64.c (elf64_x86_64_check_tls_transition): Use
916 strncmp to check __tls_get_addr.
918 2009-03-12 Andrew Stubbs <ams@codesourcery.com>
920 * dwarf2.c (read_section): Always check the offset, even when the
921 section has been read before.
923 2009-03-11 H.J. Lu <hongjiu.lu@intel.com>
925 * elf32-i386.c (elf_i386_check_tls_transition): Fix a typo in
928 2009-03-11 Chris Demetriou <cgd@google.com>
930 * bfd.c (BFD_DETERMINISTIC_OUTPUT): New flag.
931 * bfd-in2.h: Regenerate.
932 * archive.c (bfd_ar_hdr_from_filesystem): If BFD_DETERMINISTIC_OUTPUT
933 flag is set, use 0 for uid, gid, and timestamp, and use 0644 for file
935 (bsd_write_armap): Likewise.
936 (_bfd_archive_bsd_update_armap_timestamp): If BFD_DETERMINISTIC_OUTPUT
937 flag is set, do nothing.
938 (coff_write_armap): If BFD_DETERMINISTIC_OUTPUT flag is set, use 0
941 2009-03-11 Ulrich Weigand <uweigand@de.ibm.com>
943 * elf32-spu.c (find_function_stack_adjust): Handle sf instruction
944 used to update stack pointer.
946 2009-03-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
949 * som.c (som_bfd_derive_misc_symbol_info): Set symbol type ST_ABSOLUTE
950 for unknown symbols in absolute section.
952 2009-03-06 Nick Clifton <nickc@redhat.com>
954 * po/es.po: Updated Spanish translation.
956 2009-03-05 Christophe Lyon <christophe.lyon@st.com>
958 * elf32-arm.c (group_sections): Take next section size into
959 account before accepting to group it.
961 2009-03-05 Christophe Lyon <christophe.lyon@st.com>
963 * elf32-arm.c (arm_type_of_stub): Handle long branches targetting
965 (elf32_arm_final_link_relocate): Likewise.
967 2009-03-05 Moritz Kroll <Moritz.Kroll@gmx.de>
970 * peXXigen.c (_bfd_XXi_final_link_postscript): Check h->root.type.
972 2009-03-04 Alan Modra <amodra@bigpond.net.au>
974 * reloc.c (BFD_RELOC_PPC_TLSGD, BFD_RELOC_PPC_TLSLD): New.
975 * section.c (struct bfd_section): Add has_tls_get_addr_call.
976 (BFD_FAKE_SECTION): Init new flag.
977 * ecoff.c (bfd_debug_section): Likewise.
978 * bfd-in2.h: Regenerate.
979 * libbfd.h: Regenerate.
980 * elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_TLSGD and R_PPC_TLSLD.
981 (ppc_elf_reloc_type_lookup): Handle new relocs.
982 (ppc_elf_check_relocs): Set has_tls_get_addr_call on finding such
983 without marker relocs.
984 (ppc_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
985 if section has no old-style calls.
986 (ppc_elf_relocate_section): Set tls_mask for non-tls relocs too.
987 Don't try to optimize new-style __tls_get_addr call when handling
988 arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
990 * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_TLSGD, R_PPC64_TLSLD.
991 (ppc64_elf_reloc_type_lookup): Handle new relocs.
992 (ppc64_elf_check_relocs): Set has_tls_get_addr_call on finding such
993 without marker relocs.
994 (ppc64_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
995 if section has no old-style calls. Set toc_ref for new relocs as
997 (ppc64_elf_relocate_section): Set tls_mask for non-tls relocs too.
998 Don't try to optimize new-style __tls_get_addr call when handling
999 arg setup relocs. Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
1002 2009-03-04 Alan Modra <amodra@bigpond.net.au>
1005 * configure.in: Test for ld --as-needed support. Link shared
1006 libbfd against libm.
1007 * configure: Regenerate.
1009 2009-03-03 Alan Modra <amodra@bigpond.net.au>
1011 * Makefile.am: Run "make dep-am".
1012 * Makefile.in: Regenerate.
1014 2009-03-02 Qinwei <qinwei@sunnorth.com.cn>
1016 * elf32-score7.c: New file.
1017 * elf32-score.h: New file.
1018 * elf32-score.c: Add code to support score 7. Set score7 as the
1020 * cpu-score.c: Add score7 architecure.
1021 (compatibile): New function.
1022 * Makefile.am: Add rules for building elf32-score7 object.
1023 * Makefile.in: Regenerate.
1024 * configure.in: Add elf32-score7 object to score vectors.
1025 * configure: Regenerate.
1026 * reloc.c: Add score7 relocs.
1027 * archures.c: Add score3 and score7 machine numbers.
1028 * bfd-in2.h: Regenerate.
1029 * libbfd.h: Regenerate.
1031 2009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1033 * configure: Regenerate.
1035 2009-03-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1037 * elf32-hppa.c (hppa32_elf_local_refcounts): New function.
1038 (elf32_hppa_check_relocs): Use it.
1040 * elf_hppa_add_symbol_hook (elf_hppa_add_symbol_hook): Move to
1042 (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
1043 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
1044 (elf_hppa_is_dynamic_loader_symbol): Likewise.
1045 (elf_hppa_record_segment_addrs): Likewise.
1046 (elf_hppa_final_link): Likewise.
1047 (elf_hppa_relocate_insn): Likewise.
1048 (elf_hppa_final_link_relocate): Likewise.
1049 (elf64_hppa_relocate_section): Likewise.
1050 * elf64-hppa.c: Insert above.
1052 2009-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1054 * elf-hppa.h (elf_hppa_final_link): Use elf_hppa_final_link.
1055 (elf_hppa_final_link_relocate ): Rewrite eliminating dynamic hash table.
1056 (elf_hppa_relocate_section): Likewise.
1057 * elf64-hppa.c (struct elf64_hppa_link_hash_entry): Change to derive
1058 from struct elf_link_hash_entry. Add count field.
1059 (struct elf64_hppa_dyn_hash_table): Delete.
1060 (struct elf64_hppa_link_hash_table): Delete dyn_hash_table field.
1061 (elf64_hppa_hash_table): Rename to hppa_link_hash_table.
1062 (hppa_elf_hash_entry, eh_name): Define.
1063 (elf64_hppa_new_dyn_hash_entry): Delete.
1064 (elf64_hppa_dyn_hash_lookup): Delete.
1065 (elf64_hppa_dyn_hash_traverse): Delete.
1066 (get_dyn_name): Delete.
1067 (elf64_hppa_finalize_opd): Use struct elf_link_hash_entry * instead
1068 of struct elf64_hppa_dyn_hash_entry *.
1069 (elf64_hppa_finalize_dlt, llocate_global_data_dlt,
1070 allocate_global_data_plt, allocate_global_data_stub,
1071 allocate_global_data_opd, count_dyn_reloc, allocate_dynrel_entries):
1073 (hppa64_link_hash_newfunc): New.
1074 (elf64_hppa_hash_table_create): Rework.
1075 (count_dyn_reloc): Likewise.
1076 (hppa64_elf_local_refcounts): New.
1077 (elf64_hppa_check_relocs): Rework using standard technique for recording
1078 local DLT, PLT and OPD reference counts.
1079 (elf64_hppa_dynamic_symbol_p): Revise using "eh" for struct
1080 elf_link_hash_entry *.
1081 (elf64_hppa_mark_exported_functions, allocate_global_data_dlt,
1082 allocate_global_data_plt, allocate_global_data_stub,
1083 allocate_global_data_opd, allocate_dynrel_entries,
1084 elf64_hppa_adjust_dynamic_symbol,
1085 elf64_hppa_mark_milli_and_exported_functions): Likewise.
1086 (elf64_hppa_create_dynamic_sections, elf64_hppa_size_dynamic_sections):
1087 Use hppa_link_hash_table. Rework.
1088 (elf64_hppa_link_output_symbol_hook): Rework.
1089 (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd,
1090 elf64_hppa_finalize_dlt, elf64_hppa_finalize_dynreloc,
1091 elf64_hppa_finish_dynamic_sections): Likewise.
1093 2009-02-26 Christophe Lyon <christophe.lyon@st.com>
1095 * elf32-arm.c (stub_reloc_type): Removed.
1096 (insn_sequence): Renamed reloc_type field to r_type.
1097 (elf32_arm_stub_long_branch_v4t_arm_thumb_pic): New stub.
1098 (elf32_arm_stub_long_branch_v4t_thumb_arm_pic): Likewise.
1099 (elf32_arm_stub_long_branch_thumb_only_pic): Likewise.
1100 (elf32_arm_stub_type): Add new enum entries for the new stubs.
1101 (arm_stub_is_thumb): Catch new stubs.
1102 (arm_type_of_stub): Handle new stubs.
1103 (arm_size_one_stub): Use ARRAY_SIZE. Handle new stubs.
1104 (bfd_elf32_arm_process_before_allocation): Remove useless
1107 2009-02-25 H.J. Lu <hongjiu.lu@intel.com>
1109 * elf.c (elf_find_function): Use is_function_type to check
1112 2009-02-24 Sterling Augustine <sterling@jaw.hq.tensilica.com>
1114 * xtensa-modules.c: Revert to previous version 1.11 due
1115 to inadvertant commit.
1117 2009-02-24 Sterling Augustine <sterling@tensilica.com>
1119 * elf32-xtensa.c (text_action_add): Separate test for action
1120 type. Break if saved action is ta_widen_insn at same offset.
1122 2009-02-24 Daniel Jacobowitz <dan@codesourcery.com>
1124 * elf32-arm.c (elf32_arm_stub_long_branch_any_any_pic): Rename
1125 to elf32_arm_stub_long_branch_any_arm_pic.
1126 (elf32_arm_stub_long_branch_any_thumb_pic): New.
1127 (enum elf32_arm_stub_type, arm_type_of_stub)
1128 (arm_size_one_stub): Handle any to ARM PIC and any to Thumb PIC
1131 2009-02-24 Joseph Myers <joseph@codesourcery.com>
1133 * elf32-arm.c (PREV_SEC): Update comment.
1134 (group_sections): Rename argument to stubs_always_after_branch.
1135 Reverse the list and place stubs at the end of input sections.
1137 (elf32_arm_size_stubs): Update to use stubs_always_after_branch.
1139 2009-02-23 Daniel Jacobowitz <dan@codesourcery.com>
1141 * elf32-arm.c (arm_build_one_stub): Initialize stub_reloc_offset.
1143 (arm_size_one_stub): Remove unnecessary break.
1144 (arm_map_one_stub): Fix formatting. Return after BFD_FAIL.
1146 2009-02-23 Christophe Lyon <christophe.lyon@st.com>
1148 * elf32-arm.c (stub_insn_type): New type.
1149 (stub_reloc_type): Likewise.
1150 (insn_sequence): Likewise.
1151 (elf32_arm_stub_long_branch_any_any): Encode using insn_sequence.
1152 (elf32_arm_stub_long_branch_v4t_arm_thumb): Likewise.
1153 (elf32_arm_stub_long_branch_thumb_only): Likewise.
1154 (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise.
1155 (elf32_arm_stub_short_branch_v4t_thumb_arm): Likewise.
1156 (elf32_arm_stub_long_branch_any_any_pic): Likewise.
1157 (elf32_arm_stub_hash_entry): Add new helper fields.
1158 (stub_hash_newfunc): Initialize these new fields.
1159 (arm_build_one_stub): Encode Arm and Thumb instructions separately
1160 to take endianness into account.
1161 (arm_size_one_stub): Compute size of stubs using insn_sequence.
1162 (arm_map_one_stub): Code is now more generic, thanks to
1165 2009-02-23 Christophe Lyon <christophe.lyon@st.com>
1167 * elf32-arm.c (elf32_arm_stub_long_branch_thumb_only): Fix stub
1169 (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise.
1170 (arm_type_of_stub): Use Thumb-only long branch stub (non-PIC) when
1171 BLX is not available. Fix typo in warning message. Add comments
1172 and improve formatting.
1173 (arm_build_one_stub): Adjust to new
1174 elf32_arm_stub_long_branch_v4t_thumb_arm stub.
1175 (arm_map_one_stub): Likewise.
1177 2009-02-23 Tristan Gingold <gingold@adacore.com>
1178 Eric Botcazou <ebotcazou@adacore.com>
1179 Douglas B Rupp <rupp@gnat.com>
1181 * vms.h: Update copyright year, fix comments, reorder declarations.
1182 (_bfd_save_vms_section): Remove the prototype.
1183 (EGPS_S_V_NO_SHIFT): New constant.
1184 (bfd_vms_set_section_flags): New prototype.
1185 (EGPS_S_B_ALIGN, EGPS_S_W_FLAGS, EGPS_S_L_ALLOC, EGPS_S_B_NAMLNG): New
1187 (EGSY_S_W_FLAGS): Ditto.
1188 (EGSY_S_V_QUAD_VAL): Ditto.
1189 (ESDF_S_L_VALUE, ESDF_S_L_PSINDX, ESDF_S_B_NAMLNG): Ditto.
1190 (EGST_S_W_FLAGS, EGST_S_Q_LP_1, EGST_S_Q_LP_2, EGST_S_L_PSINDX,
1191 EGST_S_B_NAMLNG): Ditto.
1192 (ESRF_S_B_NAMLNG): Ditto.
1193 (ETIR_S_C_HEADER_SIZE): Ditto.
1194 (EGPS_S_V_ALLOC_64BIT): Ditto.
1195 (DST_S_C_EPILOG): Ditto.
1196 (DST_S_C_SRC_SETLNUM_L, DST_S_C_SRC_SETLNUM_W) : Ditto.
1197 (DST_S_C_SRC_INCRLNUM_B): Ditto.
1198 (DST_S_B_PCLINE_UNSBYTE, DST_S_W_PCLINE_UNSWORD): Ditto.
1199 (DST_S_L_PCLINE_UNSLONG): Ditto.
1200 (DST_S_B_MODBEG_NAME, DST_S_L_RTNBEG_ADDRESS) : Ditto
1201 (DST_S_B_RTNBEG_NAME, DST_S_L_RTNEND_SIZE): Ditto
1202 (DST_S_C_SOURCE_HEADER_SIZE): Ditto.
1203 (DST_S_B_SRC_DF_LENGTH, DST_S_W_SRC_DF_FILEID): Ditto.
1204 (DST_S_B_SRC_DF_FILENAME, DST_S_B_SRC_UNSBYTE): Ditto.
1205 (DST_S_B_SRC_UNSBYTE): Ditto.
1206 (DST_S_W_SRC_UNSWORD, DST_S_L_SRC_UNSLONG): Ditto.
1208 (vms_section, vms_reloc): Remove types.
1209 (hdr_struc): Replaced by ...
1210 (hdr_struct): ... new type.
1211 (EMH_S_W_HDRTYP, EMH_S_B_STRLVL, EMH_S_L_ARCH1): New constants.
1212 (EMH_S_L_ARCH2, EMH_S_L_RECSIZ, EMH_S_B_NAMLNG): Ditto.
1213 (EMH_DATE_LENGTH): Ditto.
1214 (eom_struc): Replaced by ...
1215 (eom_struct): ... new type.
1216 (EEOM_S_L_TOTAL_LPS, EEOM_S_W_COMCOD, EEOM_S_B_TFRFLG): New constants.
1217 (EEOM_S_L_PSINDX, EEOM_S_L_TFRADR): Ditto.
1218 (EIHD_S_K_MAJORID, EIHD_S_K_MINORID, EIHD_S_K_EXE): Ditto.
1219 (EIHD_S_L_SIZE, EIHD_S_L_ISDOFF, EIHD_S_L_SYMDBGOFF): Ditto.
1220 (EIHD_S_Q_SYMVVA, EIHD_S_L_IMGTYPE): Ditto.
1221 (EISD_S_L_EISDSIZE, EISD_S_L_SECSIZE, EISD_S_Q_VIR_ADDR): Ditto.
1222 (EISD_S_L_FLAGS, EISD_S_L_VBN, EISD_S_R_CONTROL): Ditto.
1223 (EISD_S_L_IDENT, EISD_S_T_GBLNAM): Ditto.
1224 (EISD_S_M_GBL, EISD_S_M_CRF, EISD_S_M_DZRO, EISD_S_M_WRT): Ditto.
1225 (EISD_S_M_INITALCODE, EISD_S_M_BASED, EISD_S_M_FIXUPVEC): Ditto.
1226 (EISD_S_M_RESIDENT, EISD_S_M_VECTOR, EISD_S_M_PROTECT): Ditto.
1227 (EISD_S_M_LASTCLU, EISD_S_M_EXE, EISD_S_M_NONSHRADR): Ditto.
1228 (EISD_S_M_QUAD_LENGTH, EISD_S_M_ALLOC_64BIT): Ditto.
1229 (EIHS_S_L_DSTVBN, EIHS_S_L_DSTSIZE, EIHS_S_L_GSTVBN): Ditto.
1230 (EIHS_S_L_GSTSIZE, EIHS_S_L_DMTVBN, EIHS_S_L_DMTBYTES): Ditto.
1231 (DBG_S_L_DMT_MODBEG, DBG_S_L_DST_SIZE): Ditto.
1232 (DBG_S_W_DMT_PSECT_COUNT, DBG_S_C_DMT_HEADER_SIZE): Ditto.
1233 (DBG_S_L_DMT_PSECT_START, DBG_S_L_DMT_PSECT_LENGTH)
1234 (DBG_S_C_DMT_PSECT_SIZE): Ditto.
1235 (enum file_type_enum): New type.
1236 (struct location_struct): Removed.
1237 (struct fileinfo, struct srecinfo, struct lineinfo): New types.
1238 (struct funcinfo, struct module): Ditto.
1239 (struct vms_private_data_struct): Update fields.
1240 (struct vms_section_data_struct): New type.
1242 * vms.c: Update copyright year, fix comments,
1243 Fix includes for DECC, add prototypes.
1244 (vms_initialize): Use bfd_alloc instead of bfd_zalloc and remove
1246 Use flavour to set is_vax, location_stack is removed.
1247 (struct pair): Declare.
1248 (fill_section_ptr): Initialize variables at declaration.
1249 Add guard to set SECTION_SYM flag, handlde und section.
1250 (vms_fixup_sections): Use struct pair for fill_section_ptr argument.
1251 (_bfd_vms_slurp_object_records): New function, replaces previous
1253 (vms_slurp_module): New function.
1254 (vms_slurp_image): Ditto.
1255 (vms_object_p): Complete rewrite.
1256 (vms_mkobject): Use is_vax field to slect architecture.
1257 (free_reloc_stream): New function.
1258 (vms_convert_to_var): Ditto.
1259 (vms_convert_to_var_1): Ditto.
1260 (vms_convert_to_var_unix_filename): Ditto.
1261 (vms_close_and_cleanup): Call free_reloc_stream, convert file to
1263 (vms_new_section_hook): Set alignment to 0, allocate private data.
1264 (vms_get_section_contents): Load content.
1265 (vms_get_symbol_info): Handle undefined section.
1266 (vms_find_nearest_line): Handle.
1267 (alloc_reloc_stream): New function.
1268 (vms_slurp_reloc_table): Ditto.
1269 (vms_get_reloc_upper_bound): Make it real.
1270 (vms_canonicalize_reloc): Do the real work.
1271 (alpha_howto_table): Add ALPHA_R_NOP, ALPHA_R_BSR, ALPHA_R_LDA,
1273 (vms_bfd_reloc_type_lookup): Handle NOP, BSR, LDA and BOH.
1274 (vms_set_arch_mach): Check arch.
1275 (vms_set_section_contents): Copy the content after allocation.
1276 (vms_alpha_vec): Update object flags.
1278 * vms-tir.c: Update copyright year, fix comments,
1279 add prototypes for new functions.
1280 (dst_define_location): New function.
1281 (dst_restore_location): New function.
1282 (dst_retrieve_location): New function.
1283 (dst_check_allocation): New function.
1284 (image_dump): Call dst_check_allocation.
1285 (image_write_b): Ditto.
1286 (image_write_w): Ditto.
1287 (image_write_l): Ditto.
1288 (image_write_q): Ditto.
1289 (cmd_name): Handle STA_LW, STA_QW, STO_OFF, STO_IMM, STO_IMMR, STO_LW,
1290 STO_QW, OPR_ADD, CTL_SETRB, STC_LP_PSB, CTL_DFLOC, CTL_STLOC,
1292 Call error handler instead of abort if name is not known.
1293 (etir_sta): Add quarter_relocs argument and set it.
1296 (etir_opr): Ditto, return FALSE in case of error.
1297 (etir_ctl): Add quarter_relocs argument and set it, fix cast.
1298 Fix CTL_DFLOC, CTL_STLOC, CTL_STKDL.
1299 (etir_stc): Add quarter_relocs argument and set it, fix cast.
1300 Fix STC_LP, STC_LP_PSB, STC_GBL and STC_CGA.
1301 Handle STC_LP_PSB, STC_BSR_GBL, STC_LDA_GBL, STC_BOH_GBL.
1302 Move STC_NOP_PS, STC_BSR_PS, STC_LDA_PS, STC_BOH_PS, STC_NBH_PS.
1303 Return FALSE in case of error.
1304 (tir_sta): Change sign of psect.
1306 (tir_cmd): Fix cast. Makes tir_table static const.
1307 (etir_cmd): Add quarter_relocs argument, makes etir_table const,
1308 add argument to explain.
1309 (analyze_etir): Initialize maxptr, add quarter_relocs
1310 declaration, move some declarations into inner scopes.
1311 Handle quarter_relocs and STO_IMM.
1312 (_bfd_vms_slurp_tir): Use constant instead of hard-coded values.
1313 (_bfd_vms_slurp_relocs): New function.
1314 (_bfd_vms_decode_relocs): New function.
1315 (sto_imm): Rewritten.
1316 (start_first_etbt_record): New function.
1317 (start_another_etbt_record): Ditto.
1318 (etir_output_check): Ditto.
1319 (defer_reloc_p): Ditto.
1320 (_bfd_vms_write_tir): Remove nextoffset, convert a while-loop to
1321 a for-loop. Correctly deals with contents, deals with .vmsdebug,
1322 rewritte relocations handling.
1323 (_bfd_vms_write_tbt): Removed.
1324 (_bfd_vms_write_dbg): Ditto.
1326 * vms-misc.c: Update copyright year, Fix comments.
1327 (_bfd_vms_get_header_values): Use 'size' instead of 'length'.
1328 (maybe_adjust_record_pointer_for_object): New function.
1329 (_bfd_vms_get_first_record): New function, replaces ...
1330 (_bfd_vms_get_record): .. removed.
1331 (_bfd_vms_get_object_record): New function.
1332 (_bfd_vms_get_object_record): New function.
1333 (vms_get_remaining_object_record): New function, replaces ...
1334 (_bfd_vms_get_next_record): ... removed.
1335 (add_new_contents): Removed.
1336 (_bfd_save_vms_section): Removed.
1337 (_bfd_get_vms_section): Removed.
1338 (_bfd_vms_output_flush): Write in VAR format.
1339 (new_symbol): Don't make UND section.
1341 * vms-hdr.c: Update copyright year, update list of record handled.
1342 (_bfd_vms_slurp_hdr): rec_length renamed to rec_size.
1343 (_bfd_vms_write_hdr): Strip vms and unix patches,
1344 add comments, truncate module name at 31 characters,
1345 use constants instead of hard-coded value,
1346 write BFD version instead of a fixed string.
1347 (_bfd_vms_slurp_ihd): New function.
1348 (_bfd_vms_slurp_isd): Ditto.
1349 (_bfd_vms_slurp_ihs): Ditto.
1350 (new_module): Ditto.
1351 (parse_module): Ditto
1352 (build_module_list): Ditto.
1353 (module_find_nearest_line): Ditto.
1354 (_bfd_vms_find_nearest_dst_line): Ditto.
1355 (vms_slurp_debug): Ditto.
1356 (_bfd_vms_slurp_dbg): Ditto.
1357 (_bfd_vms_slurp_tbt): Ditto.
1358 (_bfd_vms_write_dbg): Ditto.
1359 (_bfd_vms_write_tbt): Ditto.
1361 * vms-gsd.c: Update copyright year, update list of records handled.
1362 (EVAX_LITERALS_NAME): New macro.
1363 (evax_section_flags): Add an entry for EVAX_LITERALS_NAME.
1364 (gpsflagdesc, gsyflagdesc): Moved out of _bfd_vms_slurp_gsd.
1365 (register_universal_symbol): New function and prototype.
1366 (_bfd_vms_slurp_gsd): Fix indentations and casts,
1367 improve debug messages,
1368 use constants instead of hard-coded value,
1369 fix missing endianness conversion,
1370 handle global symbol (SYMG).
1371 (bfd_vms_set_section_flags): New function.
1372 (_bfd_vms_write_gsd): Don't write .vmsdebug section,
1373 handle section literals,
1375 handle section bfd and vms flags,
1376 don't output LIB$INITIALIZE symbol,
1377 fix handling of weak symbols,
1378 fix evax vs vax procedure descriptor,
1379 handle absolute symbols.
1381 * reloc.c (BFD_RELOC_ALPHA_NOP, BFD_RELOC_ALPHA_BSR,
1382 BFD_RELOC_ALPHA_LDA, BFD_RELOC_ALPHA_BOH): New relocations.
1384 * makefile.vms (DEFS): Fix flags for VMS.
1386 * bfdio.c (real_fopen): Handle multiple VMS fopen attributes.
1388 * bfd-in2.h: Regenerated.
1389 * libbfd.h: Regenerated.
1391 2009-02-20 Cary Coutant <ccoutant@google.com>
1393 * vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime
1396 2009-18-02 Dave Korn <dave.korn.cygwin@gmail.com>
1399 * coffcode.h (coff_write_object_contents): Don't let the string
1400 table offset overflow the s_name field when using long section names.
1402 2009-18-02 Dave Korn <dave.korn.cygwin@gmail.com>
1404 * coff-alpha.c (alpha_ecoff_backend_data): Initialise fields which
1405 control long section name handling with ECOFF_NO_LONG_SECTION_NAMES.
1406 * coff-mips.c (mips_ecoff_backend_data): Likewise.
1407 * coff-rs6000.c (bfd_xcoff_backend_data): Initialise fields which
1408 control long section name handling with XCOFF_NO_LONG_SECTION_NAMES.
1409 (bfd_pmac_xcoff_backend_data): Likewise.
1410 * coff64-rs6000.c (bfd_xcoff_backend_data): Likewise.
1411 (bfd_xcoff_aix5_backend_data): Likewise.
1412 (xcoff64_write_object_contents): Delete unused long_section_names
1414 * coff-sh.c (bfd_coff_small_swap_table): Initialise long section
1415 name members using COFF_DEFAULT_LONG_SECTION_NAMES and make entire
1417 * coffcode.h (documentation): Update to describe long section names.
1418 (COFFLONGSECTIONCATHELPER): New helper macro.
1419 (BLANKOR1TOODD): Likewise.
1420 (COFF_ENABLE_LONG_SECTION_NAMES): Likewise.
1421 (COFF_LONG_SECTION_NAMES_SETTER): Likewise.
1422 (COFF_DEFAULT_LONG_SECTION_NAMES): Likewise.
1423 (bfd_coff_set_long_section_names_allowed): New function.
1424 (bfd_coff_set_long_section_names_disallowed): Likewise.
1425 (struct bfd_coff_backend_data): Add new backend hook function
1426 pointer _bfd_coff_set_long_section_names.
1427 (bfd_coff_set_long_section_names): New backend hook.
1428 (coff_write_object_contents): Only generate long section names if
1429 bfd_coff_long_section_names() indicates they are currently enabled.
1430 (bfd_coff_std_swap_table): Make non-const, and initialise long
1431 section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
1432 (ticoff0_swap_table): Likewise to both.
1433 (ticoff1_swap_table): Again, likewise to both.
1434 * coffgen.c (make_a_section_from_file): Allow long section names
1435 as inputs even if not currently allowed for outputs.
1436 * ecoff.c (_bfd_ecoff_no_long_sections): New function.
1437 * efi-app-ia32.c (COFF_LONG_SECTION_NAMES): Define to 0, not blank.
1438 * efi-app-ia64.c (COFF_LONG_SECTION_NAMES): Likewise.
1439 * efi-app-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
1440 * efi-bsdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise.
1441 * efi-bsdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise.
1442 * efi-bsdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
1443 * efi-rtdrv-ia32.c (COFF_LONG_SECTION_NAMES): Likewise.
1444 * efi-rtdrv-ia64.c (COFF_LONG_SECTION_NAMES): Likewise.
1445 * efi-rtdrv-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
1446 * pei-arm.c (COFF_LONG_SECTION_NAMES): Likewise.
1447 * pei-i386.c (COFF_LONG_SECTION_NAMES): Likewise.
1448 * pei-mcore.c (COFF_LONG_SECTION_NAMES): Likewise.
1449 * pei-mips.c (COFF_LONG_SECTION_NAMES): Likewise.
1450 * pei-ppc.c (COFF_LONG_SECTION_NAMES): Likewise.
1451 * pei-sh.c (COFF_LONG_SECTION_NAMES): Likewise.
1452 * pei-x86_64.c (COFF_LONG_SECTION_NAMES): Likewise.
1453 * libcoff-in.h: Update copyright year to cause updated copyright
1454 year in generated libcoff.h, and fix typo.
1455 * libcoff.h: Regenerated.
1456 * libecoff.h (ECOFF_NO_LONG_SECTION_NAMES): New macro.
1457 (_bfd_ecoff_no_long_sections): Add prototype.
1458 * libxcoff.h (XCOFF_NO_LONG_SECTION_NAMES): New macro.
1459 * pe-mips.c (COFF_LONG_SECTION_NAMES): Define empty if not already
1460 defined by an including .c file.
1461 * ticoff.h (ticoff0_swap_table): Make non-const, and initialise
1462 long section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
1463 (ticoff1_swap_table): Likewise to both.
1465 2009-02-18 Christophe Lyon <christophe.lyon@st.com>
1467 * elf32-arm.c (arm_build_one_stub): Fix relocation target for pic
1468 stub. Catch default case error.
1469 (arm_map_one_stub): Add missing Thumb mapping symbol.
1471 2009-02-18 Bjoern Haase <bjoern.m.haase@web.de>
1474 * elf32-avr.c: Handle case where no local symbos exist correctly.
1476 2009-02-16 Christophe Lyon <christophe.lyon@st.com>
1479 * elf32-arm.c (arm_long_branch_stub,
1480 arm_thumb_v4t_long_branch_stub,
1481 arm_thumb_thumb_long_branch_stub,
1482 arm_thumb_arm_v4t_long_branch_stub,
1483 arm_thumb_arm_v4t_short_branch_stub,
1484 arm_pic_long_branch_stub):
1485 Renamed to elf32_arm_stub_long_branch_any_any,
1486 elf32_arm_stub_long_branch_v4t_arm_thumb,
1487 elf32_arm_stub_long_branch_thumb_only,
1488 elf32_arm_stub_long_branch_v4t_thumb_arm,
1489 elf32_arm_stub_short_branch_v4t_thumb_arm,
1490 elf32_arm_stub_long_branch_any_any_pic.
1491 (arm_stub_long_branch, arm_thumb_v4t_stub_long_branch,
1492 arm_thumb_thumb_stub_long_branch,
1493 arm_thumb_arm_v4t_stub_long_branch,
1494 arm_thumb_arm_v4t_stub_short_branch, arm_stub_pic_long_branch):
1495 Renamed to arm_stub_long_branch_any_any,
1496 arm_stub_long_branch_v4t_arm_thumb,
1497 arm_stub_long_branch_thumb_only,
1498 arm_stub_long_branch_v4t_thumb_arm,
1499 arm_stub_short_branch_v4t_thumb_arm,
1500 arm_stub_long_branch_any_any_pic.
1502 2009-02-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1504 * elf-hppa.h (elf_hppa_final_link_relocate): Correct addend value used
1505 in branch offset check.
1507 2009-02-15 Alan Modra <amodra@bigpond.net.au>
1509 * elf64-ppc.c (struct _ppc64_elf_section_data): Delete t_symndx,
1510 add toc.symndx and toc.add.
1511 (ppc64_elf_check_relocs): Don't set htab->tls_get_addr here.
1513 (get_tls_mask): Add toc_addend param, set from toc.add. Adjust all
1515 (ppc64_elf_tls_setup): Set htab->tls_get_addr and tls_get_addr_fd.
1516 (branch_reloc_hash_match): New function, extracted from..
1517 (ppc64_elf_tls_optimize): ..here.
1518 (ppc64_elf_relocate_section): Properly set addends when optimizing
1519 tls sequences. Avoid unnecessary reading and writing of insns.
1520 Only redo reloc when symbol changed. Bypass symbol checks when
1522 * elf32-ppc.c (ppc_elf_tls_setup): Correct comment.
1523 (branch_reloc_hash_match): New function, extracted from..
1524 (ppc_elf_tls_optimize): ..here.
1525 (ppc_elf_relocate_section): Avoid unnecessary reading of insns.
1526 Don't clear addend on zapped __tls_get_addr reloc.
1528 2009-02-12 Nick Clifton <nickc@redhat.com>
1531 * elflink.c (bfd_elf_final_link): When counting the relocations,
1532 if the header size has not been set yet then assume that it will
1533 match the output section's reloc type.
1535 2009-02-12 Nathan Sidwell <nathan@codesourcery.com>
1537 * elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for
1540 2009-02-09 Alan Modra <amodra@bigpond.net.au>
1542 * elf32-spu.c (spu_elf_find_overlays): Call bfd_set_error on errors.
1543 (find_function): Likewise.
1544 (pasted_function): Don't error if no prior function found.
1545 (discover_functions): Revert 2008-12-10 change. Extend first
1546 function range to start of section.
1548 2009-02-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1550 * elf64-hppa.c: Remove PARAMS macro. Replace PTR with void *. Convert
1552 * elf64-hppa.h: Likewise.
1554 2009-02-06 Joseph Myers <joseph@codesourcery.com>
1556 * elfxx-mips.c (_bfd_mips_elf_section_processing): Remove special
1559 2009-02-04 Alan Modra <amodra@bigpond.net.au>
1561 * elf32-spu.c (spu_elf_build_stubs): Define __icache_neg_log2_linesize.
1562 Define __icache_ptr_handler*, not __icache_ptr___icache_bi_handler*.
1564 2009-02-03 Sandip Matte <sandip@rmicorp.com>
1566 * aoutx.h (NAME (aout, machine_type)): Handle bfd_mach_mips_xlr.
1567 * archures.c (bfd_mach_mips_xlr): Define.
1568 * bfd-in2.h: Regenerate.
1569 * cpu-mips.c (I_xlr): Define.
1570 (arch_info_struct): Add XLR entry.
1571 * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_XLR.
1572 (mips_set_isa_flags): Handle bfd_mach_mips_xlr
1573 (mips_mach_extensions): Add XLR entry.
1575 2009-02-03 Eric B. Weddington <eric.weddington@atmel.com>
1577 * elf32-avr.c (avr_final_link_relocate): Allow avr25 to wraparound.
1579 2009-02-03 Carlos O'Donell <carlos@codesourcery.com>
1581 * configure.in: AC_SUBST pdfdir.
1582 * Makefile.am: Add install-pdf, install-pdf-am
1583 and install-pdf-recursive targets. Define pdfdir.
1584 * doc/Makefile.am: Define pdf__strip_dir. Add
1585 install-pdf and install-pdf-am targets.
1586 * po/Make-in: Add install-pdf target.
1587 * configure: Regenerate.
1588 * Makefile.in: Regenerate
1589 * doc/Makefile.in: Regenerate.
1591 2009-02-03 Maxim Kuvyrkov <maxim@codesourcery.com>
1593 * bfd-in2.h: Regenerate.
1594 * elf32-m68k.c: Handle 2-slot GOT entries. Rename variables and
1595 fields from n_entries to n_slots where appropriate, update comments.
1596 (HOWTO): Add TLS relocations.
1597 (reloc_map): Map BFD_RELOC_68K_TLS_* to R_68K_TLS_*.
1598 (enum elf_m68k_got_offset_size): New enum.
1599 (struct elf_m68k_got_entry.type): Move field to ...
1600 (struct elf_m68k_got_entry_key): ... here. Update all uses.
1601 (elf_m68k_reloc_got_type, elf_m68k_reloc_got_offset_size): New static
1603 (elf_m68k_reloc_got_n_entries, elf_m68k_reloc_tls_p): New static
1605 (struct elf_m68k_got): merge rel_8o_n_entries and rel_8o_16o_n_entries
1606 fields into n_entries array. Update comments.
1607 (elf_m68k_init_got): Simplify, update all uses.
1608 (elf_m68k_init_got_entry_key): Handle R_68K_TLS_LDM32 reloc, update.
1609 (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT): Adjust to handle 2-slot
1610 GOT entries; update name, update all uses.
1611 (ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): Ditto.
1612 (elf_m68k_get_got_entry): Update.
1613 (elf_m68k_update_got_entry_type): Rewrite to handle TLS GOT entries,
1615 (elf_m68k_remove_got_entry_type): Simplify.
1616 (elf_m68k_add_entry_to_got, elf_m68k_can_merge_gots_1): Update.
1617 (elf_m68k_can_merge_gots): Update.
1618 (elf_m68k_merge_gots_1, elf_m68k_merge_gots): Update.
1619 (struct elf_m68k_finalize_got_offsets_arg): Rewrite to handle 2-slot
1620 GOT entries, simplify.
1621 (elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Same.
1622 (struct elf_m68k_partition_multi_got_arg): Add slots_relas_diff
1623 field, remove obsoleted local_n_entries field.
1624 (elf_m68k_partition_multi_got_2): New static function.
1625 (elf_m68k_partition_multi_got_1, elf_m68k_partition_multi_got): Use it;
1627 (elf_m68k_remove_got_entry_type): Update.
1628 (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
1629 (elf_m68k_check_relocs): Handle TLS relocations. Remove unnecessary
1630 update of sgot->size and srelgot->size.
1631 (elf_m68k_gc_sweep_hook): Update.
1632 (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
1633 (elf_m68k_relocate_section, elf_m68k_finish_dynamic_symbol): Handle
1635 * reloc.c (BFD_RELOC_68K_TLS_*): Declare TLS relocations.
1636 * libbfd.h (bfd_reloc_code_real_names): Add BFD_RELOC_68K_TLS_*.
1638 2009-02-02 DJ Delorie <dj@redhat.com>
1640 * elf32-mep.c (config_names): Regenerate configuration.
1642 2009-02-02 Alan Modra <amodra@bigpond.net.au>
1644 * elf-bfd.h (bfd_elf_get_str_section): Don't declare.
1645 (bfd_elf_find_section, _sh_elf_set_mach_from_flags): Likewise.
1646 * elf.c (bfd_elf_get_str_section): Make static.
1647 (bfd_elf_find_section): Delete.
1648 * libbfd.h: Regenerate.
1650 2009-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1652 * elf-eh-frame.c (REQUIRE_CLEARED_RELOCS) Remove.
1653 (_bfd_elf_parse_eh_frame): Do not check relocations for removed FDEs.
1655 2009-01-31 Alan Modra <amodra@bigpond.net.au>
1657 * elflink.c (on_needed_list): New function.
1658 (elf_link_add_object_symbols): Link in --as-needed libs if they
1659 satisfy undefined symbols in other libs.
1661 2009-01-30 Julian Brown <julian@codesourcery.com>
1663 * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Skip BFDs with
1664 EXEC_P or DYNAMIC flags, and skip sections which are being linked
1665 with --just-symbols (-R).
1667 2009-01-29 Adam Nemet <anemet@caviumnetworks.com>
1669 * dwarf2.c (read_rangelist): Use read_address to read low_pc and
1670 high_pc in order to properly sign-extend VMAs.
1672 2009-01-29 Daniel Jacobowitz <dan@codesourcery.com>
1673 Mark Shinwell <shinwell@codesourcery.com>
1674 Catherine Moore <clm@codesourcery.com>
1676 * elf-attrs.c, elflink.c, elfxx-mips.c: Correct typos in comments.
1678 2009-01-28 Catherine Moore <clm@codesourcery.com>
1680 * elf32-arm.c (elf32_arm_check_relocs): Set SEC_ALLOC and
1681 SEC_LOAD for dynamic relocation sections.
1683 2009-01-27 Hans-Peter Nilsson <hp@axis.com>
1685 * elf32-cris.c (cris_elf_relocate_section): Use elf_hash_table
1686 (info)->tls_size, not elf_hash_table (info)->tls_sec->size for
1687 the size of local TLS data.
1689 2009-01-27 Andreas Schwab <schwab@suse.de>
1691 * mach-o.c (bfd_mach_o_archive_p): Restrict the number of
1692 architectures in the archive.
1694 2009-01-27 Hans-Peter Nilsson <hp@axis.com>
1696 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_DTPREL>
1697 <R_CRIS_32_DTPREL>: Correct relocation value.
1699 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_8>
1700 <R_CRIS_16, R_CRIS_32>: Don't call BFD_ASSERT for weak undefined
1701 symbols with non-default visibility.
1703 2009-01-26 Nathan Sidwell <nathan@codesourcery.com>
1705 * elf32-ppc.c (ppc_elf_relax_section): Add space for relocs
1706 describing the trampolines.
1707 (ppc_elf_relocate_section): Update relocs to describe the
1710 2009-01-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1712 * elf-hppa.h (elf_hppa_final_link_relocate): Add check to ensure that
1713 branch targets can be reached for R_PARISC_PCREL22F, R_PARISC_PCREL17F
1714 and R_PARISC_PCREL12F relocations.
1716 2009-01-24 Alan Modra <amodra@bigpond.net.au>
1719 * elflink.c (find_version_for_sym): New function split out from,
1720 but without export_dynamic test, ..
1721 (_bfd_elf_link_assign_sym_version): ..here.
1722 (_bfd_elf_export_symbol): Use it.
1724 2009-01-23 Alan Modra <amodra@bigpond.net.au>
1726 * elf-bfd.h (struct elf_assign_sym_version_info): Delete.
1727 (struct elf_info_failed, struct elf_find_verdep_info): Move to..
1728 * elflink.c: ..here, somewhat modified.
1729 * elf-bfd.h (_bfd_elf_add_default_symbol, _bfd_elf_export_symbol,
1730 _bfd_elf_link_find_version_dependencies,
1731 _bfd_elf_link_assign_sym_version, _bfd_elf_link_size_reloc_section,
1732 _bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol,
1733 _bfd_elf_link_sec_merge_syms, bfd_elf_link_mark_dynamic_symbol): Don't
1735 * elflink.c: ..and make static here.
1736 (_bfd_elf_link_find_version_dependencies): Adjust for removal
1737 of output_bfd from struct elf_find_verdep_info.
1738 (_bfd_elf_link_assign_sym_version): Similarly adjust to use
1739 struct elf_info_failed.
1740 (bfd_elf_size_dynamic_sections): Adjust.
1742 2009-01-22 Alan Modra <amodra@bigpond.net.au>
1745 * dwarf2.c (find_line): Don't update stash->sec_info_ptr until
1746 after comp_unit_find_line call.
1748 2009-01-21 Nick Clifton <nickc@redhat.com>
1751 * vmsutil.c (vms_file_stats_name): Remove use of unsupported
1752 tm_gmtoff field in struct tm.
1754 2009-01-21 Alan Modra <amodra@bigpond.net.au>
1756 * elf32-spu.h (struct spu_elf_params): Add non_ia_text.
1757 * elf32-spu.c (mark_overlay_section): Only include .text.ia.*
1758 sections in soft-icache lines unless non_ia_text. Don't add
1759 rodata if doing so would exceed line size.
1761 2009-01-19 Hans-Peter Nilsson <hp@axis.com>
1763 * elf32-cris.c (elf_cris_copy_indirect_symbol): For other symbol
1764 types than bfd_link_hash_indirect, before early return, call
1765 _bfd_elf_link_hash_copy_indirect.
1767 2009-01-19 Andrew Stubbs <ams@codesourcery.com>
1769 * elf-attrs.c (vendor_set_obj_attr_contents): Support tag ordering.
1770 * elf-bfd.h (elf_backend_data): Add obj_attrs_order.
1771 * elf32-arm.c (elf32_arm_obj_attrs_order): New function.
1772 (elf_backend_obj_attrs_order): New define.
1773 * elfxx-target.h (elf_backend_obj_attrs_order): New define.
1774 (elfNN_bed): Add elf_backend_obj_attrs_order.
1776 2009-01-19 Andrew Stubbs <ams@codesourcery.com>
1778 * elf-attrs.c (is_default_attr): Substitute magic numbers with macros.
1779 (obj_attr_size): Likewise.
1780 (write_obj_attribute): Likewise.
1781 (_bfd_elf_copy_obj_attributes): Likewise.
1782 (_bfd_elf_parse_attributes): Likewise.
1783 * elf-bfd.h (ATTR_TYPE_FLAG_INT_VAL): New define.
1784 (ATTR_TYPE_FLAG_STR_VAL, ATTR_TYPE_FLAG_NO_DEFAULT): New defines.
1785 (ATTR_TYPE_HAS_INT_VAL, ATTR_TYPE_HAS_STR_VAL): New defines.
1786 (ATTR_TYPE_HAS_NO_DEFAULT): New define.
1787 * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Replace magic numbers
1790 2009-01-19 Andrew Stubbs <ams@codesourcery.com>
1792 * elf-attrs.c (is_default_attr): Support defaultless attributes.
1793 (bfd_elf_add_obj_attr_int): Get type from _bfd_elf_obj_attrs_arg_type.
1794 (bfd_elf_add_obj_attr_string): Likewise.
1795 (bfd_elf_add_obj_attr_int_string): Likewise.
1796 (_bfd_elf_parse_attributes): Allow for unknown flag bits in type.
1797 * elf-bfd.h (struct obj_attribute): Document new flag bit.
1798 * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Specify that
1799 Tag_nodefaults has no default value.
1800 (elf32_arm_merge_eabi_attributes): Modify the Tag_nodefaults
1801 comment to reflect the new state.
1803 2009-01-19 Alan Modra <amodra@bigpond.net.au>
1806 * pdp11.c (N_BADMAG): True for anything but OMAGIC, NMAGIC, ZMAGIC.
1807 (some_aout_object_p): Delete dead code handling QMAGIC and BMAGIC.
1808 (adjust_z_magix): Delete dead code handling QMAGIC.
1810 2009-01-16 Kai Tietz <kai.tietz@onevision.com>
1812 * coffcode.h (styp_to_sec_flags): Correct interpretation of
1813 IMAGE_SCN_MEM_DISCARDABLE.
1815 2009-01-16 Alan Modra <amodra@bigpond.net.au>
1817 * Makefile.am (libbfd_la_LIBADD, libbfd_la_LDFLAGS): Substitute
1818 SHARED_LIBADD and SHARED_LDFLAGS rather than WIN32LIBADD, WIN32LDFLAGS.
1819 * configure.in (commonbfdlib): Delete.
1820 (SHARED_LDFLAGS): Rename from WIN32LDFLAGS/
1821 (SHARED_LIBADD): Rename from WIN32LIBADD. Add pic libiberty if such
1822 is available, not just for linux.
1823 * po/SRC-POTFILES.in: Regenerate.
1824 * Makefile.in: Regenerate.
1825 * configure: Regenerate.
1827 2009-01-15 Andrew Stubbs <ams@codesourcery.com>
1828 Julian Brown <julian@codesourcery.com>
1830 * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 71 to include all known
1831 ARM attributes in ABI 2.07.
1832 * elf32-arm.c (get_secondary_compatible_arch): New function.
1833 (set_secondary_compatible_arch): New function.
1834 (tag_cpu_arch_combine): New function.
1835 (elf32_arm_copy_one_eabi_other_attribute): Delete function.
1836 (elf32_arm_copy_eabi_other_attribute_list): Delete function.
1837 (elf32_arm_merge_eabi_attributes): Rename order_312 to order_021 to
1838 make it fit with order_01243.
1839 Add support for Tag_also_compatible_with,
1840 Tag_CPU_unaligned_access, Tag_T2EE_use, Tag_Virtualization_use,
1841 Tag_MPextension_use, Tag_nodefaults and Tag_conformance.
1842 Improve/tidy up support for Tag_CPU_raw_name, Tag_CPU_name,
1843 Tag_CPU_arch, Tag_ABI_HardFP_use, Tag_VFP_HP_extension,
1844 Tag_ABI_FP_denormal, Tag_ABI_PCS_GOT_use, Tag_ABI_align8_needed,
1845 Tag_VFP_arch and Tag_ABI_FP_16bit_format.
1846 Rework the way unknown attributes are handled.
1847 Defer errors until all attributes have been processed.
1849 2009-01-15 Andrew Stubbs <ams@codesourcery.com>
1851 * elf-attrs.c (bfd_elf_add_obj_attr_compat): Rename to
1852 bfd_elf_add_obj_attr_int_string.
1853 Read Tag_compatibility from its new location in the attribute array,
1854 rather than the attribute list.
1855 (_bfd_elf_copy_obj_attributes): bfd_elf_add_obj_attr_compat ->
1856 bfd_elf_add_obj_attr_int_string.
1857 (_bfd_elf_parse_attributes): Likewise.
1858 (_bfd_elf_merge_object_attributes): There's now only one
1859 Tag_compatibility, and it's in the array, not the list.
1860 * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 33 to include
1862 (bfd_elf_add_obj_attr_compat): Rename to
1863 bfd_elf_add_obj_attr_int_string.
1864 (bfd_elf_add_proc_attr_compat): Rename to
1865 bfd_elf_add_proc_attr_int_string.
1866 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Explicitly don't handle
1869 2009-01-15 Douglas B Rupp <rupp@gnat.com>
1871 * Makefile.am (BFD32_BACKENDS): Add new object vmsutil.lo
1872 (BFD32_BACKENDS_CFILES): Add new file vmsutil.c
1873 (vmsutil.lo): Add dependency rule.
1874 * Makefile.in: Regenerate.
1875 * config.bfd (ia64*-*-*vms*): Add case.
1876 * configure.in (bfd_elf64_ia64_vms_vec): Add case.
1877 * configure: Regenerate.
1878 * vmsutil.c: New file.
1879 * vmsutil.h: New file.
1880 * elf-bfd.h (struct bfd_elf_special_section): Change type of
1882 * elfxx-ia64.c (elfNN_vms_post_process_headers,
1883 elfNN_vms_section_processing, elfNN_vms_final_write_processing,
1884 elfNN_vms_close_and_cleanup, elfNN_vms_section_from_shdr,
1885 elfNN_vms_object_p): New functions
1886 * targets.c (bfd_elf64_ia64_vms_vec): New target.
1888 2009-01-14 H.J. Lu <hongjiu.lu@intel.com>
1891 * elflink.c (elf_gc_sweep): Exclude the group section if the
1892 first member of the section group is excluded.
1894 2009-01-14 Alan Modra <amodra@bigpond.net.au>
1897 * syms.c (_bfd_stab_section_find_nearest_line): Don't free
1898 saved filename, use bfd_alloc rather than bfd_malloc for it.
1900 2009-01-13 Alan Modra <amodra@bigpond.net.au>
1902 * elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute.
1904 2009-01-13 Alan Modra <amodra@bigpond.net.au>
1906 * elf32-spu.c (remove_cycles): Always set call->max_depth.
1908 2009-01-12 Alan Modra <amodra@bigpond.net.au>
1910 * elf32-spu.c (spu_elf_auto_overlay): Correct vma mask.
1912 2009-01-12 Alan Modra <amodra@bigpond.net.au>
1914 * elf32-spu.c (struct spu_link_hash_table): Add init, line_size_log2,
1916 (struct got_entry): Add br_addr.
1917 (struct call_info): Add priority.
1918 (struct function_info): Add lr_store and sp_adjust.
1919 (spu_elf_setup): Init line_size_log2 and num_lines_log2.
1920 (spu_elf_find_overlays): For soft-icache, mark any section within cache
1921 area as an overlay, and check that no other overlays exist. Look up
1922 icache overlay manager entry sym.
1923 (BRA_STUBS, BRA, BRASL): Define.
1924 (enum _stub_type): Replace ovl_stub with call_ovl_stub and br*_ovl_stub.
1925 (needs_ovl_stub): Adjust for soft-icache. Return priority encoded
1927 (count_stub, build_stub): Support soft-icache.
1928 (build_spuear_stubs, process_stubs): Adjust build_stub call.
1929 (spu_elf_size_stubs): Size soft-icache stubs.
1930 (overlay_index): New function.
1931 (spu_elf_build_stubs): Make static. Support soft-icache.
1932 (spu_elf_check_vma): Don't turn off auto_overlay if soft-icache.
1933 (find_function_stack_adjust): Save lr store and stack adjust insn
1935 (maybe_insert_function): Adjust find_function_stack_adjust call.
1936 (mark_functions_via_relocs): Retrieve priority.
1937 (remove_cycles): Only warn about pruned arcs when stack_analysis.
1938 (sort_calls): Sort by priority first.
1939 (mark_overlay_section): Ignore .ovl.init.
1940 (sum_stack): Only print when stack_analysis.
1941 (print_one_overlay_section): New function, extracted from..
1942 (spu_elf_auto_overlay): ..here. Support soft-icache overlays.
1943 (spu_elf_stack_analysis): Only print when htab->stack_analysis.
1944 (spu_elf_final_link): Call spu_elf_stack_analysis for lrlive
1945 analysis. Call spu_elf_build_stubs.
1946 (spu_elf_relocate_section): For soft-icache encode overlay index
1948 (spu_elf_output_symbol_hook): Support soft-icache.
1949 (spu_elf_modify_program_headers: Likewise.
1951 * elf32-spu.h (struct spu_elf_params): Add lrlive_analysis. Rename
1952 num_regions to num_lines. Add line_size and max_branch.
1953 (enum _ovly_flavour): Add ovly_soft_icache.
1954 (spu_elf_build_stubs): Delete.
1956 2009-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1958 * elflink.c (_bfd_elf_section_already_linked): Handle g++-3.4
1959 relocations in `.gnu.linkonce.r.*' referencing its `.gnu.linkonce.t.*'.
1961 2009-01-07 Hans-Peter Nilsson <hp@axis.com>
1963 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GD>
1964 <case R_CRIS_16_GOT_GD, R_CRIS_32_GOT_GD>: For a symbol defined in
1965 the program, the known offset starts at the negative size of the
1967 <case R_CRIS_32_IE, R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>:
1970 2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
1972 * config.bfd: Add lm32-*-rtems*.
1974 2009-01-03 H.J. Lu <hongjiu.lu@intel.com>
1976 * coff-ppc.c: Add 2009 to Copyright.
1977 * elf32-cris.c: Likewise.
1978 * elflink.c: Likewise.
1980 2009-01-03 Hans-Peter Nilsson <hp@axis.com>
1982 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Rename
1983 gotplt_index to rela_plt_index. Adjust for R_CRIS_DTPMOD entry.
1985 2009-01-02 H.J. Lu <hongjiu.lu@intel.com>
1988 * elflink.c (elf_merge_st_other): New.
1989 (_bfd_elf_merge_symbol): Use it on skipped weak definitions and
1990 hide them if needed.
1991 (elf_link_add_object_symbols): Updated.
1993 2009-01-02 H.J. Lu <hongjiu.lu@intel.com>
1996 * elflink.c (elf_link_add_object_symbols): Update def_dynamic,
1997 ref_dynamic and dynamic_def fields when setting def_regular
2000 2009-01-02 Curtis Mackie <curtmackevo@gmail.com>
2003 * coff-ppc.c (dump_toc): Fix up calls to fprintf without a string
2006 For older changes see ChangeLog-2008
2012 version-control: never