forked from Imagelibrary/binutils-gdb
* config/tc-sparc.c (md_section_align): Don't change the size if
OBJ_ELF.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user