aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-mips.c4
2 files changed, 9 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index e63a3d5..928fba8 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+Fri Aug 2 11:23:31 1996 Ian Lance Taylor <ian@cygnus.com>
+
+ * config/tc-mips.c (md_section_align): Don't change addr if
+ OBJ_ELF.
+
Thu Aug 1 23:51:52 1996 Jeffrey A Law (law@cygnus.com)
* config/tc-hppa.c: Revert yesterday's changes.
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index 1f7e256..f9b6045 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -7393,9 +7393,13 @@ md_section_align (seg, addr)
asection *seg;
valueT addr;
{
+#ifndef OBJ_ELF
int align = bfd_get_section_alignment (stdoutput, seg);
return ((addr + (1 << align) - 1) & (-1 << align));
+#else
+ return addr;
+#endif
}
/* Utility routine, called from above as well. If called while the