diff options
Diffstat (limited to 'rts/linker')
-rw-r--r-- | rts/linker/PEi386.c | 6 | ||||
-rw-r--r-- | rts/linker/PEi386Types.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/rts/linker/PEi386.c b/rts/linker/PEi386.c index 7549c67c57..97b7a12e76 100644 --- a/rts/linker/PEi386.c +++ b/rts/linker/PEi386.c @@ -1197,7 +1197,7 @@ ocVerifyImage_PEi386 ( ObjectCode* oc ) oc->info = stgCallocBytes (sizeof(struct ObjectCodeFormatInfo), 1, "ocVerifyImage_PEi386(info)"); oc->info->init = NULL; - oc->info->finit = NULL; + oc->info->fini = NULL; oc->info->ch_info = info; /* Copy the tables over from object-file. Copying these allows us to @@ -1474,8 +1474,8 @@ ocGetNames_PEi386 ( ObjectCode* oc ) } if (0==strncmp(".dtors", section->info->name, 6)) { - kind = SECTIONKIND_FINIT_ARRAY; - oc->info->finit = &oc->sections[i]; + kind = SECTIONKIND_FINI_ARRAY; + oc->info->fini = &oc->sections[i]; } if ( 0 == strncmp(".stab" , section->info->name, 5 ) diff --git a/rts/linker/PEi386Types.h b/rts/linker/PEi386Types.h index 792cc03fda..dbe6d51e3e 100644 --- a/rts/linker/PEi386Types.h +++ b/rts/linker/PEi386Types.h @@ -18,7 +18,7 @@ struct SectionFormatInfo { }; struct ObjectCodeFormatInfo { Section* init; - Section* finit; + Section* fini; Section* pdata; Section* xdata; COFF_HEADER_INFO* ch_info; |