diff options
author | Steve Chamberlain <steve@cygnus> | 1991-05-09 18:03:16 +0000 |
---|---|---|
committer | Steve Chamberlain <steve@cygnus> | 1991-05-09 18:03:16 +0000 |
commit | 41489b9ad788b249959760de04e117191642dff3 (patch) | |
tree | a5c75f233ffa2a290268e8d94fca50e8bb2e7722 /bfd/aout.c | |
parent | ffb740a982b94cf459d456f301be5042e2788eaf (diff) | |
download | gdb-41489b9ad788b249959760de04e117191642dff3.zip gdb-41489b9ad788b249959760de04e117191642dff3.tar.gz gdb-41489b9ad788b249959760de04e117191642dff3.tar.bz2 |
Thu May 9 11:00:45 1991 Steve Chamberlain (steve at cygint.cygnus.com)
* sunos.c (sunos4_set_section_contents): Made it so that sections
are always padded to their alignment size.
Diffstat (limited to 'bfd/aout.c')
-rwxr-xr-x | bfd/aout.c | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -762,9 +762,13 @@ sunos4_set_section_contents (abfd, section, location, offset, count) return false; } - obj_textsec (abfd)->filepos = sizeof(struct exec); - obj_datasec(abfd)->filepos = obj_textsec (abfd)->filepos - + obj_textsec (abfd)->size; + obj_textsec(abfd)->filepos = sizeof(struct exec); + obj_textsec(abfd)->size = align_power(obj_textsec(abfd)->size, + obj_textsec(abfd)->alignment_power); + obj_datasec(abfd)->filepos = obj_textsec (abfd)->filepos + obj_textsec (abfd)->size; + obj_datasec(abfd)->size = align_power(obj_datasec(abfd)->size, + obj_datasec(abfd)->alignment_power); + } /* regardless, once we know what we're doing, we might as well get going */ if (section != obj_bsssec(abfd)) { |