aboutsummaryrefslogtreecommitdiff
path: root/gas/config/obj-coffbfd.h
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1993-09-07 17:39:56 +0000
committerStan Shebs <shebs@codesourcery.com>1993-09-07 17:39:56 +0000
commit4064305ec08e84f8857e65e3281e389a3dffed45 (patch)
tree405eba3c65bc39c5789ce00caf92c9afe4049cb2 /gas/config/obj-coffbfd.h
parentf3e8b15d8e4ac6ff46fefe7ae67dda956285f6cb (diff)
downloadgdb-4064305ec08e84f8857e65e3281e389a3dffed45.zip
gdb-4064305ec08e84f8857e65e3281e389a3dffed45.tar.gz
gdb-4064305ec08e84f8857e65e3281e389a3dffed45.tar.bz2
Changes to support stabs-in-coff
Diffstat (limited to 'gas/config/obj-coffbfd.h')
-rw-r--r--gas/config/obj-coffbfd.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/gas/config/obj-coffbfd.h b/gas/config/obj-coffbfd.h
index c96e6bf..9e75f7c 100644
--- a/gas/config/obj-coffbfd.h
+++ b/gas/config/obj-coffbfd.h
@@ -122,10 +122,28 @@ typedef struct
union internal_auxent ost_auxent[OBJ_COFF_MAX_AUXENTRIES]; /* Auxiliary entry. */
unsigned int ost_flags; /* obj_coff internal use only flags */
+
+ /* For stabs-in-coff. */
+ unsigned long n_strx; /* index into string table of name */
+ unsigned char n_type; /* type of symbol */
+ unsigned char n_other; /* misc info (usually empty) */
+ unsigned short n_desc; /* description field */
+ bfd_vma n_value; /* value of symbol */
+
}
obj_symbol_type;
+#define S_SET_OFFSET_2(S,V) ((S)->sy_symbol.n_strx = (V))
+#define S_SET_OTHER(S,V) ((S)->sy_symbol.n_other = (V))
+#define S_SET_TYPE(S,T) ((S)->sy_symbol.n_type = (T))
+#define S_SET_DESC(S,D) ((S)->sy_symbol.n_desc = (D))
+#define S_GET_OFFSET_2(S) ((S)->sy_symbol.n_strx)
+#define S_GET_OTHER(S) ((S)->sy_symbol.n_other)
+#define S_GET_TYPE(S) ((S)->sy_symbol.n_type)
+#define S_GET_DESC(S) ((S)->sy_symbol.n_desc)
+
+
#ifndef DO_NOT_STRIP
#define DO_NOT_STRIP 0
#define DO_STRIP 1
@@ -530,4 +548,12 @@ extern SCNHDR text_section_header;
? (S_SET_SEGMENT (symp, S_GET_SEGMENT (symp->sy_value.X_add_symbol)), 0) \
: 0)
+#define SEPARATE_STAB_SECTIONS
+
+#define MAKE_STAB_SYMBOL(SYM, STR, SEC) \
+ { extern symbolS current_stab_symbol; \
+ (SYM) = &current_stab_symbol; \
+ (SYM)->sy_symbol.n_strx = get_stab_string_offset(STR, SEC); \
+ }
+
/* end of obj-coffbfd.h */