* config/tc-mips.c (md_section_align): Don't change addr if

OBJ_ELF.
PR 10181.
This commit is contained in:
Ian Lance Taylor
1996-08-02 15:30:09 +00:00
parent 470a679caf
commit 10a14e3639
2 changed files with 9 additions and 0 deletions

View File

@ -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.

View File

@ -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