out: Elf32 -- Reuse TY_DEBUGSYMLIN

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2016-03-13 10:24:33 +03:00
parent fbbe8fe9e2
commit caa18da230
2 changed files with 3 additions and 6 deletions

View File

@ -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 */

View File

@ -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))