summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Kukunas <james.t.kukunas@linux.intel.com>2016-05-16 16:15:45 -0400
committerH. Peter Anvin <hpa@linux.intel.com>2016-05-17 11:35:44 -0700
commit4de0e936779a094b685c7ef959274687cf838fbe (patch)
treed53c10b073e23ef98d6ea799f621a4cf42d80c60
parentf8259c662a8e84195db6d80081936d6c7cf5e17d (diff)
downloadnasm-4de0e936779a094b685c7ef959274687cf838fbe.tar.gz
codeview.c: register all filenames
This essentially reverts 6503051dcc360172c49311d586f2b9cf4ab2ea81 since that workaround is no longer needed thanks to support for multiple source files Signed-off-by: Jim Kukunas <james.t.kukunas@linux.intel.com> Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
-rw-r--r--output/codeview.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/output/codeview.c b/output/codeview.c
index d490fa4b..9bafa169 100644
--- a/output/codeview.c
+++ b/output/codeview.c
@@ -188,6 +188,8 @@ static void cv8_linenum(const char *filename, int32_t linenumber,
struct linepair *li;
struct source_file *file;
+ file = register_file(filename);
+
s = find_section(segto);
if (s == NULL)
return;
@@ -195,8 +197,6 @@ static void cv8_linenum(const char *filename, int32_t linenumber,
if ((s->flags & IMAGE_SCN_MEM_EXECUTE) == 0)
return;
- file = register_file(filename);
-
li = saa_wstruct(file->lines);
li->file_offset = cv8_state.text_offset;
li->linenumber = linenumber;