summaryrefslogtreecommitdiff
path: root/usr/src/tools/ctf/cvt/ctfmerge.c
diff options
context:
space:
mode:
authorRichard Lowe <richlowe@richlowe.net>2015-02-13 12:31:45 -0500
committerRichard Lowe <richlowe@richlowe.net>2015-02-26 14:19:39 -0500
commit495021bdf7d49b2cc9a6e6981b5ec4110264741b (patch)
treed2a64019642d8debda7842ab61c5b69a3c4ce3a2 /usr/src/tools/ctf/cvt/ctfmerge.c
parent6ddb3373ce2752b5535cbbda4370c8c550876098 (diff)
downloadillumos-gate-495021bdf7d49b2cc9a6e6981b5ec4110264741b.tar.gz
5595 libzpool won't build with a studio primary
Reviewed by: Josef 'Jeff' Sipek <josef.sipek@nexenta.com> Reviewed by: Robert Mustacchi <rm@joyent.com> Approved by: Gordon Ross <gwr@nexenta.com>
Diffstat (limited to 'usr/src/tools/ctf/cvt/ctfmerge.c')
-rw-r--r--usr/src/tools/ctf/cvt/ctfmerge.c19
1 files changed, 5 insertions, 14 deletions
diff --git a/usr/src/tools/ctf/cvt/ctfmerge.c b/usr/src/tools/ctf/cvt/ctfmerge.c
index 2d00a566be..33a4f16cfe 100644
--- a/usr/src/tools/ctf/cvt/ctfmerge.c
+++ b/usr/src/tools/ctf/cvt/ctfmerge.c
@@ -23,8 +23,6 @@
* Use is subject to license terms.
*/
-#pragma ident "%Z%%M% %I% %E% SMI"
-
/*
* Given several files containing CTF data, merge and uniquify that data into
* a single CTF section in an output file.
@@ -602,7 +600,7 @@ terminate_cleanup(void)
}
static void
-copy_ctf_data(char *srcfile, char *destfile, int keep_stabs)
+copy_ctf_data(char *srcfile, char *destfile)
{
tdata_t *srctd;
@@ -610,7 +608,7 @@ copy_ctf_data(char *srcfile, char *destfile, int keep_stabs)
terminate("No CTF data found in source file %s\n", srcfile);
tmpname = mktmpname(destfile, ".ctf");
- write_ctf(srctd, destfile, tmpname, CTF_COMPRESS | keep_stabs);
+ write_ctf(srctd, destfile, tmpname, CTF_COMPRESS);
if (rename(tmpname, destfile) != 0) {
terminate("Couldn't rename temp file %s to %s", tmpname,
destfile);
@@ -741,7 +739,6 @@ main(int argc, char **argv)
char **ifiles, **tifiles;
int verbose = 0, docopy = 0;
int write_fuzzy_match = 0;
- int keep_stabs = 0;
int require_ctf = 0;
int nifiles, nielems;
int c, i, idx, tidx, err;
@@ -752,7 +749,7 @@ main(int argc, char **argv)
debug_level = atoi(getenv("CTFMERGE_DEBUG_LEVEL"));
err = 0;
- while ((c = getopt(argc, argv, ":cd:D:fgl:L:o:tvw:s")) != EOF) {
+ while ((c = getopt(argc, argv, ":cd:D:fl:L:o:tvw:s")) != EOF) {
switch (c) {
case 'c':
docopy = 1;
@@ -768,9 +765,6 @@ main(int argc, char **argv)
case 'f':
write_fuzzy_match = CTF_FUZZY_MATCH;
break;
- case 'g':
- keep_stabs = CTF_KEEP_STABS;
- break;
case 'l':
/* Label merged types with `label' */
label = optarg;
@@ -833,9 +827,6 @@ main(int argc, char **argv)
exit(2);
}
- if (getenv("STRIPSTABS_KEEP_STABS") != NULL)
- keep_stabs = CTF_KEEP_STABS;
-
if (uniqfile && access(uniqfile, R_OK) != 0) {
warning("Uniquification file %s couldn't be opened and "
"will be ignored.\n", uniqfile);
@@ -855,7 +846,7 @@ main(int argc, char **argv)
* so we shoe-horn a copier into ctfmerge.
*/
if (docopy) {
- copy_ctf_data(argv[optind], argv[optind + 1], keep_stabs);
+ copy_ctf_data(argv[optind], argv[optind + 1]);
exit(0);
}
@@ -999,7 +990,7 @@ main(int argc, char **argv)
tmpname = mktmpname(outfile, ".ctf");
write_ctf(savetd, outfile, tmpname,
- CTF_COMPRESS | write_fuzzy_match | dynsym | keep_stabs);
+ CTF_COMPRESS | write_fuzzy_match | dynsym);
if (rename(tmpname, outfile) != 0)
terminate("Couldn't rename output temp file %s", tmpname);
free(tmpname);