2004-04-22 Jeff Johnston <jjohnstn@redhat.com>
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
fe2e161a
AC
12004-04-22 Andrew Cagney <cagney@redhat.com>
2
3 * cache.c (bfd_cache_close): Check for a previously closed file.
4
4c45e5c9
JJ
52004-04-22 Jakub Jelinek <jakub@redhat.com>
6
7 * bfd.c (bfd_get_synthetic_symtab): Define.
8 * targets.c (BFD_JUMP_TABLE_DYNAMIC): Add
9 NAME##_get_synthetic_symtab.
10 (struct bfd_target): Add _bfd_get_synthetic_symtab.
11 * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Define.
12 * elf-bfd.h (struct elf_backend_data): Add plt_sym_val and
13 relplt_name fields.
14 (_bfd_elf_get_synthetic_symtab): New prototype.
15 * elfcode.h (elf_get_synthetic_symtab): Define.
16 * elf.c (_bfd_elf_get_synthetic_symtab): New function.
17 * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Define.
18 (elf_backend_plt_sym_val, elf_backend_relplt_name): Define.
19 (elfNN_bed): Add elf_backend_plt_sym_val and elf_backend_relplt_name.
20 * bfd-in2.h: Rebuilt.
21 * libbfd.h: Rebuilt.
22 * elf32-i386.c (elf_i386_plt_sym_val): New function.
23 (elf_backend_plt_sym_val): Define.
24 * elf64-x86-64.c (elf64_x86_64_plt_sym_val): New function.
25 (elf_backend_plt_sym_val): Define.
26 * elf32-s390.c (elf_s390_plt_sym_val): New function.
27 (elf_backend_plt_sym_val): Define.
28 * elf64-s390.c (elf_s390_plt_sym_val): New function.
29 (elf_backend_plt_sym_val): Define.
30 * elf32-sparc (elf32_sparc_plt_sym_val): New function.
31 (elf_backend_plt_sym_val): Define.
32 * elf64-sparc.c (sparc64_elf_plt_sym_val): New function.
33 (elf_backend_plt_sym_val): Define.
34 * elf32-ppc.c (ppc_elf_plt_sym_val): New function.
35 (elf_backend_plt_sym_val): Define.
36 * aout-target.h (MY_get_synthetic_symtab): Define.
37 * aout-tic30.c (MY_get_synthetic_symtab): Define.
38 * coff-rs6000.c (rs6000coff_vec): Add
39 _bfd_nodynamic_get_synthetic_symtab.
40 (pmac_xcoff_vec): Likewise.
41 * coff64-rs6000.c (rs6000coff64_vec): Add
42 _bfd_nodynamic_get_synthetic_symtab.
43 (aix5coff64_vec): Likewise.
44 * sunos.c (MY_get_synthetic_symtab): Define.
45 * vms.c (vms_get_synthetic_symtab): Define.
46
d2f7ecac
NC
472004-04-22 Nick Clifton <nickc@redhat.com>
48
49 * bfd.c (bfd_archive_filename): Return NULL on NULL input.
50
fd99574b
NC
512004-04-22 Peter Barada <peter@the-baradas.com>
52
53 * archures.c: Add bfd_mach_mcfv4e to bfd_architecture.
54 * bfd2-in.h: Regenerate.
55 * cpu-m68k.c: Add 'm68k:mcfv4e' to arch_info_struct[].
56
23867d67
CD
572004-04-21 Chris Demetriou <cgd@broadcom.com>
58
59 * coff-mips.c (bfd_mips_ecoff_create_embedded_relocs): Remove.
60 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Remove.
61 * bfd-in.h (bfd_mips_ecoff_create_embedded_relocs)
62 (bfd_mips_elf32_create_embedded_relocs): Remove prototypes
63 * bfd-in2.h: Regenerate.
64
2c8c90bc
BW
652004-04-21 Bob Wilson <bob.wilson@acm.org>
66
67 * elf32-xtensa.c (is_same_value): Add final_static_link argument and
68 require relocations against a weak symbol to reference the same
69 symbol hash entry if not a final, static link.
70 (get_cached_value, add_value_map): Add final_static_link argument.
71 (remove_literals): Pass final_static_link argument as needed.
72
40838a72
AC
732004-04-21 Andrew Cagney <cagney@redhat.com>
74
75 * opncls.c (_bfd_new_bfd_contained_in): Copy "iovec".
76 (struct opncls, opncls_btell, opncls_bseek, opncls_bread)
77 (opncls_bwrite, opncls_bclose, opncls_bflush)
78 (opncls_bstat, opncls_iovec, bfd_openr_iovec): Implement a
79 bfd iovec that uses function callbacks.
80 (bfd_close): Use the iovec's bclose.
81 * cache.c (cache_btell, cache_bseek, cache_bread, cache_bwrite)
82 (cache_bclose, cache_bflush, cache_bstat)
83 (cache_iovec): New functions and global variable, implement a
84 cache "iovec", where applicable set bfd_error.
85 (bfd_cache_init, bfd_cache_close): Set/test the bfd's iovec.
86 * bfdio.c (struct bfd_iovec): Define.
87 (real_read): Delete function.
88 (bfd_bread, bfd_bread, bfd_bwrite, bfd_tell, bfd_flush, bfd_stat)
89 (bfd_seek, bfd_get_mtime, bfd_get_size): Use the bfd's "iovec",
90 assume that bread and bwrite set bfd_error.
91 * bfd.c (struct bfd): Add "iovec", update comments.
92 * bfd-in2.h, libbfd.h: Re-generate.
93
7f919c84
AC
942004-04-21 Andrew Cagney <cagney@redhat.com>
95
96 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
97
715df9b8
EB
982004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
99
100 * elflink.c (elf_gc_mark_dynamic_ref_symbol): New function.
101 (bfd_elf_gc_sections): Fail if a shared object is being created.
102 Do not fail if dynamic sections have been created. Instead call
103 elf_gc_mark_dynamic_ref_symbol to mark sections that contain
104 dynamically referenced symbols. Do not mark the whole graph
105 rooted at .eh_frame, only the section proper.
106
6482c264
NC
1072004-04-20 DJ Delorie <dj@redhat.com>
108
109 * reloc.c: Add BFD_RELOC_32_SECREL.
110 * bfd-in2.h: Regenerate.
111 * libbfd.h: Likewise.
112 * coff-i386.c (howto_table) [COFF_WITH_PE]: Add R_SECREL32.
113 (coff_i386_rtype_to_howto) [COFF_WITH_PE]: Handle it.
114 (coff_i386_reloc_type_lookup) [COFF_WITH_PE]: Likewise.
115
4dc570c2
JJ
1162004-04-19 Jakub Jelinek <jakub@redhat.com>
117
118 * elf32-sparc.c (elf32_sparc_relocate_section): Handle
119 relocs against hidden/protected undefweak symbols properly.
120 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
121
0b60d5d3
MK
1222004-04-18 Mark Kettenis <kettenis@gnu.org>
123
124 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
125 * netbsd-core.c (netbsd_core_file_p): Set architecture for PowerPC
126 core files.
127
d48bdb99
AM
1282004-04-17 Brian Ford <ford@vss.fsi.com>
129
130 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the first non-zero
131 filepos for the SizeOfHeaders field.
132 (_bfd_XXi_swap_scnhdr_out): Correct section flags lossage on reloc
133 overflow.
134 (_bfd_XXi_swap_sym_in): Remove redundant section flags assignment.
135
57a1784e
AM
1362004-04-16 Alan Modra <amodra@bigpond.net.au>
137
138 * simple.c (bfd_simple_get_relocated_section_contents): Don't
139 change reloc_done. Set and restore _cooked_size.
140 (RETURN): Delete.
141
d1ad3f6f
MK
1422004-04-15 Mark Kettenis <kettenis@gnu.org>
143
144 * netbsd-core.c (netbsd_core_file_p): Set architecture for VAX
145 core files.
146
3d1bca9d
NC
1472004-04-15 Nick Clifton <nickc@redhat.com>
148
149 * bfd.c (bfd_archive_filename): Catch NULL bfd pointers.
150
019b892f
AM
1512004-04-15 Alan Modra <amodra@bigpond.net.au>
152
153 * elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change.
154
15b43f48
AM
1552004-04-15 H.J. Lu <hongjiu.lu@intel.com>
156
157 * elflink.c (_bfd_elf_merge_symbol): Treat weak as strong only
158 when it is a definition.
159
6de00a78
AM
1602004-04-14 Alan Modra <amodra@bigpond.net.au>
161
162 * elf32-sparc.c (elf32_sparc_relocate_section): Don't abort
163 when statically linking PIC code.
164 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
165
279500de
TS
1662004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
167
168 * config.bfd: Remove mips*-*-mach3* and mips*-dec-mach3* targets.
169 * configure.in: Remove mips-dec-bsd*, mips-dec-mach3*, mips-*-mach3*
170 targets amd aout_mips_big_vec, aout_mips_little_vec target vectors.
171 * configure: Regenerate.
172
ccf2f652
RS
1732004-04-08 Richard Sandiford <rsandifo@redhat.com>
174
175 * elflink.c: Include libiberty.h.
176 * Makefile.am (elflink.lo): Depend on libiberty.h.
177 * Makefile.in: Regenerate.
178
ca07892d
DJ
1792004-04-06 Daniel Jacobowitz <drow@mvista.com>
180
181 * elfxx-mips.c (MIPS_ELF_STUB_SECTION_NAME): Always use
182 ".MIPS.stubs".
183
a5a58ba4
L
1842004-04-05 H.J. Lu <hongjiu.lu@intel.com>
185
186 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Always
187 reserve the memory for dynamic linker
188
24d18d30
MK
1892004-04-05 Mark Kettenis <kettenis@gnu.org>
190
191 * netbsd-core.c (CORE_WCOOKIE_OFFSET): New define.
192 (netbsd_core_file_p): Create a .wcookie section for OpenBSD/sparc.
193
a4d7b4b5
L
1942004-04-02 H.J. Lu <hongjiu.lu@intel.com>
195
196 * elf32-cr16c.c (elf32_cr16c_relocate_section): Use
197 RELOC_FOR_GLOBAL_SYMBOL.
198 (elf32_cr16c_add_symbol_hook): Remove const from Elf_Internal_Sym.
199
1f433d93
L
2002004-04-02 H.J. Lu <hongjiu.lu@intel.com>
201
202 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
203 R_ARM_ALU* only if OLD_ARM_ABI is not defined.
204
e489d0ae
PB
2052004-04-01 Paul Brook <paul@codesourcery.com>
206
207 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update.
208 * elf32-arm.h (struct elf32_elf_section_map): New.
209 (struct _arm_elf_section_data): New.
210 (elf32_arm_section_data): Define.
211 (struct elf32_arm_link_hash_table): Add byteswap_code.
212 (elf32_arm_link_hash_table_create): Initialize byteswap_code.
213 (bfd_elf32_arm_process_before_allocation): Add byteswap_code.
214 (elf32_arm_post_process_headers): Set EF_ARM_BE8.
215 (elf32_arm_output_symbol_hook, elf32_arm_new_section_hook,
216 elf32_arm_compare_mapping, elf32_arm_write_section): New functions.
217 (bfd_elf32_new_section_hook, elf_backend_write_section,
218 elf_backend_link_output_symbol_hook): Define.
219
66a695f0
NC
2202004-04-01 Andy Chittenden <achittenden@bluearc.com>
221
222 * stabs.c (struct stab_link_includes_totals): Add field 'symb'
223 that keeps the characters in a B_INCL..B_EINCL range.
224 (_bfd_link_section_stabs): When computing the sum of the
225 characters in a B_INCL..B_EINCL range also keep a copy of those
226 characters. Use this information to distinguish between
227 include sections that have the same sum and the same length
228 but which are nevertheless unique.
229
8375c36b
PB
2302004-03-31 Paul Brook <paul@codesourcery.com>
231
232 * elf32-arm.h (elf32_arm_final_link_relocate): Add R_ARM_ALU*.
233 * elfarm-nabi.c (elf32_arm_howto_table): Ditto.
234
a56b48eb
NC
2352004-03-31 Andy Chittenden <achittenden@bluearc.com>
236
237 * stabs.c (struct stab_link_includes_totals): Rename field 'total'
238 to 'sum_chars' and add field 'num_chars'.
239 (_bfd_link_section_stabs): When computing the sum of the
240 characters in a B_INCL..B_EINCL range also keep a count of the
241 number of characters. Use this information to help distinguish
242 between include sections when have the same sum but which
243 nevertheless are still unique.
244