From 10a14e3639d6b655afd296809ec4102e1ba26b7f Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Fri, 2 Aug 1996 15:30:09 +0000 Subject: [PATCH] * config/tc-mips.c (md_section_align): Don't change addr if OBJ_ELF. PR 10181. --- gas/ChangeLog | 5 +++++ gas/config/tc-mips.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/gas/ChangeLog b/gas/ChangeLog index e63a3d50f18..928fba87acc 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +Fri Aug 2 11:23:31 1996 Ian Lance Taylor + + * 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 1f7e256faf0..f9b6045b016 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 -- 2.30.2