From e557edcf98c55007753b5ff7b4003fdcc099bcb7 Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Wed, 4 Sep 1991 16:03:52 +0000 Subject: [PATCH] * a.out.gnu.h, aout64.h: Add N_WARNING. Change N_FN to 0x0E, to match SunOS and BSD. Add N_COMM as 0x12 for SunOS shared lib support. * stab.def: Add N_COMM to table, fix overlap comment. --- gas/a.out.gnu.h | 9 ++++++++- include/ChangeLog | 7 +++++++ include/aout64.h | 8 +++++++- include/stab.def | 5 ++--- 4 files changed, 24 insertions(+), 5 deletions(-) diff --git a/gas/a.out.gnu.h b/gas/a.out.gnu.h index 24794dcbcda..3833d7162b2 100755 --- a/gas/a.out.gnu.h +++ b/gas/a.out.gnu.h @@ -169,7 +169,8 @@ struct nlist { #define N_TEXT 4 #define N_DATA 6 #define N_BSS 8 -#define N_FN 0x1e +#define N_FN 0xe +#define N_COMM 0x12 /* common (visible in shared lib commons) */ #define N_EXT 1 #define N_TYPE 036 @@ -205,6 +206,12 @@ struct nlist { /* This is output from LD. */ #define N_SETV 0x1C /* Pointer to set vector in data area. */ + +/* Warning symbol. The text gives a warning message, the next symbol + in the table will be undefined. When the symbol is referenced, the + message is printed. */ + +#define N_WARNING 0x1e /* This structure describes a single relocation to be performed. The text-relocation section of the file is a vector of these structures, diff --git a/include/ChangeLog b/include/ChangeLog index afd52d17cec..9bed3fe83f8 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,3 +1,10 @@ +Wed Sep 4 08:58:37 1991 John Gilmore (gnu at cygint.cygnus.com) + + * a.out.gnu.h, aout64.h: Add N_WARNING. Change N_FN to 0x0E, + to match SunOS and BSD. Add N_COMM as 0x12 for SunOS shared lib + support. + * stab.def: Add N_COMM to table, fix overlap comment. + Tue Sep 3 06:29:20 1991 John Gilmore (gnu at cygint.cygnus.com) Merge with latest FSF versions of these files. diff --git a/include/aout64.h b/include/aout64.h index 88df3039ee0..9edb7d35ab3 100755 --- a/include/aout64.h +++ b/include/aout64.h @@ -175,7 +175,8 @@ struct internal_nlist { #define N_TEXT 4 #define N_DATA 6 #define N_BSS 8 -#define N_FN 15 +#define N_FN 0x0e +#define N_COMM 0x12 /* Common symbol (visible after shared lib dynlink) */ #define N_EXT 1 #define N_TYPE 0x1e #define N_STAB 0xe0 @@ -202,6 +203,11 @@ struct internal_nlist { /* This is output from LD. */ #define N_SETV 0x1C /* Pointer to set vector in data area. */ +/* Warning symbol. The text gives a warning message, the next symbol + in the table will be undefined. When the symbol is referenced, the + message is printed. */ + +#define N_WARNING 0x1e /* Relocations diff --git a/include/stab.def b/include/stab.def index 4bd4c88578a..fa1151786b1 100755 --- a/include/stab.def +++ b/include/stab.def @@ -167,8 +167,8 @@ __define_stab (N_LENG, 0xfe, "LENG") | 00 - 1F are not dbx stab symbols | | Entries with bit 01 set are external symbols. | | 00 UNDEF | 02 ABS | 04 TEXT | 06 DATA | - | 08 BSS | 0A INDR* | 0C | 0E FN | - | 10 | 12 | 14 SETA | 16 SETT | + | 08 BSS | 0A INDR | 0C | 0E FN | + | 10 | 12 COMM | 14 SETA | 16 SETT | | 18 SETD | 1A SETB | 1C SETV | 1E WARNING| |_______________________________________________| | Debug entries with bit 01 set are unused. | @@ -203,5 +203,4 @@ __define_stab (N_LENG, 0xfe, "LENG") +-----------------------------------------------+ * 50 EHDECL is also MOD2. * 48 BSLINE is also BROWS. - * 0A INDR is also COMM (supposedly only used internally to unix ld?) */ -- 2.30.2