summaryrefslogtreecommitdiff
path: root/gnu/dist/binutils/include/coff
diff options
context:
space:
mode:
authorskrll <skrll@NetBSD.org>2006-02-02 20:58:06 +0000
committerskrll <skrll@NetBSD.org>2006-02-02 20:58:06 +0000
commit8d2c6a4e34b1fbb538663dee24b3dce5a6ad7ce8 (patch)
tree01a760df00b921200616456eed856334b4fdd092 /gnu/dist/binutils/include/coff
parent27523fbf84c1ee6539d56f021f9ed5f7f9a0dd70 (diff)
Import binutils 2.16.1.
Diffstat (limited to 'gnu/dist/binutils/include/coff')
-rw-r--r--gnu/dist/binutils/include/coff/ChangeLog33
-rw-r--r--gnu/dist/binutils/include/coff/arm.h2
-rw-r--r--gnu/dist/binutils/include/coff/ecoff.h30
-rw-r--r--gnu/dist/binutils/include/coff/ia64.h2
-rw-r--r--gnu/dist/binutils/include/coff/internal.h4
-rw-r--r--gnu/dist/binutils/include/coff/maxq.h56
-rw-r--r--gnu/dist/binutils/include/coff/mcore.h2
-rw-r--r--gnu/dist/binutils/include/coff/mips.h32
-rw-r--r--gnu/dist/binutils/include/coff/mipspe.h2
-rw-r--r--gnu/dist/binutils/include/coff/pe.h7
-rw-r--r--gnu/dist/binutils/include/coff/rs6000.h2
-rw-r--r--gnu/dist/binutils/include/coff/rs6k64.h2
-rw-r--r--gnu/dist/binutils/include/coff/sh.h2
-rw-r--r--gnu/dist/binutils/include/coff/symconst.h2
-rw-r--r--gnu/dist/binutils/include/coff/ti.h2
-rw-r--r--gnu/dist/binutils/include/coff/tic54x.h2
-rw-r--r--gnu/dist/binutils/include/coff/xcoff.h4
17 files changed, 115 insertions, 71 deletions
diff --git a/gnu/dist/binutils/include/coff/ChangeLog b/gnu/dist/binutils/include/coff/ChangeLog
index 33163834229..88cf310935f 100644
--- a/gnu/dist/binutils/include/coff/ChangeLog
+++ b/gnu/dist/binutils/include/coff/ChangeLog
@@ -1,3 +1,36 @@
+2005-02-21 Alan Modra <amodra@bigpond.net.au>
+
+ * xcoff.h (struct xcoff_loader_info): Warning fix.
+
+2005-01-10 Inderpreet Singh <inderpreetb@noida.hcltech.com>
+
+ * maxq.h (F_MAXQ10, F_MAXQ20): Define.
+
+2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
+ Vineet Sharma <vineets@noida.hcltech.com>
+
+ * maxq.h: New file: Defintions for the maxq port.
+
+2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
+
+ * pe.h (IMAGE_WEAK_EXTERN_SEARCH_NOLIBRARY): Define.
+ (IMAGE_WEAK_EXTERN_SEARCH_LIBRARY): Same.
+ (IMAGE_WEAK_EXTERN_SEARCH_ALIAS): Same.
+
+2004-08-13 Mark Kettenis <kettenis@gnu.org>
+
+ * symconst.h (langMax): Fix typo in comment.
+
+2004-04-23 Chris Demetriou <cgd@broadcom.com>
+
+ * mips.h (MIPS_R_RELHI, MIPS_R_RELLO, MIPS_R_SWITCH): Remove
+ (MIPS_R_PCREL16): Update comment.
+ * ecoff.h (struct ecoff_value_adjust): Remove structure.
+ (struct ecoff_debug_info): Remove 'adjust' member.
+
+2004-04-20 DJ Delorie <dj@redhat.com>
+
+ * internal.h (R_SECREL32): Add.
For older changes see ChangeLog-9103
diff --git a/gnu/dist/binutils/include/coff/arm.h b/gnu/dist/binutils/include/coff/arm.h
index 8b90228ca98..b05fa0fb1de 100644
--- a/gnu/dist/binutils/include/coff/arm.h
+++ b/gnu/dist/binutils/include/coff/arm.h
@@ -1,5 +1,5 @@
/* ARM COFF support for BFD.
- Copyright 1998, 1999, 2000, 2002 Free Software Foundation, Inc.
+ Copyright 1998, 1999, 2000, 2002, 2003 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/gnu/dist/binutils/include/coff/ecoff.h b/gnu/dist/binutils/include/coff/ecoff.h
index 3a7aa4fbbb5..5726a19d91f 100644
--- a/gnu/dist/binutils/include/coff/ecoff.h
+++ b/gnu/dist/binutils/include/coff/ecoff.h
@@ -2,7 +2,7 @@
This does not include symbol information, found in sym.h and
symconst.h.
- Copyright 2001, 2002, 2003 Free Software Foundation, Inc.
+ Copyright 2001, 2002, 2003, 2004 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
@@ -322,34 +322,6 @@ struct ecoff_debug_info
this changes in the future. This is a pointer to an array, not a
single structure. */
FDR *fdr;
-
- /* When relaxing MIPS embedded PIC code, we may need to adjust
- symbol values when they are output. This is a linked list of
- structures indicating how values should be adjusted. There is no
- requirement that the entries be in any order, or that they not
- overlap. This field is normally NULL, in which case no
- adjustments need to be made. */
- struct ecoff_value_adjust *adjust;
-};
-
-/* This structure describes how to adjust symbol values when
- outputting MIPS embedded PIC code. These adjustments only apply to
- the internal symbols, as the external symbol values will come from
- the hash table and have already been adjusted. */
-
-struct ecoff_value_adjust
-{
- /* Next entry on adjustment list. */
- struct ecoff_value_adjust *next;
- /* Starting VMA of adjustment. This is the VMA in the ECOFF file,
- not the offset from the start of the section. Thus it should
- indicate a particular section. */
- bfd_vma start;
- /* Ending VMA of adjustment. */
- bfd_vma end;
- /* Adjustment. This should be added to the value of the symbol, or
- FDR. This is zero for the last entry in the array. */
- long adjust;
};
/* These structures are used by the ECOFF find_nearest_line function. */
diff --git a/gnu/dist/binutils/include/coff/ia64.h b/gnu/dist/binutils/include/coff/ia64.h
index f7ff0ee22f0..978255dd36a 100644
--- a/gnu/dist/binutils/include/coff/ia64.h
+++ b/gnu/dist/binutils/include/coff/ia64.h
@@ -1,6 +1,6 @@
/* coff information for HP/Intel IA-64.
- Copyright 2001 Free Software Foundation, Inc.
+ Copyright 2000 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
diff --git a/gnu/dist/binutils/include/coff/internal.h b/gnu/dist/binutils/include/coff/internal.h
index 2d41bf9a5f4..a400e8c9282 100644
--- a/gnu/dist/binutils/include/coff/internal.h
+++ b/gnu/dist/binutils/include/coff/internal.h
@@ -1,7 +1,8 @@
/* Internal format of COFF object file data structures, for GNU BFD.
This file is part of BFD, the Binary File Descriptor library.
- Copyright 2001 Free Software Foundation, Inc.
+ Copyright 1999, 2000, 2001, 2002, 2003, 2004
+ 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
@@ -607,6 +608,7 @@ struct internal_reloc
#define R_REL24 5
#define R_DIR32 6
#define R_IMAGEBASE 7
+#define R_SECREL32 11
#define R_RELBYTE 15
#define R_RELWORD 16
#define R_RELLONG 17
diff --git a/gnu/dist/binutils/include/coff/maxq.h b/gnu/dist/binutils/include/coff/maxq.h
new file mode 100644
index 00000000000..694a3fa63ad
--- /dev/null
+++ b/gnu/dist/binutils/include/coff/maxq.h
@@ -0,0 +1,56 @@
+/* COFF spec for MAXQ
+
+ Copyright 2004, 2005 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; 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.
+
+ 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., 59
+ Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+ Contributed by Vineet Sharma(vineets@noida.hcltech.com) Inderpreet
+ S.(inderpreetb@noida.hcltech.com) HCL Technologies Ltd. */
+
+#define L_LNNO_SIZE 2
+
+#include "coff/external.h"
+
+/* Bits for f_flags: F_RELFLG relocation info stripped from file F_EXEC file
+ is executable (no unresolved external references) F_LNNO line numbers
+ stripped from file F_LSYMS local symbols stripped from file. */
+
+#define F_RELFLG (0x0001)
+#define F_EXEC (0x0002)
+#define F_LNNO (0x0004)
+#define F_LSYMS (0x0008)
+
+/* Variant Specific Flags for MAXQ10 and MAXQ20. */
+#define F_MAXQ10 (0x0030)
+#define F_MAXQ20 (0x0040)
+
+#define F_MACHMASK (0x00F0)
+
+/* Magic numbers for maxq. */
+#define MAXQ20MAGIC 0xa0
+#define MAXQ20BADMAG(x) (((x).f_magic != MAXQ20MAGIC))
+#define BADMAG(x) MAXQ20BADMAG (x)
+
+/* Relocation information declaration and related definitions. */
+struct external_reloc
+{
+ char r_vaddr[4]; /* (Virtual) address of reference. */
+ char r_symndx[4]; /* Index into symbol table. */
+ char r_type[2]; /* Relocation type. */
+ char r_offset[2]; /* Addend. */
+};
+
+#define RELOC struct external_reloc
+#define RELSZ (10 + 2) /* sizeof (RELOC) */
diff --git a/gnu/dist/binutils/include/coff/mcore.h b/gnu/dist/binutils/include/coff/mcore.h
index 980cf133da9..02579c42a60 100644
--- a/gnu/dist/binutils/include/coff/mcore.h
+++ b/gnu/dist/binutils/include/coff/mcore.h
@@ -1,5 +1,5 @@
/* Motorola MCore support for BFD.
- Copyright 1999 Free Software Foundation, Inc.
+ Copyright 1999, 2000 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
diff --git a/gnu/dist/binutils/include/coff/mips.h b/gnu/dist/binutils/include/coff/mips.h
index b9503bd5555..e3d2c1ccc05 100644
--- a/gnu/dist/binutils/include/coff/mips.h
+++ b/gnu/dist/binutils/include/coff/mips.h
@@ -1,7 +1,7 @@
/* ECOFF support on MIPS machines.
coff/ecoff.h must be included before this file.
- Copyright 2001 Free Software Foundation, Inc.
+ Copyright 1999, 2004 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
@@ -105,34 +105,10 @@ struct external_reloc
#define MIPS_R_GPREL 6
#define MIPS_R_LITERAL 7
-/* These reloc types are a Cygnus extension used when generating
- position independent code for embedded systems. The numbers are
- taken from Irix 4, but at least for internal relocs Irix 5 does not
- give them the same meaning. For an internal reloc the symbol index
- of RELHI and RELLO is modified as described below for
- MIPS_R_SWITCH. */
+/* FIXME: This relocation is used (internally only) to represent branches
+ when assembling. It should never appear in output files, and
+ be removed. (It used to be used for embedded-PIC support.) */
#define MIPS_R_PCREL16 12
-#define MIPS_R_RELHI 13
-#define MIPS_R_RELLO 14
-
-/* This reloc type is a Cygnus extension used when generating position
- independent code for embedded systems. It is used for an entry in
- a switch table, which looks like this:
- .word $L3-$LS12
- The object file will contain the correct difference, and does not
- require adjustment. However, when the linker is relaxing PC
- relative calls, it is possible for $L3 to move farther away. This
- reloc always appears in the .text section, and is always against
- the .text section. However, the symbol index is not
- RELOC_SECTION_TEXT. It is, instead, the distance between this
- switch table entry and $LS12. Thus, the original value of $L12 is
- vaddr - symndx
- and the original value of $L3 is
- vaddr - symndx + addend
- where addend is the value in the object file. Knowing this, the
- linker can know whether the addend in the object file must be
- adjusted. */
-#define MIPS_R_SWITCH 22
/********************** STABS **********************/
diff --git a/gnu/dist/binutils/include/coff/mipspe.h b/gnu/dist/binutils/include/coff/mipspe.h
index 9b4ffab70a0..cd2480b01d2 100644
--- a/gnu/dist/binutils/include/coff/mipspe.h
+++ b/gnu/dist/binutils/include/coff/mipspe.h
@@ -1,6 +1,6 @@
/* coff information for Windows CE with MIPS VR4111
- Copyright 2001 Free Software Foundation, Inc.
+ Copyright 2000 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
diff --git a/gnu/dist/binutils/include/coff/pe.h b/gnu/dist/binutils/include/coff/pe.h
index 363d307379b..4d3621905b7 100644
--- a/gnu/dist/binutils/include/coff/pe.h
+++ b/gnu/dist/binutils/include/coff/pe.h
@@ -1,6 +1,6 @@
/* pe.h - PE COFF header information
- Copyright 2000, 2001, 2003 Free Software Foundation, Inc.
+ Copyright 1999, 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -310,4 +310,9 @@ typedef struct
#define IMPORT_NAME_NOPREFIX 2
#define IMPORT_NAME_UNDECORATE 3
+/* Weak external characteristics. */
+#define IMAGE_WEAK_EXTERN_SEARCH_NOLIBRARY 1
+#define IMAGE_WEAK_EXTERN_SEARCH_LIBRARY 2
+#define IMAGE_WEAK_EXTERN_SEARCH_ALIAS 3
+
#endif /* _PE_H */
diff --git a/gnu/dist/binutils/include/coff/rs6000.h b/gnu/dist/binutils/include/coff/rs6000.h
index 0c34861142a..5323662823e 100644
--- a/gnu/dist/binutils/include/coff/rs6000.h
+++ b/gnu/dist/binutils/include/coff/rs6000.h
@@ -1,5 +1,5 @@
/* IBM RS/6000 "XCOFF" file definitions for BFD.
- Copyright (C) 1990, 1991 Free Software Foundation, Inc.
+ Copyright (C) 1990, 1991, 2001 Free Software Foundation, Inc.
FIXME: Can someone provide a transliteration of this name into ASCII?
Using the following chars caused a compiler warning on HIUX (so I replaced
them with octal escapes), and isn't useful without an understanding of what
diff --git a/gnu/dist/binutils/include/coff/rs6k64.h b/gnu/dist/binutils/include/coff/rs6k64.h
index 47d08021318..4eab91daa6a 100644
--- a/gnu/dist/binutils/include/coff/rs6k64.h
+++ b/gnu/dist/binutils/include/coff/rs6k64.h
@@ -1,5 +1,5 @@
/* IBM RS/6000 "XCOFF64" file definitions for BFD.
- Copyright (C) 2000, 2002 Free Software Foundation, Inc.
+ Copyright (C) 2000, 2001, 2002 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
diff --git a/gnu/dist/binutils/include/coff/sh.h b/gnu/dist/binutils/include/coff/sh.h
index d20834ca667..d224379b2a9 100644
--- a/gnu/dist/binutils/include/coff/sh.h
+++ b/gnu/dist/binutils/include/coff/sh.h
@@ -1,6 +1,6 @@
/* coff information for Renesas SH
- Copyright 2001, 2003 Free Software Foundation, Inc.
+ Copyright 2000, 2003 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
diff --git a/gnu/dist/binutils/include/coff/symconst.h b/gnu/dist/binutils/include/coff/symconst.h
index f40eef2a311..3e45705f408 100644
--- a/gnu/dist/binutils/include/coff/symconst.h
+++ b/gnu/dist/binutils/include/coff/symconst.h
@@ -48,7 +48,7 @@
#define langStdc 9 /* FIXME: Collides with SGI langCplusplus */
#define langCplusplus 9 /* FIXME: Collides with langStdc */
#define langCplusplusV2 10 /* SGI addition */
-#define langMax 11 /* maximun allowed 32 -- 5 bits */
+#define langMax 11 /* maximum allowed 32 -- 5 bits */
/* The following are value definitions for the fields in the SYMR */
diff --git a/gnu/dist/binutils/include/coff/ti.h b/gnu/dist/binutils/include/coff/ti.h
index a15fe717ab6..cf5ffea7a12 100644
--- a/gnu/dist/binutils/include/coff/ti.h
+++ b/gnu/dist/binutils/include/coff/ti.h
@@ -2,7 +2,7 @@
customized in a target-specific file, and then this file included (see
tic54x.h for an example).
- Copyright 2001, 2003 Free Software Foundation, Inc.
+ Copyright 2000, 2001, 2002, 2003 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
diff --git a/gnu/dist/binutils/include/coff/tic54x.h b/gnu/dist/binutils/include/coff/tic54x.h
index a7b7003a9f2..e8bac07231c 100644
--- a/gnu/dist/binutils/include/coff/tic54x.h
+++ b/gnu/dist/binutils/include/coff/tic54x.h
@@ -1,7 +1,7 @@
/* TI COFF information for Texas Instruments TMS320C54X.
This file customizes the settings in coff/ti.h.
- Copyright 2001 Free Software Foundation, Inc.
+ Copyright 2000, 2001 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
diff --git a/gnu/dist/binutils/include/coff/xcoff.h b/gnu/dist/binutils/include/coff/xcoff.h
index 64a9ee164ce..a70449eb7f3 100644
--- a/gnu/dist/binutils/include/coff/xcoff.h
+++ b/gnu/dist/binutils/include/coff/xcoff.h
@@ -1,6 +1,6 @@
/* Internal format of XCOFF object file data structures for BFD.
- Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
+ Copyright 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005
Free Software Foundation, Inc.
Written by Ian Lance Taylor <ian@cygnus.com>, Cygnus Support.
@@ -409,7 +409,7 @@ struct xcoff_loader_info
size_t string_size;
/* String table. */
- bfd_byte *strings;
+ char *strings;
/* Allocated size of string table. */
size_t string_alc;