summaryrefslogtreecommitdiff
path: root/gold/readsyms.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-09-25 00:27:29 +0000
committerIan Lance Taylor <iant@google.com>2007-09-25 00:27:29 +0000
commitba45d2478b259454e5b4c2d7dcaa7a35ecbf329c (patch)
treee9d069c39988c400a7f41583978372080b661a92 /gold/readsyms.cc
parent5f67a19ce6e7ddd10473df8e2754d9d229c884fe (diff)
Break out default pbytes argument to read and get_view routines,
adding new routines.
Diffstat (limited to 'gold/readsyms.cc')
-rw-r--r--gold/readsyms.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gold/readsyms.cc b/gold/readsyms.cc
index 0e406fd5c2..58e3385131 100644
--- a/gold/readsyms.cc
+++ b/gold/readsyms.cc
@@ -88,7 +88,8 @@ Read_symbols::run(Workqueue* workqueue)
int ehdr_size = elfcpp::Elf_sizes<64>::ehdr_size;
off_t bytes;
- const unsigned char* p = input_file->file().get_view(0, ehdr_size, &bytes);
+ const unsigned char* p = input_file->file().get_view_and_size(0, ehdr_size,
+ &bytes);
if (bytes >= 4)
{
static unsigned char elfmagic[4] =