Fix Sniff_file to get an aligned view.
gold/ * nacl.h (Sniff_file): Switch parameters to get_view to get an aligned view.
This commit is contained in:
parent
3b462ec2be
commit
775ed62ec5
@ -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
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user