mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 13:56:22 +08:00
ieee.h, oasys.h: Add some struct and enum tags for debugging.
internalcoff.h: Comment changes. ecoff.h: Add back in the relocation entries, deleted accidentally, and the sizes of ordinary COFF symbol fields for internalcoff.h.
This commit is contained in:
@ -69,3 +69,26 @@ struct external_scnhdr {
|
|||||||
#define DEFAULT_TEXT_SECTION_ALIGNMENT 16
|
#define DEFAULT_TEXT_SECTION_ALIGNMENT 16
|
||||||
/* For new sections we havn't heard of before */
|
/* For new sections we havn't heard of before */
|
||||||
#define DEFAULT_SECTION_ALIGNMENT 4
|
#define DEFAULT_SECTION_ALIGNMENT 4
|
||||||
|
|
||||||
|
/********************** RELOCATION DIRECTIVES **********************/
|
||||||
|
|
||||||
|
struct external_reloc {
|
||||||
|
char r_vaddr[4];
|
||||||
|
char r_symndx[4];
|
||||||
|
char r_type[2];
|
||||||
|
char pad[2];
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/* Relevent values for r_type and ecoff. Would someone please document them */
|
||||||
|
|
||||||
|
#define RELOC struct external_reloc
|
||||||
|
#define RELSZ 12
|
||||||
|
|
||||||
|
/* These definitions are not used in ecoff, but they make it possible
|
||||||
|
for ecoff to use the same "internalcoff.h" as other coff implementations. */
|
||||||
|
|
||||||
|
#define SYMNMLEN 8 /* # characters in a symbol name */
|
||||||
|
#define FILNMLEN 14 /* # characters in a file name */
|
||||||
|
#define DIMNUM 4 /* # array dimensions in auxiliary entry */
|
||||||
|
|
||||||
|
@ -155,7 +155,9 @@ struct internal_lineno {
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/********************** SYMBOLS **********************/
|
/********************** SYMBOLS **********************/
|
||||||
|
|
||||||
struct internal_syment {
|
struct internal_syment {
|
||||||
union {
|
union {
|
||||||
char _n_name[SYMNMLEN]; /* old COFF version */
|
char _n_name[SYMNMLEN]; /* old COFF version */
|
||||||
@ -176,10 +178,9 @@ struct internal_syment {
|
|||||||
char n_numaux; /* number of aux. entries */
|
char n_numaux; /* number of aux. entries */
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/* Relocatable symbols have number of the section in which they are defined,
|
||||||
* Relocatable symbols have number of the section in which they are defined,
|
or one of the following: */
|
||||||
* or one of the following:
|
|
||||||
*/
|
|
||||||
#define N_UNDEF ((short)0) /* undefined symbol */
|
#define N_UNDEF ((short)0) /* undefined symbol */
|
||||||
#define N_ABS ((short)-1) /* value of symbol is absolute */
|
#define N_ABS ((short)-1) /* value of symbol is absolute */
|
||||||
#define N_DEBUG ((short)-2) /* debugging symbol -- value is meaningless */
|
#define N_DEBUG ((short)-2) /* debugging symbol -- value is meaningless */
|
||||||
|
Reference in New Issue
Block a user