* bfd.c (struct bfd_preserve): New.
authorAlan Modra <amodra@gmail.com>
Tue, 12 Nov 2002 15:44:24 +0000 (15:44 +0000)
committerAlan Modra <amodra@gmail.com>
Tue, 12 Nov 2002 15:44:24 +0000 (15:44 +0000)
commite84d6fca26caaf6b02718efa0f1a4fb0d344348c
tree7dfaac5631eded3e7fcacfd1097415db98d4841a
parentc4c41219636642438223c7b46a2c8e1467faba06
* bfd.c (struct bfd_preserve): New.
(bfd_preserve_save): New function.
(bfd_preserve_restore): Ditto.
(bfd_preserve_finish): Ditto.
* bfd-in2.h: Regenerate.
* mach-o.c: Formatting.
(bfd_mach_o_scan_read_symtab_symbol): Make "value" unsigned.
(bfd_mach_o_object_p): Use bfd_preserve_save/restore/finish.
(bfd_mach_o_core_p): Ditto.
(bfd_mach_o_scan): Pass in mdata.
* mach-o.h (bfd_mach_o_scan): Update prototype.
* pef.c: Formatting.
(bfd_pef_object_p): Use bfd_preserve_save/restore/finish.
(bfd_pef_xlib_object_p): Ditto.
(bfd_pef_scan): Pass in mdata.  Move version check to bfd_pef_object_p.
* pef.h (bfd_pef_scan): Update prototype.
* xsym.c: Formatting, K&R fixes.
(bfd_sym_object_p): Use bfd_preserve_save/restore/finish.
(bfd_sym_scan): New function split out from bfd_sym_object_p.
* xsym.h (bfd_sym_scan): Declare.
* elfcode.h (elf_object_p): Use bfd_preserve_save/restore/finish.
(elf_core_file_p): Likewise.
* targets.c (_bfd_target_vector): Revert 2002-11-08 change.
bfd/ChangeLog
bfd/bfd-in2.h
bfd/bfd.c
bfd/elfcode.h
bfd/mach-o.c
bfd/mach-o.h
bfd/pef.c
bfd/pef.h
bfd/targets.c
bfd/xsym.c
bfd/xsym.h