Select the highest known ARM architecture when an F_ARM_5 flag is detected,
[binutils-gdb.git] / bfd / ChangeLog
1 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
2
3 * coffcode.h (coff_set_arch_mach_hook): Select the highest known
4 ARM architecture when an F_ARM_5 flag is detected, since we cannot
5 be sure exactly which architecture this represents.
6
7 2002-02-05 Nick Clifton <nickc@redhat.com>
8
9 * po/tr.po: Updated translation.
10
11 2002-02-05 Alan Modra <amodra@bigpond.net.au>
12
13 From Jimi X <jimix@watson.ibm.com>
14 * archures (bfd_mach_ppc64): Define.
15 (bfd_powerpc_arch): Rename to bfd_powerpc_archs.
16 (bfd_powerpc_arch): Define.
17 * bfd-in2.h: Regenerate.
18 * cpu-powerpc.c (arch_info_struct): Rename to bfd_powerpc_archs.
19 (bfd_powerpc_arch): Move to tail of bfd_powerpc_archs.
20 (bfd_powerpc_archs): Add default powerpc64 arch.
21
22 2002-02-05 Alan Modra <amodra@bigpond.net.au>
23
24 * elf64-ppc.c (ppc64_elf_size_dynamic_sections): Check for relocs
25 against section syms in readonly sections. Don't do the global
26 sym check if we find one.
27 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
28 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
29 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
30 (elf_s390_grok_prstatus): Add missing prototype.
31
32 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
33
34 * elf64-mmix.c (mmix_dump_bpo_gregs): New function.
35 (mmix_elf_check_common_relocs) <case R_MMIX_BASE_PLUS_OFFSET>:
36 Call bfd_get_section_by_name only once. Initialize
37 bpodata->n_bpo_relocs_this_section.
38 (_bfd_mmix_prepare_linker_allocated_gregs): Remove comment
39 referring to DSOs.
40 (bpo_reloc_request_sort_fn): Don't use difference of values as
41 return-value.
42
43 2002-02-02 David O'Brien <obrien@FreeBSD>
44
45 * configure.in: Tweak the FreeBSD 4.x recognition more. Only treat
46 version 4.5 and later the same as 5-CURRENT.
47 * configure: Re-generate.
48
49 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
50
51 * config.bfd (hppa*-*-netbsd*): New target.
52
53 2002-01-31 Philipp Thomas <pthomas@suse.de>
54
55 * coff-arm.c (coff_arm_merge_private_bfd_data): Move ERROR
56 to front of message. Unify messages with elf32-arm.h. Use
57 commas where neccessary.
58 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Use all upcase
59 ERROR in messages. Unify messages with coff-arm.c. Correct
60 VFP/FPA error message.
61 (elf32_arm_print_private_bfd_data): Don't mark APCS-26 and
62 APCS-32 for translation.
63
64 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
65
66 Perform on-demand global register allocation from
67 R_MMIX_BASE_PLUS_OFFSET relocs.
68 * elf64-mmix.c (struct bpo_reloc_section_info, struct
69 bpo_reloc_request, struct bpo_greg_section_info): New.
70 (mmix_elf_check_common_relocs, mmix_elf_gc_sweep_hook,
71 bpo_reloc_request_sort_fn, mmix_elf_relax_section,
72 _bfd_mmix_check_all_relocs,
73 _bfd_mmix_prepare_linker_allocated_gregs,
74 _bfd_mmix_finalize_linker_allocated_gregs): New functions.
75 (elf_mmix_howto_table): Correct src_mask for most relocs.
76 (mmix_elf_perform_relocation) <case R_MMIX_BASE_PLUS_OFFSET>: New
77 case.
78 (mmix_final_link_relocate) <case R_MMIX_BASE_PLUS_OFFSET>: New
79 case. Fix typo in comment. New label do_mmix_reloc.
80 (mmix_elf_check_relocs): Abuse bfd_link_info member base_file to
81 store first object file with a base-plus-offset reloc. Call
82 mmix_elf_check_common_relocs for the part common with mmo.
83 (mmix_elf_final_link): Write out linker-allocated register
84 contents section.
85 (elf_backend_gc_sweep_hook): Define.
86 (bfd_elf64_bfd_relax_section): Define.
87
88 * mmo.c: Don't include <ctype.h>
89 (mmo_init): Correct init-once logic.
90
91 2002-02-01 Tom Rix <trix@redhat.com>
92
93 * config.bfd: Conditionally support <aiaff> for pre AIX 4.3.
94
95 2002-02-01 Alan Modra <amodra@bigpond.net.au>
96
97 * Makefile.am: Run "make dep-am"
98 * Makefile.in: Regenerate.
99
100 2002-01-31 David O'Brien <obrien@FreeBSD>
101
102 * configure.in: Recognize the differences in core files from FreeBSD
103 4.{0,1} and later versions of 4.x. This treats 4.2+ the same as
104 5-CURRENT.
105 * configure: Regenerate.
106
107 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
108
109 * coff-or32.c: New file.
110 * cpu-or32.c: New file.
111 * elf32-or32.c: New file.
112 * archures.c: Add support for or32.
113 * targets.c: Add support for or32.
114 * bfd-in2.h: Regenerate.
115 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags,
116 coff_write_object_contents): Add support for or32.
117 * config.bfd: Add target.
118 * configure.in: Add support for or32.
119 * configure: Regenerate.
120 * Makefile.am: Add support for or32.
121 * Makefile.in: Regenerate.
122 * po/SRC-POTFILES.in: Add or32 files.
123 * po/bfd.pot: Regenerate.
124
125 2002-01-31 Nick Clifton <nickc@cambridge.redhat.com>
126 Don Lindsay <lindsayd@cisco.com>
127
128 * elf32-mips.c (mips_elf_calculate_relocation): Replace 'return
129 false' with a return of a bfd_reloc_ error code.
130
131 2002-01-31 Hans-Peter Nilsson <hp@axis.com>
132
133 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
134 unexport unreferenced symbols when --export-dynamic. Call
135 _bfd_elf_strtab_delref when unexporting.
136
137 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
138
139 * bfd-in.h: Include <stdbool.h> if it is available.
140 * bfd-in2.h: Regenerated.
141
142 2002-01-31 Alan Modra <amodra@bigpond.net.au>
143
144 * elf64-ppc.c (func_desc_adjust): STV_PROTECTED functions should
145 not go via the plt.
146
147 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
148
149 * archures.c: Tidy up formatting of embedded comments.
150 * bfd.c: Tidy up formatting of embedded comments.
151 * bfd-in.h: Fix formatting of comments.
152 * reloc.c: Tidy up formatting of ordinary & embedded comments.
153 * section.c: Tidy up formatting of embedded comments.
154 * syms.c: Tidy up formatting of embedded comments.
155 * targets.c: Tidy up formatting of embedded comments.
156
157 * bfd-in2.h: Regenerate.
158
159 2002-01-30 Nick Clifton <nickc@cambridge.redhat.com>
160
161 * vms-tir.c (cmd_name): New function.
162 (tir_cmd_name): New function.
163 (etir_sta, etir_sto, etir_opr, etir_stc): Use cmd_name().
164 (tir_opr, tir_ctl, tir_cmd): use tir_cmd_name().
165 Fix formatting.
166
167 * peXXigen.c (pe_print_idata): Rearrange message to aid in
168 translation.
169 (pe_print_pdata): Rearrange message to aid in translation.
170
171 * libbfd.c (warn_deprecated): Rearrange error message to aid in
172 translation.
173
174 * ihex.c (ihex_write_object_contents): Fix spelling typo.
175
176 * ieee.c (ieee_slurp_external_symbols): Remove spurious space.
177
178 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Rearrange error
179 message to aid in translation.
180
181 * elf64-mmix.c (mmix_final_link_relocate): Rearrange error message
182 to aid in translation.
183
184 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix typo.
185
186 2002-01-30 Philipp Thomas <pthomas@suse.de>
187
188 * coff-arm.c, elf32-elf.h: Unify messages.
189
190 2002-01-30 Nick Clifton <nickc@redhat.com>
191
192 * po/sv.po: Updated translation.
193
194 2002-01-30 Philipp Thomas <pthomas@suse.de>
195
196 * dwarf2.c (read_abbrev): Use full section name in error message.
197 (decode_line_info): Likewise.
198
199 * elf.c (_bfd_elf_symbol_from_bfd_symbol): Don't translate debugging
200 message.
201
202 2002-01-30 Alan Modra <amodra@bigpond.net.au>
203
204 * elf64-ppc.c (func_desc_adjust): Only provide missing function
205 descriptor symbols for undefined function code syms. Clear
206 ELF_LINK_NON_ELF so that they can stay weak.
207
208 2002-01-29 Chris Demetriou <cgd@broadcom.com>
209 Mitch Lichtenberg <mpl@broadcom.com>
210
211 * bfd-in.h (bfd_mips_elf32_create_embedded_relocs): New prototype.
212 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): New function
213 to handle 32-bit ELF embedded reloc (ld --embedded-relocs)
214 generation.
215 * bfd-in2.h: Regenerate.
216
217 2002-01-29 Chris Demetriou <cgd@broadcom.com>
218
219 * elf32-mips.c: Add additional comments about HI16 relocation
220 processing.
221 (_bfd_mips_elf_hi16_reloc): Don't subtract address here for
222 pc-relative relocations. (Reverts change made on 2001-10-31.)
223 (_bfd_mips_elf_lo16_reloc): Subtract address of LO16 part here
224 for pc-relative relocations.
225 (mips_elf_calculate_relocation): Add a comment about a kludge
226 in the R_MIPS_GNU_REL_HI16 handling.
227 (_bfd_mips_elf_relocate_section): Implement that kludge;
228 adjust pc-relative HI16 relocation for difference in HI16 and
229 LO16 addresses, since it can't easily be done in
230 mips_elf_calculate_relocation.
231
232 2002-01-29 Martin Schwidefsky <schwidefsky@de.ibm.com>
233
234 * elf32-i386 (elf_i386_adjust_dynamic_symbol): Do not replace PLT32
235 relocations with PC32 relocations for undefined or weak symbols.
236 * elf32-s390 (elf_i386_adjust_dynamic_symbol): Likewise.
237 * elf64-s390x (elf_i386_adjust_dynamic_symbol): Likewise.
238
239 2002-01-28 Jason Thorpe <thorpej@wasabisystems.com>
240
241 * elfcore.h (elf_core_file_p): Improve comment for last change.
242
243 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
244
245 * configure: Regenerated.
246
247 2002-01-27 Jason Thorpe <thorpej@wasabisystems.com>
248
249 * elfcore.h (elf_core_file_p): Set the machine architecture
250 before processing the program headers.
251
252 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
253
254 * configure.in <64-bit configuration>: If using gcc, check and
255 emit error for egcs-1.1.2.
256 * configure: Regenerate.
257
258 2002-01-26 Egor Duda <deo@logos-m.ru>
259
260 * elf.c (elfcore_grok_win32pstatus): Copy only as much information
261 as possible to avoid stack corruption.
262
263 2002-01-26 Richard Henderson <rth@redhat.com>
264
265 * elf64-alpha.c (elf64_alpha_check_relocs): Don't set reltext
266 for non-allocated sections.
267
268 2002-01-25 Mark Kettenis <kettenis@gnu.org>
269
270 * elf.c (elfcore_write_prstatus): Make sure we pass the address of
271 prstat.pr_reg even if it is a struct.
272
273 2002-01-25 Steve Ellcey <sje@cup.hp.com>
274
275 * bfd/elfxx-ia64.c: Reset AIX vector function overrides for HP-UX.
276
277 2002-01-25 Philipp Thomas <pthomas@suse.de>
278
279 * coffgen.c (coff_print_symbol): Don't mark info message
280 for translation.
281
282 2002-01-25 Nick Clifton <nickc@redhat.com>
283
284 * po/fr.po: Updated translation.
285 * po/es.po: Updated translation.
286
287 2002-01-25 Philipp Thomas <pthomas@suse.de>
288
289 * coff-alpha.c (alpha_relocate_section): Unify warning message
290 for GP relative relocations without GP defined.
291 * coff-mips.c (mips_relocate_section): Likewise.
292
293 2002-01-25 Alan Modra <amodra@bigpond.net.au>
294
295 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Avoid
296 unsigned overflow when new_offset < old_offset.
297
298 2002-01-24 Philipp Thomas <pthomas@suse.de>
299
300 * bfd.c (_bfd_abort): Fix typo.
301
302 2002-01-23 Richard Henderson <rth@redhat.com>
303
304 * elf64-alpha.c (elf64_alpha_adjust_dynamic_symbol): Don't suppress
305 plt entries for undefweak symbols.
306
307 2002-01-23 Steve Ellcey <sje@cup.hp.com>
308
309 * bfd/targets.c (bfd_elf32_ia64_hpux_big_vec): Add to
310 DEFAULT_VECTOR.
311 (bfd_elf64_ia64_hpux_big_vec): Ditto.
312 (bfd_elf32_h8300_vec): Ditto.
313
314 2002-01-23 Alan Modra <amodra@bigpond.net.au>
315
316 * elf64-ppc.c: Remove stale part of ABI comment.
317 (NO_OPD_RELOCS): Define.
318 (ppc64_elf_check_relocs): Use it.
319 (ppc64_elf_relocate_section): Here too.
320 (build_one_stub): Don't point function syms at the stub. Instead,
321 hijack plt.offset.
322 (ppc64_elf_relocate_section): Check whether REL24 relocs should
323 really go to the stub. Make all dynamic relocs in opd against
324 locals.
325 (ppc64_elf_finish_dynamic_symbol): Allow for non-standard use of
326 plt.offset.
327
328 2002-01-22 Richard Henderson <rth@redhat.com>
329
330 * elf64-alpha.c (INSN_UNOP): Encode with RB as $sp.
331
332 2002-01-22 Alan Modra <amodra@bigpond.net.au>
333
334 * elf64-ppc.c (ppc64_elf_finish_dynamic_sections): Correct sign of
335 TOC_BASE_OFF adjustment.
336
337 * Makefile.am: Run "make dep-am".
338 * Makefile.in: Regenerate.
339 * po/SRC-POTFILES.in: Regenerate.
340
341 2002-01-22 John David Anglin <dave@hiauly1.hia.nrc.ca>
342
343 * configure.host (hppa*64*-*-hpux*, hppa*64*-*-linux*): Add new
344 host defines.
345
346 2002-01-21 Hans-Peter Nilsson <hp@axis.com>
347
348 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_32_GOTREL>:
349 Check for and emit error if sgot is NULL at this point.
350
351 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
352
353 * config.bfd (ia64*-*-netbsd*): New target.
354
355 2002-01-21 Thomas Klausner <wiz@danbala.ifoer.tuwien.ac.at>
356
357 * som.c (som_write_space_strings): Comment typo fix.
358
359 2002-01-21 Alan Modra <amodra@bigpond.net.au>
360
361 * elf64-ppc.c (struct ppc_link_hash_entry): Add is_func and
362 is_func_descriptor fields.
363 (link_hash_newfunc): Init them.
364 (ppc64_elf_check_relocs): Only R_PPC24_REL24 syms starting with a
365 dot are candidates for plt entries. When processing .opd relocs,
366 set function descriptor strings to point inside function code
367 string, and set new ppc_link_hash_entry fields.
368 (ppc64_elf_gc_sweep_hook): Don't sweep R_PPC64_REL24 relocs.
369 (ppc64_elf_adjust_dynamic_symbol): Remove most code dealing with
370 function descriptors. It's now done in..
371 (func_desc_adjust): New.
372 (ppc64_elf_func_desc_adjust): New.
373 (define elf_backend_always_size_sections): Define.
374 (ppc64_elf_hide_symbol): New.
375 (define elf_backend_hide_symbol): Define.
376 (allocate_dynrelocs): Remove code looking up function descriptors
377 as that has been done earlier.
378 (ppc64_elf_size_dynamic_sections): Use htab shortcut to elf hash
379 table.
380 (ppc64_elf_finish_dynamic_symbol): Likewise. Remove code looking
381 up function descriptor.
382 (build_one_stub): Look up the function code sym. Check for
383 invalid plt offsets.
384 (ppc64_elf_relocate_section): Tweak calls to undefined weak syms.
385 Convert R_PPC64_TOC relocs to R_PPC64_RELATIVE in shared libs.
386
387 * elf-bfd.h (elf_backend_data <elf_backend_hide_symbol>): Add
388 boolean param.
389 (_bfd_elf_link_hash_hide_symbol): Likewise.
390 * elflink.h (elf_link_add_object_symbols): Adjust call to
391 elf_backend_hide_symbol.
392 (elf_fix_symbol_flags): Likewise.
393 (elf_link_assign_sym_version): Likewise. Use bfd_malloc rather
394 than bfd_alloc.
395 * elf.c (_bfd_elf_link_hash_hide_symbol): Add "force_local" param.
396 Set ELF_LINK_FORCED_LOCAL and call _bfd_elf_strtab_delref.
397 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
398 (clobber_millicode_symbols): Adjust to suit new hide_symbol.
399 * elf32-cris.c (elf_cris_hide_symbol): Add "force_local" param
400 and adjust to suit.
401 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise, and call
402 _bfd_elf_link_hash_hide_symbol rather than duplicating code.
403 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
404
405 2002-01-18 Alan Modra <amodra@bigpond.net.au>
406
407 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Test for a
408 dynamic function descriptor symbol, not the associated function
409 symbol.
410
411 2002-01-17 Eric Christopher <echristo@redhat.com>
412
413 * elf32-mips.c (mips_elf_calculate_relocation): Fix typo.
414
415 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
416
417 * po/bfd.pot: Regenerate.
418 * po/fr.po: Regenerate.
419
420 2002-01-17 Alan Modra <amodra@bigpond.net.au>
421
422 * elf-bfd.h (elf_backend_data <elf_backend_section_from_bfd_section>):
423 Remove "Elf_Internal_Shdr *" param.
424 (_bfd_mips_elf_section_from_bfd_section): Ditto.
425 * elf32-mips.c (_bfd_mips_elf_section_from_bfd_section): Ditto.
426 * elf32-m32r.c (_bfd_m32r_elf_section_from_bfd_section): Ditto.
427 * elf32-v850.c (v850_elf_section_from_bfd_section): Ditto.
428 * elf64-mmix.c (mmix_elf_section_from_bfd_section): Ditto.
429 * elfxx-ia64.c (elfNN_hpux_backend_section_from_bfd_section): Ditto.
430 * elf.c (_bfd_elf_section_from_bfd_section): Allow backend
431 function to override special sections. Remove hdr arg from
432 backend call, and don't loop.
433
434 2002-01-16 Eric Christopher <echristo@redhat.com>
435
436 * elf32-mips.c (mips_elf_calculate_relocation): Set require_jalxp
437 on R_MIPS_26 and target is 16bit. Add R_MIPS16_GPREL to list of
438 relocations requiring gp0 and gp.
439
440 2002-01-16 Richard Earnshaw <rearnsha@arm.com>
441
442 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Handle
443 EF_ARM_VFP_FLOAT.
444 (elf32_arm_print_private_bfd_data): Likewise.
445
446 2002-01-16 Nick Clifton <nickc@cambridge.redhat.com>
447
448 * po/tr.po: Import new version.
449
450 2002-01-16 Alan Modra <amodra@bigpond.net.au>
451
452 * elf64-ppc.c (ppc64_elf_howto_raw): Remove stale FIXMEs.
453 (ppc64_elf_reloc_type_lookup): Use proper CTOR reloc.
454 (ORI_R0_R0_0): Correct.
455
456 2002-01-16 Alan Modra <amodra@bigpond.net.au>
457
458 * elflink.c (_bfd_elf_create_dynamic_sections): Don't set SEC_CODE
459 when plt_not_loaded.
460 * elf64-ppc.c (ppc64_elf_create_dynamic_sections): No need to
461 clear .plt SEC_CODE here. Create .stub and correct .glink flags.
462 (PLT_INITIAL_ENTRY_SIZE): Set to 24.
463 (ppc64_elf_glink_code): Delete.
464 (PPC64_ELF_GLINK_SIZE): Delete.
465 (ADDIS_R12_R2, STD_R2_40R1, LD_R11_0R12, LD_R2_0R12, MTCTR_R11,
466 BCTR, ADDIS_R12_R12_1, LD_R2_40R1, NOP, LI_R0_0, B_DOT, LIS_R0_0,
467 ORI_R0_R0_0): Define.
468 (PLT_CALL_STUB_SIZE, GLINK_CALL_STUB_SIZE): Define.
469 (struct ppc_link_hash_table): Add sstub and plt_overflow.
470 (ppc64_elf_link_hash_table_create): Init them.
471 (ppc64_elf_check_relocs <R_PPC64_REL24>): Refcount .plt entry.
472 Don't copy to shared lib.
473 (ppc64_elf_check_relocs): Call bfd_set_error on errors.
474 (ppc64_elf_gc_sweep_hook <R_PPC64_REL24>): Sweep plt refcount.
475 (allocate_dynrelocs <plt>): Don't change function sym here. Make
476 room for .stub and .glink code.
477 (ppc64_elf_size_dynamic_sections): Handle .stub. Make entry for
478 DT_PPC64_GLINK.
479 (ppc64_elf_final_link): Rename to ppc64_elf_set_toc. Don't call
480 bfd_elf64_bfd_final_link.
481 (bfd_elf64_bfd_final_link): Don't define.
482 (ppc64_elf_size_stubs): New.
483 (build_plt_stub): New.
484 (build_one_stub): New.
485 (ppc64_elf_build_stubs): New.
486 (ppc64_elf_relocate_section <toc relocs>): Remove assert.
487 (ppc64_elf_relocate_section): Don't copy R_PPC64_REL24 relocs.
488 (ppc64_elf_finish_dynamic_symbol): Don't build stubs here. Set
489 DT_PPC64_GLINK entry. Tweak DT_PLTGOT, DT_JMPREL, DT_PLTRELSZ in
490 case output sections not separate. Adjust DT_RELASZ to not
491 include plt relocs. Set reserved got entry. Set got and plt
492 entry size.
493 (elf_backend_got_header_size): Set to 8.
494 * elf64-ppc.h: New file.
495
496 2002-01-16 Alan Modra <amodra@bigpond.net.au>
497
498 * elf32-arm.h (elf32_arm_size_dynamic_sections): When removing
499 sections, use bfd_section_list_remove.
500 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
501 * elflink.h (elf_link_add_object_symbols): When removing all
502 sections, use bfd_section_list_clear.
503
504 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
505
506 * po/sv.po: New file: Swedish translation.
507 * configure.in (ALL_LINGUAS): Add sv.
508 * configure: Regenerate.
509
510 2002-01-15 Jakub Jelinek <jakub@redhat.com>
511
512 * elflink.h (elf_link_input_bfd): Back out 2002-01-07 change.
513 * elf.c (merge_sections_remove_hook): New function.
514 (_bfd_elf_merge_sections): Pass it as 3rd argument to
515 _bfd_merge_sections.
516 * libbfd-in.h (_bfd_merge_sections): Add 3rd argument.
517 * libbfd.h: Rebuilt.
518 * merge.c (_bfd_merge_sections): Add remove_hook argument.
519 Call remove_hook if a SEC_EXCLUDE section is encountered.
520
521 2002-01-15 Nick Clifton <nickc@cambridge.redhat.com>
522
523 * elf32-xstormy16.c (xstormy16_reloc_map): Add new field 'table'.
524 (xstormy16_reloc_map): Initialise new field with correct howto
525 table.
526 (xstormy16_reloc_type_lookup): Use 'table' field to locate correct
527 howto entry.
528
529 2002-01-10 Michael Snyder <msnyder@redhat.com>
530
531 * elf.c (elfcore_write_prstatus): Use long instead of pid_t;
532 (elfcore_write_pstatus): Use long instead of pid_t;
533 * elf-bfd.h: Change prototypes to use long instead of pid_t;
534
535 2002-01-09 Jason Thorpe <thorpej@wasabisystems.com>
536
537 * elf.c: Update copyright years.
538 (elfcore_grok_netbsd_note): Use NT_NETBSDCORE_PROCINFO
539 and NT_NETBSDCORE_FIRSTMACH. Improve a comment.
540
541 2002-01-08 Michael Snyder <msnyder@redhat.com>
542
543 Add capability to write corefile note sections, for gdb.
544 * elf.c (elfcore_write_note): New function.
545 (elfcore_write_prpsinfo): New function.
546 (elfcore_write_prstatus): New function.
547 (elfcore_write_pstatus): New function.
548 (elfcore_write_prfpreg): New function.
549 (elfcore_write_prxfpreg): New function.
550 * elf-bfd.h: Add prototypes for above functions.
551
552 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
553
554 * elf.c (elf_fake_sections): Propagate errors from
555 elf_backend_fake_section.
556
557 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
558
559 * Makefile.am (BFD32_BACKENDS): Add elf32-sh-nbsd.lo.
560 (BFD32_BACKENDS_CFILES): Add elf32-sh-nbsd.c.
561 (elf32-sh-nbsd.lo): New rule.
562 * Makefile.in: Regenerate.
563 * config.bfd (sh*le-*-netbsdelf*): New target.
564 (sh*-*-netbsdelf*): New target.
565 * configure.in: Include netbsd-core.lo for native sh*-*-netbsd*.
566 (bfd_elf32_shnbsd_vec): New vector.
567 (bfd_elf32_shlnbsd_vec): New vector.
568 * configure: Regenerate.
569 * elf32-sh-nbsd.c: New file.
570 * targets.c: Update copyright years.
571 (_bfd_target_vector): Add bfd_elf32_shlnbsd_vec and
572 bfd_elf32_shnbsd_vec.
573
574 2002-01-07 Aldy Hernandez <aldyh@redhat.com>
575
576 * coff-rs6000.c (READ20): Use bfd_scan_vma.
577
578 2002-01-07 Geoffrey Keating <geoffk@redhat.com>
579
580 * elflink.h (elf_link_input_bfd): Don't ask for the merged offset
581 of a symbol in a section that will be deleted.
582
583 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
584
585 * po/es.po: New file: Spanish translation.
586 * configure.in (ALL_LINGUAS): Add es.
587 * configure: Regenerate.
588
589 2002-01-06 Steve Ellcey <sje@cup.hp.com>
590
591 * elfxx-ia64.c (is_unwind_section_name): Add target vector as
592 argument so we can handle HP-UX specially.
593 (elfNN_ia64_hpux_vec): New for use in is_unwind_section_name.
594 (elfNN_hpux_backend_section_from_bfd_section): New for support
595 of SHN_IA_64_ANSI_COMMON.
596 (elfNN_ia64_relax_section): Add support for SHN_IA_64_ANSI_COMMON.
597 (is_unwind_section_name): Add special HP-UX support.
598 (elfNN_ia64_section_from_shdr): Add support for more sections.
599 (elfNN_ia64_fake_sections): Modify is_unwind_section_name call and
600 add support for more sections.
601 (elfNN_ia64_additional_program_headers): Modify
602 is_unwind_section_name call.
603 (elfNN_ia64_modify_segment_map): Remove assumption that there is
604 only one unwind section in segment.
605
606 2002-01-06 Alan Modra <amodra@bigpond.net.au>
607
608 * syms.c (_bfd_generic_make_empty_symbol): New function.
609 * libbfd-in.h (_bfd_nosymbols_make_empty_symbol): Define as
610 _bfd_generic_make_empty_symbol.
611 * libbfd.h: Regenerate.
612 * bfd-in2.h: Regenerate.
613 * hppabsd-core.c (hppabsd_core_make_empty_symbol): Delete function.
614 (hppabsd_core_get_symtab_upper_bound): Don't define.
615 (hppabsd_core_get_symtab): Likewise.
616 (hppabsd_core_print_symbol): Likewise.
617 (hppabsd_core_get_symbol_info): Likewise.
618 (hppabsd_core_bfd_is_local_label_name): Likewise.
619 (hppabsd_core_get_lineno): Likewise.
620 (hppabsd_core_find_nearest_line): Likewise.
621 (hppabsd_core_bfd_make_debug_symbol): Likewise.
622 (hppabsd_core_read_minisymbols): Likewise.
623 (hppabsd_core_minisymbol_to_symbol): Likewise.
624 (hppabsd_core_vec): Use BFD_JUMP_TABLE_SYMBOLS (_bfd_nosymbols).
625 Formatting fixes.
626 * hpux-core.c: Similarly.
627 * irix-core.c: Similarly.
628 * osf-core.c: Similarly.
629 * sco5-core.c: Similarly.
630 * binary.c (binary_make_empty_symbol): Remove function, define as
631 _bfd_generic_make_empty_symbol.
632 * ihex.c (ihex_make_empty_symbol): Likewise.
633 * mmo.c (mmo_make_empty_symbol): Likewise.
634 * ppcboot.c (ppcboot_make_empty_symbol): Likewise.
635 * srec.c (srec_make_empty_symbol): Likewise.
636 * versados.c (versados_make_empty_symbol): Likewise.
637 * vms.c (_bfd_vms_make_empty_symbol): Remove.
638 (vms_make_empty_symbol): Define as _bfd_generic_make_empty_symbol.
639 * vms-gsd.c (_bfd_vms_slurp_gsd): Call bfd_make_empty_symbol
640 rather than _bfd_vms_make_empty_symbol.
641 * vms-misc.c (new_symbol): Likewise.
642
643 2002-01-05 Alan Modra <amodra@bigpond.net.au>
644
645 * section.c (bfd_section_init): Remove unnecessary initialisations.
646 (bfd_section_list_clear): New function.
647 (bfd_section_list_remove, bfd_section_list_insert): New macros.
648 (_bfd_strip_section_from_output): Use them.
649 * coffcode.h (coff_set_alignment_hook): Likewise.
650 * elf32-mips.c (_bfd_mips_elf_final_link): Likewise.
651 * elf64-mips.c (mips_elf64_final_link): Likewise.
652 * elf64-mmix.c (mmix_elf_final_link): Likewise.
653 * sunos.c (sunos_add_dynamic_symbols): Likewise.
654 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
655 * bfd-in2.h: Regenerate.
656
657 * netbsd-core.c (netbsd_core_file_p): Use bfd_make_section_anyway
658 rather than doing our own section handling. Clean up after errors
659 with bfd_release and bfd_section_list_clear. Handle unexpected
660 flags.
661 * aoutf1.h (sunos4_core_file_p): Likewise.
662 * aix386-core.c (aix386_core_file_p): Likewise.
663 * cisco-core.c (cisco_core_file_validate): Likewise.
664 * ptrace-core.c (ptrace_unix_core_file_p): Likewise.
665 * trad-core.c (trad_unix_core_file_p): Likewise.
666
667 * hppabsd-core.c (hppabsd_core_core_file_p): Clean up after errors
668 with bfd_release and bfd_section_list_clear.
669 * hpux-core.c (hpux_core_core_file_p): Likewise.
670 * irix-core.c (irix_core_core_file_p): Likewise.
671 * lynx-core.c (lynx_core_file_p): Likewise.
672 * osf-core.c (osf_core_core_file_p): Likewise.
673 * rs6000-core.c (rs6000coff_core_p): Likewise.
674 * sco5-core.c (sco5_core_file_p): Likewise.
675
676 * elf32-mips.c (_bfd_mips_elf_lo16_reloc): Simplify, and perform
677 sign extension adjustments without conditionals.
678
679 2002-01-04 Jakub Jelinek <jakub@redhat.com>
680
681 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Don't crash if
682 CIE at .eh_frame start is removed due to no FDEs referencing it.
683
684 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
685
686 * config.bfd (x86_64-*-netbsd*): New target.
687 * configure.in (x86_64-*-netbsd*): Set COREFILE
688 to netbsd-core.lo.
689 * configure: Regenerated.
690
691 2002-01-03 Tom Rix <trix@redhat.com>
692
693 * xcofflink.c (_bfd_xcoff_bfd_final_link): Update .pad section ordering
694 for recent bfd_make_section_anyway change.
695
696 2002-01-03 Nick Clifton <nickc@cambridge.redhat.com>
697
698 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
699 R_ARM_THM_PC11 reloc.
700
701 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
702
703 * configure.in (LINGUAS): Add ja.
704 * configure: Regenerate.
705 * po/ja.po: Import from translation project's web site.
706
707 2002-01-02 Nick Clifton <nickc@cambridge.redhat.com>
708
709 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Reformat error
710 messages to ease translation into other languages.
711
712 For older changes see ChangeLog-0001
713 \f
714 Local Variables:
715 mode: change-log
716 left-margin: 8
717 fill-column: 74
718 version-control: never
719 End: