diff options
author | Ian Lance Taylor <iant@google.com> | 2007-09-25 00:27:29 +0000 |
---|---|---|
committer | Ian Lance Taylor <iant@google.com> | 2007-09-25 00:27:29 +0000 |
commit | ba45d2478b259454e5b4c2d7dcaa7a35ecbf329c (patch) | |
tree | e9d069c39988c400a7f41583978372080b661a92 /gold/readsyms.cc | |
parent | 5f67a19ce6e7ddd10473df8e2754d9d229c884fe (diff) | |
download | gdb-ba45d2478b259454e5b4c2d7dcaa7a35ecbf329c.zip gdb-ba45d2478b259454e5b4c2d7dcaa7a35ecbf329c.tar.gz gdb-ba45d2478b259454e5b4c2d7dcaa7a35ecbf329c.tar.bz2 |
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.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gold/readsyms.cc b/gold/readsyms.cc index 0e406fd..58e3385 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] = |