aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-07-18 19:49:56 +0000
committerIan Lance Taylor <ian@airs.com>1996-07-18 19:49:56 +0000
commitf4fcd63fa019c739fdf9de4aa984c4de96d4becd (patch)
treef6b547d650f0e7dd82db9c84f5cf08ff77ded0ee /include
parenta8a3d83af0bdc11d847a8d7d8e6509c147090880 (diff)
downloadgdb-f4fcd63fa019c739fdf9de4aa984c4de96d4becd.zip
gdb-f4fcd63fa019c739fdf9de4aa984c4de96d4becd.tar.gz
gdb-f4fcd63fa019c739fdf9de4aa984c4de96d4becd.tar.bz2
add comments about magic numbers
Diffstat (limited to 'include')
-rw-r--r--include/elf/common.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/elf/common.h b/include/elf/common.h
index 3c3ed7e..c93295a 100644
--- a/include/elf/common.h
+++ b/include/elf/common.h
@@ -92,7 +92,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/* If it is necessary to assign new unofficial EM_* values, please pick large
random numbers (0x8523, 0xa7f2, etc.) to minimize the chances of collision
- with official or non-GNU unofficial values. */
+ with official or non-GNU unofficial values.
+
+ NOTE: Do not just increment the most recent number by one.
+ Somebody else somewhere will do exactly the same thing, and you
+ will have a collision. Instead, pick a random number. */
/* Cygnus PowerPC ELF backend. Written in the absence of an ABI. */
#define EM_CYGNUS_POWERPC 0x9025
@@ -113,6 +117,8 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#define EM_CYGNUS_D10V 0x9027
/* end-sanitize-d10v */
+/* See the above comment before you add a new EM_* value here. */
+
/* Values for e_version */
#define EV_NONE 0 /* Invalid ELF version */