Print this page
5595 libzpool won't build with a studio primary
@@ -454,11 +454,10 @@
GElf_Word symtab_type;
int symtab_idx = -1;
off_t new_offset = 0;
off_t ctfnameoff = 0;
int dynsym = (flags & CTF_USE_DYNSYM);
- int keep_stabs = (flags & CTF_KEEP_STABS);
int *secxlate;
int srcidx, dstidx;
int curnmoff = 0;
int changing = 0;
int pad;
@@ -504,16 +503,10 @@
shdr.sh_name);
}
if (strcmp(sname, CTF_ELF_SCN_NAME) == 0) {
secxlate[srcidx] = -1;
- } else if (!keep_stabs &&
- (strncmp(sname, ".stab", 5) == 0 ||
- strncmp(sname, ".debug", 6) == 0 ||
- strncmp(sname, ".rel.debug", 10) == 0 ||
- strncmp(sname, ".rela.debug", 11) == 0)) {
- secxlate[srcidx] = -1;
} else if (dynsym && shdr.sh_type == SHT_SYMTAB) {
/*
* If we're building CTF against the dynsym,
* we'll rip out the symtab so debuggers aren't
* confused.