~ubuntu-branches/ubuntu/hoary/binutils/hoary

« back to all changes in this revision

Viewing changes to bfd/tekhex.c

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2005-03-18 13:07:52 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050318130752-j4i37zgqclj53b94
Tags: 2.15-5ubuntu2
debian/rules: Call pkgstriptranslations if present (the package does not
use debhelper, thus it does not happen automatically).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* BFD backend for Extended Tektronix Hex Format  objects.
2
 
   Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
 
2
   Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002, 2003
3
3
   Free Software Foundation, Inc.
4
4
   Written by Steve Chamberlain of Cygnus Support <sac@cygnus.com>.
5
5
 
29
29
        relocations. Their main application is communication with
30
30
        devices like PROM programmers and ICE equipment.
31
31
 
32
 
        It seems that the sections are descibed as being really big,
 
32
        It seems that the sections are described as being really big,
33
33
        the example I have says that the text section is 0..ffffffff.
34
34
        BFD would barf with this, many apps would try to alloc 4GB to
35
35
        read in the file.
110
110
static void writesym PARAMS ((char **, const char *));
111
111
static void writevalue PARAMS ((char **, bfd_vma));
112
112
static bfd_boolean tekhex_set_section_contents
113
 
 PARAMS ((bfd*, sec_ptr, PTR, file_ptr, bfd_size_type));
 
113
 PARAMS ((bfd*, sec_ptr, const PTR, file_ptr, bfd_size_type));
114
114
static bfd_boolean tekhex_set_arch_mach
115
115
 PARAMS ((bfd *, enum bfd_architecture, unsigned long));
116
116
static bfd_boolean tekhex_get_section_contents
117
117
 PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type));
118
118
static void move_section_contents
119
 
 PARAMS ((bfd *, asection *, PTR, file_ptr, bfd_size_type, bfd_boolean));
 
119
 PARAMS ((bfd *, asection *, const PTR, file_ptr, bfd_size_type, bfd_boolean));
120
120
static const bfd_target *tekhex_object_p PARAMS ((bfd *));
121
121
static bfd_boolean tekhex_mkobject PARAMS ((bfd *));
122
122
static long tekhex_get_symtab_upper_bound PARAMS ((bfd *));
593
593
move_section_contents (abfd, section, locationp, offset, count, get)
594
594
     bfd *abfd;
595
595
     asection *section;
596
 
     PTR locationp;
 
596
     const PTR locationp;
597
597
     file_ptr offset;
598
598
     bfd_size_type count;
599
599
     bfd_boolean get;
672
672
tekhex_set_section_contents (abfd, section, locationp, offset, bytes_to_do)
673
673
     bfd *abfd;
674
674
     sec_ptr section;
675
 
     PTR locationp;
 
675
     const PTR locationp;
676
676
     file_ptr offset;
677
677
     bfd_size_type bytes_to_do;
678
678
{