1 2007-02-14 H.J. Lu <hongjiu.lu@intel.com>
4 * elflink.c (_bfd_elf_add_default_symbol): Check warning symbol
5 when adding default symbol.
7 2007-02-13 Alan Modra <amodra@bigpond.net.au>
9 * elf64-ppc.c (create_linkage_sections): Use section ".branch_lt"
10 for branch lookup table.
12 2007-02-12 Alan Modra <amodra@bigpond.net.au>
14 * elf64-ppc.c (create_linkage_sections): Don't create
15 .rela.rodata.brlt for --emit-relocs.
16 (ppc_build_one_stub): Create relocs for brlt --emit-relocs here.
17 (ppc_size_one_stub): Count them. Simplify test of stub type
18 when counting stub relocs. Set SEC_RELOC too.
19 (ppc64_elf_size_stubs): Clear reloc_count and SEC_RELOC.
20 (ppc64_elf_finish_dynamic_sections): Output brlt relocs.
22 2007-02-12 Alan Modra <amodra@bigpond.net.au>
24 * elflink.c (evaluate_complex_relocation_symbols): Ignore relocs
25 with a zero symbol index.
27 2007-02-12 Alan Modra <amodra@bigpond.net.au>
29 * elflink.c (bfd_elf_discard_info): Tidy setting of "eh".
31 2007-02-05 Dave Brolley <brolley@redhat.com>
32 Stan Cox <scox@redhat.com>
35 * elflink.c (elf_link_input_bfd): Always setup finfo->internal_syms.
37 2007-02-05 Dave Brolley <brolley@redhat.com>
38 Richard Sandiford <rsandifo@redhat.com>
39 Stan Cox <scox@redhat.com>
40 Nick Clifton <nickc@redhat.com>
41 DJ Delorie <dj@redhat.com>
42 Frank Ch. Eigler <fche@redhat.com>
43 Ben Elliston <bje@redhat.com>
44 Richard Henderson <rth@redhat.com>
46 * Makefile.am (ALL_MACHINES): Add cpu-mep.lo.
47 (ALL_MACHINES_CFILES): Add CPU_MEP.c.
48 (BFD32_BACKENDS): Add elf32-mep.lo.
49 (BFD32_BACKENDS_CFILES): Add elf32-mep.c.
50 (cpu-mep.lo,elf32-mep.lo): New targets.
51 * archures.c (bfd_arch_mep): New enumerator.
52 (bfd_mach_mep, bfd_mach_mep_h1): New macros.
53 (bfd_mep_arch): New external variable.
54 (bfd_archures_list): Add bfd_mep_arch.
55 * config.bfd: Support mep-*-elf.
56 * configure.in: Support bfd_elf32_mep_vec and bfd_elf32_mep_little_vec.
57 * reloc.c (BFD_RELOC_MEP_*): New relocation numbers.
58 * targets.c (bfd_elf32_mep_vec,bfd_elf32_mep_little_vec): New extern
60 (_bfd_target_vector): Add bfd_elf32_mep_vec and
61 bfd_elf32_mep_little_vec.
62 * mep-relocs.pl: New file.
63 * cpu-mep.c: New file.
64 * elf32-mep.c: New file.
65 * bfd-in2.h: Regenerate.
66 * po/POTFILES.in: Regenerate.
67 * libbfd.h: Regenerate.
68 * Makefile.in: Regenerate.
69 * configure: Regenerate.
71 2007-02-05 Dave Brolley <brolley@redhat.com>
73 * elflink.c (evaluate_complex_relocation_symbols): Check for
74 STT_SRELC for global symbols.
75 (perform_complex_relocations): Renamed to
76 perform_complex_relocation and now examines only one relocation.
77 (elf_link_input_bfd): Don't call perform_complex_relocations.
78 * elf-bfd.h (bfd_elf_perform_complex_relocation_: New prototype.
79 * elf32-mep.c (mep_elf_howto_table): Add R_RELC.
80 (OD,OS,OU): #undefs corrected to N, S and U repectively.
81 (mep_reloc_type_lookup): Handle BFD_RELOC_RELC.
82 (complex_reloc_installation_howto): Removed.
83 (mep_info_to_howto_rela): Remove special case for r_type==0xff.
84 (mep_elf_relocate_section): Call bfd_elf_perform_complex_relocation.
86 2007-02-05 Dave Brolley <brolley@redhat.com>
87 Richard Sandiford <rsandifo@redhat.com>
88 DJ Delorie <dj@redhat.com>
89 Graydon Hoare <graydon@redhat.com>
90 Nick Clifton <nickc@cambridge.redhat.com>
91 Jeff Holcomb <jeffh@redhat.com>
92 Frank Ch. Eigler <fche@redhat.com>
94 * elf-bfd.h (bfd_elf_perform_complex_relocations): New prototype.
95 * elf.c (swap_out_syms): Handle BSF_RELC and BSF_SRELC.
96 * elfcode.h (elf_slurp_symbol_table): Handle STT_RELC and STT_SRELC.
97 * elflink.c (set_symbolValue): New static function.
98 (resolve_symbol): Likewise.
99 (resolve_section): Likewise.
100 (undefined_reference): Likewise.
101 (eval_symbol): Likewise.
102 (evaluate_complex_relocation_symbols): Likewise.
103 (put_value): Likewise.
104 (get_value): Likewise.
105 (decode_complex_addend):
106 (bfd_elf_perform_complex_relocation): New function.
107 (elf_link_input_bfd): Call evaluate_complex_relocation_symbols.
108 * reloc.c (BFD_RELOC_RELC): New relocation number.
109 * syms.c (BSF_RELC,BSF_SRELC): New macros.
111 2007-02-05 Bob Wilson <bob.wilson@acm.org>
113 * elf32-xtensa.c (elf_xtensa_make_sym_local): Delete.
114 (elf_xtensa_hide_symbol, elf_backend_hide_symbol): Delete.
115 (elf_xtensa_fix_refcounts, elf_xtensa_allocate_plt_size)
116 (elf_xtensa_allocate_got_size): Replace these with...
117 (elf_xtensa_allocate_dynrelocs): ...this new function.
118 (elf_xtensa_size_dynamic_sections): Use it.
120 2007-02-05 Bob Wilson <bob.wilson@acm.org>
122 * elf32-xtensa.c (elf_howto_table) <R_XTENSA_GLOB_DAT>
123 <R_XTENSA_JMP_SLOT, R_XTENSA_RELATIVE, R_XTENSA_PLT, R_XTENSA_DIFF32>:
124 Set src_mask to zero.
125 <R_XTENSA_DIFF8, R_XTENSA_DIFF16>: Likewise. Also fix dst_mask.
126 <R_XTENSA_ASM_EXPAND>: Set pcrel_offset to TRUE.
128 2007-02-02 Bob Wilson <bob.wilson@acm.org>
130 * elf32-xtensa.c (xtensa_elf_dynamic_symbol_p): Renamed to...
131 (elf_xtensa_dynamic_symbol_p): ...this.
133 2007-02-02 Bob Wilson <bob.wilson@acm.org>
135 * elf32-xtensa.c (plt_reloc_count): Move into link hash table.
136 (struct elf_xtensa_link_hash_table): New.
137 (elf_xtensa_hash_table): New.
138 (elf_xtensa_link_hash_table_create): New.
139 (elf_xtensa_check_relocs): Update plt_reloc_count references.
140 Update arguments to add_extra_plt_sections.
141 (elf_xtensa_create_dynamic_sections): Record new sections in the hash
142 table. Update for plt_reloc_count and add_extra_plt_sections.
143 (add_extra_plt_sections, elf_xtensa_create_plt_entry): Replace dynobj
144 argument with link info. Update calls to elf_xtensa_get_plt_section
145 and elf_xtensa_get_gotplt_section.
146 (elf_xtensa_allocate_local_got_size, elf_xtensa_size_dynamic_sections)
147 (elf_xtensa_relocate_section, elf_xtensa_finish_dynamic_sections)
148 (elf_xtensa_discard_info_for_section, shrink_dynamic_reloc_sections)
149 (relax_property_section): Get sections from the hash table and update
151 (elf_xtensa_get_plt_section, elf_xtensa_get_gotplt_section): Replace
152 dynobj argument with link info. Get sections for first plt chunk from
154 (bfd_elf32_bfd_link_hash_table_create): Define.
156 2007-02-02 Jakub Jelinek <jakub@redhat.com>
158 * elf-bfd.h (struct elf_obj_tdata): Change symbuf type to void *.
159 * elf.c (struct elf_symbuf_symbol, struct elf_symbuf_head): New types.
160 (struct elf_symbol): Change first member into union.
161 (elf_sort_elf_symbol): Compare pointers to internal syms rather than
162 internal syms. Only compare st_shndx fields.
163 (elf_create_symbuf): New function.
164 (bfd_elf_match_symbols_in_sections): Use it. If symbufs are available
165 for bfds, use a binary search, otherwise don't qsort symbols
166 unnecessarily only to select which symbols are for the particular
169 2007-02-01 Nick Clifton <nickc@redhat.com>
172 * elf.c (_bfd_elf_link_hash_table_init): Initialize all the fields
173 in the elf_link_hash_table structure.
175 2007-02-01 Alan Modra <amodra@bigpond.net.au>
177 * elf-bfd.h (struct elf_backend_data): Add elf_backend_write_core_note.
178 * elfxx-target.h (elf_backend_write_core_note): Define and use.
179 * elf.c (elfcore_write_prpsinfo): Call the above. Add support for
180 32-bit core note on 64-bit target.
181 (elfcore_write_prstatus): Likewise.
182 (elfcore_write_lwpstatus): Make note_name const.
183 (elfcore_write_prfpreg): Likewise.
184 (elfcore_write_pstatus): Add support for 32-bit core note on 64-bit
186 * elf32-ppc.c (ppc_elf_write_core_note): New function.
187 (elf_backend_write_core_note): Define.
188 * elf64-ppc.c (ppc64_elf_write_core_note): New function.
189 (elf_backend_write_core_note): Define.
191 2007-01-31 H.J. Lu <hongjiu.lu@intel.com>
193 * elf32-cris.c (INCLUDED_TARGET_FILE): Removed.
194 (elf32_bed): Defined for elf32-us-cris.
196 * elf64-sh64.c (elf64_bed): Defined for Linux.
197 (INCLUDED_TARGET_FILE): Removed.
199 * elfxx-target.h (elfNN_bed): Always define. Don't check
200 INCLUDED_TARGET_FILE.
202 2007-01-31 DJ Delorie <dj@redhat.com>
204 * elf-m10300.c (mn10300_elf_relocate_section): Clarify the warning
205 message for dangerous relocs, special case the common user error.
207 2007-01-30 H.J. Lu <hongjiu.lu@intel.com>
209 * elf.c (copy_elf_program_header): Start from the first section
210 in a segment and stop when all sections in a segment are
213 2007-01-29 Julian Brown <julian@codesourcery.com>
215 * bfd-in2.h: Regenerate.
216 * bfd-in.h (bfd_arm_vfp11_fix): New enum. Specify how VFP11
217 instruction scanning should be done.
218 (bfd_elf32_arm_init_maps, bfd_elf32_arm_vfp11_erratum_scan)
219 (bfd_elf32_arm_vfp11_fix_veneer_locations): Add prototypes.
220 (bfd_elf32_arm_set_target_relocs): Add vfp11 fix type argument to
222 * elf-bfd.h (elf_backend_write_section): Add struct bfd_link_info
224 * elf32-arm.c (VFP11_ERRATUM_VENEER_SECTION_NAME)
225 (VFP11_ERRATUM_VENEER_ENTRY_NAME): Define macros.
226 (elf32_vfp11_erratum_type): New enum.
227 (elf32_vfp11_erratum_list): New struct. List of veneers or jumps to
229 (_arm_elf_section_data): Add mapsize, erratumcount, erratumlist.
230 (elf32_arm_link_hash_table): Add vfp11_erratum_glue_size,
231 vfp11_fix and num_vfp11_fixes fields.
232 (elf32_arm_link_hash_table_create): Initialise vfp11_fix,
233 vfp11_erratum_glue_size, num_vfp11_fixes fields.
234 (VFP11_ERRATUM_VENEER_SIZE): Define. Size of an (ARM) veneer.
235 (bfd_elf32_arm_allocate_interworking_sections): Initialise erratum
237 (elf32_arm_section_map_add): Add an code/data mapping symbol entry
239 (record_vfp11_erratum_veneer): Create a single veneer, and its
241 (bfd_elf32_arm_add_glue_sections_to_bfd): Add vfp11 erratum glue.
242 (bfd_elf32_arm_init_maps): Initialise mapping symbol table for input
244 (bfd_elf32_arm_set_vfp11_fix): Set the type of erratum workaround
246 (bfd_arm_vfp11_pipe): Define VFP11 instruction pipes.
247 (bfd_arm_vfp11_regno): Recode a register number from a VFP11 insn.
248 (bfd_arm_vfp11_write_mask): Update write mask according to coded
250 (bfd_arm_vfp11_antidependency): New function.
251 (bfd_arm_vfp11_insn_decode): Decode a VFP11 insn.
252 (elf32_arm_compare_mapping): Declare.
253 (bfd_elf32_arm_vfp11_erratum_scan): Scan the sections of an input
254 BFD for potential erratum-triggering insns. Record results.
255 (bfd_elf32_arm_vfp11_fix_veneer_locations): Find out where veneers
256 and branches to veneers have been placed in virtual memory after
258 (bfd_elf32_arm_set_target_relocs): Set vfp11_fix field in global
260 (elf32_arm_output_symbol_hook): Remove.
261 (elf32_arm_write_section): Output veneers, and branches to veneers.
262 Use maps from input sections, not output sections, for code
264 * elf32-ppc.c (ppc_elf_write_section): Add dummy link_info argument.
265 * elf32-score.c (_bfd_score_elf_write_section): Likewise.
266 * elfxx-mips.c (_bfd_mips_elf_write_section): Likewise.
267 * elfxx-mips.h (_bfd_mips_elf_write_section): Likewise.
269 2007-01-27 H.J. Lu <hongjiu.lu@intel.com>
271 * elf64-hppa.c (elf64_bed): Defined for HPUX and Linux.
272 (INCLUDED_TARGET_FILE): Removed.
274 2007-01-27 Mike Frysinger <vapier@gentoo.org>
276 * elf32-hppa.c (elf32_bed): Define for hpux, linux and netbsd.
277 (INCLUDED_TARGET_FILE): Remove.
279 2007-01-25 DJ Delorie <dj@redhat.com>
281 * elf32-m32c.c (m32c_elf_howto_table): Don't complain about
282 R_M32C_16 or R_M32C_24 relocs.
284 2007-01-25 Nick Clifton <nickc@redhat.com>
287 * elf32-avr.c (avr_link_hash_table): Check to make sure that the
288 hash table was created by elf32_avr_link_hash_table_create before
290 (elf32_avr_link_hash_newfunc): New function. Just pass the call
291 through to _bfd_elf_link_hash_newfunc.
292 (elf32_avr_link_hash_table_create): Use
293 elf32_avr_link_hash_newfunc instead of
294 _bfd_elf_link_hash_newfunc.
295 (elf32_avr_relocate_section): Check for the hash table pointer
297 (elf32_avr_relax_section, avr_build_one_stub,
298 elf32_avr_setup_params, get_local_syms, elf32_avr_size_stubs,
299 elf32_avr_build_stubs): Likewise.
301 2007-01-16 H.J. Lu <hongjiu.lu@intel.com>
304 * elf-bfd.h (bfd_elf_link_mark_dynamic_symbol): Add an
305 argument, Elf_Internal_Sym *.
307 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Mark a data
308 symbol dynamic if info->dynamic_data is TRUE.
309 (bfd_elf_record_link_assignment): Updated call to
310 bfd_elf_record_link_assignment.
311 (_bfd_elf_merge_symbol): Likewise. Always call
312 bfd_elf_link_mark_dynamic_symbol.
314 2007-01-12 H.J. Lu <hongjiu.lu@intel.com>
316 * Makefile.am (BFD_LIBS): Removed.
317 * Makefile.in: Regenerated.
319 2007-01-11 H.J. Lu <hongjiu.lu@intel.com>
322 * Makefile.am (OFILES): Add @bfd64_libs@.
323 (libbfd_la_SOURCES): Remove $(BFD64_LIBS_CFILES).
324 * Makefile.in: Regenerated.
326 * configure.in (bfd_libs): Replaced by ...
328 * configure: Regenerated.
330 2007-01-11 Nathan Sidwell <nathan@codesourcery.com>
332 * elf.c (assign_file_positions_for_load_sections): We can
333 require fewer phdrs than expected.
335 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
337 * archures.c (bfd_mach_cpu32_fido): Rename to bfd_mach_fido.
338 * bfd-in2.h: Regenerate.
339 * cpu-m68k.c (arch_info_struct): Use bfd_mach_fido instead of
341 (m68k_arch_features): Use fido_a instead of cpu32.
342 (bfd_m68k_compatible): Reject the combination of Fido and
343 ColdFire. Accept the combination of CPU32 and Fido with a
345 * elf32-m68k.c (elf32_m68k_object_p,
346 elf32_m68k_merge_private_bfd_data,
347 elf32_m68k_print_private_bfd_data): Treat Fido as an
348 architecture by itself.
350 2007-01-08 Kai Tietz <kai.tietz@onevision.com>
352 * config.bfd: Renamed target x86_64-*-mingw64 to x86_64-*-mingw*.
354 2007-01-05 Jakub Jelinek <jakub@redhat.com>
356 * texhex.c (first_phase): Don't fall through into the default
358 (pass_over): Replace abort () calls with return FALSE. Fix
361 2007-01-04 Jie Zhang <jie.zhang@analog.com>
363 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't set
364 SEC_EXCLUDE on zero size .eh_frame.
366 For older changes see ChangeLog-2006
372 version-control: never