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