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