summaryrefslogtreecommitdiffstats
path: root/bfd/cache.c
Commit message (Collapse)AuthorAgeFilesLines
* * cache.c (cache_bread_1): Renames cache_bread.Joel Brobecker2008-05-011-1/+38
| | | | (cache_bread): New function.
* * cache.c (close_one): Remove mtime hack.Daniel Jacobowitz2008-03-141-16/+0
| | | | | | | | | * corefile.c (reopen_exec_file): Use exec_bfd_mtime. * exec.c (exec_bfd_mtime): Define. (exec_close): Clear it. (exec_file_attach): Set it. * gdbcore.h (exec_bfd_mtime): Declare. * source.c (find_source_lines): Do not use bfd_get_mtime.
* * cache.c (cache_bread): Set bfd_error_file_truncated if EOFDaniel Jacobowitz2008-02-111-0/+4
| | | | | was reached. * srec.c (srec_scan): Calculate the checksum. Complain on mismatch.
* Switch sources over to use the GPL version 3Nick Clifton2007-07-031-15/+16
|
* bfd/Alan Modra2007-04-261-2/+2
| | | | | | | | | | | | | | | | | | | | Many files: Include sysdep.h before bfd.h. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. binutils/ * bucumm.h: Split off host dependencies to.. * sysdep.h: ..here. Many files: Include sysdep.h. Remove duplicate headers and reorder. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. ld/ Many files: Include sysdep.h first. Remove duplicate headers. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. opcodes/ * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. * ns32k-dis.c: Include sysdep.h first.
* * configure.in: Check for fopen64.Daniel Jacobowitz2005-11-031-4/+4
| | | | | | | | * libbfd-in.h (real_fopen): New prototype. * configure, config.in, libbfd.h: Regenerated. * bfdio.c (real_fopen): New function. * opncls.c (bfd_fopen, bfd_fill_in_gnu_debuglink_section): Use it. * cache.c (bfd_open_file): Likewise.
* PR 973Alan Modra2005-10-271-12/+48
| | | | | | | | | | | | * cache.c (enum cache_flag): New. (close_one): Save file mtime. (bfd_cache_lookup): Add flag arg, adjust all users. (bfd_cache_lookup_worker): Likewise. (cache_btell): Use CACHE_NO_OPEN and return abfd->where if file not open. (cache_bflush): Similarly, and return success of file not open. (cache_bseek): Use CACHE_NO_SEEK if SEEK_SET or SEEK_END. (cache_bstat): Use CACHE_NO_SEEK_ERROR.
* * cache.c (BFD_CACHE_MAX_OPEN): Make private to this file.Alan Modra2005-10-271-55/+23
| | | | | | (bfd_last_cache, bfd_cache_lookup, bfd_cache_lookup_worker): Likewise. * libbfd-in.h (bfd_cache_lookup_worker, bfd_last_cache): Delete. * libbfd.h: Regenerate.
* * cache.c: Reorganize file to avoid forward reference.Alan Modra2005-10-271-191/+188
|
* * cache.c (bfd_cache_lookup_worker): Don't abort on failing toAlan Modra2005-10-261-12/+34
| | | | | | | | | | | reopen file. (cache_btell, cache_bseek, cache_bflush, cache_bstat): Return -1 on bfd_cache_lookup failure. (cache_bread, cache_bwrite): Return 0 on the same. * bfdwin.c (bfd_get_file_window): Likewise. * hppabsd-core.c (hppabsd_core_core_file_p): Likewise. * sco5-core.c (sco5_core_file_p): Likewise. * trad-core.c (trad_unix_core_file_p): Likewise.
* * cache.c (bfd_cache_lookup_worker): Use bfd_error_handlerAlan Modra2005-10-261-1/+3
| | | | rather than bfd_perror. Print file name. Internationalise.
* * cache.c (bfd_open_file): Set bfd_error_system_call on failureAlan Modra2005-10-261-8/+13
| | | | | | to open file. (bfd_cache_lookup_worker): Remove check that file pos is in unsigned long range. Print system error before aborting.
* * archive.c: Add missing SUBSECTION for documentation.Bob Wilson2005-10-051-0/+2
| | | | | | | | | | | | * bfd.c: Likewise. * cache.c: Likewise. * corefile.c: Likewise. * format.c: Likewise. * init.c: Likewise. * libbfd.c: Likewise. * opncls.c: Likewise. * elf.c: Remove blank line after SECTION heading. * reloc.c: Change "howto manager" SECTION to a SUBSECTION.
* (bfd_last_cache): Initialise to NULL.Nick Clifton2005-07-141-1/+1
|
* Update the address and phone number of the FSF organization in the GPL noticesNick Clifton2005-05-041-1/+1
|
* Update the FSF address in the copyright/GPL noticeNick Clifton2005-05-041-1/+1
|
* bfd/Jan Beulich2005-03-021-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2005-03-02 Jan Beulich <jbeulich@novell.com> * Makefile.am: Add dependency of cache.o on libiberty.h. * cache.c: Include libiberty.h. (bfd_open_file): Use unlink_if_ordinary instead of unlink. binutils/ 2005-03-02 Jan Beulich <jbeulich@novell.com> * ar.c (remove_output): Use unlink_if_ordinary instead of unlink. * objcopy.c (copy_file): Likewise. (strip_main): Likewise. gas/ 2005-03-02 Jan Beulich <jbeulich@novell.com> * as.c (main): Use unlink_if_ordinary instead of unlink. * messages.c (as_fatal): Likewise. ld/ 2005-03-02 Jan Beulich <jbeulich@novell.com> * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink. * pe-dll.c (pe_dll_generate_implib): Likewise.
* cache.c (bfd_cache_close_all): Add missing return statement.Jerome Guitton2004-06-171-0/+2
|
* * bfd-in.h (bfd_cache_close_all): New function declaration.Jerome Guitton2004-06-171-0/+25
| | | | | * bfd-in2.h: Regenerate. * cache.c (bfd_cache_close_all): New function definition.
* PR/136 - Have bfd_cache_lookup_worker() abort rather than return anNick Clifton2004-05-051-10/+9
| | | | (unchecked-for) NULL.
* 2004-04-22 Andrew Cagney <cagney@redhat.com>Andrew Cagney2004-04-221-0/+4
| | | | * cache.c (bfd_cache_close): Check for a previously closed file.
* 2004-04-21 Andrew Cagney <cagney@redhat.com>Andrew Cagney2004-04-211-2/+105
| | | | | | | | | | | | | | | | | | | | | * 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-02-11 Andrew Cagney <cagney@redhat.com>Andrew Cagney2004-02-111-4/+6
| | | | | | | | | | | | | | | | | | | * bfd-in.h: Update copyright. (bfd_tell): Change return type to file_ptr. * bfd-in2.h: Re-generate. * cache.c: Update copyright. (bfd_cache_lookup_worker): Use real_fseek, do not cast offset parameter. (close_one): Use real_ftell. * bfdio.c: Update copyright. (real_ftell, real_fseek): New functions. (bfd_tell): Use real_fseek and real_ftell, change return type to file_ptr. (bfd_seek): Use real_ftell and real_fseek, change type of file_position to a file_ptr. * libbfd-in.h: Update copyright. (real_ftell, real_fseek): Declare. * libbfd.h: Re-generate.
* Convert to C90 and a few tweaks.Alan Modra2003-06-291-24/+14
|
* s/boolean/bfd_boolean/ s/true/TRUE/ s/false/FALSE/. SimplifyAlan Modra2002-11-301-18/+18
| | | | comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
* * aout-adobe.c: Don't compare against "true" or "false.Alan Modra2002-06-251-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * aout-target.h: Likewise. * aoutx.h: Likewise. * archive.c: Likewise. * bout.c: Likewise. * cache.c: Likewise. * coff-a29k.c: Likewise. * coff-alpha.c: Likewise. * coff-i386.c: Likewise. * coff-mips.c: Likewise. * coff-or32.c: Likewise. * coff64-rs6000.c: Likewise. * coffcode.h: Likewise. * coffgen.c: Likewise. * cpu-ns32k.c: Likewise. * ecoff.c: Likewise. * ecofflink.c: Likewise. * elf.c: Likewise. * elf32-arm.h: Likewise. * elf32-cris.c: Likewise. * elf32-d30v.c: Likewise. * elf32-i386.c: Likewise. * elf32-mcore.c: Likewise. * elf32-ppc.c: Likewise. * elf32-sh.c: Likewise. * elf32-sh64.c: Likewise. * elf32-v850.c: Likewise. * elf64-alpha.c: Likewise. * elf64-sh64.c: Likewise. * elfcode.h: Likewise. * elfcore.h: Likewise. * elflink.h: Likewise. * elfxx-mips.c: Likewise. * i386os9k.c: Likewise. * ieee.c: Likewise. * libbfd.c: Likewise. * linker.c: Likewise. * mmo.c: Likewise. * nlm32-alpha.c: Likewise. * nlm32-i386.c: Likewise. * nlm32-ppc.c: Likewise. * nlm32-sparc.c: Likewise. * nlmcode.h: Likewise. * oasys.c: Likewise. * pdp11.c: Likewise. * peicode.h: Likewise. * reloc.c: Likewise. * som.c: Likewise. * srec.c: Likewise. * tekhex.c: Likewise. * vms.c: Likewise. * xcofflink.c: Likewise. * elf64-sparc.c: Edit comment to not use "== false". * aoutf1.h: Don't use "? true : false". * ecoff.c: Likewise. * format.c: Likewise. * ieee.c: Likewise. * linker.c: Likewise. * mmo.c: Likewise. * oasys.c: Likewise.
* Touches most files in bfd/, so likely will be blamed for everything..Alan Modra2001-09-181-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* Update copyright noticesNick Clifton2001-03-081-1/+1
|
* Use SEGREL32 relocs for elf32-hppa unwind.Alan Modra2001-01-141-2/+2
|
* 2000-11-28 Kazu Hirata <kazu@hxi.com>Kazu Hirata2000-11-281-9/+8
| | | | | | | | | | | | * aoutx.h: Fix formatting. * bfd-in.h: Likewise. * bfd-in2.h: Likewise. * cache.c: Likewise. * cisco-core.c: Likewise. * coff64-rs6000.c: Likewise. * coffcode.h: Likewise. * coffswap.h: Likewise. * corefile.c: Likewise.
* Eli Zaretskii's DOSish file name patches.Alan Modra2000-05-261-1/+9
|
* 2000-04-03 H.J. Lu <hjl@gnu.org>Ian Lance Taylor2000-04-031-4/+19
| | | | | * cache.c (bfd_open_file): Unlink the output file only if it has none zero size.
* 19990502 sourceware importRichard Henderson1999-05-031-0/+350
OpenPOWER on IntegriCloud