mirror of
https://github.com/netwide-assembler/nasm.git
synced 2025-03-07 17:46:58 +08:00
out: Elf32 -- Reuse TY_DEBUGSYMLIN
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
parent
fbbe8fe9e2
commit
caa18da230
@ -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 */
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user