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