* som.c (som_begin_writing): Fix braino (one call to align
space/subspace data was done unconditionally rather than just for executables.)
This commit is contained in:
parent
142f59f4a9
commit
517a6af632
|
@ -1,5 +1,9 @@
|
||||||
Sun Mar 20 09:24:36 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
|
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
|
* som.c (som_begin_writing): Align text in all executables to
|
||||||
make HPUX kernel happy. Fixes strip/objcopy for shared
|
make HPUX kernel happy. Fixes strip/objcopy for shared
|
||||||
executables.
|
executables.
|
||||||
|
|
|
@ -3077,7 +3077,8 @@ som_begin_writing (abfd)
|
||||||
while (!som_is_space (section))
|
while (!som_is_space (section))
|
||||||
section = section->next;
|
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. */
|
/* Now look for all its subspaces. */
|
||||||
for (subsection = abfd->sections;
|
for (subsection = abfd->sections;
|
||||||
|
|
Loading…
Reference in New Issue