1 2007-02-05 Dave Brolley <brolley@redhat.com>
3 * elflink.h: Add support for Toshiba MeP.
5 * Makefile.am: Likewise.
6 * config.bfd: Likewise.
7 * configure.in: Likewise.
8 * archures.c: Likewise.
11 * mep-relocs.pl: New file.
12 * cpu-mep.c: New file.
13 * elf32-mep.c: New file.
14 * bfd-in2.h: Regenerate.
15 * po/POTFILES.in: Likewise.
16 * libbfd.h: Regenerate.
17 * Makefile.in: Regenerate.
18 * configure: Regenerate.
20 2007-02-05 Dave Brolley <brolley@redhat.com>
22 * elflink.c (evaluate_complex_relocation_symbols): Check for
23 STT_SRELC for global symbols.
24 (perform_complex_relocations): Renamed to
25 perform_complex_relocation and now examines only one relocation.
26 (elf_link_input_bfd): Don't call perform_complex_relocations.
27 * elf-bfd.h (bfd_elf_perform_complex_relocation_: New prototype.:
28 * elf32-mep.c (mep_elf_howto_table): Add R_RELC.
29 (OD,OS,OU): #undefs corrected to N, S and U repectively.
30 (mep_reloc_type_lookup): Handle BFD_RELOC_RELC.
31 (complex_reloc_installation_howto): Removed.
32 (mep_info_to_howto_rela): Remove special case for r_type==0xff.
33 (mep_elf_relocate_section): Call bfd_elf_perform_complex_relocation.
35 2007-02-05 Dave Brolley <brolley@redhat.com>
37 * Contribute the following changes:
38 2004-07-23 Richard Sandiford <rsandifo@redhat.com>
40 * elflink.c (perform_complex_relocation): Detect relocations against
43 2002-04-02 DJ Delorie <dj@redhat.com>
45 * elflink.h (resolve_symbol): Handle weak symbols.
47 2002-03-07 Graydon Hoare <graydon@redhat.com>
49 * elflink.h (perform_complex_relocations): Minor debug message
52 2002-01-23 Graydon Hoare <graydon@redhat.com>
54 * bfd-in2.h: Add signed RELC (SRELC) symbols.
55 * elf.c (swap_out_syms): Likewise.
56 * elfcode.h (elf_slurp_symbol_table): Likewise.
57 (elf_symbol_flags): Likewise.
59 * elflink.h (eval_symbol): Introduce signed RELC evaluation.
60 (evaluate_complex_relocation_symbols): Likewise.
61 (perform_complex_relocations): Remove sign-extension logic,
62 which was broken anyways.
64 2002-01-15 Graydon Hoare <graydon@redhat.com>
66 * elflink.h (decode_complex_addend): Add oplen, signed_p, trunc_p
68 (perform_complex_relocations): Call decode with new args,
69 Sign extend leftmost signed fields, delegate overflow check to
70 bfd_check_overflow in reloc.c, enhance overflow error messages.
72 2002-01-08 Graydon Hoare <graydon@redhat.com>
74 * elflink.h (resolve_symbol): Fix symbol -> section relationship.
75 (resolve_symbol): Remove unused parameter.
76 (eval_symbol): Remove unused arg from resolve_symbol call.
78 2002-01-01 Graydon Hoare <graydon@redhat.com>
80 * elflink.h (perform_complex_relocations): Add overflow
81 checking for RELC fragments.
83 2001-12-15 Nick Clifton <nickc@cambridge.redhat.com>
85 * elflink.h (evaluate_complex_relocation_symbols): Formatting
86 tidy ups. Process all symbols, even if an error is
89 2001-12-10 Graydon Hoare <graydon@redhat.com>
91 * elflink.h (evaluate_complex_relocation_symbols): Resolve
92 global RELC symbols using separate logic from local symbols.
94 2001-12-10 Nick Clifton <nickc@cambridge.redhat.com>
96 Various formatting tidy ups and compile time warning removals,
99 * elflink.h (eval_symbol): Set bfd_error for failure returns.
100 (evaluate_complex_relocation_symbols): Only evaluate local
103 2001-11-24 Graydon Hoare <graydon@redhat.com>
105 * elflink.h.c (resolve_symbol): Skip non-local syms in
106 local lookup loop; get section offset from section
107 symbol occurs in (rather than reloc section); handle
110 2001-11-24 Graydon Hoare <graydon@redhat.com>
112 * elflink.h.c (resolve_symbol): Use
113 bfd_elf_string_from_elf_section to look up local symbols in
115 (eval_symbol): Add input_bfd parameter for resolve_symbol's
117 (evaluate_complex_relocation_symbols): Pass parameter.
118 (resolve_section) Fix silly typo.
120 2001-10-16 Jeff Holcomb <jeffh@redhat.com>
122 * elflink.h (eval_symbol): Buffer size needs to be an integer for
125 2001-11-15 graydon hoare <graydon@redhat.com>
127 * elf32-mep.c (mep_info_to_howto_rela): Add complex reloc
129 * elflink.h (resolve_section): Add support for pseudo-sections
131 (evaluate_complex_relocation_symbols): Permit evaluating RELC
132 symbols on non-RELC relocs. They are distinct issues.
134 2001-10-15 graydon hoare <graydon@redhat.com>
136 * reloc.c (bfd_reloc_code_type): Define BFD_RELOC_RELC,
137 in the _correct_ place.
139 2001-10-11 graydon hoare <graydon@redhat.com>
141 * elflink.h (eval_symbol): Fix strtol calls with undefined
144 2001-10-03 graydon hoare <graydon@redhat.com>
146 * elflink.h (set_symbol_value): New function for relc.
147 (resolve_symbol): Likewise.
148 (resolve_section): Likewise.
149 (undefined_reference): Likewise.
150 (eval_symbol): Likewise.
151 (evaluate_complex_relocation_symbols): Likewise.
152 (put_value): Likewise.
153 (get_value): Likewise.
154 (decode_complex_addend): Likewise.
155 (perform_complex_relocations): Likewise.
156 (elf_link_input_bfd): Insert hook into
157 evaluate_complex_relocation_symbols.
158 (elf_link_input_bfd): Insert hook into
159 perform_complex_relocations.
161 * bfd-in2.h: Define BFD_RELOC_RELC, BSF_RELC.
163 * elf.c (swap_out_syms): Add BSF_RELC / STT_RELC support.
165 * elfcode.h (elf_slurp_symbol_table): Likewise.
166 (elf_symbol_flags): Likewise.
168 * libbfd.h: Add "BFD_RELOC_RELC" to bfd_reloc_code_real_names
171 2001-06-20 Frank Ch. Eigler <fche@redhat.com>
173 * syms.c (BSF_RELC): New symbol flag.
174 * elf.c (swap_out_syms): Map BSF_RELC -> STT_RELC.
175 * elfcode.h (elf_slurp_symbol_table): Map STT_RELC -> BSF_RELC.
176 (elf_symbol_flags): Display BSF_RELC as "relc".
177 * bfd-in2.h: Regenerated.
179 2007-02-05 Bob Wilson <bob.wilson@acm.org>
181 * elf32-xtensa.c (elf_xtensa_make_sym_local): Delete.
182 (elf_xtensa_hide_symbol, elf_backend_hide_symbol): Delete.
183 (elf_xtensa_fix_refcounts, elf_xtensa_allocate_plt_size)
184 (elf_xtensa_allocate_got_size): Replace these with...
185 (elf_xtensa_allocate_dynrelocs): ...this new function.
186 (elf_xtensa_size_dynamic_sections): Use it.
188 2007-02-05 Bob Wilson <bob.wilson@acm.org>
190 * elf32-xtensa.c (elf_howto_table) <R_XTENSA_GLOB_DAT>
191 <R_XTENSA_JMP_SLOT, R_XTENSA_RELATIVE, R_XTENSA_PLT, R_XTENSA_DIFF32>:
192 Set src_mask to zero.
193 <R_XTENSA_DIFF8, R_XTENSA_DIFF16>: Likewise. Also fix dst_mask.
194 <R_XTENSA_ASM_EXPAND>: Set pcrel_offset to TRUE.
196 2007-02-02 Bob Wilson <bob.wilson@acm.org>
198 * elf32-xtensa.c (xtensa_elf_dynamic_symbol_p): Renamed to...
199 (elf_xtensa_dynamic_symbol_p): ...this.
201 2007-02-02 Bob Wilson <bob.wilson@acm.org>
203 * elf32-xtensa.c (plt_reloc_count): Move into link hash table.
204 (struct elf_xtensa_link_hash_table): New.
205 (elf_xtensa_hash_table): New.
206 (elf_xtensa_link_hash_table_create): New.
207 (elf_xtensa_check_relocs): Update plt_reloc_count references.
208 Update arguments to add_extra_plt_sections.
209 (elf_xtensa_create_dynamic_sections): Record new sections in the hash
210 table. Update for plt_reloc_count and add_extra_plt_sections.
211 (add_extra_plt_sections, elf_xtensa_create_plt_entry): Replace dynobj
212 argument with link info. Update calls to elf_xtensa_get_plt_section
213 and elf_xtensa_get_gotplt_section.
214 (elf_xtensa_allocate_local_got_size, elf_xtensa_size_dynamic_sections)
215 (elf_xtensa_relocate_section, elf_xtensa_finish_dynamic_sections)
216 (elf_xtensa_discard_info_for_section, shrink_dynamic_reloc_sections)
217 (relax_property_section): Get sections from the hash table and update
219 (elf_xtensa_get_plt_section, elf_xtensa_get_gotplt_section): Replace
220 dynobj argument with link info. Get sections for first plt chunk from
222 (bfd_elf32_bfd_link_hash_table_create): Define.
224 2007-02-02 Jakub Jelinek <jakub@redhat.com>
226 * elf-bfd.h (struct elf_obj_tdata): Change symbuf type to void *.
227 * elf.c (struct elf_symbuf_symbol, struct elf_symbuf_head): New types.
228 (struct elf_symbol): Change first member into union.
229 (elf_sort_elf_symbol): Compare pointers to internal syms rather than
230 internal syms. Only compare st_shndx fields.
231 (elf_create_symbuf): New function.
232 (bfd_elf_match_symbols_in_sections): Use it. If symbufs are available
233 for bfds, use a binary search, otherwise don't qsort symbols
234 unnecessarily only to select which symbols are for the particular
237 2007-02-01 Nick Clifton <nickc@redhat.com>
240 * elf.c (_bfd_elf_link_hash_table_init): Initialize all the fields
241 in the elf_link_hash_table structure.
243 2007-02-01 Alan Modra <amodra@bigpond.net.au>
245 * elf-bfd.h (struct elf_backend_data): Add elf_backend_write_core_note.
246 * elfxx-target.h (elf_backend_write_core_note): Define and use.
247 * elf.c (elfcore_write_prpsinfo): Call the above. Add support for
248 32-bit core note on 64-bit target.
249 (elfcore_write_prstatus): Likewise.
250 (elfcore_write_lwpstatus): Make note_name const.
251 (elfcore_write_prfpreg): Likewise.
252 (elfcore_write_pstatus): Add support for 32-bit core note on 64-bit
254 * elf32-ppc.c (ppc_elf_write_core_note): New function.
255 (elf_backend_write_core_note): Define.
256 * elf64-ppc.c (ppc64_elf_write_core_note): New function.
257 (elf_backend_write_core_note): Define.
259 2007-01-31 H.J. Lu <hongjiu.lu@intel.com>
261 * elf32-cris.c (INCLUDED_TARGET_FILE): Removed.
262 (elf32_bed): Defined for elf32-us-cris.
264 * elf64-sh64.c (elf64_bed): Defined for Linux.
265 (INCLUDED_TARGET_FILE): Removed.
267 * elfxx-target.h (elfNN_bed): Always define. Don't check
268 INCLUDED_TARGET_FILE.
270 2007-01-31 DJ Delorie <dj@redhat.com>
272 * elf-m10300.c (mn10300_elf_relocate_section): Clarify the warning
273 message for dangerous relocs, special case the common user error.
275 2007-01-30 H.J. Lu <hongjiu.lu@intel.com>
277 * elf.c (copy_elf_program_header): Start from the first section
278 in a segment and stop when all sections in a segment are
281 2007-01-29 Julian Brown <julian@codesourcery.com>
283 * bfd-in2.h: Regenerate.
284 * bfd-in.h (bfd_arm_vfp11_fix): New enum. Specify how VFP11
285 instruction scanning should be done.
286 (bfd_elf32_arm_init_maps, bfd_elf32_arm_vfp11_erratum_scan)
287 (bfd_elf32_arm_vfp11_fix_veneer_locations): Add prototypes.
288 (bfd_elf32_arm_set_target_relocs): Add vfp11 fix type argument to
290 * elf-bfd.h (elf_backend_write_section): Add struct bfd_link_info
292 * elf32-arm.c (VFP11_ERRATUM_VENEER_SECTION_NAME)
293 (VFP11_ERRATUM_VENEER_ENTRY_NAME): Define macros.
294 (elf32_vfp11_erratum_type): New enum.
295 (elf32_vfp11_erratum_list): New struct. List of veneers or jumps to
297 (_arm_elf_section_data): Add mapsize, erratumcount, erratumlist.
298 (elf32_arm_link_hash_table): Add vfp11_erratum_glue_size,
299 vfp11_fix and num_vfp11_fixes fields.
300 (elf32_arm_link_hash_table_create): Initialise vfp11_fix,
301 vfp11_erratum_glue_size, num_vfp11_fixes fields.
302 (VFP11_ERRATUM_VENEER_SIZE): Define. Size of an (ARM) veneer.
303 (bfd_elf32_arm_allocate_interworking_sections): Initialise erratum
305 (elf32_arm_section_map_add): Add an code/data mapping symbol entry
307 (record_vfp11_erratum_veneer): Create a single veneer, and its
309 (bfd_elf32_arm_add_glue_sections_to_bfd): Add vfp11 erratum glue.
310 (bfd_elf32_arm_init_maps): Initialise mapping symbol table for input
312 (bfd_elf32_arm_set_vfp11_fix): Set the type of erratum workaround
314 (bfd_arm_vfp11_pipe): Define VFP11 instruction pipes.
315 (bfd_arm_vfp11_regno): Recode a register number from a VFP11 insn.
316 (bfd_arm_vfp11_write_mask): Update write mask according to coded
318 (bfd_arm_vfp11_antidependency): New function.
319 (bfd_arm_vfp11_insn_decode): Decode a VFP11 insn.
320 (elf32_arm_compare_mapping): Declare.
321 (bfd_elf32_arm_vfp11_erratum_scan): Scan the sections of an input
322 BFD for potential erratum-triggering insns. Record results.
323 (bfd_elf32_arm_vfp11_fix_veneer_locations): Find out where veneers
324 and branches to veneers have been placed in virtual memory after
326 (bfd_elf32_arm_set_target_relocs): Set vfp11_fix field in global
328 (elf32_arm_output_symbol_hook): Remove.
329 (elf32_arm_write_section): Output veneers, and branches to veneers.
330 Use maps from input sections, not output sections, for code
332 * elf32-ppc.c (ppc_elf_write_section): Add dummy link_info argument.
333 * elf32-score.c (_bfd_score_elf_write_section): Likewise.
334 * elfxx-mips.c (_bfd_mips_elf_write_section): Likewise.
335 * elfxx-mips.h (_bfd_mips_elf_write_section): Likewise.
337 2007-01-27 H.J. Lu <hongjiu.lu@intel.com>
339 * elf64-hppa.c (elf64_bed): Defined for HPUX and Linux.
340 (INCLUDED_TARGET_FILE): Removed.
342 2007-01-27 Mike Frysinger <vapier@gentoo.org>
344 * elf32-hppa.c (elf32_bed): Define for hpux, linux and netbsd.
345 (INCLUDED_TARGET_FILE): Remove.
347 2007-01-25 DJ Delorie <dj@redhat.com>
349 * elf32-m32c.c (m32c_elf_howto_table): Don't complain about
350 R_M32C_16 or R_M32C_24 relocs.
352 2007-01-25 Nick Clifton <nickc@redhat.com>
355 * elf32-avr.c (avr_link_hash_table): Check to make sure that the
356 hash table was created by elf32_avr_link_hash_table_create before
358 (elf32_avr_link_hash_newfunc): New function. Just pass the call
359 through to _bfd_elf_link_hash_newfunc.
360 (elf32_avr_link_hash_table_create): Use
361 elf32_avr_link_hash_newfunc instead of
362 _bfd_elf_link_hash_newfunc.
363 (elf32_avr_relocate_section): Check for the hash table pointer
365 (elf32_avr_relax_section, avr_build_one_stub,
366 elf32_avr_setup_params, get_local_syms, elf32_avr_size_stubs,
367 elf32_avr_build_stubs): Likewise.
369 2007-01-16 H.J. Lu <hongjiu.lu@intel.com>
372 * elf-bfd.h (bfd_elf_link_mark_dynamic_symbol): Add an
373 argument, Elf_Internal_Sym *.
375 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Mark a data
376 symbol dynamic if info->dynamic_data is TRUE.
377 (bfd_elf_record_link_assignment): Updated call to
378 bfd_elf_record_link_assignment.
379 (_bfd_elf_merge_symbol): Likewise. Always call
380 bfd_elf_link_mark_dynamic_symbol.
382 2007-01-12 H.J. Lu <hongjiu.lu@intel.com>
384 * Makefile.am (BFD_LIBS): Removed.
385 * Makefile.in: Regenerated.
387 2007-01-11 H.J. Lu <hongjiu.lu@intel.com>
390 * Makefile.am (OFILES): Add @bfd64_libs@.
391 (libbfd_la_SOURCES): Remove $(BFD64_LIBS_CFILES).
392 * Makefile.in: Regenerated.
394 * configure.in (bfd_libs): Replaced by ...
396 * configure: Regenerated.
398 2007-01-11 Nathan Sidwell <nathan@codesourcery.com>
400 * elf.c (assign_file_positions_for_load_sections): We can
401 require fewer phdrs than expected.
403 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
405 * archures.c (bfd_mach_cpu32_fido): Rename to bfd_mach_fido.
406 * bfd-in2.h: Regenerate.
407 * cpu-m68k.c (arch_info_struct): Use bfd_mach_fido instead of
409 (m68k_arch_features): Use fido_a instead of cpu32.
410 (bfd_m68k_compatible): Reject the combination of Fido and
411 ColdFire. Accept the combination of CPU32 and Fido with a
413 * elf32-m68k.c (elf32_m68k_object_p,
414 elf32_m68k_merge_private_bfd_data,
415 elf32_m68k_print_private_bfd_data): Treat Fido as an
416 architecture by itself.
418 2007-01-08 Kai Tietz <kai.tietz@onevision.com>
420 * config.bfd: Renamed target x86_64-*-mingw64 to x86_64-*-mingw*.
422 2007-01-05 Jakub Jelinek <jakub@redhat.com>
424 * texhex.c (first_phase): Don't fall through into the default
426 (pass_over): Replace abort () calls with return FALSE. Fix
429 2007-01-04 Jie Zhang <jie.zhang@analog.com>
431 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't set
432 SEC_EXCLUDE on zero size .eh_frame.
434 For older changes see ChangeLog-2006
440 version-control: never