From caa18da2309a9b8ca42d704412b194358e0b179d Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Sun, 13 Mar 2016 10:24:33 +0300 Subject: [PATCH] out: Elf32 -- Reuse TY_DEBUGSYMLIN Signed-off-by: Cyrill Gorcunov --- output/outelf.h | 5 +---- output/outelf32.c | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/output/outelf.h b/output/outelf.h index 4d6db5d7..909ea882 100644 --- a/output/outelf.h +++ b/output/outelf.h @@ -50,10 +50,7 @@ /* alignment of sections in file */ #define SEC_FILEALIGN 16 -/* this stuff is needed for the stabs debugging format */ -#define TY_STABSSYMLIN 0x40 /* ouch */ - -/* this stuff is needed for the dwarf debugging format */ +/* this stuff is needed for the dwarf/stabs debugging format */ #define TY_DEBUGSYMLIN 0x40 /* internal call to debug_out */ /* Known sections with nonstandard defaults */ diff --git a/output/outelf32.c b/output/outelf32.c index c9d4af6f..961c8837 100644 --- a/output/outelf32.c +++ b/output/outelf32.c @@ -692,7 +692,7 @@ static void elf_out(int32_t segto, const void *data, sinfo.section = i; sinfo.segto = segto; sinfo.name = s->name; - dfmt->debug_output(TY_STABSSYMLIN, &sinfo); + dfmt->debug_output(TY_DEBUGSYMLIN, &sinfo); /* end of debugging stuff */ if (s->type == SHT_NOBITS && type != OUT_RESERVE) { @@ -1471,7 +1471,7 @@ static void stabs_output(int type, void *param) { struct symlininfo *s; struct linelist *el; - if (type == TY_STABSSYMLIN) { + if (type == TY_DEBUGSYMLIN) { if (debug_immcall) { s = (struct symlininfo *)param; if (!(sects[s->section]->flags & SHF_EXECINSTR)) -- 2.11.4.GIT