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