@@ -165,9 +165,9 @@ func GetBuildID(binary io.ReaderAt) ([]byte, error) {
165
165
return nil , nil
166
166
}
167
167
168
- // kernelBase caluclates the base for kernel mappings, which usually require
168
+ // kernelBase calculates the base for kernel mappings, which usually require
169
169
// special handling. For kernel mappings, tools (like perf) use the address of
170
- // the kernel relocation symbol (_text or _stext) as the mmap start. Additionaly ,
170
+ // the kernel relocation symbol (_text or _stext) as the mmap start. Additionally ,
171
171
// for obfuscation, ChromeOS profiles have the kernel image remapped to the 0-th page.
172
172
func kernelBase (loadSegment * elf.ProgHeader , stextOffset * uint64 , start , limit , offset uint64 ) (uint64 , bool ) {
173
173
const (
@@ -217,7 +217,7 @@ func kernelBase(loadSegment *elf.ProgHeader, stextOffset *uint64, start, limit,
217
217
// GetBase determines the base address to subtract from virtual
218
218
// address to get symbol table address. For an executable, the base
219
219
// is 0. Otherwise, it's a shared library, and the base is the
220
- // address where the mapping starts. The kernel needs special hanldling .
220
+ // address where the mapping starts. The kernel needs special handling .
221
221
func GetBase (fh * elf.FileHeader , loadSegment * elf.ProgHeader , stextOffset * uint64 , start , limit , offset uint64 ) (uint64 , error ) {
222
222
223
223
if start == 0 && offset == 0 && (limit == ^ uint64 (0 ) || limit == 0 ) {
0 commit comments