1 2007-03-01 Joseph Myers <joseph@codesourcery.com>
3 * Makefile.am (bfdver.h): Use "." not " " between version number
5 * Makefile.in: Regenerate.
6 * configure.in (PKGVERSION): Default to "(GNU Binutils) ".
7 * configure: Regenerate.
9 2007-02-28 Nathan Sidwell <nathan@codesourcery.com>
11 * config.bfd (sh-*-uclinux, sh[12]-*-uclinux): New stanza.
13 2007-02-27 Alan Modra <amodra@bigpond.net.au>
15 * elf32-spu.h (struct _ovl_stream): Make "start" and "end" const.
16 * elf32-spu.c (ovl_mgr_pread): Add const to casts.
18 2007-02-23 Carlos O'Donell <carlos@codesourcery.com>
20 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Assume 32-bit
21 DWARF even with 64-bit addresses.
22 (_bfd_dwarf2_find_nearest_line): Likewise.
24 2007-02-23 Nick Clifton <nickc@redhat.com>
27 * elf.c (copy_private_bfd_data): Always rewrite the program
28 headers when a Solaris interpreter segment is involved.
30 2007-02-22 Paul Brook <paul@codesourcery.com>
32 * elflink.c (gc_mark_hook_fn): Remove.
33 (_bfd_elf_gc_mark): Rename gc_mark_hook_fn to elf_gc_mark_hook_fn.
34 (bfd_elf_gc_sections): Ditto. Call gc_mark_extra_sections.
35 * elf-bfd.h (elf_gc_mark_hook_fn): Define.
36 (elf_backend_data): Add gc_mark_extra_sections.
37 * elfxx-target.h (elf_backend_gc_mark_extra_sections): Provide default
39 (elfNN_bed): Add elf_backend_gc_mark_extra_sections.
40 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): New function.
41 (elf_backend_gc_mark_extra_sections): Define.
43 2007-02-21 Nick Clifton <nickc@redhat.com>
45 * elf.c (_bfd_elf_map_sections_to_segments): If the
46 override_segment_assignment callback is defined then call it.
48 2007-02-21 Alan Modra <amodra@bigpond.net.au>
50 * elf32-spu.c (spu_elf_size_stubs): Correct order of warning args.
52 2007-02-19 Thiemo Seufer <ths@mips.com>
54 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): Remove
55 translation marker from untranslatable strings.
57 2007-02-19 Alan Modra <amodra@bigpond.net.au>
59 * elf-bfd.h (struct elf_backend_data): Add default_execstack.
60 * elflink.c (bfd_elf_size_dynamic_sections): Heed default_execstack.
61 * elfxx-target.h (elf_backend_default_execstack): Define to 1.
62 (elfNN_bed): Init new field.
63 * elf64-ppc.c (elf_backend_default_execstack): Define to 0.
65 2007-02-17 Mark Mitchell <mark@codesourcery.com>
66 Nathan Sidwell <nathan@codesourcery.com>
67 Vladimir Prus <vladimir@codesourcery.com
68 Joseph Myers <joseph@codesourcery.com>
70 * configure.in (--with-pkgversion): New option.
71 * configure: Regenerate.
72 * Makefile.am (bfdver.h): Substitute for @bfd_version_package@.
73 * Makefile.in: Regenerate.
74 * version.h (BFD_VERSION_STRING): Define using
75 @bfd_version_package@.
77 2007-02-16 Carlos O'Donell <carlos@codesourcery.com>
79 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data):
80 Print EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT
83 2007-02-15 Alan Modra <amodra@bigpond.net.au>
85 * libbfd-in.h (_bfd_norelocs_get_reloc_upper_bound): Don't define,
87 (_bfd_norelocs_canonicalize_reloc): Likewise.
88 * libbfd.h: Regenerate.
89 * libbfd.c (_bfd_norelocs_get_reloc_upper_bound): New function.
90 (_bfd_norelocs_canonicalize_reloc): Likewise.
91 * binary.c (binary_bfd_reloc_type_lookup): Don't define.
92 (binary_get_reloc_upper_bound, binary_canonicalize_reloc): Likewise.
93 (binary_vec): Use _bfd_norelocs in BFD_JUMP_TABLE_RELOCS.
95 * mach-o-target.c: Similarly.
96 * mach-o.c: Similarly.
99 * ppcboot.c: Similarly.
103 2007-02-14 H.J. Lu <hongjiu.lu@intel.com>
106 * elflink.c (_bfd_elf_add_default_symbol): Check warning symbol
107 when adding default symbol.
109 2007-02-13 Alan Modra <amodra@bigpond.net.au>
111 * elf64-ppc.c (create_linkage_sections): Use section ".branch_lt"
112 for branch lookup table.
114 2007-02-12 Alan Modra <amodra@bigpond.net.au>
116 * elf64-ppc.c (create_linkage_sections): Don't create
117 .rela.rodata.brlt for --emit-relocs.
118 (ppc_build_one_stub): Create relocs for brlt --emit-relocs here.
119 (ppc_size_one_stub): Count them. Simplify test of stub type
120 when counting stub relocs. Set SEC_RELOC too.
121 (ppc64_elf_size_stubs): Clear reloc_count and SEC_RELOC.
122 (ppc64_elf_finish_dynamic_sections): Output brlt relocs.
124 2007-02-12 Alan Modra <amodra@bigpond.net.au>
126 * elflink.c (evaluate_complex_relocation_symbols): Ignore relocs
127 with a zero symbol index.
129 2007-02-12 Alan Modra <amodra@bigpond.net.au>
131 * elflink.c (bfd_elf_discard_info): Tidy setting of "eh".
133 2007-02-05 Dave Brolley <brolley@redhat.com>
134 Stan Cox <scox@redhat.com>
137 * elflink.c (elf_link_input_bfd): Always setup finfo->internal_syms.
139 2007-02-05 Dave Brolley <brolley@redhat.com>
140 Richard Sandiford <rsandifo@redhat.com>
141 Stan Cox <scox@redhat.com>
142 Nick Clifton <nickc@redhat.com>
143 DJ Delorie <dj@redhat.com>
144 Frank Ch. Eigler <fche@redhat.com>
145 Ben Elliston <bje@redhat.com>
146 Richard Henderson <rth@redhat.com>
148 * Makefile.am (ALL_MACHINES): Add cpu-mep.lo.
149 (ALL_MACHINES_CFILES): Add CPU_MEP.c.
150 (BFD32_BACKENDS): Add elf32-mep.lo.
151 (BFD32_BACKENDS_CFILES): Add elf32-mep.c.
152 (cpu-mep.lo,elf32-mep.lo): New targets.
153 * archures.c (bfd_arch_mep): New enumerator.
154 (bfd_mach_mep, bfd_mach_mep_h1): New macros.
155 (bfd_mep_arch): New external variable.
156 (bfd_archures_list): Add bfd_mep_arch.
157 * config.bfd: Support mep-*-elf.
158 * configure.in: Support bfd_elf32_mep_vec and bfd_elf32_mep_little_vec.
159 * reloc.c (BFD_RELOC_MEP_*): New relocation numbers.
160 * targets.c (bfd_elf32_mep_vec,bfd_elf32_mep_little_vec): New extern
162 (_bfd_target_vector): Add bfd_elf32_mep_vec and
163 bfd_elf32_mep_little_vec.
164 * mep-relocs.pl: New file.
165 * cpu-mep.c: New file.
166 * elf32-mep.c: New file.
167 * bfd-in2.h: Regenerate.
168 * po/POTFILES.in: Regenerate.
169 * libbfd.h: Regenerate.
170 * Makefile.in: Regenerate.
171 * configure: Regenerate.
173 2007-02-05 Dave Brolley <brolley@redhat.com>
175 * elflink.c (evaluate_complex_relocation_symbols): Check for
176 STT_SRELC for global symbols.
177 (perform_complex_relocations): Renamed to
178 perform_complex_relocation and now examines only one relocation.
179 (elf_link_input_bfd): Don't call perform_complex_relocations.
180 * elf-bfd.h (bfd_elf_perform_complex_relocation_: New prototype.
181 * elf32-mep.c (mep_elf_howto_table): Add R_RELC.
182 (OD,OS,OU): #undefs corrected to N, S and U repectively.
183 (mep_reloc_type_lookup): Handle BFD_RELOC_RELC.
184 (complex_reloc_installation_howto): Removed.
185 (mep_info_to_howto_rela): Remove special case for r_type==0xff.
186 (mep_elf_relocate_section): Call bfd_elf_perform_complex_relocation.
188 2007-02-05 Dave Brolley <brolley@redhat.com>
189 Richard Sandiford <rsandifo@redhat.com>
190 DJ Delorie <dj@redhat.com>
191 Graydon Hoare <graydon@redhat.com>
192 Nick Clifton <nickc@cambridge.redhat.com>
193 Jeff Holcomb <jeffh@redhat.com>
194 Frank Ch. Eigler <fche@redhat.com>
196 * elf-bfd.h (bfd_elf_perform_complex_relocations): New prototype.
197 * elf.c (swap_out_syms): Handle BSF_RELC and BSF_SRELC.
198 * elfcode.h (elf_slurp_symbol_table): Handle STT_RELC and STT_SRELC.
199 * elflink.c (set_symbolValue): New static function.
200 (resolve_symbol): Likewise.
201 (resolve_section): Likewise.
202 (undefined_reference): Likewise.
203 (eval_symbol): Likewise.
204 (evaluate_complex_relocation_symbols): Likewise.
205 (put_value): Likewise.
206 (get_value): Likewise.
207 (decode_complex_addend):
208 (bfd_elf_perform_complex_relocation): New function.
209 (elf_link_input_bfd): Call evaluate_complex_relocation_symbols.
210 * reloc.c (BFD_RELOC_RELC): New relocation number.
211 * syms.c (BSF_RELC,BSF_SRELC): New macros.
213 2007-02-05 Bob Wilson <bob.wilson@acm.org>
215 * elf32-xtensa.c (elf_xtensa_make_sym_local): Delete.
216 (elf_xtensa_hide_symbol, elf_backend_hide_symbol): Delete.
217 (elf_xtensa_fix_refcounts, elf_xtensa_allocate_plt_size)
218 (elf_xtensa_allocate_got_size): Replace these with...
219 (elf_xtensa_allocate_dynrelocs): ...this new function.
220 (elf_xtensa_size_dynamic_sections): Use it.
222 2007-02-05 Bob Wilson <bob.wilson@acm.org>
224 * elf32-xtensa.c (elf_howto_table) <R_XTENSA_GLOB_DAT>
225 <R_XTENSA_JMP_SLOT, R_XTENSA_RELATIVE, R_XTENSA_PLT, R_XTENSA_DIFF32>:
226 Set src_mask to zero.
227 <R_XTENSA_DIFF8, R_XTENSA_DIFF16>: Likewise. Also fix dst_mask.
228 <R_XTENSA_ASM_EXPAND>: Set pcrel_offset to TRUE.
230 2007-02-02 Bob Wilson <bob.wilson@acm.org>
232 * elf32-xtensa.c (xtensa_elf_dynamic_symbol_p): Renamed to...
233 (elf_xtensa_dynamic_symbol_p): ...this.
235 2007-02-02 Bob Wilson <bob.wilson@acm.org>
237 * elf32-xtensa.c (plt_reloc_count): Move into link hash table.
238 (struct elf_xtensa_link_hash_table): New.
239 (elf_xtensa_hash_table): New.
240 (elf_xtensa_link_hash_table_create): New.
241 (elf_xtensa_check_relocs): Update plt_reloc_count references.
242 Update arguments to add_extra_plt_sections.
243 (elf_xtensa_create_dynamic_sections): Record new sections in the hash
244 table. Update for plt_reloc_count and add_extra_plt_sections.
245 (add_extra_plt_sections, elf_xtensa_create_plt_entry): Replace dynobj
246 argument with link info. Update calls to elf_xtensa_get_plt_section
247 and elf_xtensa_get_gotplt_section.
248 (elf_xtensa_allocate_local_got_size, elf_xtensa_size_dynamic_sections)
249 (elf_xtensa_relocate_section, elf_xtensa_finish_dynamic_sections)
250 (elf_xtensa_discard_info_for_section, shrink_dynamic_reloc_sections)
251 (relax_property_section): Get sections from the hash table and update
253 (elf_xtensa_get_plt_section, elf_xtensa_get_gotplt_section): Replace
254 dynobj argument with link info. Get sections for first plt chunk from
256 (bfd_elf32_bfd_link_hash_table_create): Define.
258 2007-02-02 Jakub Jelinek <jakub@redhat.com>
260 * elf-bfd.h (struct elf_obj_tdata): Change symbuf type to void *.
261 * elf.c (struct elf_symbuf_symbol, struct elf_symbuf_head): New types.
262 (struct elf_symbol): Change first member into union.
263 (elf_sort_elf_symbol): Compare pointers to internal syms rather than
264 internal syms. Only compare st_shndx fields.
265 (elf_create_symbuf): New function.
266 (bfd_elf_match_symbols_in_sections): Use it. If symbufs are available
267 for bfds, use a binary search, otherwise don't qsort symbols
268 unnecessarily only to select which symbols are for the particular
271 2007-02-01 Nick Clifton <nickc@redhat.com>
274 * elf.c (_bfd_elf_link_hash_table_init): Initialize all the fields
275 in the elf_link_hash_table structure.
277 2007-02-01 Alan Modra <amodra@bigpond.net.au>
279 * elf-bfd.h (struct elf_backend_data): Add elf_backend_write_core_note.
280 * elfxx-target.h (elf_backend_write_core_note): Define and use.
281 * elf.c (elfcore_write_prpsinfo): Call the above. Add support for
282 32-bit core note on 64-bit target.
283 (elfcore_write_prstatus): Likewise.
284 (elfcore_write_lwpstatus): Make note_name const.
285 (elfcore_write_prfpreg): Likewise.
286 (elfcore_write_pstatus): Add support for 32-bit core note on 64-bit
288 * elf32-ppc.c (ppc_elf_write_core_note): New function.
289 (elf_backend_write_core_note): Define.
290 * elf64-ppc.c (ppc64_elf_write_core_note): New function.
291 (elf_backend_write_core_note): Define.
293 2007-01-31 H.J. Lu <hongjiu.lu@intel.com>
295 * elf32-cris.c (INCLUDED_TARGET_FILE): Removed.
296 (elf32_bed): Defined for elf32-us-cris.
298 * elf64-sh64.c (elf64_bed): Defined for Linux.
299 (INCLUDED_TARGET_FILE): Removed.
301 * elfxx-target.h (elfNN_bed): Always define. Don't check
302 INCLUDED_TARGET_FILE.
304 2007-01-31 DJ Delorie <dj@redhat.com>
306 * elf-m10300.c (mn10300_elf_relocate_section): Clarify the warning
307 message for dangerous relocs, special case the common user error.
309 2007-01-30 H.J. Lu <hongjiu.lu@intel.com>
311 * elf.c (copy_elf_program_header): Start from the first section
312 in a segment and stop when all sections in a segment are
315 2007-01-29 Julian Brown <julian@codesourcery.com>
317 * bfd-in2.h: Regenerate.
318 * bfd-in.h (bfd_arm_vfp11_fix): New enum. Specify how VFP11
319 instruction scanning should be done.
320 (bfd_elf32_arm_init_maps, bfd_elf32_arm_vfp11_erratum_scan)
321 (bfd_elf32_arm_vfp11_fix_veneer_locations): Add prototypes.
322 (bfd_elf32_arm_set_target_relocs): Add vfp11 fix type argument to
324 * elf-bfd.h (elf_backend_write_section): Add struct bfd_link_info
326 * elf32-arm.c (VFP11_ERRATUM_VENEER_SECTION_NAME)
327 (VFP11_ERRATUM_VENEER_ENTRY_NAME): Define macros.
328 (elf32_vfp11_erratum_type): New enum.
329 (elf32_vfp11_erratum_list): New struct. List of veneers or jumps to
331 (_arm_elf_section_data): Add mapsize, erratumcount, erratumlist.
332 (elf32_arm_link_hash_table): Add vfp11_erratum_glue_size,
333 vfp11_fix and num_vfp11_fixes fields.
334 (elf32_arm_link_hash_table_create): Initialise vfp11_fix,
335 vfp11_erratum_glue_size, num_vfp11_fixes fields.
336 (VFP11_ERRATUM_VENEER_SIZE): Define. Size of an (ARM) veneer.
337 (bfd_elf32_arm_allocate_interworking_sections): Initialise erratum
339 (elf32_arm_section_map_add): Add an code/data mapping symbol entry
341 (record_vfp11_erratum_veneer): Create a single veneer, and its
343 (bfd_elf32_arm_add_glue_sections_to_bfd): Add vfp11 erratum glue.
344 (bfd_elf32_arm_init_maps): Initialise mapping symbol table for input
346 (bfd_elf32_arm_set_vfp11_fix): Set the type of erratum workaround
348 (bfd_arm_vfp11_pipe): Define VFP11 instruction pipes.
349 (bfd_arm_vfp11_regno): Recode a register number from a VFP11 insn.
350 (bfd_arm_vfp11_write_mask): Update write mask according to coded
352 (bfd_arm_vfp11_antidependency): New function.
353 (bfd_arm_vfp11_insn_decode): Decode a VFP11 insn.
354 (elf32_arm_compare_mapping): Declare.
355 (bfd_elf32_arm_vfp11_erratum_scan): Scan the sections of an input
356 BFD for potential erratum-triggering insns. Record results.
357 (bfd_elf32_arm_vfp11_fix_veneer_locations): Find out where veneers
358 and branches to veneers have been placed in virtual memory after
360 (bfd_elf32_arm_set_target_relocs): Set vfp11_fix field in global
362 (elf32_arm_output_symbol_hook): Remove.
363 (elf32_arm_write_section): Output veneers, and branches to veneers.
364 Use maps from input sections, not output sections, for code
366 * elf32-ppc.c (ppc_elf_write_section): Add dummy link_info argument.
367 * elf32-score.c (_bfd_score_elf_write_section): Likewise.
368 * elfxx-mips.c (_bfd_mips_elf_write_section): Likewise.
369 * elfxx-mips.h (_bfd_mips_elf_write_section): Likewise.
371 2007-01-27 H.J. Lu <hongjiu.lu@intel.com>
373 * elf64-hppa.c (elf64_bed): Defined for HPUX and Linux.
374 (INCLUDED_TARGET_FILE): Removed.
376 2007-01-27 Mike Frysinger <vapier@gentoo.org>
378 * elf32-hppa.c (elf32_bed): Define for hpux, linux and netbsd.
379 (INCLUDED_TARGET_FILE): Remove.
381 2007-01-25 DJ Delorie <dj@redhat.com>
383 * elf32-m32c.c (m32c_elf_howto_table): Don't complain about
384 R_M32C_16 or R_M32C_24 relocs.
386 2007-01-25 Nick Clifton <nickc@redhat.com>
389 * elf32-avr.c (avr_link_hash_table): Check to make sure that the
390 hash table was created by elf32_avr_link_hash_table_create before
392 (elf32_avr_link_hash_newfunc): New function. Just pass the call
393 through to _bfd_elf_link_hash_newfunc.
394 (elf32_avr_link_hash_table_create): Use
395 elf32_avr_link_hash_newfunc instead of
396 _bfd_elf_link_hash_newfunc.
397 (elf32_avr_relocate_section): Check for the hash table pointer
399 (elf32_avr_relax_section, avr_build_one_stub,
400 elf32_avr_setup_params, get_local_syms, elf32_avr_size_stubs,
401 elf32_avr_build_stubs): Likewise.
403 2007-01-16 H.J. Lu <hongjiu.lu@intel.com>
406 * elf-bfd.h (bfd_elf_link_mark_dynamic_symbol): Add an
407 argument, Elf_Internal_Sym *.
409 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Mark a data
410 symbol dynamic if info->dynamic_data is TRUE.
411 (bfd_elf_record_link_assignment): Updated call to
412 bfd_elf_record_link_assignment.
413 (_bfd_elf_merge_symbol): Likewise. Always call
414 bfd_elf_link_mark_dynamic_symbol.
416 2007-01-12 H.J. Lu <hongjiu.lu@intel.com>
418 * Makefile.am (BFD_LIBS): Removed.
419 * Makefile.in: Regenerated.
421 2007-01-11 H.J. Lu <hongjiu.lu@intel.com>
424 * Makefile.am (OFILES): Add @bfd64_libs@.
425 (libbfd_la_SOURCES): Remove $(BFD64_LIBS_CFILES).
426 * Makefile.in: Regenerated.
428 * configure.in (bfd_libs): Replaced by ...
430 * configure: Regenerated.
432 2007-01-11 Nathan Sidwell <nathan@codesourcery.com>
434 * elf.c (assign_file_positions_for_load_sections): We can
435 require fewer phdrs than expected.
437 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
439 * archures.c (bfd_mach_cpu32_fido): Rename to bfd_mach_fido.
440 * bfd-in2.h: Regenerate.
441 * cpu-m68k.c (arch_info_struct): Use bfd_mach_fido instead of
443 (m68k_arch_features): Use fido_a instead of cpu32.
444 (bfd_m68k_compatible): Reject the combination of Fido and
445 ColdFire. Accept the combination of CPU32 and Fido with a
447 * elf32-m68k.c (elf32_m68k_object_p,
448 elf32_m68k_merge_private_bfd_data,
449 elf32_m68k_print_private_bfd_data): Treat Fido as an
450 architecture by itself.
452 2007-01-08 Kai Tietz <kai.tietz@onevision.com>
454 * config.bfd: Renamed target x86_64-*-mingw64 to x86_64-*-mingw*.
456 2007-01-05 Jakub Jelinek <jakub@redhat.com>
458 * texhex.c (first_phase): Don't fall through into the default
460 (pass_over): Replace abort () calls with return FALSE. Fix
463 2007-01-04 Jie Zhang <jie.zhang@analog.com>
465 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't set
466 SEC_EXCLUDE on zero size .eh_frame.
468 For older changes see ChangeLog-2006
474 version-control: never