summaryrefslogtreecommitdiff
path: root/gold/output.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-12-18 00:48:04 +0000
committerIan Lance Taylor <iant@google.com>2007-12-18 00:48:04 +0000
commitb8be32941b787282717407c387c8cbf8ffda0ff3 (patch)
treeca8a94aaadba05ff70e0e5380945b22df5d8bfb9 /gold/output.h
parente6b63e791f64217ee721f24ad8dde37e9b93e5fb (diff)
downloadbinutils-redhat-b8be32941b787282717407c387c8cbf8ffda0ff3.tar.gz
Add section_size_type and section_offset_type, use them to replace a
lot of instances of off_t.
Diffstat (limited to 'gold/output.h')
-rw-r--r--gold/output.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/gold/output.h b/gold/output.h
index 172be493d9..76db946812 100644
--- a/gold/output.h
+++ b/gold/output.h
@@ -461,8 +461,9 @@ class Output_section_data : public Output_data
// sets *POUTPUT to the output offset. The value -1 indicates that
// this input offset is being discarded.
virtual bool
- output_offset(const Relobj* object, unsigned int shndx, off_t offset,
- off_t *poutput) const
+ output_offset(const Relobj* object, unsigned int shndx,
+ section_offset_type offset,
+ section_offset_type *poutput) const
{ return this->do_output_offset(object, shndx, offset, poutput); }
// Write the contents to a buffer. This is used for sections which
@@ -488,7 +489,8 @@ class Output_section_data : public Output_data
// The child class may implement output_offset.
virtual bool
- do_output_offset(const Relobj*, unsigned int, off_t, off_t*) const
+ do_output_offset(const Relobj*, unsigned int, section_offset_type,
+ section_offset_type*) const
{ return false; }
// The child class may implement write_to_buffer. Most child
@@ -1660,8 +1662,9 @@ class Output_section : public Output_data
// Return the offset within the output section of OFFSET relative to
// the start of input section SHNDX in object OBJECT.
- off_t
- output_offset(const Relobj* object, unsigned int shndx, off_t offset) const;
+ section_offset_type
+ output_offset(const Relobj* object, unsigned int shndx,
+ section_offset_type offset) const;
// Return the output virtual address of OFFSET relative to the start
// of input section SHNDX in object OBJECT.
@@ -1880,8 +1883,9 @@ class Output_section : public Output_data
// this function returns true, it sets *POUTPUT to the output
// offset.
bool
- output_offset(const Relobj* object, unsigned int shndx, off_t offset,
- off_t *poutput) const;
+ output_offset(const Relobj* object, unsigned int shndx,
+ section_offset_type offset,
+ section_offset_type *poutput) const;
// Write out the data. This does nothing for an input section.
void