#define SCNHDR struct external_scnhdr
#define SCNHSZ sizeof(SCNHDR)
+/*
+ * names of "special" sections
+ */
+#define _TEXT ".text"
+#define _DATA ".data"
+#define _BSS ".bss"
/********************** LINE NUMBERS **********************/
/********************** SYMBOLS **********************/
-#define SYMNMLEN 8 /* # characters in a symbol name */
-#define FILNMLEN 14 /* # characters in a file name */
-#define DIMNUM 4 /* # array dimensions in auxiliary entry */
+#define E_SYMNMLEN 8 /* # characters in a symbol name */
+#define E_FILNMLEN 14 /* # characters in a file name */
+#define E_DIMNUM 4 /* # array dimensions in auxiliary entry */
struct external_syment
{
union {
- char e_name[SYMNMLEN];
+ char e_name[E_SYMNMLEN];
struct {
char e_zeroes[4];
char e_offset[4];
/* 12 */
union {
struct { /* if ISARY, up to 4 dimen. */
- char x_dimen[DIMNUM][2];
+ char x_dimen[E_DIMNUM][2];
} x_ary;
} x_fcnary;
/* 20 */
} x_sym;
union {
- char x_fname[FILNMLEN];
+ char x_fname[E_FILNMLEN];
struct {
char x_zeroes[4];
char x_offset[4];
#define PUT_SCN_SCNLEN(abfd,in, ext) bfd_h_put_32(abfd, in, (bfd_byte *) ext->x_scn.x_scnlen)
#define PUT_SCN_NRELOC(abfd,in, ext) bfd_h_put_32(abfd, in, (bfd_byte *)ext->x_scn.x_nreloc)
#define PUT_SCN_NLINNO(abfd,in, ext) bfd_h_put_32(abfd,in, (bfd_byte *) ext->x_scn.x_nlinno)
+#define GET_LINENO_LNNO(abfd, ext) bfd_h_get_32(abfd, (bfd_byte *) (ext->l_lnno))
+#define PUT_LINENO_LNNO(abfd,val, ext) bfd_h_put_32(abfd,val, (bfd_byte *) (ext->l_lnno));
+
+
#define SYMENT struct external_syment
#define SYMESZ 20