output/outelfX.c: Use definitions from stabs.h
authorCyrill Gorcunov <gorcunov@gmail.com>
Fri, 1 Jan 2010 12:16:52 +0000 (15:16 +0300)
committerCyrill Gorcunov <gorcunov@gmail.com>
Sun, 3 Jan 2010 12:04:36 +0000 (15:04 +0300)
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>
Makefile.in
output/outelf.h
output/outelf32.c
output/outelf64.c

index 060d830..21e193b 100644 (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
index d3f6d13..850f8fe 100644 (file)
 #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 */
index fba037f..52fb91c 100644 (file)
@@ -55,6 +55,7 @@
 #include "rbtree.h"
 
 #include "output/dwarf.h"
+#include "output/stabs.h"
 #include "output/elf.h"
 #include "output/outelf.h"
 
index 85b449d..acd79d4 100644 (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;