diff options
author | H. Peter Anvin <hpa@zytor.com> | 2009-07-26 15:31:59 -0700 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2009-07-26 15:31:59 -0700 |
commit | e39dc8c5b2a4ba74f4bf08e3cb20b24ea2927355 (patch) | |
tree | 942d98c7827204ef31f805645941154da25fce94 | |
parent | 109b030f01934fa3d9236eab0f8595f5a2471cd6 (diff) | |
parent | 7ad24562dccca867d9ba591ac7dd242456003c5b (diff) | |
download | nasm-e39dc8c5b2a4ba74f4bf08e3cb20b24ea2927355.tar.gz |
Merge branch 'nasm-2.07.xx'
-rw-r--r-- | output/outcoff.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/output/outcoff.c b/output/outcoff.c index 42777442..d508f989 100644 --- a/output/outcoff.c +++ b/output/outcoff.c @@ -661,16 +661,16 @@ void AddExport(char *name) strcpy(newS->String, name); if (rvp == NULL) { int i; - for (i = 0; i < nsects; i++) + for (i = 0; i < nsects; i++) { if (!strcmp(EXPORT_SECTION_NAME, sects[i]->name)) break; + } + if (i == nsects) - directive_sec = - sects[coff_make_section - (EXPORT_SECTION_NAME, EXPORT_SECTION_FLAGS)]; - else - directive_sec = sects[i]; + i = coff_make_section(EXPORT_SECTION_NAME, EXPORT_SECTION_FLAGS); + + directive_sec = sects[i]; Exports = newS; } else { while (rvp->Next) { |