aboutsummaryrefslogtreecommitdiff
path: root/gas/config
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-08-07 17:17:33 +0000
committerIan Lance Taylor <ian@airs.com>1996-08-07 17:17:33 +0000
commitcf32394d079a89d2626bf6997449aba7afc8913a (patch)
tree88343684cb9716c490d94cec6a0577fa7a42b113 /gas/config
parent8d038451019eaf10e098095b8cd4f71d35890837 (diff)
downloadgdb-cf32394d079a89d2626bf6997449aba7afc8913a.zip
gdb-cf32394d079a89d2626bf6997449aba7afc8913a.tar.gz
gdb-cf32394d079a89d2626bf6997449aba7afc8913a.tar.bz2
* config/tc-mips.c (md_section_align): Do align if OBJ_ELF, but
not to more than a 16 byte boundary.
Diffstat (limited to 'gas/config')
-rw-r--r--gas/config/tc-mips.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/gas/config/tc-mips.c b/gas/config/tc-mips.c
index f9b6045..38bcebc 100644
--- a/gas/config/tc-mips.c
+++ b/gas/config/tc-mips.c
@@ -7393,13 +7393,17 @@ 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;
+#ifdef OBJ_ELF
+ /* We don't need to align ELF sections to the full alignment.
+ However, Irix 5 may prefer that we align them at least to a 16
+ byte boundary. */
+ if (align > 16)
+ align = 16;
#endif
+
+ return ((addr + (1 << align) - 1) & (-1 << align));
}
/* Utility routine, called from above as well. If called while the