aboutsummaryrefslogtreecommitdiff
path: root/gold/nacl.h
diff options
context:
space:
mode:
authorCary Coutant <ccoutant@gmail.com>2015-06-02 14:12:56 -0700
committerCary Coutant <ccoutant@gmail.com>2015-06-02 14:13:32 -0700
commit775ed62ec53a38c656300d4ce50ae5a56c0d38a2 (patch)
treefd32fee09fb678151900bc3cfa7ad280b887fcb7 /gold/nacl.h
parent3b462ec2bedca7392bf4720db44fdf2a46ad8b4d (diff)
downloadgdb-775ed62ec53a38c656300d4ce50ae5a56c0d38a2.zip
gdb-775ed62ec53a38c656300d4ce50ae5a56c0d38a2.tar.gz
gdb-775ed62ec53a38c656300d4ce50ae5a56c0d38a2.tar.bz2
Fix Sniff_file to get an aligned view.
gold/ * nacl.h (Sniff_file): Switch parameters to get_view to get an aligned view.
Diffstat (limited to 'gold/nacl.h')
-rw-r--r--gold/nacl.h2
1 files changed, 1 insertions, 1 deletions
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()