aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>1994-03-20 19:22:04 +0000
committerJeff Law <law@redhat.com>1994-03-20 19:22:04 +0000
commit517a6af6328a583cc95518c0448cb96dc7833449 (patch)
treecdf41d5d97b9a27ed29441c8cf4cedfd3b48f40b /bfd
parent142f59f4a9315edb63c6df129a5496e1ca5bd027 (diff)
downloadgdb-517a6af6328a583cc95518c0448cb96dc7833449.zip
gdb-517a6af6328a583cc95518c0448cb96dc7833449.tar.gz
gdb-517a6af6328a583cc95518c0448cb96dc7833449.tar.bz2
* som.c (som_begin_writing): Fix braino (one call to align
space/subspace data was done unconditionally rather than just for executables.)
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/som.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 1fff79b..b756f62 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,9 @@
Sun Mar 20 09:24:36 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
+ * som.c (som_begin_writing): Fix braino (one call to align
+ space/subspace data was done unconditionally rather than
+ just for executables.)
+
* som.c (som_begin_writing): Align text in all executables to
make HPUX kernel happy. Fixes strip/objcopy for shared
executables.
diff --git a/bfd/som.c b/bfd/som.c
index a355b75..c5ba4d7 100644
--- a/bfd/som.c
+++ b/bfd/som.c
@@ -3077,7 +3077,8 @@ som_begin_writing (abfd)
while (!som_is_space (section))
section = section->next;
- current_offset = SOM_ALIGN (current_offset, PA_PAGESIZE);
+ if (abfd->flags & EXEC_P)
+ current_offset = SOM_ALIGN (current_offset, PA_PAGESIZE);
/* Now look for all its subspaces. */
for (subsection = abfd->sections;