aboutsummaryrefslogtreecommitdiff
path: root/bfd/opncls.c
AgeCommit message (Collapse)AuthorFilesLines
2004-04-232004-04-22 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-1/+1
* opncls.c (bfd_alloc): Fix type of "wanted" in doco.
2004-04-212004-04-21 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-1/+184
* opncls.c (_bfd_new_bfd_contained_in): Copy "iovec". (struct opncls, opncls_btell, opncls_bseek, opncls_bread) (opncls_bwrite, opncls_bclose, opncls_bflush) (opncls_bstat, opncls_iovec, bfd_openr_iovec): Implement a bfd iovec that uses function callbacks. (bfd_close): Use the iovec's bclose. * cache.c (cache_btell, cache_bseek, cache_bread, cache_bwrite) (cache_bclose, cache_bflush, cache_bstat) (cache_iovec): New functions and global variable, implement a cache "iovec", where applicable set bfd_error. (bfd_cache_init, bfd_cache_close): Set/test the bfd's iovec. * bfdio.c (struct bfd_iovec): Define. (real_read): Delete function. (bfd_bread, bfd_bread, bfd_bwrite, bfd_tell, bfd_flush, bfd_stat) (bfd_seek, bfd_get_mtime, bfd_get_size): Use the bfd's "iovec", assume that bread and bwrite set bfd_error. * bfd.c (struct bfd): Add "iovec", update comments. * bfd-in2.h, libbfd.h: Re-generate.
2004-01-21Stop indexed move byte instructions from being relaxed.Nick Clifton1-10/+12
2003-11-30 * ChangeLog: Fix typos.Kazu Hirata1-1/+1
* ecoff.c: Fix comment typos. * ecofflink.c: Likewise. * format.c: Likewise. * hp300hpux.c: Likewise. * i386linux.c: Likewise. * ieee.c: Likewise. * m68klinux.c: Likewise. * mach-o.h: Likewise. * mipsbsd.c: Likewise. * oasys.c: Likewise. * opncls.c: Likewise. * peXXigen.c: Likewise. * reloc.c: Likewise. * reloc16.c: Likewise. * section.c: Likewise. * simple.c: Likewise. * som.c: Likewise. * som.h: Likewise. * sparclinux.c: Likewise. * srec.c: Likewise. * syms.c: Likewise. * targets.c: Likewise. * tekhex.c: Likewise. * versados.c: Likewise. * vms-gsd.c: Likewise. * vms-hdr.c: Likewise. * vms-misc.c: Likewise. * xcofflink.c: Likewise. * xsym.h: Likewise. * bfd-in2.h: Regenerate.
2003-10-202003-10-19 Andrew Cagney <cagney@redhat.com>Andrew Cagney1-3/+3
* targets.c: Replace "struct sec" with "struct bfd_section" * syms.c, sparclynx.c, section.c, opncls.c: Ditto. * libcoff-in.h, libbfd-in.h, elfxx-target.h: Ditto. * elf.c, coffgen.c, bfd.c, bfd-in.h, aoutf1.h: Ditto. * aout-tic30.c, aout-target.h: * bfd-in2.h, libcoff.h, libbfd.h: Regenerate. Index: binutils/ChangeLog 2003-10-19 Andrew Cagney <cagney@redhat.com> * coffgrok.h (coff_section): Replace 'struct sec" with "struct bfd_section". Index: gdb/ChangeLog 2003-10-19 Andrew Cagney <cagney@redhat.com> * symtab.c: Replace "struct sec" with "struct bfd_section". * objfiles.c, linespec.c, blockframe.c, block.c: Ditto. Index: ld/ChangeLog 2003-10-19 Andrew Cagney <cagney@redhat.com> * pe-dll.c: Replace "struct sec" with "struct bfd_section". Index: sim/common/ChangeLog 2003-10-19 Andrew Cagney <cagney@redhat.com> * sim-base.h: Replace "struct sec" with "struct bfd_section".
2003-06-29Convert to C90 and a few tweaks.Alan Modra1-107/+68
2003-06-27Fix --add-gnu-debuglinkNick Clifton1-32/+76
2003-06-12Add new switch to objcopy: --add-gnu-debuglink=<file>Nick Clifton1-23/+152
Allows packages to be shipped in two forms, a stripped executable and debug info file.
2003-03-31Fix memory leaksNick Clifton1-1/+6
2003-01-31bfd_follow_gnu_debuglink: New function. Follow the pointer contained inside aNick Clifton1-1/+334
.gnu_debuglink section.
2003-01-27* bfd.c (struct _bfd): Added id field.Alexandre Oliva1-0/+6
* opncls.c (_bfd_id_counter): New static variable. (_bfd_new_bfd): Use it. * bfd-in2.h: Rebuilt.
2002-11-30s/boolean/bfd_boolean/ s/true/TRUE/ s/false/FALSE/. SimplifyAlan Modra1-32/+32
comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
2002-10-06 * opncls.c: Formatting.Alan Modra1-34/+36
(_bfd_new_bfd): Use a smaller section hash table.
2002-06-17 * opncls.c (bfd_openr): Remove redundant bfd_set_error.Alan Modra1-6/+2
(bfd_fdopenr): Likewise. (bfd_openstreamr): Likewise. (bfd_openw): Likewise.
2002-05-04 * opncls.c (_bfd_new_bfd_contained_in): Check return value ofAlan Modra1-0/+2
_bfd_new_bfd.
2002-04-26 * opncls.c (bfd_make_readable): Call bfd_section_list_clear.Alan Modra1-2/+2
* xcofflink.c (xcoff_link_add_dynamic_symbols): Likewise.
2002-04-15Write contents if writeable.Nick Clifton1-36/+32
2001-12-17hash bfd sections for fast lookup and create.Alan Modra1-23/+31
bfd/ChangeLog * bfd.c (struct _bfd): Add section_htab, section_tail. * libbfd-in.h (_bfd_delete_bfd): Declare. (bfd_section_hash_newfunc): Declare. * opncls.c (_bfd_new_bfd): Free memory on failure. Init section_htab and section_tail. (_bfd_delete_bfd): New function. (bfd_openr): Use it. (bfd_fdopenr): Likewise. (bfd_openstreamr): Likewise. (bfd_openw): Likewise. (bfd_close): Likewise. (bfd_close_all_done): Likewise. (bfd_release): Comment. * section.c (struct section_hash_entry): New. (bfd_section_hash_newfunc): New function. (section_hash_lookup): Define. (bfd_section_init): New function, split out from bfd_make_section_anyway. (bfd_get_section_by_name): Lookup via hash table. (bfd_get_unique_section_name): Likewise. (bfd_make_section_old_way): Rewrite to use hash table. (bfd_make_section_anyway): Likewise. (bfd_make_section): Likewise. Return NULL for attempts to make BFD_{ABS,COM,UND,IND}_SECTION_NAME. (_bfd_strip_section_from_output): Adjust section_tail if needed. * configure.in: Bump bfd version. * configure: Regenerate. * libbfd.h: Regenerate. * bfd-in2.h: Regenerate. ld/ChangeLog * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust section_tail when fiddling with section list. (gld${EMULATION_NAME}_list_options): Ensure sentences aren't broken into separate strings to make translation easier. * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when fiddling with section list. * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
2001-09-18Touches most files in bfd/, so likely will be blamed for everything..Alan Modra1-22/+29
o bfd_read and bfd_write lose an unnecessary param and become bfd_bread and bfd_bwrite. o bfd_*alloc now all take a bfd_size_type arg, and will error if size_t is too small. eg. 32 bit host, 64 bit bfd, verrry big files or bugs in linker scripts etc. o file_ptr becomes a bfd_signed_vma. Besides matching sizes with various other types involved in handling sections, this should make it easier for bfd to support a 64 bit off_t on 32 bit hosts that provide it. o I've made the H_GET_* and H_PUT_* macros (which invoke bfd_h_{get,put}_*) generally available. They now cast their args to bfd_vma and bfd_byte * as appropriate, which removes a swag of casts from the source. o Bug fixes to bfd_get8, aix386_core_vec, elf32_h8_relax_section, and aout-encap.c. o Zillions of formatting and -Wconversion fixes.
2001-03-08Update copyright noticesNick Clifton1-1/+2
2001-01-14Add parens like the comment says.Alan Modra1-2/+2
2000-05-26(bfd_close_all_done): Mask file perms with 0777 not 0x777.Alan Modra1-1/+1
1999-05-0319990502 sourceware importbinu_ss_19990502Richard Henderson1-0/+683