This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gold commit] Fix Sniff_file to get an aligned view


I've committed the following trivial patch to ensure that we use an
aligned view when attempting to recognize a nacl object file.

-cary


2015-06-02  Cary Coutant  <ccoutant@gmail.com>

gold/
        * nacl.h (Sniff_file): Switch parameters to get_view to get an
        aligned view.


diff --git a/gold/nacl.h b/gold/nacl.h
index 5b6f5a4..950a0c6 100644
--- a/gold/nacl.h
+++ b/gold/nacl.h
@@ -60,7 +60,7 @@ class Sniff_file
   {
    public:
     View(File_read& file, off_t file_offset, off_t data_size)
-      : data_(file.get_view(0, file_offset, data_size, true, false))
+      : data_(file.get_view(file_offset, 0, data_size, true, false))
     { }

     const unsigned char* data()


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]