diff options
Diffstat (limited to 'src/libmach_amd64/executable.c')
-rw-r--r-- | src/libmach_amd64/executable.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmach_amd64/executable.c b/src/libmach_amd64/executable.c index 6c05102ab..deca13cd8 100644 --- a/src/libmach_amd64/executable.c +++ b/src/libmach_amd64/executable.c @@ -796,11 +796,11 @@ error: read(fd, buf, sh[ep->shstrndx].size); for(i = 0; i < ep->shnum; i++) { - if (sh[i].type == 2 && strcmp(&buf[sh[i].name], ".gosymtab") == 0) { + if (strcmp(&buf[sh[i].name], ".gosymtab") == 0) { symsize = sh[i].size; symoff = sh[i].offset; } - if (sh[i].type == 2 && strcmp(&buf[sh[i].name], ".gopclntab") == 0) { + if (strcmp(&buf[sh[i].name], ".gopclntab") == 0) { if (sh[i].offset != symoff+symsize) { werrstr("pc line table not contiguous with symbol table"); free(buf); |