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