summaryrefslogtreecommitdiff
path: root/output
diff options
context:
space:
mode:
authorCyrill Gorcunov <gorcunov@gmail.com>2010-04-09 14:23:57 +0400
committerCyrill Gorcunov <gorcunov@gmail.com>2010-04-10 00:10:20 +0400
commite3c47913005c26a21f18217afd13e1b7a75ceaaa (patch)
tree87bd22c2e1ab41b618367b12a842c7c5af034768 /output
parent6620d1aa6d703c0c6bfbca551157d0768d24e781 (diff)
downloadnasm-e3c47913005c26a21f18217afd13e1b7a75ceaaa.tar.gz
nasm-e3c47913005c26a21f18217afd13e1b7a75ceaaa.tar.bz2
nasm-e3c47913005c26a21f18217afd13e1b7a75ceaaa.zip
Elf: Merge WRITE_STAB to outelf.h
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Diffstat (limited to 'output')
-rw-r--r--output/outelf.h9
-rw-r--r--output/outelf32.c9
-rw-r--r--output/outelf64.c9
3 files changed, 9 insertions, 18 deletions
diff --git a/output/outelf.h b/output/outelf.h
index fad01a2..252b327 100644
--- a/output/outelf.h
+++ b/output/outelf.h
@@ -95,4 +95,13 @@ void section_attrib(char *name, char *attr, int pass,
uint32_t *flags_and, uint32_t *flags_or,
uint64_t *align, int *type);
+#define WRITE_STAB(p,n_strx,n_type,n_other,n_desc,n_value) \
+ do { \
+ WRITELONG(p, n_strx); \
+ WRITECHAR(p, n_type); \
+ WRITECHAR(p, n_other); \
+ WRITESHORT(p, n_desc); \
+ WRITELONG(p, n_value); \
+ } while (0)
+
#endif /* OUTPUT_OUTELF_H */
diff --git a/output/outelf32.c b/output/outelf32.c
index 07ad916..cf749f9 100644
--- a/output/outelf32.c
+++ b/output/outelf32.c
@@ -1572,15 +1572,6 @@ static void stabs32_output(int type, void *param)
debug_immcall = 0;
}
-#define WRITE_STAB(p,n_strx,n_type,n_other,n_desc,n_value) \
- do { \
- WRITELONG(p,n_strx); \
- WRITECHAR(p,n_type); \
- WRITECHAR(p,n_other); \
- WRITESHORT(p,n_desc); \
- WRITELONG(p,n_value); \
- } while (0)
-
/* for creating the .stab , .stabstr and .rel.stab sections in memory */
static void stabs32_generate(void)
diff --git a/output/outelf64.c b/output/outelf64.c
index 3447830..10ce75c 100644
--- a/output/outelf64.c
+++ b/output/outelf64.c
@@ -1642,15 +1642,6 @@ static void stabs64_output(int type, void *param)
debug_immcall = 0;
}
-#define WRITE_STAB(p,n_strx,n_type,n_other,n_desc,n_value) \
- do { \
- WRITELONG(p,n_strx); \
- WRITECHAR(p,n_type); \
- WRITECHAR(p,n_other); \
- WRITESHORT(p,n_desc); \
- WRITELONG(p,n_value); \
- } while (0)
-
/* for creating the .stab , .stabstr and .rel.stab sections in memory */
static void stabs64_generate(void)