diff options
Diffstat (limited to 'output/outelf64.c')
-rw-r--r-- | output/outelf64.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/output/outelf64.c b/output/outelf64.c index d23c53ab..ec001560 100644 --- a/output/outelf64.c +++ b/output/outelf64.c @@ -246,8 +246,8 @@ static void elf_cleanup(int debuginfo) saa_free(syms); raa_free(bsym); saa_free(strs); - if (of_elf64.current_dfmt) { - of_elf64.current_dfmt->cleanup(); + if (dfmt) { + dfmt->cleanup(); } } @@ -709,12 +709,12 @@ static void elf_out(int32_t segto, const void *data, } /* again some stabs debugging stuff */ - if (of_elf64.current_dfmt) { + if (dfmt) { sinfo.offset = s->len; sinfo.section = i; sinfo.segto = segto; sinfo.name = s->name; - of_elf64.current_dfmt->debug_output(TY_DEBUGSYMLIN, &sinfo); + dfmt->debug_output(TY_DEBUGSYMLIN, &sinfo); } /* end of debugging stuff */ @@ -977,9 +977,9 @@ static void elf_write(void) * relocation sections for the user sections. */ nsections = sec_numspecial + 1; - if (of_elf64.current_dfmt == &df_stabs) + if (dfmt == &df_stabs) nsections += 3; - else if (of_elf64.current_dfmt == &df_dwarf) + else if (dfmt == &df_dwarf) nsections += 10; add_sectname("", ".shstrtab"); @@ -993,14 +993,14 @@ static void elf_write(void) } } - if (of_elf64.current_dfmt == &df_stabs) { + if (dfmt == &df_stabs) { /* in case the debug information is wanted, just add these three sections... */ add_sectname("", ".stab"); add_sectname("", ".stabstr"); add_sectname(".rel", ".stab"); } - else if (of_elf64.current_dfmt == &df_dwarf) { + else if (dfmt == &df_dwarf) { /* the dwarf debug standard specifies the following ten sections, not all of which are currently implemented, although all of them are defined. */ @@ -1098,7 +1098,7 @@ static void elf_write(void) p += strlen(p) + 1; } - if (of_elf64.current_dfmt == &df_stabs) { + if (dfmt == &df_stabs) { /* for debugging information, create the last three sections which are the .stab , .stabstr and .rel.stab sections respectively */ @@ -1119,7 +1119,7 @@ static void elf_write(void) stabrellen, symtabsection, sec_stab, 4, 16); p += strlen(p) + 1; } - } else if (of_elf64.current_dfmt == &df_dwarf) { + } else if (dfmt == &df_dwarf) { /* for dwarf debugging information, create the ten dwarf sections */ /* this function call creates the dwarf sections in memory */ @@ -1245,7 +1245,7 @@ static struct SAA *elf_build_symtab(int32_t *len, int32_t *local) * dwarf needs symbols for debug sections * which are relocation targets. */ - if (of_elf64.current_dfmt == &df_dwarf) { + if (dfmt == &df_dwarf) { dwarf_infosym = *local; p = entry; WRITELONG(p, 0); /* no symbol name */ |