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