From a58153ffe1ecfda086aff128375d559c74ceeced Mon Sep 17 00:00:00 2001 From: jdp Date: Sat, 29 Mar 1997 02:16:44 +0000 Subject: 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. --- gnu/usr.bin/as/read.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gnu/usr.bin') diff --git a/gnu/usr.bin/as/read.c b/gnu/usr.bin/as/read.c index 8cf65af..9ca1013 100644 --- a/gnu/usr.bin/as/read.c +++ b/gnu/usr.bin/as/read.c @@ -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 -- cgit v1.1