aboutsummaryrefslogtreecommitdiff
path: root/bfd/libaout.h
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-11-21 19:52:23 +0000
committerJohn Gilmore <gnu@cygnus>1991-11-21 19:52:23 +0000
commit98d431073737cd92addbd2cc1cef5686cdf699c3 (patch)
treeae8d01f3a3848a6d794b32492e4cf9c637c53c54 /bfd/libaout.h
parent2eba358f6b7746bf5f30b87592907fd431b219e0 (diff)
downloadgdb-98d431073737cd92addbd2cc1cef5686cdf699c3.zip
gdb-98d431073737cd92addbd2cc1cef5686cdf699c3.tar.gz
gdb-98d431073737cd92addbd2cc1cef5686cdf699c3.tar.bz2
* libaout.h (WORK_OUT_FILE_POSITIONS): One more try at this
rather complicated seeming problem. Eliminate LOGICAL_ versions, just make N_XXX work by excluding the header from the text segment. * aoutx.h: Fix comments to match.
Diffstat (limited to 'bfd/libaout.h')
-rw-r--r--bfd/libaout.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/bfd/libaout.h b/bfd/libaout.h
index 0797bc5..57d50ed 100644
--- a/bfd/libaout.h
+++ b/bfd/libaout.h
@@ -207,7 +207,7 @@ PROTO (boolean, NAME(aout,close_and_cleanup), (bfd *abfd));
PROTO (boolean, NAME(aout,find_nearest_line), (bfd *abfd, asection *section,
asymbol **symbols, bfd_vma offset, CONST char **filename_ptr,
CONST char **functionname_ptr, unsigned int *line_ptr));
-PROTO (int, NAME(aout,sizeof_headers), (bfd *ignore_abfd, boolean exec));
+PROTO (int, NAME(aout,sizeof_headers), (bfd *abfd, boolean exec));
PROTO (void, NAME(aout,swap_exec_header_in), (bfd *abfd,
@@ -226,10 +226,12 @@ PROTO (void, NAME(aout,swap_exec_header_out),(bfd *abfd, struct internal_exec *e
/* Calculate the file positions of the parts of a newly read aout header */
#define WORK_OUT_FILE_POSITIONS(abfd, execp) \
+ obj_textsec (abfd)->size = N_TXTSIZE(*execp); \
+ \
/* The virtual memory addresses of the sections */ \
- obj_datasec (abfd)->vma = N_DATADDR(*execp); \
- obj_bsssec (abfd)->vma = N_BSSADDR(*execp); \
obj_textsec (abfd)->vma = N_TXTADDR(*execp); \
+ obj_datasec (abfd)->vma = N_DATADDR(*execp); \
+ obj_bsssec (abfd)->vma = N_BSSADDR(*execp); \
\
/* The file offsets of the sections */ \
obj_textsec (abfd)->filepos = N_TXTOFF (*execp); \