Alignment fix from John Dyson/David Greenman

This commit is contained in:
Rodney W. Grimes 1994-02-20 16:06:12 +00:00
parent 6ae4c6218f
commit 866f028b39
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=1184
2 changed files with 7 additions and 4 deletions

View File

@ -1,5 +1,5 @@
# from: @(#)Makefile 6.1 (Berkeley) 3/3/91
# $Id: Makefile,v 1.10 1993/10/16 22:04:48 pk Exp $
# $Id: Makefile,v 1.2 1993/11/03 00:50:49 paul Exp $
.include "config/Makefile.$(MACHINE)"
@ -25,9 +25,10 @@ SRCS+= app.c as.c atof-generic.c bignum-copy.c \
symbols.c version.c write.c xmalloc.c xrealloc.c \
obj-$(gas_objformat).c
CFLAGS+= -I$(.CURDIR) ${ADDINCLUDE} -I$(.CURDIR)/config \
-DPIC -DOLD_GAS -DSIGTY=void -Derror=as_fatal
-DPIC -DOLD_GAS -DSIGTY=void -Derror=as_fatal \
-DSUB_SEGMENT_ALIGN=4
#LDADD+= -lgnumalloc
DPADD+= /usr/lib/libgnumalloc.a
#DPADD+= /usr/lib/libgnumalloc.a
CONF_HEADERS= targ-cpu.h obj-format.h host.h targ-env.h

View File

@ -21,7 +21,7 @@
/* This thing should be set up to do byteordering correctly. But... */
#ifndef lint
static char rcsid[] = "$Id: write.c,v 1.3 1993/11/30 20:55:47 jkh Exp $";
static char rcsid[] = "$Id: write.c,v 1.4 1993/12/12 17:01:24 jkh Exp $";
#endif
#include "as.h"
@ -179,7 +179,9 @@ void write_object_file()
* that requires least thought. ".align" frags like to have a following
* frag since that makes calculating their intended length trivial.
*/
#ifndef SUB_SEGMENT_ALIGN
#define SUB_SEGMENT_ALIGN (2)
#endif
for (frchainP = frchain_root; frchainP; frchainP = frchainP->frch_next) {
#ifdef OBJ_VMS
/*