Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Feb 1999 09:41:16 -0800 (PST)
From:      John Polstra <jdp@polstra.com>
To:        zach@uffdaonline.net
Cc:        current@freebsd.org
Subject:   Re: Some (a.out) world breakage...
Message-ID:  <199902281741.JAA11998@vashon.polstra.com>
In-Reply-To: <19990228103315.A37048@znh.org>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <19990228103315.A37048@znh.org>,
Zach Heilig  <zach@uffdaonline.net> wrote:
> Make world (with no -DNOAOUT or whatever that switch is), ends up like this:
> 
> --------------------------------------------------------------
> >>> Building legacy libraries
> --------------------------------------------------------------
> 
> ....
> 
> (echo '#define LENGTH 20';  sed -e 's/mdX/sha/g' -e 's/MDX/SHA_/g' -e 's/SHA__/SHA_/g'  /usr/src/lib/libmd/mdXhl.c) > sha0hl.c
> cc -O -pipe -I/usr/src/lib/libmd -DSHA1_ASM -DELF -DRMD160_ASM -DELF -I/usr/obj/aout/usr/src/tmp/usr/include -c sha0hl.c -o sha0hl.o
> cc -O -pipe -I/usr/src/lib/libmd -DSHA1_ASM -DELF -DRMD160_ASM -DELF -I/usr/obj/aout/usr/src/tmp/usr/include -c /usr/src/lib/libmd/sha1c.c -o sha1c.o
> (echo '#define LENGTH 20';  sed -e 's/mdX/sha/g' -e 's/MDX/SHA1_/g' -e 's/SHA1__/SHA1_/g'  /usr/src/lib/libmd/mdXhl.c) > sha1hl.c
> cc -O -pipe -I/usr/src/lib/libmd -DSHA1_ASM -DELF -DRMD160_ASM -DELF -I/usr/obj/aout/usr/src/tmp/usr/include -c sha1hl.c -o sha1hl.o
> cc -I/usr/src/lib/libmd -DSHA1_ASM -DELF -DRMD160_ASM -DELF -I/usr/obj/aout/usr/src/tmp/usr/include  -c /usr/src/lib/libmd/i386/sha.S -o sha.o
> sha1-586.s: Assembler messages:
> sha1-586.s:56: Error: Alignment too large: 15. assumed.
> *** Error code 1
> 
> Stop.
> 
> Quite obviously defining ELF for the entire legacy library build, but
> waiting to really break in 'libmd'.
> 
> I did look in the "broken" file, and noted that ALIGN was defined as 16
> in the 'ELF' case, and 4 in the 'OUT' case.  It looks impossible (to me)
> for 'OUT' to be defined while compiling that file
> (/usr/src/lib/libmd/i386/sha.S).
> 
> I guess it's time to quit building a.out? :-)

This problem can be solved easily.  Instead of ".align" the code
should use ".p2align 4", which behaves the same for a.out as it does
for ELF.

John
-- 
  John Polstra                                               jdp@polstra.com
  John D. Polstra & Co., Inc.                        Seattle, Washington USA
  "Nobody ever went broke underestimating the taste of the American public."
                                                            -- H. L. Mencken


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199902281741.JAA11998>