aboutsummaryrefslogtreecommitdiff
path: root/bfd/libaout.h
diff options
context:
space:
mode:
authorMark Eichin <eichin@cygnus>1992-10-09 02:41:30 +0000
committerMark Eichin <eichin@cygnus>1992-10-09 02:41:30 +0000
commit7f90aa8b1864f9e4f4d95cc1912b4a9c188ff219 (patch)
tree3d2007efac0e8b147fc657f7c1e76e35195d9c6d /bfd/libaout.h
parent23ab00aadf1a31461022d12294e6ec6f7404e0ba (diff)
downloadgdb-7f90aa8b1864f9e4f4d95cc1912b4a9c188ff219.zip
gdb-7f90aa8b1864f9e4f4d95cc1912b4a9c188ff219.tar.gz
gdb-7f90aa8b1864f9e4f4d95cc1912b4a9c188ff219.tar.bz2
Linker now works for go32; other changes keep it from breaking the other
platforms (new backend_data "exec_header_not_counted") (from p3.)
Diffstat (limited to 'bfd/libaout.h')
-rw-r--r--bfd/libaout.h16
1 files changed, 12 insertions, 4 deletions
diff --git a/bfd/libaout.h b/bfd/libaout.h
index 2e0f9e9..c37ae7e 100644
--- a/bfd/libaout.h
+++ b/bfd/libaout.h
@@ -22,8 +22,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
variants in a few routines, and otherwise share large masses of code.
This means we only have to fix bugs in one place, most of the time. */
-/* $Id$ */
-
#ifdef __STDC__
#define CAT3(a,b,c) a##b##c
#else
@@ -59,11 +57,11 @@ struct aout_backend_data
/* Are ZMAGIC files mapped contiguously? If so, the text section may
need more padding, if the segment size (granularity for memory access
control) is larger than the page size. */
- unsigned char zmagic_mapped_contiguous : 1;
+ unsigned char zmagic_mapped_contiguous;
/* If this flag is set, ZMAGIC/NMAGIC file headers get mapped in with the
text section, which starts immediately after the file header.
If not, the text section starts on the next page. */
- unsigned char text_includes_header : 1;
+ unsigned char text_includes_header;
/* If the text section VMA isn't specified, and we need an absolute
address, use this as the default. If we're producing a relocatable
@@ -72,6 +70,15 @@ struct aout_backend_data
reasonable for a format that handles multiple CPUs with different
load addresses for each? */
bfd_vma default_text_vma;
+
+ /* Callback for setting the page and segment sizes, if they can't be
+ trivially determined from the architecture. */
+ boolean (*set_sizes) PARAMS ((bfd *));
+
+ /* zmagic files only. For go32, the length of the exec header contributes
+ to the size of the text section in the file for alignment purposes but
+ does *not* get counted in the length of the text section. */
+ unsigned char exec_header_not_counted;
};
#define aout_backend_info(abfd) \
((CONST struct aout_backend_data *)((abfd)->xvec->backend_data))
@@ -98,6 +105,7 @@ struct internal_exec
unsigned char a_talign; /* Alignment of text segment */
unsigned char a_dalign; /* Alignment of data segment */
unsigned char a_balign; /* Alignment of bss segment */
+ char a_relaxable; /* Enough info for linker relax */
};
/* Magic number is written