Add code to detect and either handle or issue an error message for binaries
created by the DEC ALPHA compilers.
This commit is contained in:
		| @@ -1,3 +1,8 @@ | |||||||
|  | 2005-07-14  Daniel Marques  <marques@cs.cornell.edu> | ||||||
|  |  | ||||||
|  | 	* alpha.h (ALPHA_ECOFF_COMPRESSEDMAG): Define. | ||||||
|  | 	* ecoff.h (ALPHA_MAGIC_COMPRESSED): Define. | ||||||
|  |  | ||||||
| 2005-05-10  Nick Clifton  <nickc@redhat.com> | 2005-05-10  Nick Clifton  <nickc@redhat.com> | ||||||
|  |  | ||||||
| 	* Update the address and phone number of the FSF organization in | 	* Update the address and phone number of the FSF organization in | ||||||
|   | |||||||
| @@ -1,7 +1,7 @@ | |||||||
| /* ECOFF support on Alpha machines. | /* ECOFF support on Alpha machines. | ||||||
|    coff/ecoff.h must be included before this file. |    coff/ecoff.h must be included before this file. | ||||||
|  |  | ||||||
|    Copyright 2001 Free Software Foundation, Inc. |    Copyright 2001, 2005 Free Software Foundation, Inc. | ||||||
|  |  | ||||||
|    This program is free software; you can redistribute it and/or modify |    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 |    it under the terms of the GNU General Public License as published by | ||||||
| @@ -34,6 +34,9 @@ struct external_filehdr | |||||||
| #define ALPHA_ECOFF_BADMAG(x) \ | #define ALPHA_ECOFF_BADMAG(x) \ | ||||||
|   ((x).f_magic != ALPHA_MAGIC && (x).f_magic != ALPHA_MAGIC_BSD) |   ((x).f_magic != ALPHA_MAGIC && (x).f_magic != ALPHA_MAGIC_BSD) | ||||||
|  |  | ||||||
|  | #define ALPHA_ECOFF_COMPRESSEDMAG(x) \ | ||||||
|  |   ((x).f_magic == ALPHA_MAGIC_COMPRESSED) | ||||||
|  |  | ||||||
| /* The object type is encoded in the f_flags.  */ | /* The object type is encoded in the f_flags.  */ | ||||||
| #define F_ALPHA_OBJECT_TYPE_MASK	0x3000 | #define F_ALPHA_OBJECT_TYPE_MASK	0x3000 | ||||||
| #define F_ALPHA_NO_SHARED		0x1000 | #define F_ALPHA_NO_SHARED		0x1000 | ||||||
|   | |||||||
| @@ -2,7 +2,7 @@ | |||||||
|    This does not include symbol information, found in sym.h and |    This does not include symbol information, found in sym.h and | ||||||
|    symconst.h. |    symconst.h. | ||||||
|  |  | ||||||
|    Copyright 2001, 2002, 2003, 2004 Free Software Foundation, Inc. |    Copyright 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. | ||||||
|  |  | ||||||
|    This program is free software; you can redistribute it and/or modify |    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 |    it under the terms of the GNU General Public License as published by | ||||||
| @@ -41,6 +41,8 @@ | |||||||
| /* Alpha magic numbers used in filehdr.  */ | /* Alpha magic numbers used in filehdr.  */ | ||||||
| #define ALPHA_MAGIC 0x183 | #define ALPHA_MAGIC 0x183 | ||||||
| #define ALPHA_MAGIC_BSD 0x185 | #define ALPHA_MAGIC_BSD 0x185 | ||||||
|  | /* A compressed version of an ALPHA_MAGIC file created by DEC's tools.  */ | ||||||
|  | #define ALPHA_MAGIC_COMPRESSED 0x188 | ||||||
|  |  | ||||||
| /* Magic numbers used in a.out header.  */ | /* Magic numbers used in a.out header.  */ | ||||||
| #define ECOFF_AOUT_OMAGIC 0407	/* not demand paged (ld -N).  */ | #define ECOFF_AOUT_OMAGIC 0407	/* not demand paged (ld -N).  */ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user