Elf: Merge WRITE_STAB to outelf.h
authorCyrill Gorcunov <gorcunov@gmail.com>
Fri, 9 Apr 2010 10:23:57 +0000 (14:23 +0400)
committerCyrill Gorcunov <gorcunov@gmail.com>
Fri, 9 Apr 2010 20:10:20 +0000 (00:10 +0400)
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
output/outelf.h
output/outelf32.c
output/outelf64.c

index fad01a258584f2ad1cd1d7f874c26b0957124d4d..252b32779245555d35302935c5bce774de4886af 100644 (file)
@@ -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 */
index 07ad9161bc6249958abbd71d2b00f1931584229f..cf749f96ac90de1729d9b183ff10440e9af99b94 100644 (file)
@@ -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)
index 34478303cdf352730eb4e680f52a5adbf634d88f..10ce75c03c30fb1ccdf1caa640e947446775a942 100644 (file)
@@ -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)