Support the ".p2align" directive, which is standard in newer versions

of binutils.  For all architectures and object file formats,
".p2align n" aligns to the next multiple of 2**n.  Thus for FreeBSD,
it does exactly the same thing as the traditional ".align".

The old ".align" directive has different meanings in different
object formats, and even in different variants of a.out.  Sometimes
is aligns to a multiple of n, and other times it aligns to a multiple
of 2**n.  ".p2align" is preferable for use in assembly language
sources, since it makes them more portable to object formats other
than a.out.
This commit is contained in:
John Polstra 1997-03-29 02:16:44 +00:00
parent 5482a9c5ca
commit 850a26162a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=24355

View file

@ -19,7 +19,7 @@
the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
#ifndef lint
static char rcsid[] = "$Id$";
static char rcsid[] = "$Id: read.c,v 1.9 1997/02/22 15:43:44 peter Exp $";
#endif
#define MASK_CHAR (0xFF) /* If your chars aren't 8 bits, you will
@ -247,6 +247,7 @@ static const pseudo_typeS
#endif /* NO_LISTING */
{ "octa", big_cons, 16 },
{ "org", s_org, 0 },
{ "p2align", s_align_ptwo, 0 },
#ifdef NO_LISTING
{ "psize", s_ignore, 0 }, /* set paper size */
#else