notaz.gp2x.de
/
ia32rtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixes, standalone version builds
[ia32rtools.git]
/
tools
/
cvt_data.c
diff --git
a/tools/cvt_data.c
b/tools/cvt_data.c
index
bf98401
..
7779287
100644
(file)
--- a/
tools/cvt_data.c
+++ b/
tools/cvt_data.c
@@
-616,7
+616,8
@@
int main(int argc, char *argv[])
}
else if (is_label) {
p = words[w];
}
else if (is_label) {
p = words[w];
- if (IS_START(p, "loc_") || strchr(p, '?') || strchr(p, '@')
+ if (IS_START(p, "loc_") || IS_START(p, "__imp")
+ || strchr(p, '?') || strchr(p, '@')
|| bsearch(&p, rlist, rlist_cnt, sizeof(rlist[0]),
cmpstringp))
{
|| bsearch(&p, rlist, rlist_cnt, sizeof(rlist[0]),
cmpstringp))
{
@@
-625,7
+626,9
@@
int main(int argc, char *argv[])
}
else {
check_var(fhdr, sym, p);
}
else {
check_var(fhdr, sym, p);
- fprintf(fout, "_%s", p);
+ if (p[0] != '_')
+ fprintf(fout, "_");
+ fprintf(fout, "%s", p);
}
}
else {
}
}
else {