]> Git Repo - binutils.git/blobdiff - include/coff-m88k.h
Cast macro args to unsigned to avoid complaints from compiler and lint
[binutils.git] / include / coff-m88k.h
index 40b98ff56bd3eeeee26539d7ddb3bed19dc095f5..9ed4deb664964cb79f8972e7da5dbb0e92cf57bc 100755 (executable)
@@ -100,6 +100,12 @@ struct external_scnhdr
 #define        SCNHDR  struct external_scnhdr
 #define        SCNHSZ  sizeof(SCNHDR)
 
+/*
+ * names of "special" sections
+ */
+#define _TEXT   ".text"
+#define _DATA   ".data"
+#define _BSS    ".bss"
 
 /********************** LINE NUMBERS **********************/
 
@@ -124,14 +130,14 @@ struct external_lineno{
 
 /********************** SYMBOLS **********************/
 
-#define SYMNMLEN       8       /* # characters in a symbol name        */
-#define FILNMLEN       14      /* # characters in a file name          */
-#define DIMNUM         4       /* # array dimensions in auxiliary entry */
+#define E_SYMNMLEN     8       /* # characters in a symbol name        */
+#define E_FILNMLEN     14      /* # characters in a file name          */
+#define E_DIMNUM       4       /* # array dimensions in auxiliary entry */
 
 struct external_syment 
 {
   union {
-    char e_name[SYMNMLEN];
+    char e_name[E_SYMNMLEN];
     struct {
       char e_zeroes[4];
       char e_offset[4];
@@ -174,7 +180,7 @@ union external_auxent {
     /* 12 */
     union {
       struct {                 /* if ISARY, up to 4 dimen. */
-       char x_dimen[DIMNUM][2];
+       char x_dimen[E_DIMNUM][2];
       } x_ary;
     } x_fcnary;
     /* 20 */
@@ -182,7 +188,7 @@ union external_auxent {
   } x_sym;
   
   union {
-    char x_fname[FILNMLEN];
+    char x_fname[E_FILNMLEN];
     struct {
       char x_zeroes[4];
       char x_offset[4];
@@ -217,6 +223,10 @@ union external_auxent {
 #define PUT_SCN_SCNLEN(abfd,in, ext) bfd_h_put_32(abfd, in, (bfd_byte *) ext->x_scn.x_scnlen)
 #define PUT_SCN_NRELOC(abfd,in, ext) bfd_h_put_32(abfd, in, (bfd_byte *)ext->x_scn.x_nreloc)
 #define PUT_SCN_NLINNO(abfd,in, ext)  bfd_h_put_32(abfd,in, (bfd_byte *) ext->x_scn.x_nlinno)
+#define GET_LINENO_LNNO(abfd, ext)  bfd_h_get_32(abfd, (bfd_byte *) (ext->l_lnno))
+#define PUT_LINENO_LNNO(abfd,val, ext)  bfd_h_put_32(abfd,val,  (bfd_byte *) (ext->l_lnno));
+
+
 
 #define        SYMENT  struct external_syment
 #define        SYMESZ  20
This page took 0.024318 seconds and 4 git commands to generate.