summaryrefslogtreecommitdiff
path: root/gold/output.h
diff options
context:
space:
mode:
Diffstat (limited to 'gold/output.h')
-rw-r--r--gold/output.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gold/output.h b/gold/output.h
index 6de6e69971..377864cddf 100644
--- a/gold/output.h
+++ b/gold/output.h
@@ -3433,6 +3433,11 @@ class Output_file
void
close();
+ // Return the size of this file.
+ off_t
+ filesize()
+ { return this->file_size_; }
+
// We currently always use mmap which makes the view handling quite
// simple. In the future we may support other approaches.