output/outelfX.c: Use definitions from stabs.h

Also made Makefile.in to handle dependency.
There are some makefiles in Mkfiles\ should
be fixed as well.

Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
This commit is contained in:
Cyrill Gorcunov 2010-01-01 15:16:52 +03:00
parent d1428b23da
commit 126faf2e3b
4 changed files with 6 additions and 16 deletions

View File

@ -322,12 +322,12 @@ output/outelf.$(O): output/outelf.c compiler.h config.h directives.h \
output/outelf.h output/outform.h pptok.h preproc.h regs.h
output/outelf32.$(O): output/outelf32.c compiler.h config.h directives.h \
eval.h insnsi.h nasm.h nasmlib.h opflags.h output/dwarf.h output/elf.h \
output/outelf.h output/outform.h output/outlib.h pptok.h preproc.h raa.h \
rbtree.h regs.h saa.h stdscan.h
output/outelf.h output/outform.h output/stabs.h output/outlib.h pptok.h \
preproc.h raa.h rbtree.h regs.h saa.h stdscan.h
output/outelf64.$(O): output/outelf64.c compiler.h config.h directives.h \
eval.h insnsi.h nasm.h nasmlib.h opflags.h output/dwarf.h output/elf.h \
output/outelf.h output/outform.h output/outlib.h pptok.h preproc.h raa.h \
rbtree.h regs.h saa.h stdscan.h
output/outelf.h output/outform.h output/stabs.h output/outlib.h pptok.h \
preproc.h raa.h rbtree.h regs.h saa.h stdscan.h
output/outform.$(O): output/outform.c compiler.h config.h directives.h \
insnsi.h nasm.h nasmlib.h opflags.h output/outform.h pptok.h preproc.h \
regs.h

View File

@ -45,11 +45,6 @@
#define SEG_ALIGN_1 (SEG_ALIGN-1)
/* this stuff is needed for the stabs debugging format */
#define N_SO 0x64 /* ID for main source file */
#define N_SOL 0x84 /* ID for sub-source file */
#define N_BINCL 0x82
#define N_EINCL 0xA2
#define N_SLINE 0x44
#define TY_STABSSYMLIN 0x40 /* ouch */
/* this stuff is needed for the dwarf debugging format */

View File

@ -55,6 +55,7 @@
#include "rbtree.h"
#include "output/dwarf.h"
#include "output/stabs.h"
#include "output/elf.h"
#include "output/outelf.h"

View File

@ -55,6 +55,7 @@
#include "rbtree.h"
#include "output/dwarf.h"
#include "output/stabs.h"
#include "output/elf.h"
#include "output/outelf.h"
@ -142,13 +143,6 @@ static struct SAA *elf_build_symtab(int32_t *, int32_t *);
static struct SAA *elf_build_reltab(uint64_t *, struct Reloc *);
static void add_sectname(char *, char *);
/* type values for stabs debugging sections */
#define N_SO 0x64 /* ID for main source file */
#define N_SOL 0x84 /* ID for sub-source file */
#define N_BINCL 0x82 /* not currently used */
#define N_EINCL 0xA2 /* not currently used */
#define N_SLINE 0x44
struct stabentry {
uint32_t n_strx;
uint8_t n_type;