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