summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin
diff options
context:
space:
mode:
authorjdp <jdp@FreeBSD.org>1997-03-29 02:16:44 +0000
committerjdp <jdp@FreeBSD.org>1997-03-29 02:16:44 +0000
commita58153ffe1ecfda086aff128375d559c74ceeced (patch)
treeb24d82f18b6eabbb6e57f235720511649b8ad704 /gnu/usr.bin
parente0c6c153a322f09c884663a3fd0b5a4eced9c24a (diff)
downloadFreeBSD-src-a58153ffe1ecfda086aff128375d559c74ceeced.zip
FreeBSD-src-a58153ffe1ecfda086aff128375d559c74ceeced.tar.gz
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.
Diffstat (limited to 'gnu/usr.bin')
-rw-r--r--gnu/usr.bin/as/read.c3
1 files changed, 2 insertions, 1 deletions
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
OpenPOWER on IntegriCloud