[binutils-gdb] Fix Sniff_file to get an aligned view.

Cary Coutant ccoutant@sourceware.org
Tue Jun 2 21:13:00 GMT 2015


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=775ed62ec53a38c656300d4ce50ae5a56c0d38a2

commit 775ed62ec53a38c656300d4ce50ae5a56c0d38a2
Author: Cary Coutant <ccoutant@gmail.com>
Date:   Tue Jun 2 14:12:56 2015 -0700

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

Diff:
---
 gold/ChangeLog | 5 +++++
 gold/nacl.h    | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/gold/ChangeLog b/gold/ChangeLog
index 92be972..d66f292 100644
--- a/gold/ChangeLog
+++ b/gold/ChangeLog
@@ -1,3 +1,8 @@
+2015-06-02  Cary Coutant  <ccoutant@gmail.com>
+
+	* nacl.h (Sniff_file): Switch parameters to get_view to get an
+	aligned view.
+
 2015-06-03  Cary Coutant  <ccoutant@gmail.com>
 
         PR gold/17819
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()



More information about the Binutils-cvs mailing list