bfd/
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2007-03-15 H.J. Lu <hongjiu.lu@intel.com>
2
3 * Makefile.am (bfdver.h): Substitute report_bugs_to. Also
4 create doc/bfdver.texi.
5 * Makefile.in: Regenerated.
6
7 * configure.in (--with-bugurl): New option.
8 * configure: Regenerated.
9
10 * version.h (REPORT_BUGS_TO): New.
11
12 2007-03-13 H.J. Lu <hongjiu.lu@intel.com>
13
14 PR binutils/3826
15 * elf-bfd.h (elf_backend_data): Add elf_osabi.
16 (_bfd_elf_set_osabi): New.
17
18 * elf.c (_bfd_elf_set_osabi): New.
19
20 * elf32-hppa.c (elf32_hppa_post_process_headers): Removed.
21 (elf_backend_post_process_headers): Defined with
22 _bfd_elf_set_osabi.
23 (ELF_OSABI): Properly defined for each target.
24
25 * elf32-i370.c (i370_elf_post_process_headers): Removed.
26 (ELF_OSABI): Defined.
27 (elf_backend_post_process_headers): Defined with
28 _bfd_elf_set_osabi.
29
30 * elf32-i386.c (ELF_OSABI): Defined to ELFOSABI_FREEBSD for
31 freebsd.
32 (elf_i386_post_process_headers): Set EI_OSABI with elf_osabi.
33
34 * elf32-msp430.c (elf32_msp430_post_process_headers): Removed.
35 (ELF_OSABI): Defined.
36 (elf_backend_post_process_headers): Defined with
37 _bfd_elf_set_osabi.
38
39 * elf64-alpha.c (ELF_OSABI): Defined to ELFOSABI_FREEBSD for
40 freebsd.
41 (elf64_alpha_fbsd_post_process_headers): Set EI_OSABI with
42 elf_osabi.
43
44 * elf64-hppa.c (elf64_hppa_post_process_headers): Set EI_OSABI
45 with elf_osabi.
46 (ELF_OSABI): Properly defined for each target.
47 (elf_backend_post_process_headers): Defined with
48 _bfd_elf_set_osabi for Linux.
49
50 * elf64-sparc.c (elf64_sparc_fbsd_post_process_headers): Removed.
51 (ELF_OSABI): Defined to ELFOSABI_FREEBSD for freebsd.
52 (elf_backend_post_process_headers): Defined with
53 _bfd_elf_set_osabi.
54
55 * elf64-x86-64.c (elf64_x86_64_fbsd_post_process_headers): Removed.
56 (ELF_OSABI): Defined to ELFOSABI_FREEBSD for freebsd.
57 (elf_backend_post_process_headers): Defined with
58 _bfd_elf_set_osabi.
59
60 * elfcode.h (elf_object_p): Match the ELFOSABI_NONE ELF target
61 with any ELF target of the compatible machine for which we do not
62 have a specific backend.
63
64 * elfxx-ia64.c (elfNN_hpux_post_process_headers): Set EI_OSABI
65 with elf_osabi.
66
67 * elfxx-target.h (ELF_OSABI): Default to ELFOSABI_NONE.
68 (elfNN_bed): Initialize elf_osabi with ELF_OSABI.
69
70 2007-03-08 Alan Modra <amodra@bigpond.net.au>
71
72 * elf32-v850.c (v850_elf_link_output_symbol_hook): Clean out
73 V850_OTHER_* bits.
74
75 2007-03-08 Alan Modra <amodra@bigpond.net.au>
76
77 * Makefile.am (BFD64_BACKENDS): Add efi-app-x86_64.lo.
78 (BFD64_BACKENDS_CFILES): Add efi-app-x86_64.c.
79 Run "make dep-am".
80 * Makefile.in: Regenerate.
81 * po/SRC-POTFILES.in: Regenerate.
82
83 2007-03-07 H.J. Lu <hongjiu.lu@intel.com>
84
85 * config.bfd (x86_64-*-freebsd*): Add bfd_efi_app_x86_64_vec.
86 (x86_64-*-kfreebsd*-gnu): Likewise.
87 (x86_64-*-netbsd*): Likewise.
88 (x86_64-*-openbsd*): Likewise.
89 (x86_64-*-linux-*): Likewise.
90
91 * configure.in: Support bfd_efi_app_x86_64_vec.
92 * configure: Regenerated.
93
94 * efi-app-x86_64.c: New file.
95
96 * targets.c (bfd_efi_app_x86_64_vec): New.
97 (_bfd_target_vector): Add bfd_efi_app_x86_64_vec.
98
99 2007-03-07 Kai Tietz <kai.tietz@onevision.com>
100
101 * reloc.c (bfd_generic_get_relocated_section_contents): Remove
102 const for type reloc_howto_type.
103
104 2007-03-07 Alan Modra <amodra@bigpond.net.au>
105
106 PR 3958
107 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): No error on relocatable link.
108 (elf_discarded_section): Move..
109 * bfd-in.h: ..to here.
110 * bfd-in2.h: Regenerate.
111 * elflink.c (elf_link_input_bfd): Don't zap relocs against symbols
112 from discarded sections before relocate_section has done its job.
113 * reloc.c (bfd_generic_get_relocated_section_contents): Handle
114 relocs against symbols from discarded sections.
115 * elf-hppa.h (elf_hppa_howto_table): Set size. Set dst_mask on
116 SECREL32.
117 (elf_hppa_relocate_section): Handle relocatable link after setting
118 sec, sym, h etc. for final link. Squash error messages for
119 relocatable link. Clear section contents for relocs against
120 symbols in discarded sections, and zero reloc. Remove existing
121 zero r_symndx code.
122 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
123 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
124 * elf32-arm.c (elf32_arm_relocate_section): Likewise.
125 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
126 * elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
127 (bfin_relocate_section): Likewise.
128 * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
129 * elf32-cris.c (cris_elf_relocate_section): Likewise.
130 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
131 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
132 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
133 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
134 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
135 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
136 * elf32-i370.c (i370_elf_relocate_section): Likewise.
137 * elf32-i386.c (elf_i386_relocate_section): Likewise.
138 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
139 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
140 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
141 * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
142 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
143 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
144 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
145 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
146 * elf32-mep.c (mep_elf_relocate_section): Likewise.
147 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
148 * elf32-mt.c (mt_elf_relocate_section): Likewise.
149 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
150 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
151 * elf32-s390.c (elf_s390_relocate_section): Likewise.
152 * elf32-score.c (_bfd_score_elf_relocate_section): Likewise.
153 * elf32-sh.c (sh_elf_relocate_section): Likewise.
154 * elf32-spu.c (spu_elf_relocate_section): Likewise.
155 * elf32-v850.c (v850_elf_relocate_section): Likewise.
156 * elf32-vax.c (elf_vax_relocate_section): Likewise.
157 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
158 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
159 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
160 * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
161 (elf64_alpha_relocate_section): Likewise.
162 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
163 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
164 * elf64-s390.c (elf_s390_relocate_section): Likewise.
165 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
166 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
167 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
168 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
169 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
170
171 * elf32-arm.c (elf32_arm_relocate_section): Always adjust section
172 symbols for relocatable link. Don't use always-zero st_value.
173 (elf_backend_rela_normal): Don't define.
174 * elf32-bfin.c (bfinfdpic_relocate_section): Use
175 RELOC_FOR_GLOBAL_SYMBOL.
176 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
177 * elf32-d10v.c (elf32_d10v_relocate_section): Combine SEC_MERGE
178 section symbol adjustments with same for relocatable link.
179 * elf32-i386.c (elf_i386_relocate_section): Likewise.
180 * elf32-m68hc1x.c (m68hc11_get_relocation_value): Move..
181 (elf32_m68hc11_check_relocs): ..to here.
182 * elf32-score.c (score_elf_final_link_relocate): Remove zero
183 r_symndx code.
184 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
185
186 2007-03-07 Alan Modra <amodra@bigpond.net.au>
187
188 PR 4144
189 * elf.c (assign_file_positions_for_load_sections): Don't
190 adjust p_memsz for !SEC_LOAD section vma modulo page size.
191 Instead, use the same lma based adjustment for SEC_LOAD
192 sections.
193
194 2007-03-01 Bob Wilson <bob.wilson@acm.org>
195
196 * elf32-xtensa.c (analyze_relocations): Zero src_count if not relaxing.
197 (find_relaxable_sections): Do not increment src_count for unknown
198 opcodes. Decode only once instead of calling is_l32r_relocation.
199 (compute_text_actions): Remove unused no_insn_move flag. Assert that
200 src_next matches src_count in relax_info.
201
202 2007-03-01 Joseph Myers <joseph@codesourcery.com>
203
204 * Makefile.am (bfdver.h): Use "." not " " between version number
205 and date.
206 * Makefile.in: Regenerate.
207 * configure.in (PKGVERSION): Default to "(GNU Binutils) ".
208 * configure: Regenerate.
209
210 2007-02-28 Nathan Sidwell <nathan@codesourcery.com>
211
212 * config.bfd (sh-*-uclinux, sh[12]-*-uclinux): New stanza.
213
214 2007-02-27 Alan Modra <amodra@bigpond.net.au>
215
216 * elf32-spu.h (struct _ovl_stream): Make "start" and "end" const.
217 * elf32-spu.c (ovl_mgr_pread): Add const to casts.
218
219 2007-02-23 Carlos O'Donell <carlos@codesourcery.com>
220
221 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Assume 32-bit
222 DWARF even with 64-bit addresses.
223 (_bfd_dwarf2_find_nearest_line): Likewise.
224
225 2007-02-23 Nick Clifton <nickc@redhat.com>
226
227 PR binutils/3535
228 * elf.c (copy_private_bfd_data): Always rewrite the program
229 headers when a Solaris interpreter segment is involved.
230
231 2007-02-22 Paul Brook <paul@codesourcery.com>
232
233 * elflink.c (gc_mark_hook_fn): Remove.
234 (_bfd_elf_gc_mark): Rename gc_mark_hook_fn to elf_gc_mark_hook_fn.
235 (bfd_elf_gc_sections): Ditto. Call gc_mark_extra_sections.
236 * elf-bfd.h (elf_gc_mark_hook_fn): Define.
237 (elf_backend_data): Add gc_mark_extra_sections.
238 * elfxx-target.h (elf_backend_gc_mark_extra_sections): Provide default
239 definition.
240 (elfNN_bed): Add elf_backend_gc_mark_extra_sections.
241 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): New function.
242 (elf_backend_gc_mark_extra_sections): Define.
243
244 2007-02-21 Nick Clifton <nickc@redhat.com>
245
246 * elf.c (_bfd_elf_map_sections_to_segments): If the
247 override_segment_assignment callback is defined then call it.
248
249 2007-02-21 Alan Modra <amodra@bigpond.net.au>
250
251 * elf32-spu.c (spu_elf_size_stubs): Correct order of warning args.
252
253 2007-02-19 Thiemo Seufer <ths@mips.com>
254
255 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data): Remove
256 translation marker from untranslatable strings.
257
258 2007-02-19 Alan Modra <amodra@bigpond.net.au>
259
260 * elf-bfd.h (struct elf_backend_data): Add default_execstack.
261 * elflink.c (bfd_elf_size_dynamic_sections): Heed default_execstack.
262 * elfxx-target.h (elf_backend_default_execstack): Define to 1.
263 (elfNN_bed): Init new field.
264 * elf64-ppc.c (elf_backend_default_execstack): Define to 0.
265
266 2007-02-17 Mark Mitchell <mark@codesourcery.com>
267 Nathan Sidwell <nathan@codesourcery.com>
268 Vladimir Prus <vladimir@codesourcery.com
269 Joseph Myers <joseph@codesourcery.com>
270
271 * configure.in (--with-pkgversion): New option.
272 * configure: Regenerate.
273 * Makefile.am (bfdver.h): Substitute for @bfd_version_package@.
274 * Makefile.in: Regenerate.
275 * version.h (BFD_VERSION_STRING): Define using
276 @bfd_version_package@.
277
278 2007-02-16 Carlos O'Donell <carlos@codesourcery.com>
279
280 * elfxx-mips.c (_bfd_mips_elf_print_private_bfd_data):
281 Print EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT
282 and EF_MIPS_UCODE.
283
284 2007-02-15 Alan Modra <amodra@bigpond.net.au>
285
286 * libbfd-in.h (_bfd_norelocs_get_reloc_upper_bound): Don't define,
287 declare.
288 (_bfd_norelocs_canonicalize_reloc): Likewise.
289 * libbfd.h: Regenerate.
290 * libbfd.c (_bfd_norelocs_get_reloc_upper_bound): New function.
291 (_bfd_norelocs_canonicalize_reloc): Likewise.
292 * binary.c (binary_bfd_reloc_type_lookup): Don't define.
293 (binary_get_reloc_upper_bound, binary_canonicalize_reloc): Likewise.
294 (binary_vec): Use _bfd_norelocs in BFD_JUMP_TABLE_RELOCS.
295 * ihex.c: Similarly.
296 * mach-o-target.c: Similarly.
297 * mach-o.c: Similarly.
298 * mmo.c: Similarly.
299 * pef.c: Similarly.
300 * ppcboot.c: Similarly.
301 * srec.c: Similarly.
302 * xsym.c: Similarly.
303
304 2007-02-14 H.J. Lu <hongjiu.lu@intel.com>
305
306 PR ld/3953
307 * elflink.c (_bfd_elf_add_default_symbol): Check warning symbol
308 when adding default symbol.
309
310 2007-02-13 Alan Modra <amodra@bigpond.net.au>
311
312 * elf64-ppc.c (create_linkage_sections): Use section ".branch_lt"
313 for branch lookup table.
314
315 2007-02-12 Alan Modra <amodra@bigpond.net.au>
316
317 * elf64-ppc.c (create_linkage_sections): Don't create
318 .rela.rodata.brlt for --emit-relocs.
319 (ppc_build_one_stub): Create relocs for brlt --emit-relocs here.
320 (ppc_size_one_stub): Count them. Simplify test of stub type
321 when counting stub relocs. Set SEC_RELOC too.
322 (ppc64_elf_size_stubs): Clear reloc_count and SEC_RELOC.
323 (ppc64_elf_finish_dynamic_sections): Output brlt relocs.
324
325 2007-02-12 Alan Modra <amodra@bigpond.net.au>
326
327 * elflink.c (evaluate_complex_relocation_symbols): Ignore relocs
328 with a zero symbol index.
329
330 2007-02-12 Alan Modra <amodra@bigpond.net.au>
331
332 * elflink.c (bfd_elf_discard_info): Tidy setting of "eh".
333
334 2007-02-05 Dave Brolley <brolley@redhat.com>
335 Stan Cox <scox@redhat.com>
336
337 PR ld/3972
338 * elflink.c (elf_link_input_bfd): Always setup finfo->internal_syms.
339
340 2007-02-05 Dave Brolley <brolley@redhat.com>
341 Richard Sandiford <rsandifo@redhat.com>
342 Stan Cox <scox@redhat.com>
343 Nick Clifton <nickc@redhat.com>
344 DJ Delorie <dj@redhat.com>
345 Frank Ch. Eigler <fche@redhat.com>
346 Ben Elliston <bje@redhat.com>
347 Richard Henderson <rth@redhat.com>
348
349 * Makefile.am (ALL_MACHINES): Add cpu-mep.lo.
350 (ALL_MACHINES_CFILES): Add CPU_MEP.c.
351 (BFD32_BACKENDS): Add elf32-mep.lo.
352 (BFD32_BACKENDS_CFILES): Add elf32-mep.c.
353 (cpu-mep.lo,elf32-mep.lo): New targets.
354 * archures.c (bfd_arch_mep): New enumerator.
355 (bfd_mach_mep, bfd_mach_mep_h1): New macros.
356 (bfd_mep_arch): New external variable.
357 (bfd_archures_list): Add bfd_mep_arch.
358 * config.bfd: Support mep-*-elf.
359 * configure.in: Support bfd_elf32_mep_vec and bfd_elf32_mep_little_vec.
360 * reloc.c (BFD_RELOC_MEP_*): New relocation numbers.
361 * targets.c (bfd_elf32_mep_vec,bfd_elf32_mep_little_vec): New extern
362 declarations.
363 (_bfd_target_vector): Add bfd_elf32_mep_vec and
364 bfd_elf32_mep_little_vec.
365 * mep-relocs.pl: New file.
366 * cpu-mep.c: New file.
367 * elf32-mep.c: New file.
368 * bfd-in2.h: Regenerate.
369 * po/POTFILES.in: Regenerate.
370 * libbfd.h: Regenerate.
371 * Makefile.in: Regenerate.
372 * configure: Regenerate.
373
374 2007-02-05 Dave Brolley <brolley@redhat.com>
375
376 * elflink.c (evaluate_complex_relocation_symbols): Check for
377 STT_SRELC for global symbols.
378 (perform_complex_relocations): Renamed to
379 perform_complex_relocation and now examines only one relocation.
380 (elf_link_input_bfd): Don't call perform_complex_relocations.
381 * elf-bfd.h (bfd_elf_perform_complex_relocation_: New prototype.
382 * elf32-mep.c (mep_elf_howto_table): Add R_RELC.
383 (OD,OS,OU): #undefs corrected to N, S and U repectively.
384 (mep_reloc_type_lookup): Handle BFD_RELOC_RELC.
385 (complex_reloc_installation_howto): Removed.
386 (mep_info_to_howto_rela): Remove special case for r_type==0xff.
387 (mep_elf_relocate_section): Call bfd_elf_perform_complex_relocation.
388
389 2007-02-05 Dave Brolley <brolley@redhat.com>
390 Richard Sandiford <rsandifo@redhat.com>
391 DJ Delorie <dj@redhat.com>
392 Graydon Hoare <graydon@redhat.com>
393 Nick Clifton <nickc@cambridge.redhat.com>
394 Jeff Holcomb <jeffh@redhat.com>
395 Frank Ch. Eigler <fche@redhat.com>
396
397 * elf-bfd.h (bfd_elf_perform_complex_relocations): New prototype.
398 * elf.c (swap_out_syms): Handle BSF_RELC and BSF_SRELC.
399 * elfcode.h (elf_slurp_symbol_table): Handle STT_RELC and STT_SRELC.
400 * elflink.c (set_symbolValue): New static function.
401 (resolve_symbol): Likewise.
402 (resolve_section): Likewise.
403 (undefined_reference): Likewise.
404 (eval_symbol): Likewise.
405 (evaluate_complex_relocation_symbols): Likewise.
406 (put_value): Likewise.
407 (get_value): Likewise.
408 (decode_complex_addend):
409 (bfd_elf_perform_complex_relocation): New function.
410 (elf_link_input_bfd): Call evaluate_complex_relocation_symbols.
411 * reloc.c (BFD_RELOC_RELC): New relocation number.
412 * syms.c (BSF_RELC,BSF_SRELC): New macros.
413
414 2007-02-05 Bob Wilson <bob.wilson@acm.org>
415
416 * elf32-xtensa.c (elf_xtensa_make_sym_local): Delete.
417 (elf_xtensa_hide_symbol, elf_backend_hide_symbol): Delete.
418 (elf_xtensa_fix_refcounts, elf_xtensa_allocate_plt_size)
419 (elf_xtensa_allocate_got_size): Replace these with...
420 (elf_xtensa_allocate_dynrelocs): ...this new function.
421 (elf_xtensa_size_dynamic_sections): Use it.
422
423 2007-02-05 Bob Wilson <bob.wilson@acm.org>
424
425 * elf32-xtensa.c (elf_howto_table) <R_XTENSA_GLOB_DAT>
426 <R_XTENSA_JMP_SLOT, R_XTENSA_RELATIVE, R_XTENSA_PLT, R_XTENSA_DIFF32>:
427 Set src_mask to zero.
428 <R_XTENSA_DIFF8, R_XTENSA_DIFF16>: Likewise. Also fix dst_mask.
429 <R_XTENSA_ASM_EXPAND>: Set pcrel_offset to TRUE.
430
431 2007-02-02 Bob Wilson <bob.wilson@acm.org>
432
433 * elf32-xtensa.c (xtensa_elf_dynamic_symbol_p): Renamed to...
434 (elf_xtensa_dynamic_symbol_p): ...this.
435
436 2007-02-02 Bob Wilson <bob.wilson@acm.org>
437
438 * elf32-xtensa.c (plt_reloc_count): Move into link hash table.
439 (struct elf_xtensa_link_hash_table): New.
440 (elf_xtensa_hash_table): New.
441 (elf_xtensa_link_hash_table_create): New.
442 (elf_xtensa_check_relocs): Update plt_reloc_count references.
443 Update arguments to add_extra_plt_sections.
444 (elf_xtensa_create_dynamic_sections): Record new sections in the hash
445 table. Update for plt_reloc_count and add_extra_plt_sections.
446 (add_extra_plt_sections, elf_xtensa_create_plt_entry): Replace dynobj
447 argument with link info. Update calls to elf_xtensa_get_plt_section
448 and elf_xtensa_get_gotplt_section.
449 (elf_xtensa_allocate_local_got_size, elf_xtensa_size_dynamic_sections)
450 (elf_xtensa_relocate_section, elf_xtensa_finish_dynamic_sections)
451 (elf_xtensa_discard_info_for_section, shrink_dynamic_reloc_sections)
452 (relax_property_section): Get sections from the hash table and update
453 function calls.
454 (elf_xtensa_get_plt_section, elf_xtensa_get_gotplt_section): Replace
455 dynobj argument with link info. Get sections for first plt chunk from
456 the hash table.
457 (bfd_elf32_bfd_link_hash_table_create): Define.
458
459 2007-02-02 Jakub Jelinek <jakub@redhat.com>
460
461 * elf-bfd.h (struct elf_obj_tdata): Change symbuf type to void *.
462 * elf.c (struct elf_symbuf_symbol, struct elf_symbuf_head): New types.
463 (struct elf_symbol): Change first member into union.
464 (elf_sort_elf_symbol): Compare pointers to internal syms rather than
465 internal syms. Only compare st_shndx fields.
466 (elf_create_symbuf): New function.
467 (bfd_elf_match_symbols_in_sections): Use it. If symbufs are available
468 for bfds, use a binary search, otherwise don't qsort symbols
469 unnecessarily only to select which symbols are for the particular
470 shndx.
471
472 2007-02-01 Nick Clifton <nickc@redhat.com>
473
474 PR ld/3852
475 * elf.c (_bfd_elf_link_hash_table_init): Initialize all the fields
476 in the elf_link_hash_table structure.
477
478 2007-02-01 Alan Modra <amodra@bigpond.net.au>
479
480 * elf-bfd.h (struct elf_backend_data): Add elf_backend_write_core_note.
481 * elfxx-target.h (elf_backend_write_core_note): Define and use.
482 * elf.c (elfcore_write_prpsinfo): Call the above. Add support for
483 32-bit core note on 64-bit target.
484 (elfcore_write_prstatus): Likewise.
485 (elfcore_write_lwpstatus): Make note_name const.
486 (elfcore_write_prfpreg): Likewise.
487 (elfcore_write_pstatus): Add support for 32-bit core note on 64-bit
488 target.
489 * elf32-ppc.c (ppc_elf_write_core_note): New function.
490 (elf_backend_write_core_note): Define.
491 * elf64-ppc.c (ppc64_elf_write_core_note): New function.
492 (elf_backend_write_core_note): Define.
493
494 2007-01-31 H.J. Lu <hongjiu.lu@intel.com>
495
496 * elf32-cris.c (INCLUDED_TARGET_FILE): Removed.
497 (elf32_bed): Defined for elf32-us-cris.
498
499 * elf64-sh64.c (elf64_bed): Defined for Linux.
500 (INCLUDED_TARGET_FILE): Removed.
501
502 * elfxx-target.h (elfNN_bed): Always define. Don't check
503 INCLUDED_TARGET_FILE.
504
505 2007-01-31 DJ Delorie <dj@redhat.com>
506
507 * elf-m10300.c (mn10300_elf_relocate_section): Clarify the warning
508 message for dangerous relocs, special case the common user error.
509
510 2007-01-30 H.J. Lu <hongjiu.lu@intel.com>
511
512 * elf.c (copy_elf_program_header): Start from the first section
513 in a segment and stop when all sections in a segment are
514 accounted for.
515
516 2007-01-29 Julian Brown <julian@codesourcery.com>
517
518 * bfd-in2.h: Regenerate.
519 * bfd-in.h (bfd_arm_vfp11_fix): New enum. Specify how VFP11
520 instruction scanning should be done.
521 (bfd_elf32_arm_init_maps, bfd_elf32_arm_vfp11_erratum_scan)
522 (bfd_elf32_arm_vfp11_fix_veneer_locations): Add prototypes.
523 (bfd_elf32_arm_set_target_relocs): Add vfp11 fix type argument to
524 prototype.
525 * elf-bfd.h (elf_backend_write_section): Add struct bfd_link_info
526 argument.
527 * elf32-arm.c (VFP11_ERRATUM_VENEER_SECTION_NAME)
528 (VFP11_ERRATUM_VENEER_ENTRY_NAME): Define macros.
529 (elf32_vfp11_erratum_type): New enum.
530 (elf32_vfp11_erratum_list): New struct. List of veneers or jumps to
531 veneers.
532 (_arm_elf_section_data): Add mapsize, erratumcount, erratumlist.
533 (elf32_arm_link_hash_table): Add vfp11_erratum_glue_size,
534 vfp11_fix and num_vfp11_fixes fields.
535 (elf32_arm_link_hash_table_create): Initialise vfp11_fix,
536 vfp11_erratum_glue_size, num_vfp11_fixes fields.
537 (VFP11_ERRATUM_VENEER_SIZE): Define. Size of an (ARM) veneer.
538 (bfd_elf32_arm_allocate_interworking_sections): Initialise erratum
539 glue section.
540 (elf32_arm_section_map_add): Add an code/data mapping symbol entry
541 to a section's map.
542 (record_vfp11_erratum_veneer): Create a single veneer, and its
543 associated symbols.
544 (bfd_elf32_arm_add_glue_sections_to_bfd): Add vfp11 erratum glue.
545 (bfd_elf32_arm_init_maps): Initialise mapping symbol table for input
546 BFDs.
547 (bfd_elf32_arm_set_vfp11_fix): Set the type of erratum workaround
548 required.
549 (bfd_arm_vfp11_pipe): Define VFP11 instruction pipes.
550 (bfd_arm_vfp11_regno): Recode a register number from a VFP11 insn.
551 (bfd_arm_vfp11_write_mask): Update write mask according to coded
552 register number.
553 (bfd_arm_vfp11_antidependency): New function.
554 (bfd_arm_vfp11_insn_decode): Decode a VFP11 insn.
555 (elf32_arm_compare_mapping): Declare.
556 (bfd_elf32_arm_vfp11_erratum_scan): Scan the sections of an input
557 BFD for potential erratum-triggering insns. Record results.
558 (bfd_elf32_arm_vfp11_fix_veneer_locations): Find out where veneers
559 and branches to veneers have been placed in virtual memory after
560 layout.
561 (bfd_elf32_arm_set_target_relocs): Set vfp11_fix field in global
562 hash table.
563 (elf32_arm_output_symbol_hook): Remove.
564 (elf32_arm_write_section): Output veneers, and branches to veneers.
565 Use maps from input sections, not output sections, for code
566 byte-swapping.
567 * elf32-ppc.c (ppc_elf_write_section): Add dummy link_info argument.
568 * elf32-score.c (_bfd_score_elf_write_section): Likewise.
569 * elfxx-mips.c (_bfd_mips_elf_write_section): Likewise.
570 * elfxx-mips.h (_bfd_mips_elf_write_section): Likewise.
571
572 2007-01-27 H.J. Lu <hongjiu.lu@intel.com>
573
574 * elf64-hppa.c (elf64_bed): Defined for HPUX and Linux.
575 (INCLUDED_TARGET_FILE): Removed.
576
577 2007-01-27 Mike Frysinger <vapier@gentoo.org>
578
579 * elf32-hppa.c (elf32_bed): Define for hpux, linux and netbsd.
580 (INCLUDED_TARGET_FILE): Remove.
581
582 2007-01-25 DJ Delorie <dj@redhat.com>
583
584 * elf32-m32c.c (m32c_elf_howto_table): Don't complain about
585 R_M32C_16 or R_M32C_24 relocs.
586
587 2007-01-25 Nick Clifton <nickc@redhat.com>
588
589 PR binutils/3874
590 * elf32-avr.c (avr_link_hash_table): Check to make sure that the
591 hash table was created by elf32_avr_link_hash_table_create before
592 using it.
593 (elf32_avr_link_hash_newfunc): New function. Just pass the call
594 through to _bfd_elf_link_hash_newfunc.
595 (elf32_avr_link_hash_table_create): Use
596 elf32_avr_link_hash_newfunc instead of
597 _bfd_elf_link_hash_newfunc.
598 (elf32_avr_relocate_section): Check for the hash table pointer
599 being NULL.
600 (elf32_avr_relax_section, avr_build_one_stub,
601 elf32_avr_setup_params, get_local_syms, elf32_avr_size_stubs,
602 elf32_avr_build_stubs): Likewise.
603
604 2007-01-16 H.J. Lu <hongjiu.lu@intel.com>
605
606 PR ld/3831
607 * elf-bfd.h (bfd_elf_link_mark_dynamic_symbol): Add an
608 argument, Elf_Internal_Sym *.
609
610 * elflink.c (bfd_elf_link_mark_dynamic_symbol): Mark a data
611 symbol dynamic if info->dynamic_data is TRUE.
612 (bfd_elf_record_link_assignment): Updated call to
613 bfd_elf_record_link_assignment.
614 (_bfd_elf_merge_symbol): Likewise. Always call
615 bfd_elf_link_mark_dynamic_symbol.
616
617 2007-01-12 H.J. Lu <hongjiu.lu@intel.com>
618
619 * Makefile.am (BFD_LIBS): Removed.
620 * Makefile.in: Regenerated.
621
622 2007-01-11 H.J. Lu <hongjiu.lu@intel.com>
623
624 PR binutils/3631
625 * Makefile.am (OFILES): Add @bfd64_libs@.
626 (libbfd_la_SOURCES): Remove $(BFD64_LIBS_CFILES).
627 * Makefile.in: Regenerated.
628
629 * configure.in (bfd_libs): Replaced by ...
630 (bfd64_libs): This.
631 * configure: Regenerated.
632
633 2007-01-11 Nathan Sidwell <nathan@codesourcery.com>
634
635 * elf.c (assign_file_positions_for_load_sections): We can
636 require fewer phdrs than expected.
637
638 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
639
640 * archures.c (bfd_mach_cpu32_fido): Rename to bfd_mach_fido.
641 * bfd-in2.h: Regenerate.
642 * cpu-m68k.c (arch_info_struct): Use bfd_mach_fido instead of
643 bfd_mach_cpu32_fido.
644 (m68k_arch_features): Use fido_a instead of cpu32.
645 (bfd_m68k_compatible): Reject the combination of Fido and
646 ColdFire. Accept the combination of CPU32 and Fido with a
647 warning.
648 * elf32-m68k.c (elf32_m68k_object_p,
649 elf32_m68k_merge_private_bfd_data,
650 elf32_m68k_print_private_bfd_data): Treat Fido as an
651 architecture by itself.
652
653 2007-01-08 Kai Tietz <kai.tietz@onevision.com>
654
655 * config.bfd: Renamed target x86_64-*-mingw64 to x86_64-*-mingw*.
656
657 2007-01-05 Jakub Jelinek <jakub@redhat.com>
658
659 * texhex.c (first_phase): Don't fall through into the default
660 case.
661 (pass_over): Replace abort () calls with return FALSE. Fix
662 buffer overflow.
663
664 2007-01-04 Jie Zhang <jie.zhang@analog.com>
665
666 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Don't set
667 SEC_EXCLUDE on zero size .eh_frame.
668
669 For older changes see ChangeLog-2006
670 \f
671 Local Variables:
672 mode: change-log
673 left-margin: 8
674 fill-column: 74
675 version-control: never
676 End:
This page took 0.044998 seconds and 4 git commands to generate.