summaryrefslogtreecommitdiff
path: root/bfd/coffcode.h
diff options
context:
space:
mode:
authorTom Rix <trix@redhat.com>2002-06-12 16:04:39 +0000
committerTom Rix <trix@redhat.com>2002-06-12 16:04:39 +0000
commiteef84d05f1eba455c5f6ea21d104f9742912808c (patch)
tree7e48bcdeacd350234d6c6f27e50a7d0f28fc3e24 /bfd/coffcode.h
parent4fcf64074f57546c4b870211777a28f02993dfd5 (diff)
downloadgdb-eef84d05f1eba455c5f6ea21d104f9742912808c.tar.gz
Change text alignement to 4 bytes.
Diffstat (limited to 'bfd/coffcode.h')
-rw-r--r--bfd/coffcode.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/bfd/coffcode.h b/bfd/coffcode.h
index ece19a2ecad..0363bb7b364 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;