diff options
author | Tom Rix <trix@redhat.com> | 2002-06-12 16:04:39 +0000 |
---|---|---|
committer | Tom Rix <trix@redhat.com> | 2002-06-12 16:04:39 +0000 |
commit | f381349953ca09f02ae26954a567be58747c3430 (patch) | |
tree | 63fed8ca1e9f51dc69e190d1d9ffc905ef22ad9a /bfd/coffcode.h | |
parent | 6c5e141af0700087c5aad165966a730cd32bd94d (diff) | |
download | gdb-f381349953ca09f02ae26954a567be58747c3430.zip gdb-f381349953ca09f02ae26954a567be58747c3430.tar.gz gdb-f381349953ca09f02ae26954a567be58747c3430.tar.bz2 |
Change text alignement to 4 bytes.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r-- | bfd/coffcode.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h index ece19a2..0363bb7 100644 --- a/bfd/coffcode.h +++ b/bfd/coffcode.h @@ -1782,8 +1782,8 @@ coff_mkobject_hook (abfd, filehdr, aouthdr) xcoff->toc = internal_a->o_toc; xcoff->sntoc = internal_a->o_sntoc; xcoff->snentry = internal_a->o_snentry; - xcoff->text_align_power = internal_a->o_algntext; - xcoff->data_align_power = internal_a->o_algndata; + bfd_xcoff_text_align_power (abfd) = internal_a->o_algntext; + bfd_xcoff_data_align_power (abfd) = internal_a->o_algndata; xcoff->modtype = internal_a->o_modtype; xcoff->cputype = internal_a->o_cputype; xcoff->maxdata = internal_a->o_maxdata; @@ -3084,8 +3084,10 @@ coff_compute_section_file_positions (abfd) AIX executable is stripped with gnu strip because the default vma of native is 0x10000150 but default for gnu is 0x10000140. Gnu stripped gnu excutable passes this check because the filepos is - 0x0140. */ - if (!strcmp (current->name, _TEXT)) + 0x0140. This problem also show up with 64 bit shared objects. The + data section must also be aligned. */ + if (!strcmp (current->name, _TEXT) + || !strcmp (current->name, _DATA)) { bfd_vma pad; bfd_vma align; |