* aout-target.h (MY(callback)): Set the alignments of the text,
authorIan Lance Taylor <ian@airs.com>
Fri, 17 Jun 1994 18:49:39 +0000 (18:49 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 17 Jun 1994 18:49:39 +0000 (18:49 +0000)
data and bss sections after determining the architecture.

bfd/ChangeLog
bfd/aout-target.h

index e198192dd2dec5c80d6c0372853d0362553206a6..de57da05fd852e5d70e5c08200809a28013832d6 100644 (file)
@@ -1,3 +1,12 @@
+Fri Jun 17 14:45:32 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * aout-target.h (MY(callback)): Set the alignments of the text,
+       data and bss sections after determining the architecture.
+
+       * sunos.c (sunos_add_one_symbol): Treat a common symbol from a
+       dynamic object as being in the .bss section of the object, rather
+       than as being undefined.
+
 Fri Jun 17 11:16:50 1994  Jeff Law  (law@snake.cs.utah.edu)
 
        * libhppa.h (bfd_hppa_insn2fmt, hppa_rebuild_insn): Make INLINE.
index 2ee6ff43f3d5515dcb9f0df497c7d484564d4ec8..cabdf0e3bdf7cfe6ae372fda04d20ed76869ac3d 100644 (file)
@@ -60,6 +60,15 @@ MY(callback) (abfd)
   bfd_default_set_arch_mach(abfd, DEFAULT_ARCH, 0);
 #endif
 
+  /* Now that we know the architecture, set the alignments of the
+     sections.  This is normally done by NAME(aout,new_section_hook),
+     but when the initial sections were created the architecture had
+     not yet been set.  */
+  obj_textsec (abfd)->alignment_power =
+    obj_datasec (abfd)->alignment_power =
+      obj_bsssec (abfd)->alignment_power =
+       bfd_get_arch_info (abfd)->section_align_power;
+
   /* Don't set sizes now -- can't be sure until we know arch & mach.
      Sizes get set in set_sizes callback, later.  */
 #if 0
This page took 0.029244 seconds and 4 git commands to generate.