daily update
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
ecb2d096
DJ
12004-05-06 Daniel Jacobowitz <drow@mvista.com>
2
3 * elf32-arm.h (elf32_arm_relocate_section): Remove R_ARM_PLT32
4 special case.
5
43850d5b
AO
62004-05-05 Alexandre Oliva <aoliva@redhat.com>
7
8 * configure.in (bfd_elf32_frvfdpic_vec): New.
9 * configure: Rebuilt.
10 * targets.c (bfd_elf32_frvfdpic_vec): New.
11 * config.bfd: Enable it on frv-*-elf and frv-*-*linux*, as default
12 on the latter.
13 * elf32-frv.c: Prefix all identifiers added for FDPIC support with
14 frvfdpic instead of frv. Rearrange elf-target macros such that
15 the FDPIC-specific ones are only defined for this new target
16 vector.
17 (bfd_elf32_frvfdpic_vec): Declare.
18 (IS_FDPIC): New.
19 (elf32_frv_relocate_section): Use it to enable segment checking
20 and to control rofixup emission. Add output section vma to
21 applied relocation in non-LOAD non-ALLOC sections. Use
22 _bfd_error_handler for errors.
23 (_frv_create_got_section): Create .rel.got and .rofixup only in
24 FDPIC. Create non-dynamic _gp at .got+2048 in non-FDPIC, like the
25 linker script.
26 (elf32_frvfdpic_size_dynamic_sections): Assume FDPIC.
27 (elf32_frvfdpic_modify_segment_map): Likewise.
28 (elf32_frv_finish_dynamic_sections): New, do-nothing.
29 (elf32_frvfdpic_finish_dynamic_sections): Assume FDPIC. Improve
30 error message if we miscompute the rofixup size.
31 (frvfdpic_elf_use_relative_eh_frame): Assume FDPIC.
32 (frvfdpic_elf_encode_eh_address): Likewise.
33 (elf32_frv_check_relocs): Reject FDPIC-only relocs in non-FDPIC.
34 Record relocs only in FDPIC. Make sure _gp is defined for GPREL
35 relocs. Reject unknown relocation types.
36 (elf32_frv_object_p): Make sure target vector matches FDPIC bits.
37 (frv_elf_merge_private_bfd_data): Likewise.
38 (ELF_MAXPAGESIZE): Revert to 0x1000 for elf32-frv; keep it as
39 0x4000 for newly-added elf32-frvfdpic.
40
06fc8a8c
NC
412004-05-05 Nick Clifton <nickc@redhat.com>
42
43 PR/136
44 * cache.c (bfd_cache_lookup_worker): Call abort() rather than
45 returning NULL as most users of this function do not check its
46 return value.
33216455
NC
47 * hppabsd-core.c (hppabsd_core_core_file_p): Do not check result
48 of bfd_cache_lookup().
49 * sco5-core.c (sco5_core_file_p): Likewise.
50 * trad-core.c (trad_unix_core_file_p): Likewise.
06fc8a8c
NC
51
522004-05-05 Nick Clifton <nickc@redhat.com>
53
54 * cache.c (bfd_cache_lookup): Improve formatting.
55 * archive.c: Fix formatting.
56
6b6e92f4
NC
572004-05-05 Peter Barada <peter@the-baradas.com>
58
59 * bfd_archures.c(bfd_architecture): Add 521x,5249,547x,548x.
60 * cpu-m68k.c(bfd_m68k_arch): Likewise.
61 * bfd-in2.h(bfd_architecture): Regenerate.
62
6a8d1586
AM
632004-05-03 Alan Modra <amodra@bigpond.net.au>
64
65 * elf.c (_bfd_elf_rela_local_sym): Set kept_section for excluded
66 SEC_MERGE sections.
67 * elflink.c (elf_link_input_bfd): Adjust output reloc index for
68 those against discarded link-once and SEC_MERGE section symbols.
69
fafe6678
L
702004-05-02 H.J. Lu <hongjiu.lu@intel.com>
71
72 * section.c (bfd_get_section_by_name_if): New.
73 * bfd-in2.h: Regenerated.
74
ad7b9a36
AM
752004-05-02 Alan Modra <amodra@bigpond.net.au>
76
77 * som.c (som_bfd_is_group_section): Define.
78
73499ab8
AM
792004-05-01 Alan Modra <amodra@bigpond.net.au>
80
81 * section.c (bfd_make_section_anyway): Copy the whole
82 bfd_hash_entry, not just "next" from existing entry.
83
45c5e9ed
L
842004-04-30 H.J. Lu <hongjiu.lu@intel.com>
85
86 * elf.c (bfd_section_from_shdr): Maintain the section order in
87 a section group.
88 (special_sections): Add ".note.GNU-stack".
89 (elf_fake_sections): Handle section group for relocatable
90 link..
91
bc87dd2e
L
922004-04-30 H.J. Lu <hongjiu.lu@intel.com>
93
94 * section.c (bfd_sections_find_if): New.
95 * bfd-in2.h: Regenerated.
96
72adc230
AM
972004-04-30 Alan Modra <amodra@bigpond.net.au>
98
99 * section.c (bfd_make_section_anyway): Add all sections to hash tab.
100
101 * elf-bfd.h (bfd_elf_is_group_section): Declare.
102 * elf.c (bfd_elf_is_group_section): New function.
103 * elfxx-target.h (bfd_elfNN_bfd_is_group_section
104 * section.c (bfd_generic_is_group_section): New function.
105 * targets.c (struct bfd_target): Add _bfd_is_group_section field.
106 (BFD_JUMP_TABLE_LINK): Adjust.
107 * aout-adobe.c (aout_32_bfd_is_group_section): Define.
108 * aout-target.h (MY_bfd_is_group_section): Define.
109 * aout-tic30.c (MY_bfd_is_group_section): Define.
110 * bfd.c (bfd_is_group_section): Define.
111 * binary.c (binary_bfd_is_group_section): Define.
112 * bout.c (b_out_bfd_is_group_section): Define.
113 * coff-alpha.c (_bfd_ecoff_bfd_is_group_section): Define.
114 * coff-mips.c (_bfd_ecoff_bfd_is_group_section): Define.
115 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Adjust.
116 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Adjust.
117 * coffcode.h (coff_bfd_is_group_section): Define.
118 * i386msdos.c (msdos_bfd_is_group_section): Define.
119 * i386os9k.c (os9k_bfd_is_group_section): Define.
120 * ieee.c (ieee_bfd_is_group_section): Define.
121 * ihex.c (ihex_bfd_is_group_section): Define.
122 * libbfd-in.h (_bfd_nolink_bfd_is_group_section): Define.
123 * mach-o.c (bfd_mach_o_bfd_is_group_section): Define.
124 * mmo.c (mmo_bfd_is_group_section): Define.
125 * nlm-target.h (nlm_bfd_is_group_section): Define.
126 * oasys.c (oasys_bfd_is_group_section): Define.
127 * pef.c (bfd_pef_bfd_is_group_section): Define.
128 * ppcboot.c (ppcboot_bfd_is_group_section): Define.
129 * srec.c (srec_bfd_is_group_section): Define.
130 * tekhex.c (tekhex_bfd_is_group_section): Define.
131 * versados.c (versados_bfd_is_group_section): Define.
132 * vms.c (vms_bfd_is_group_section): Define.
133 * xsym.c (bfd_sym_bfd_is_group_section): Define.
134 * bfd-in2.h: Regenerate.
135 * libbfd.h: Regenerate.
136
20f0a1ad
AM
1372004-04-30 Alan Modra <amodra@bigpond.net.au>
138
139 * elflink.c (elf_gc_mark): Follow indirect and warning syms.
140
f7458fc9 1412004-04-30 Hans-Peter Nilsson <hp@axis.com>
7dfb3b6b
HPN
142
143 * configure.in: Update version to 2.15.91.
144 * configure: Regenerate.
145
8a7140c3
NC
1462004-04-29 Brian Ford <ford@vss.fsi.com>
147
148 * bfd.c (bfd_get_sign_extend_vma): Add pe[i]-i386 case to DJGPP hack.
149 * coffcode.h (DOT_DEBUG, GNU_LINKONCE_WI): Define.
150 [!COFF_WITH_PE] (sec_to_styp_flags, styp_to_sec_flags): Use them.
151 (coff_compute_section_file_positions) [RS6000COFF_C]: Likewise.
152 [COFF_WITH_PE] (sec_to_styp_flags): Handle DWARF 2/3 .debug* and
153 .gnu.linkonce.wi. sections.
154 * pe-i386.c (COFF_SUPPORT_GNU_LINKONCE): Define.
155 (COFF_SECTION_ALIGNMENT_ENTRIES): Add entries for .debug and
156 .gnu.linkonce.wi..
157 * pei-i386.c (COFF_SUPPORT_GNU_LINKONCE): Likewise.
158 (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
159
3e722fb5
CD
1602004-04-28 Chris Demetriou <cgd@broadcom.com>
161
162 * reloc.c: Remove BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16.
163 * bfd-in2.h: Regenerate.
164 * libbfd.h: Likewise.
165
351e2b5a
DA
1662004-04-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
167
168 * som.c (struct som_misc_symbol_info): Add is_comdat, is_common and
169 dup_common fields.
170 (setup_sections): Use som_subspace_dictionary_record struct instead
171 subspace_dictionary_record. Set SEC_LINK_ONCE if subspace is
172 is_comdat, is_common or dup_common.
173 (som_prep_headers): Use som_subspace_dictionary_record struct. Set
174 is_comdat, is_common and dup_common in section subspace_dict from
175 copy_data.
176 (som_begin_writing): Use som_subspace_dictionary_record struct.
177 (som_finish_writing): Likewise.
178 (som_bfd_derive_misc_symbol_info): Add support to set is_comdat,
179 is_common and dup_common flags in info for symbol. Add comment
180 regarding linker support for these fields. Slightly reorganize
181 function.
182 (som_build_and_write_symbol_table): Set is_comdat, is_common and
183 dup_common fields in symbol table from symbol info.
184 (bfd_som_set_subsection_attributes): Add comdat, common and dup_common
185 arguments. Set corresponding fields in copy_data. Change all callers.
186 (som_bfd_ar_write_symbol_stuff): Set dup_common flag in library
187 symbol table.
188 (som_vec): Add SEC_LINK_ONCE to applicable section flags.
189 * som.h (som_subspace_dictionary_record): Define.
190 (som_copyable_section_data_struct): Add is_comdat, is_common and
191 dup_common fields.
192 (som_section_data_struct): Use som_subspace_dictionary_record struct
193 instead of subspace_dictionary_record.
194 (bfd_boolean bfd_som_set_subsection_attributes): Adjust prototype.
195
3ba3bc8c
BW
1962004-04-27 Bob Wilson <bob.wilson@acm.org>
197
198 * elf32-xtensa.c (xtensa_read_table_entries): Use section _cooked_size
199 if set. Check reloc_done flag before applying relocations. Use
200 output addresses, both when applying relocations and when comparing
201 against the specified section.
202 (elf_xtensa_relocate_section): Use output address to check if dynamic
203 reloc is in a literal pool. Set section's reloc_done flag.
204
beb8df56
L
2052004-04-27 H.J. Lu <hongjiu.lu@intel.com>
206
207 * elf32-sh64.c (elf_backend_section_flags): New. Defined.
208 (sh64_elf_set_mach_from_flags): Remove the kludge for .cranges
209 section.
210 (sh64_elf_section_flags): New. Set SEC_DEBUGGING for .cranges
211 section.
212
1829f4b2
AM
2132004-04-27 Alan Modra <amodra@bigpond.net.au>
214
215 * elf64-alpha.c (elf64_alpha_read_ecoff_info): Don't assign
216 structure field removed in 2004-04-24 patch.
217 * elf64-sparc.c (sparc64_elf_plt_sym_val): Warning fix.
218
219 * elf-bfd.h (struct elf_backend_data <elf_backend_section_flags>):
220 Constify hdr arg.
221 * elf32-arm.h (elf32_arm_section_flags): Likewise.
222 * elf64-alpha.c (elf64_alpha_section_flags): Likewise.
223 * elfxx-ia64.c (elfNN_ia64_section_flags): Likewise.
224 * elf.c (_bfd_elf_make_section_from_shdr): Set the bfd_section
225 field before calling elf_backend_section_flags.
226
4030e8f6
CD
2272004-04-24 Chris Demetriou <cgd@broadcom.com>
228
229 * elf32-mips.c (elf_mips_gnu_rel_hi16, elf_mips_gnu_rel_lo16)
230 (elf_mips_gnu_pcrel64, elf_mips_gnu_pcrel32): Remove.
231 (bfd_elf32_bfd_reloc_type_lookup): Remove cases for
232 BFD_RELOC_PCREL_HI16_S, BFD_RELOC_PCREL_LO16, BFD_RELOC_64_PCREL,
233 and BFD_RELOC_32_PCREL.
234 (mips_elf32_rtype_to_howto): Remove cases for R_MIPS_GNU_REL_HI16,
235 R_MIPS_GNU_REL_LO16, R_MIPS_PC64, R_MIPS_PC32.
236 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
237 (_bfd_mips_elf_lo16_reloc): Remove handling for R_MIPS_GNU_REL_HI16.
238 (mips_elf_next_relocation): Move comment about matching HI/LO
239 relocations to...
240 (_bfd_mips_elf_relocate_section): Here. Remove handling for
241 R_MIPS_GNU_REL_HI16.
242
3e27568f
CD
2432004-04-23 Chris Demetriou <cgd@broadcom.com>
244
245 * coff-mips.c (mips_relhi_reloc, mips_rello_reloc)
246 (mips_switch_reloc, mips_read_relocs, mips_relax_section)
247 (mips_relax_pcrel16, PCREL16_EXPANSION_ADJUSTMENT): Remove.
248 (mips_relocate_hi): Remove now-unused 'adjust' and 'pcrel' arguments,
249 and update comments to reflect current usage.
250 (mips_howto_table): Remove entries for MIPS_R_RELHI, MIPS_R_RELLO,
251 and MIPS_R_SWITCH, as well as several empty entries. Update comment
252 for MIPS_R_PCREL16.
253 (mips_ecoff_swap_reloc_in, mips_ecoff_swap_reloc_out)
254 (mips_adjust_reloc_out, mips_bfd_reloc_type_lookup): Remove support
255 for MIPS_R_SWITCH, MIPS_R_RELLO, and MIPS_R_RELHI relocations.
256 (mips_adjust_reloc_in): Likewise, adjust maximum accepted relocation
257 type number to be MIPS_R_PCREL16.
258 (mips_relocate_section): Remove support for link-time relaxation
259 of branches used by embedded-PIC. Remove support for MIPS_R_SWITCH,
260 MIPS_R_RELLO, and MIPS_R_RELHI relocations.
261 (_bfd_ecoff_bfd_relax_section): Redefine to bfd_generic_relax_section.
262 * ecoff.c (ecoff_indirect_link_order): Remove support for link-time
263 relaxation of branches used by embedded-PIC.
264 * ecofflink.c (bfd_ecoff_debug_accumulate): Likewise.
265 * libecoff.h (struct ecoff_section_tdata): Remove embedded-PIC
266 related members, update comment.
267 * pe-mips.c: Remove disabled (commented-out and #if 0'd)
268 code related to embedded-PIC.
269 * elfxx-mips.c (_bfd_mips_elf_read_ecoff_info): Remove
270 initialization of now-removed 'adjust' member of
271 'struct ecoff_debug_info'.
272
b32de0bc 2732004-04-23 Chris Demetriou <cgd@broadcom.com>
8472310d
CD
274
275 * elfxx-mips.c (mips_elf_get_global_gotsym_index): Remove.
276
955af222
PB
2772004-04-21 Philip Blundell <pb@nexus.co.uk>
278
279 * elf32-arm.h (elf32_arm_check_relocs): Don't output REL32
280 relocs for locally defined symbols during -shared final link.
281 (elf32_arm_final_link_relocate): Likewise.
282
47a9f7b3
JJ
2832004-04-22 Jakub Jelinek <jakub@redhat.com>
284
285 * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Copy also
286 ELF_LINK_POINTER_EQUALITY_NEEDED.
287 (elf64_x86_64_check_relocs): Set ELF_LINK_POINTER_EQUALITY_NEEDED
288 if r_type is not R_X86_64_PC32.
289 (elf64_x86_64_finish_dynamic_symbol): If
290 ELF_LINK_POINTER_EQUALITY_NEEDED is not set, clear st_value of
291 SHN_UNDEF symbols.
292
1f1799d5
KK
2932004-04-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
294
295 * elf32-sh.c (sh_elf_plt_sym_val): New function.
296 (elf_backend_plt_sym_val): Define.
297
0fdea5ce
AC
2982004-04-22 Andrew Cagney <cagney@redhat.com>
299
300 * opncls.c (bfd_alloc): Fix type of "wanted" in doco.
301
5198ba8b
DA
3022004-04-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
303
304 * hpux-core.c (hpux_core_core_file_p): Add cast in call to
305 make_bfd_asection.
306 * som.c (som_set_section_contents): Constantify second argument.
307 (hppa_som_gen_reloc_type): Abort for unsupported selectors.
308 (som_object_setup): Rework to avoid warning.
309 (setup_sections, som_write_fixups, bfd_section_from_som_symbol):
310 Likewise.
311
fe2e161a
AC
3122004-04-22 Andrew Cagney <cagney@redhat.com>
313
314 * cache.c (bfd_cache_close): Check for a previously closed file.
315
4c45e5c9
JJ
3162004-04-22 Jakub Jelinek <jakub@redhat.com>
317
318 * bfd.c (bfd_get_synthetic_symtab): Define.
319 * targets.c (BFD_JUMP_TABLE_DYNAMIC): Add
320 NAME##_get_synthetic_symtab.
321 (struct bfd_target): Add _bfd_get_synthetic_symtab.
322 * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Define.
323 * elf-bfd.h (struct elf_backend_data): Add plt_sym_val and
324 relplt_name fields.
325 (_bfd_elf_get_synthetic_symtab): New prototype.
326 * elfcode.h (elf_get_synthetic_symtab): Define.
327 * elf.c (_bfd_elf_get_synthetic_symtab): New function.
328 * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Define.
329 (elf_backend_plt_sym_val, elf_backend_relplt_name): Define.
330 (elfNN_bed): Add elf_backend_plt_sym_val and elf_backend_relplt_name.
331 * bfd-in2.h: Rebuilt.
332 * libbfd.h: Rebuilt.
333 * elf32-i386.c (elf_i386_plt_sym_val): New function.
334 (elf_backend_plt_sym_val): Define.
335 * elf64-x86-64.c (elf64_x86_64_plt_sym_val): New function.
336 (elf_backend_plt_sym_val): Define.
337 * elf32-s390.c (elf_s390_plt_sym_val): New function.
338 (elf_backend_plt_sym_val): Define.
339 * elf64-s390.c (elf_s390_plt_sym_val): New function.
340 (elf_backend_plt_sym_val): Define.
341 * elf32-sparc (elf32_sparc_plt_sym_val): New function.
342 (elf_backend_plt_sym_val): Define.
343 * elf64-sparc.c (sparc64_elf_plt_sym_val): New function.
344 (elf_backend_plt_sym_val): Define.
345 * elf32-ppc.c (ppc_elf_plt_sym_val): New function.
346 (elf_backend_plt_sym_val): Define.
347 * aout-target.h (MY_get_synthetic_symtab): Define.
348 * aout-tic30.c (MY_get_synthetic_symtab): Define.
349 * coff-rs6000.c (rs6000coff_vec): Add
350 _bfd_nodynamic_get_synthetic_symtab.
351 (pmac_xcoff_vec): Likewise.
352 * coff64-rs6000.c (rs6000coff64_vec): Add
353 _bfd_nodynamic_get_synthetic_symtab.
354 (aix5coff64_vec): Likewise.
355 * sunos.c (MY_get_synthetic_symtab): Define.
356 * vms.c (vms_get_synthetic_symtab): Define.
357
d2f7ecac
NC
3582004-04-22 Nick Clifton <nickc@redhat.com>
359
360 * bfd.c (bfd_archive_filename): Return NULL on NULL input.
361
fd99574b
NC
3622004-04-22 Peter Barada <peter@the-baradas.com>
363
364 * archures.c: Add bfd_mach_mcfv4e to bfd_architecture.
365 * bfd2-in.h: Regenerate.
366 * cpu-m68k.c: Add 'm68k:mcfv4e' to arch_info_struct[].
367
23867d67
CD
3682004-04-21 Chris Demetriou <cgd@broadcom.com>
369
370 * coff-mips.c (bfd_mips_ecoff_create_embedded_relocs): Remove.
371 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Remove.
372 * bfd-in.h (bfd_mips_ecoff_create_embedded_relocs)
373 (bfd_mips_elf32_create_embedded_relocs): Remove prototypes
374 * bfd-in2.h: Regenerate.
375
2c8c90bc
BW
3762004-04-21 Bob Wilson <bob.wilson@acm.org>
377
378 * elf32-xtensa.c (is_same_value): Add final_static_link argument and
379 require relocations against a weak symbol to reference the same
380 symbol hash entry if not a final, static link.
381 (get_cached_value, add_value_map): Add final_static_link argument.
382 (remove_literals): Pass final_static_link argument as needed.
383
40838a72
AC
3842004-04-21 Andrew Cagney <cagney@redhat.com>
385
386 * opncls.c (_bfd_new_bfd_contained_in): Copy "iovec".
387 (struct opncls, opncls_btell, opncls_bseek, opncls_bread)
388 (opncls_bwrite, opncls_bclose, opncls_bflush)
389 (opncls_bstat, opncls_iovec, bfd_openr_iovec): Implement a
390 bfd iovec that uses function callbacks.
391 (bfd_close): Use the iovec's bclose.
392 * cache.c (cache_btell, cache_bseek, cache_bread, cache_bwrite)
393 (cache_bclose, cache_bflush, cache_bstat)
394 (cache_iovec): New functions and global variable, implement a
395 cache "iovec", where applicable set bfd_error.
396 (bfd_cache_init, bfd_cache_close): Set/test the bfd's iovec.
397 * bfdio.c (struct bfd_iovec): Define.
398 (real_read): Delete function.
399 (bfd_bread, bfd_bread, bfd_bwrite, bfd_tell, bfd_flush, bfd_stat)
400 (bfd_seek, bfd_get_mtime, bfd_get_size): Use the bfd's "iovec",
401 assume that bread and bwrite set bfd_error.
402 * bfd.c (struct bfd): Add "iovec", update comments.
403 * bfd-in2.h, libbfd.h: Re-generate.
404
7f919c84
AC
4052004-04-21 Andrew Cagney <cagney@redhat.com>
406
407 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
408
715df9b8
EB
4092004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
410
411 * elflink.c (elf_gc_mark_dynamic_ref_symbol): New function.
412 (bfd_elf_gc_sections): Fail if a shared object is being created.
413 Do not fail if dynamic sections have been created. Instead call
414 elf_gc_mark_dynamic_ref_symbol to mark sections that contain
415 dynamically referenced symbols. Do not mark the whole graph
416 rooted at .eh_frame, only the section proper.
417
6482c264
NC
4182004-04-20 DJ Delorie <dj@redhat.com>
419
420 * reloc.c: Add BFD_RELOC_32_SECREL.
421 * bfd-in2.h: Regenerate.
422 * libbfd.h: Likewise.
423 * coff-i386.c (howto_table) [COFF_WITH_PE]: Add R_SECREL32.
424 (coff_i386_rtype_to_howto) [COFF_WITH_PE]: Handle it.
425 (coff_i386_reloc_type_lookup) [COFF_WITH_PE]: Likewise.
426
4dc570c2
JJ
4272004-04-19 Jakub Jelinek <jakub@redhat.com>
428
429 * elf32-sparc.c (elf32_sparc_relocate_section): Handle
430 relocs against hidden/protected undefweak symbols properly.
431 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
432
0b60d5d3
MK
4332004-04-18 Mark Kettenis <kettenis@gnu.org>
434
435 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
436 * netbsd-core.c (netbsd_core_file_p): Set architecture for PowerPC
437 core files.
438
d48bdb99
AM
4392004-04-17 Brian Ford <ford@vss.fsi.com>
440
441 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the first non-zero
442 filepos for the SizeOfHeaders field.
443 (_bfd_XXi_swap_scnhdr_out): Correct section flags lossage on reloc
444 overflow.
445 (_bfd_XXi_swap_sym_in): Remove redundant section flags assignment.
446
57a1784e
AM
4472004-04-16 Alan Modra <amodra@bigpond.net.au>
448
449 * simple.c (bfd_simple_get_relocated_section_contents): Don't
450 change reloc_done. Set and restore _cooked_size.
451 (RETURN): Delete.
452
d1ad3f6f
MK
4532004-04-15 Mark Kettenis <kettenis@gnu.org>
454
455 * netbsd-core.c (netbsd_core_file_p): Set architecture for VAX
456 core files.
457
3d1bca9d
NC
4582004-04-15 Nick Clifton <nickc@redhat.com>
459
460 * bfd.c (bfd_archive_filename): Catch NULL bfd pointers.
461
019b892f
AM
4622004-04-15 Alan Modra <amodra@bigpond.net.au>
463
464 * elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change.
465
15b43f48
AM
4662004-04-15 H.J. Lu <hongjiu.lu@intel.com>
467
468 * elflink.c (_bfd_elf_merge_symbol): Treat weak as strong only
469 when it is a definition.
470
6de00a78
AM
4712004-04-14 Alan Modra <amodra@bigpond.net.au>
472
473 * elf32-sparc.c (elf32_sparc_relocate_section): Don't abort
474 when statically linking PIC code.
475 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
476
279500de
TS
4772004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
478
479 * config.bfd: Remove mips*-*-mach3* and mips*-dec-mach3* targets.
480 * configure.in: Remove mips-dec-bsd*, mips-dec-mach3*, mips-*-mach3*
481 targets amd aout_mips_big_vec, aout_mips_little_vec target vectors.
482 * configure: Regenerate.
483
ccf2f652
RS
4842004-04-08 Richard Sandiford <rsandifo@redhat.com>
485
486 * elflink.c: Include libiberty.h.
487 * Makefile.am (elflink.lo): Depend on libiberty.h.
488 * Makefile.in: Regenerate.
489
ca07892d
DJ
4902004-04-06 Daniel Jacobowitz <drow@mvista.com>
491
492 * elfxx-mips.c (MIPS_ELF_STUB_SECTION_NAME): Always use
493 ".MIPS.stubs".
494
a5a58ba4
L
4952004-04-05 H.J. Lu <hongjiu.lu@intel.com>
496
497 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Always
498 reserve the memory for dynamic linker
499
24d18d30
MK
5002004-04-05 Mark Kettenis <kettenis@gnu.org>
501
502 * netbsd-core.c (CORE_WCOOKIE_OFFSET): New define.
503 (netbsd_core_file_p): Create a .wcookie section for OpenBSD/sparc.
504
a4d7b4b5
L
5052004-04-02 H.J. Lu <hongjiu.lu@intel.com>
506
507 * elf32-cr16c.c (elf32_cr16c_relocate_section): Use
508 RELOC_FOR_GLOBAL_SYMBOL.
509 (elf32_cr16c_add_symbol_hook): Remove const from Elf_Internal_Sym.
510
1f433d93
L
5112004-04-02 H.J. Lu <hongjiu.lu@intel.com>
512
513 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
514 R_ARM_ALU* only if OLD_ARM_ABI is not defined.
515
e489d0ae
PB
5162004-04-01 Paul Brook <paul@codesourcery.com>
517
518 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update.
519 * elf32-arm.h (struct elf32_elf_section_map): New.
520 (struct _arm_elf_section_data): New.
521 (elf32_arm_section_data): Define.
522 (struct elf32_arm_link_hash_table): Add byteswap_code.
523 (elf32_arm_link_hash_table_create): Initialize byteswap_code.
524 (bfd_elf32_arm_process_before_allocation): Add byteswap_code.
525 (elf32_arm_post_process_headers): Set EF_ARM_BE8.
526 (elf32_arm_output_symbol_hook, elf32_arm_new_section_hook,
527 elf32_arm_compare_mapping, elf32_arm_write_section): New functions.
528 (bfd_elf32_new_section_hook, elf_backend_write_section,
529 elf_backend_link_output_symbol_hook): Define.
530
66a695f0
NC
5312004-04-01 Andy Chittenden <achittenden@bluearc.com>
532
533 * stabs.c (struct stab_link_includes_totals): Add field 'symb'
534 that keeps the characters in a B_INCL..B_EINCL range.
535 (_bfd_link_section_stabs): When computing the sum of the
536 characters in a B_INCL..B_EINCL range also keep a copy of those
537 characters. Use this information to distinguish between
538 include sections that have the same sum and the same length
539 but which are nevertheless unique.
540
8375c36b
PB
5412004-03-31 Paul Brook <paul@codesourcery.com>
542
543 * elf32-arm.h (elf32_arm_final_link_relocate): Add R_ARM_ALU*.
544 * elfarm-nabi.c (elf32_arm_howto_table): Ditto.
545
a56b48eb
NC
5462004-03-31 Andy Chittenden <achittenden@bluearc.com>
547
548 * stabs.c (struct stab_link_includes_totals): Rename field 'total'
549 to 'sum_chars' and add field 'num_chars'.
550 (_bfd_link_section_stabs): When computing the sum of the
551 characters in a B_INCL..B_EINCL range also keep a count of the
552 number of characters. Use this information to help distinguish
553 between include sections when have the same sum but which
554 nevertheless are still unique.
555