From 517a6af6328a583cc95518c0448cb96dc7833449 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Sun, 20 Mar 1994 19:22:04 +0000 Subject: [PATCH] * som.c (som_begin_writing): Fix braino (one call to align space/subspace data was done unconditionally rather than just for executables.) --- bfd/ChangeLog | 4 ++++ bfd/som.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 1fff79b4821..b756f626057 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 a355b75f866..c5ba4d70953 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; -- 2.30.2