Lines 314-320
func elfSectionContent(s *elf.Section) (string, error) {
Link Here
|
314 |
return string(b[:bytes.IndexByte(b, '\x00')]), nil |
314 |
return string(b[:bytes.IndexByte(b, '\x00')]), nil |
315 |
} |
315 |
} |
316 |
|
316 |
|
317 |
var elfLibDir = []string{"/usr/lib", "/lib", "/usr/lib64"} |
317 |
var elfLibDir = []string{"/usr/lib64", "/usr/lib", "/lib"} |
318 |
|
318 |
|
319 |
// for a given library (e.g. libc.so.6) finds absolute path to the library file |
319 |
// for a given library (e.g. libc.so.6) finds absolute path to the library file |
320 |
func elfPath(lib string) string { |
320 |
func elfPath(lib string) string { |