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