From: nasm-bot f. J. K. <jam...@li...> - 2016-03-08 00:39:17
|
Commit-ID: 63c42f08f70450f4e8f6f95603758f6e9b2d84a7 Gitweb: http://repo.or.cz/w/nasm.git?a=commitdiff;h=63c42f08f70450f4e8f6f95603758f6e9b2d84a7 Author: Jim Kukunas <jam...@li...> AuthorDate: Mon, 7 Mar 2016 18:42:39 -0500 Committer: Jim Kukunas <jam...@li...> CommitDate: Mon, 7 Mar 2016 19:36:41 -0500 codeview: Don't treat labels starting with .. as local labels For local labels, starting with '.', the label name is concatenated with the previous non-local label to produce a label that can be accessed from elsewhere. This is the name we want to generate debug info for. Labels starting with ".." are special and shouldn't be concatenated. Fix Bugzilla #3392342 Signed-off-by: Jim Kukunas <jam...@li...> --- output/codeview.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output/codeview.c b/output/codeview.c index 7fc5619..8492fdd 100644 --- a/output/codeview.c +++ b/output/codeview.c @@ -215,7 +215,7 @@ static void cv8_deflabel(char *name, int32_t segment, int64_t offset, sym->typeindex = 0; /* handle local labels */ - if (name[0] == '.' && cv8_state.last_sym != NULL) { + if (name[0] == '.' && name[1] != '.' && cv8_state.last_sym != NULL) { len = strlen(cv8_state.last_sym->name) + strlen(name); sym->name = nasm_malloc(len + 1); ret = snprintf(sym->name, len + 1, "%s%s", |