diff options
author | Cary Coutant <ccoutant@google.com> | 2013-07-15 16:49:20 +0000 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2013-07-15 16:49:20 +0000 |
commit | eb5b4dedf41f9ac5d3028abe6660e2e63448e115 (patch) | |
tree | 94582ac9963266c54cb1f172731419e8cc6e8a63 /gold/fileread.h | |
parent | 926bf92da54df730ed468bde368ebb577136adc1 (diff) | |
download | gdb-eb5b4dedf41f9ac5d3028abe6660e2e63448e115.zip gdb-eb5b4dedf41f9ac5d3028abe6660e2e63448e115.tar.gz gdb-eb5b4dedf41f9ac5d3028abe6660e2e63448e115.tar.bz2 |
2013-07-15 Shawn Landden <shawnlandden@gmail.com>
gold/
PR gold/15070
* fileread.h (File_read::get_view): Clarify comment about ALIGNED.
* nacl.h (Sniff_file::View::View): Request aligned view.
Diffstat (limited to 'gold/fileread.h')
-rw-r--r-- | gold/fileread.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gold/fileread.h b/gold/fileread.h index 08a4583..74aeec9 100644 --- a/gold/fileread.h +++ b/gold/fileread.h @@ -141,12 +141,13 @@ class File_read // SIZE bytes. OFFSET is the offset into the input file for the // file we are reading; this is zero for a normal object file, // non-zero for an object file in an archive. ALIGNED is true if - // the data must be naturally aligned; this only matters when OFFSET - // is not zero. The pointer will remain valid until the File_read - // is unlocked. It is an error if we can not read enough data from - // the file. The CACHE parameter is a hint as to whether it will be - // useful to cache this data for later accesses--i.e., later calls - // to get_view, read, or get_lasting_view which retrieve the same + // the data must be naturally aligned (i.e., aligned to the size + // of a target word); this only matters when OFFSET is not zero. + // The pointer will remain valid until the File_read is unlocked. + // It is an error if we can not read enough data from the file. + // The CACHE parameter is a hint as to whether it will be useful + // to cache this data for later accesses--i.e., later calls to + // get_view, read, or get_lasting_view which retrieve the same // data. const unsigned char* get_view(off_t offset, off_t start, section_size_type size, bool aligned, |