diff options
author | Ian Lance Taylor <ian@airs.com> | 2008-04-02 20:58:21 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 2008-04-02 20:58:21 +0000 |
commit | e8ce44a878eb7a1cca5984f666839d326a5c39fb (patch) | |
tree | 1c840149ab7ad7d51785a3a851dfa05c20b5410f /gold/binary.cc | |
parent | fbbe87f7e2e71f143d908a1f3159986365b1297a (diff) | |
download | binutils-redhat-e8ce44a878eb7a1cca5984f666839d326a5c39fb.tar.gz |
* fileread.cc (File_read::find_view): Add byteshift and vshifted
parameters. Update for new key type to views_. Change all
callers.
(File_read::read): Adjust for byteshift in returned view.
(File_read::add_view): New function, broken out of
find_and_make_view.
(File_read::make_view): New function, broken out of
find_and_make_view.
(File_read::find_or_make_view): Add offset and aligned
parameters. Rewrite accordingly. Change all callers.
(File_read::get_view): Add offset and aligned parameters. Adjust
for byteshift in return value.
(File_read::get_lasting_view): Likewise.
* fileread.h (class File_read): Update declarations.
(class File_read::View): Add byteshift_ field. Add byteshift to
constructor. Add byteshift method.
* archive.h (Archive::clear_uncached_views): New function.
(Archive::get_view): Add aligned parameter. Change all callers.
* object.h (Object::get_view): Add aligned parameter. Change all
callers.
(Object::get_lasting_view): Likewise.
* fileread.cc (File_read::release): Don't call clear_views if
there are multiple objects.
* fileread.h (File_read::clear_uncached_views): New function.
* archive.cc (Add_archive_symbols::run): Call clear_uncached_views
on the archive.
Diffstat (limited to 'gold/binary.cc')
-rw-r--r-- | gold/binary.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gold/binary.cc b/gold/binary.cc index 9909ff4e8e..bee5157f9b 100644 --- a/gold/binary.cc +++ b/gold/binary.cc @@ -132,7 +132,7 @@ Binary_to_elf::sized_convert(const Task* task) } section_size_type filesize = convert_to_section_size_type(f.filesize()); - const unsigned char* fileview = f.get_view(0, filesize, false); + const unsigned char* fileview = f.get_view(0, 0, filesize, false, false); unsigned int align; if (size == 32) |