]> Git Repo - binutils.git/blobdiff - include/ranlib.h
Initial revision
[binutils.git] / include / ranlib.h
index 07bc0abc574d50ea9818f9ed7b7ff997c3eee07a..53e35ce2e0e74b6226f7cbb3c7b25cd6c93fa2f3 100755 (executable)
@@ -1,18 +1,19 @@
-/*  ranlib.h -- archive library index member definition for GNU.
-    Copyright (C) 1990  Free Software Foundation, Inc.
+/* ranlib.h -- archive library index member definition for GNU.
+   Copyright 1990-1991  Free Software Foundation, Inc.
 
-    This program is free software; you can redistribute it and/or modify
-    it under the terms of the GNU General Public License as published by
-    the Free Software Foundation.
+This program is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
 
-    This program is distributed in the hope that it will be useful,
-    but WITHOUT ANY WARRANTY; without even the implied warranty of
-    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-    GNU General Public License for more details.
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+GNU General Public License for more details.
 
-    You should have received a copy of the GNU General Public License
-    along with this program; if not, write to the Free Software
-    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
+You should have received a copy of the GNU General Public License
+along with this program; if not, write to the Free Software
+Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 /* The Symdef member of an archive contains two things:
    a table that maps symbol-string offsets to file offsets,
@@ -30,6 +31,9 @@
        9               ; byte count of string table
        "foo\0_bar\0"   ; string table  */
 
+#define        RANLIBMAG       "__.SYMDEF"     /* Archive file name containing index */
+#define        RANLIBSKEW      3               /* Creation time offset */
+
 /* Format of __.SYMDEF:
    First, a longword containing the size of the 'symdef' data that follows.
    Second, zero or more 'symdef' structures.
@@ -43,6 +47,9 @@ struct symdef
        unsigned long string_offset;    /* In the file */
        char *name;                     /* In memory, sometimes */
       } s;
+    /* this points to the front of the file header (AKA member header --
+       a struct ar_hdr), not to the front of the file or into the file).
+       in other words it only tells you which file to read */       
     unsigned long file_offset;
   };
 
@@ -50,6 +57,6 @@ struct symdef
 
 #define        ranlib  symdef
 #define        ran_un  s
-#define        ran_str string_offset
+#define        ran_strx string_offset
 #define        ran_name name
 #define        ran_off file_offset
This page took 0.025023 seconds and 4 git commands to generate.