]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/ChangeLog
2004-04-24 Michael Chastain <mec.gnu@mindspring.com>
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
3e27568f
CD
12004-04-23 Chris Demetriou <cgd@broadcom.com>
2
3 * coff-mips.c (mips_relhi_reloc, mips_rello_reloc)
4 (mips_switch_reloc, mips_read_relocs, mips_relax_section)
5 (mips_relax_pcrel16, PCREL16_EXPANSION_ADJUSTMENT): Remove.
6 (mips_relocate_hi): Remove now-unused 'adjust' and 'pcrel' arguments,
7 and update comments to reflect current usage.
8 (mips_howto_table): Remove entries for MIPS_R_RELHI, MIPS_R_RELLO,
9 and MIPS_R_SWITCH, as well as several empty entries. Update comment
10 for MIPS_R_PCREL16.
11 (mips_ecoff_swap_reloc_in, mips_ecoff_swap_reloc_out)
12 (mips_adjust_reloc_out, mips_bfd_reloc_type_lookup): Remove support
13 for MIPS_R_SWITCH, MIPS_R_RELLO, and MIPS_R_RELHI relocations.
14 (mips_adjust_reloc_in): Likewise, adjust maximum accepted relocation
15 type number to be MIPS_R_PCREL16.
16 (mips_relocate_section): Remove support for link-time relaxation
17 of branches used by embedded-PIC. Remove support for MIPS_R_SWITCH,
18 MIPS_R_RELLO, and MIPS_R_RELHI relocations.
19 (_bfd_ecoff_bfd_relax_section): Redefine to bfd_generic_relax_section.
20 * ecoff.c (ecoff_indirect_link_order): Remove support for link-time
21 relaxation of branches used by embedded-PIC.
22 * ecofflink.c (bfd_ecoff_debug_accumulate): Likewise.
23 * libecoff.h (struct ecoff_section_tdata): Remove embedded-PIC
24 related members, update comment.
25 * pe-mips.c: Remove disabled (commented-out and #if 0'd)
26 code related to embedded-PIC.
27 * elfxx-mips.c (_bfd_mips_elf_read_ecoff_info): Remove
28 initialization of now-removed 'adjust' member of
29 'struct ecoff_debug_info'.
30
b32de0bc 312004-04-23 Chris Demetriou <cgd@broadcom.com>
8472310d
CD
32
33 * elfxx-mips.c (mips_elf_get_global_gotsym_index): Remove.
34
955af222
PB
352004-04-21 Philip Blundell <pb@nexus.co.uk>
36
37 * elf32-arm.h (elf32_arm_check_relocs): Don't output REL32
38 relocs for locally defined symbols during -shared final link.
39 (elf32_arm_final_link_relocate): Likewise.
40
47a9f7b3
JJ
412004-04-22 Jakub Jelinek <jakub@redhat.com>
42
43 * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Copy also
44 ELF_LINK_POINTER_EQUALITY_NEEDED.
45 (elf64_x86_64_check_relocs): Set ELF_LINK_POINTER_EQUALITY_NEEDED
46 if r_type is not R_X86_64_PC32.
47 (elf64_x86_64_finish_dynamic_symbol): If
48 ELF_LINK_POINTER_EQUALITY_NEEDED is not set, clear st_value of
49 SHN_UNDEF symbols.
50
1f1799d5
KK
512004-04-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
52
53 * elf32-sh.c (sh_elf_plt_sym_val): New function.
54 (elf_backend_plt_sym_val): Define.
55
0fdea5ce
AC
562004-04-22 Andrew Cagney <cagney@redhat.com>
57
58 * opncls.c (bfd_alloc): Fix type of "wanted" in doco.
59
5198ba8b
DA
602004-04-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
61
62 * hpux-core.c (hpux_core_core_file_p): Add cast in call to
63 make_bfd_asection.
64 * som.c (som_set_section_contents): Constantify second argument.
65 (hppa_som_gen_reloc_type): Abort for unsupported selectors.
66 (som_object_setup): Rework to avoid warning.
67 (setup_sections, som_write_fixups, bfd_section_from_som_symbol):
68 Likewise.
69
fe2e161a
AC
702004-04-22 Andrew Cagney <cagney@redhat.com>
71
72 * cache.c (bfd_cache_close): Check for a previously closed file.
73
4c45e5c9
JJ
742004-04-22 Jakub Jelinek <jakub@redhat.com>
75
76 * bfd.c (bfd_get_synthetic_symtab): Define.
77 * targets.c (BFD_JUMP_TABLE_DYNAMIC): Add
78 NAME##_get_synthetic_symtab.
79 (struct bfd_target): Add _bfd_get_synthetic_symtab.
80 * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Define.
81 * elf-bfd.h (struct elf_backend_data): Add plt_sym_val and
82 relplt_name fields.
83 (_bfd_elf_get_synthetic_symtab): New prototype.
84 * elfcode.h (elf_get_synthetic_symtab): Define.
85 * elf.c (_bfd_elf_get_synthetic_symtab): New function.
86 * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Define.
87 (elf_backend_plt_sym_val, elf_backend_relplt_name): Define.
88 (elfNN_bed): Add elf_backend_plt_sym_val and elf_backend_relplt_name.
89 * bfd-in2.h: Rebuilt.
90 * libbfd.h: Rebuilt.
91 * elf32-i386.c (elf_i386_plt_sym_val): New function.
92 (elf_backend_plt_sym_val): Define.
93 * elf64-x86-64.c (elf64_x86_64_plt_sym_val): New function.
94 (elf_backend_plt_sym_val): Define.
95 * elf32-s390.c (elf_s390_plt_sym_val): New function.
96 (elf_backend_plt_sym_val): Define.
97 * elf64-s390.c (elf_s390_plt_sym_val): New function.
98 (elf_backend_plt_sym_val): Define.
99 * elf32-sparc (elf32_sparc_plt_sym_val): New function.
100 (elf_backend_plt_sym_val): Define.
101 * elf64-sparc.c (sparc64_elf_plt_sym_val): New function.
102 (elf_backend_plt_sym_val): Define.
103 * elf32-ppc.c (ppc_elf_plt_sym_val): New function.
104 (elf_backend_plt_sym_val): Define.
105 * aout-target.h (MY_get_synthetic_symtab): Define.
106 * aout-tic30.c (MY_get_synthetic_symtab): Define.
107 * coff-rs6000.c (rs6000coff_vec): Add
108 _bfd_nodynamic_get_synthetic_symtab.
109 (pmac_xcoff_vec): Likewise.
110 * coff64-rs6000.c (rs6000coff64_vec): Add
111 _bfd_nodynamic_get_synthetic_symtab.
112 (aix5coff64_vec): Likewise.
113 * sunos.c (MY_get_synthetic_symtab): Define.
114 * vms.c (vms_get_synthetic_symtab): Define.
115
d2f7ecac
NC
1162004-04-22 Nick Clifton <nickc@redhat.com>
117
118 * bfd.c (bfd_archive_filename): Return NULL on NULL input.
119
fd99574b
NC
1202004-04-22 Peter Barada <peter@the-baradas.com>
121
122 * archures.c: Add bfd_mach_mcfv4e to bfd_architecture.
123 * bfd2-in.h: Regenerate.
124 * cpu-m68k.c: Add 'm68k:mcfv4e' to arch_info_struct[].
125
23867d67
CD
1262004-04-21 Chris Demetriou <cgd@broadcom.com>
127
128 * coff-mips.c (bfd_mips_ecoff_create_embedded_relocs): Remove.
129 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Remove.
130 * bfd-in.h (bfd_mips_ecoff_create_embedded_relocs)
131 (bfd_mips_elf32_create_embedded_relocs): Remove prototypes
132 * bfd-in2.h: Regenerate.
133
2c8c90bc
BW
1342004-04-21 Bob Wilson <bob.wilson@acm.org>
135
136 * elf32-xtensa.c (is_same_value): Add final_static_link argument and
137 require relocations against a weak symbol to reference the same
138 symbol hash entry if not a final, static link.
139 (get_cached_value, add_value_map): Add final_static_link argument.
140 (remove_literals): Pass final_static_link argument as needed.
141
40838a72
AC
1422004-04-21 Andrew Cagney <cagney@redhat.com>
143
144 * opncls.c (_bfd_new_bfd_contained_in): Copy "iovec".
145 (struct opncls, opncls_btell, opncls_bseek, opncls_bread)
146 (opncls_bwrite, opncls_bclose, opncls_bflush)
147 (opncls_bstat, opncls_iovec, bfd_openr_iovec): Implement a
148 bfd iovec that uses function callbacks.
149 (bfd_close): Use the iovec's bclose.
150 * cache.c (cache_btell, cache_bseek, cache_bread, cache_bwrite)
151 (cache_bclose, cache_bflush, cache_bstat)
152 (cache_iovec): New functions and global variable, implement a
153 cache "iovec", where applicable set bfd_error.
154 (bfd_cache_init, bfd_cache_close): Set/test the bfd's iovec.
155 * bfdio.c (struct bfd_iovec): Define.
156 (real_read): Delete function.
157 (bfd_bread, bfd_bread, bfd_bwrite, bfd_tell, bfd_flush, bfd_stat)
158 (bfd_seek, bfd_get_mtime, bfd_get_size): Use the bfd's "iovec",
159 assume that bread and bwrite set bfd_error.
160 * bfd.c (struct bfd): Add "iovec", update comments.
161 * bfd-in2.h, libbfd.h: Re-generate.
162
7f919c84
AC
1632004-04-21 Andrew Cagney <cagney@redhat.com>
164
165 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
166
715df9b8
EB
1672004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
168
169 * elflink.c (elf_gc_mark_dynamic_ref_symbol): New function.
170 (bfd_elf_gc_sections): Fail if a shared object is being created.
171 Do not fail if dynamic sections have been created. Instead call
172 elf_gc_mark_dynamic_ref_symbol to mark sections that contain
173 dynamically referenced symbols. Do not mark the whole graph
174 rooted at .eh_frame, only the section proper.
175
6482c264
NC
1762004-04-20 DJ Delorie <dj@redhat.com>
177
178 * reloc.c: Add BFD_RELOC_32_SECREL.
179 * bfd-in2.h: Regenerate.
180 * libbfd.h: Likewise.
181 * coff-i386.c (howto_table) [COFF_WITH_PE]: Add R_SECREL32.
182 (coff_i386_rtype_to_howto) [COFF_WITH_PE]: Handle it.
183 (coff_i386_reloc_type_lookup) [COFF_WITH_PE]: Likewise.
184
4dc570c2
JJ
1852004-04-19 Jakub Jelinek <jakub@redhat.com>
186
187 * elf32-sparc.c (elf32_sparc_relocate_section): Handle
188 relocs against hidden/protected undefweak symbols properly.
189 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
190
0b60d5d3
MK
1912004-04-18 Mark Kettenis <kettenis@gnu.org>
192
193 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
194 * netbsd-core.c (netbsd_core_file_p): Set architecture for PowerPC
195 core files.
196
d48bdb99
AM
1972004-04-17 Brian Ford <ford@vss.fsi.com>
198
199 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the first non-zero
200 filepos for the SizeOfHeaders field.
201 (_bfd_XXi_swap_scnhdr_out): Correct section flags lossage on reloc
202 overflow.
203 (_bfd_XXi_swap_sym_in): Remove redundant section flags assignment.
204
57a1784e
AM
2052004-04-16 Alan Modra <amodra@bigpond.net.au>
206
207 * simple.c (bfd_simple_get_relocated_section_contents): Don't
208 change reloc_done. Set and restore _cooked_size.
209 (RETURN): Delete.
210
d1ad3f6f
MK
2112004-04-15 Mark Kettenis <kettenis@gnu.org>
212
213 * netbsd-core.c (netbsd_core_file_p): Set architecture for VAX
214 core files.
215
3d1bca9d
NC
2162004-04-15 Nick Clifton <nickc@redhat.com>
217
218 * bfd.c (bfd_archive_filename): Catch NULL bfd pointers.
219
019b892f
AM
2202004-04-15 Alan Modra <amodra@bigpond.net.au>
221
222 * elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change.
223
15b43f48
AM
2242004-04-15 H.J. Lu <hongjiu.lu@intel.com>
225
226 * elflink.c (_bfd_elf_merge_symbol): Treat weak as strong only
227 when it is a definition.
228
6de00a78
AM
2292004-04-14 Alan Modra <amodra@bigpond.net.au>
230
231 * elf32-sparc.c (elf32_sparc_relocate_section): Don't abort
232 when statically linking PIC code.
233 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
234
279500de
TS
2352004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
236
237 * config.bfd: Remove mips*-*-mach3* and mips*-dec-mach3* targets.
238 * configure.in: Remove mips-dec-bsd*, mips-dec-mach3*, mips-*-mach3*
239 targets amd aout_mips_big_vec, aout_mips_little_vec target vectors.
240 * configure: Regenerate.
241
ccf2f652
RS
2422004-04-08 Richard Sandiford <rsandifo@redhat.com>
243
244 * elflink.c: Include libiberty.h.
245 * Makefile.am (elflink.lo): Depend on libiberty.h.
246 * Makefile.in: Regenerate.
247
ca07892d
DJ
2482004-04-06 Daniel Jacobowitz <drow@mvista.com>
249
250 * elfxx-mips.c (MIPS_ELF_STUB_SECTION_NAME): Always use
251 ".MIPS.stubs".
252
a5a58ba4
L
2532004-04-05 H.J. Lu <hongjiu.lu@intel.com>
254
255 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Always
256 reserve the memory for dynamic linker
257
24d18d30
MK
2582004-04-05 Mark Kettenis <kettenis@gnu.org>
259
260 * netbsd-core.c (CORE_WCOOKIE_OFFSET): New define.
261 (netbsd_core_file_p): Create a .wcookie section for OpenBSD/sparc.
262
a4d7b4b5
L
2632004-04-02 H.J. Lu <hongjiu.lu@intel.com>
264
265 * elf32-cr16c.c (elf32_cr16c_relocate_section): Use
266 RELOC_FOR_GLOBAL_SYMBOL.
267 (elf32_cr16c_add_symbol_hook): Remove const from Elf_Internal_Sym.
268
1f433d93
L
2692004-04-02 H.J. Lu <hongjiu.lu@intel.com>
270
271 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
272 R_ARM_ALU* only if OLD_ARM_ABI is not defined.
273
e489d0ae
PB
2742004-04-01 Paul Brook <paul@codesourcery.com>
275
276 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update.
277 * elf32-arm.h (struct elf32_elf_section_map): New.
278 (struct _arm_elf_section_data): New.
279 (elf32_arm_section_data): Define.
280 (struct elf32_arm_link_hash_table): Add byteswap_code.
281 (elf32_arm_link_hash_table_create): Initialize byteswap_code.
282 (bfd_elf32_arm_process_before_allocation): Add byteswap_code.
283 (elf32_arm_post_process_headers): Set EF_ARM_BE8.
284 (elf32_arm_output_symbol_hook, elf32_arm_new_section_hook,
285 elf32_arm_compare_mapping, elf32_arm_write_section): New functions.
286 (bfd_elf32_new_section_hook, elf_backend_write_section,
287 elf_backend_link_output_symbol_hook): Define.
288
66a695f0
NC
2892004-04-01 Andy Chittenden <achittenden@bluearc.com>
290
291 * stabs.c (struct stab_link_includes_totals): Add field 'symb'
292 that keeps the characters in a B_INCL..B_EINCL range.
293 (_bfd_link_section_stabs): When computing the sum of the
294 characters in a B_INCL..B_EINCL range also keep a copy of those
295 characters. Use this information to distinguish between
296 include sections that have the same sum and the same length
297 but which are nevertheless unique.
298
8375c36b
PB
2992004-03-31 Paul Brook <paul@codesourcery.com>
300
301 * elf32-arm.h (elf32_arm_final_link_relocate): Add R_ARM_ALU*.
302 * elfarm-nabi.c (elf32_arm_howto_table): Ditto.
303
a56b48eb
NC
3042004-03-31 Andy Chittenden <achittenden@bluearc.com>
305
306 * stabs.c (struct stab_link_includes_totals): Rename field 'total'
307 to 'sum_chars' and add field 'num_chars'.
308 (_bfd_link_section_stabs): When computing the sum of the
309 characters in a B_INCL..B_EINCL range also keep a count of the
310 number of characters. Use this information to help distinguish
311 between include sections when have the same sum but which
312 nevertheless are still unique.
313
3d456464
NC
314