OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.1/] [include/] [aout/] [ar.h] - Blame information for rev 421

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 227 jeremybenn
/* archive file definition for GNU software
2
 
3
   Copyright 2001, 2008 Free Software Foundation, Inc.
4
 
5
   This program is free software; you can redistribute it and/or modify
6
   it under the terms of the GNU General Public License as published by
7
   the Free Software Foundation; either version 2 of the License, or
8
   (at your option) any later version.
9
 
10
   This program is distributed in the hope that it will be useful,
11
   but WITHOUT ANY WARRANTY; without even the implied warranty of
12
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
   GNU General Public License for more details.
14
 
15
   You should have received a copy of the GNU General Public License
16
   along with this program; if not, write to the Free Software
17
   Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.  */
18
 
19
/* So far this is correct for BSDish archives.  Don't forget that
20
   files must begin on an even byte boundary. */
21
 
22
#ifndef __GNU_AR_H__
23
#define __GNU_AR_H__
24
 
25
/* Note that the usual '\n' in magic strings may translate to different
26
   characters, as allowed by ANSI.  '\012' has a fixed value, and remains
27
   compatible with existing BSDish archives. */
28
 
29
#define ARMAG  "!<arch>\012"    /* For COFF and a.out archives.  */
30
#define ARMAGB "!<bout>\012"    /* For b.out archives.  */
31
#define ARMAGT "!<thin>\012"    /* For thin archives.  */
32
#define SARMAG 8
33
#define ARFMAG "`\012"
34
 
35
/* The ar_date field of the armap (__.SYMDEF) member of an archive
36
   must be greater than the modified date of the entire file, or
37
   BSD-derived linkers complain.  We originally write the ar_date with
38
   this offset from the real file's mod-time.  After finishing the
39
   file, we rewrite ar_date if it's not still greater than the mod date.  */
40
 
41
#define ARMAP_TIME_OFFSET       60
42
 
43
struct ar_hdr
44
{
45
  char ar_name[16];             /* Name of this member.  */
46
  char ar_date[12];             /* File mtime.  */
47
  char ar_uid[6];               /* Owner uid; printed as decimal.  */
48
  char ar_gid[6];               /* Owner gid; printed as decimal.  */
49
  char ar_mode[8];              /* File mode, printed as octal.   */
50
  char ar_size[10];             /* File size, printed as decimal.  */
51
  char ar_fmag[2];              /* Should contain ARFMAG.  */
52
};
53
 
54
#endif /* __GNU_AR_H__ */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.