* config/tc-sparc.c (md_section_align): Don't change the size if
authorIan Lance Taylor <ian@airs.com>
Thu, 19 May 1994 19:44:02 +0000 (19:44 +0000)
committerIan Lance Taylor <ian@airs.com>
Thu, 19 May 1994 19:44:02 +0000 (19:44 +0000)
OBJ_ELF.

gas/ChangeLog
gas/config/tc-sparc.c

index 788a23b5dd4a0541088d17b64d564f18be74dabe..cb5ea5a949849d261744d2ae3da8e1417b34b7a5 100644 (file)
@@ -1,3 +1,8 @@
+Thu May 19 15:40:13 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
+
+       * config/tc-sparc.c (md_section_align): Don't change the size if
+       OBJ_ELF.
+
 Wed May 18 13:08:07 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
 
        * Makefile.in (install): Redirect ln output to /dev/null.  If ln
index 7574e16be000c27f75f87551f2deb2c1521cfdcb..26e66436cdf44e70dca5a08ce2f9ffaca780e2f1 100644 (file)
@@ -2320,11 +2320,18 @@ md_section_align (segment, size)
      segT segment;
      valueT size;
 {
-#ifdef OBJ_AOUT
-  /* Round all sects to multiple of 8 */
-  size = (size + 7) & (valueT) ~7;
-#endif
+#ifndef OBJ_ELF
+  /* This is not right for ELF; a.out wants it, and COFF will force
+     the alignment anyways.  */
+  valueT align = (valueT) 1 << (valueT) (stdoutput->xvec->align_power_min);
+  valueT newsize;
+  /* turn alignment value into a mask */
+  align--;
+  newsize = (size + align) & ~align;
+  return newsize;
+#else
   return size;
+#endif
 }
 
 /* Exactly what point is a PC-relative offset relative TO?
This page took 0.035767 seconds and 4 git commands to generate.