X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f X-Recipient: djgpp-workers AT delorie DOT com X-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=XUyJEfFfGIOxGrNrbt7keLE/HvcdCrbnP5XjYb7VlQ4=; b=UQnO8egfuUQDb4prItYOebD/5HsXehpL0EXSoeCQr21I/80Ypfzyha0l/lHXOaavpj y5Fcz29EC2sTdYsGLmh5ld2jcitWooCKHndG/+uclRLRXr/osqvOvnui2yEvi6GeL/MY Ol0Sm2xPSlKLoQn//b2EJ6ANkMJ4bRWqVH6LaNN+Z1GOfgT6KmSFQqQApb3aAYFQmzbo /fzts2/msrBU6APnGXyPN2I+E1CAbcfxhSMmw5JgC6UTie8KtVxcO4WLLRXB+K/7j68k 0fmiPE4UHX13llksWgOzeTOK/tmuJIGQv+GOm+Fw/ImpByIg0yrfYQP90WxqVDQygxFu sflw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=XUyJEfFfGIOxGrNrbt7keLE/HvcdCrbnP5XjYb7VlQ4=; b=mWUNQkXvzgwnrDxELtdmMhXSqkE/MMC5tGoSaDWevW8mo+jthH7n8uGz02o2LvY/fv ZQZAMvTz2qljFzRMXfRNyeU7V61KuTZugkUVe6uIbxDyaXJ/DBQ0CI4zTzo8tP6g09Z1 9rpAgZrhfNunUaNREynnIBiNWeKDt51FlhftktDtWDPXFLqoI1w4OMFSw4ktRRsLwA5H 8cMKt+mFlHMrg3Lt1FUylbrCRKbXJDNAU95xF4Vm4l+6/03NUFf7EC6aVidDTrFPlKWi /OVwE4A9NyGGRf3INtl0EltTZAB48uNdyqlxmljY2IwPOeQwdZ7i0PySlaip6zj2ZAYL gXjw== X-Gm-Message-State: AE9vXwPD9KQT2BinCVj/32CZvuqK+JdBPsg1cwTbiTm/pZkdFc3wLbvdPEKHavukWmfmVqqQEiyZnhYD8aNcPg== X-Received: by 10.31.4.137 with SMTP id 131mr8827477vke.146.1473713087982; Mon, 12 Sep 2016 13:44:47 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <201108091418.p79EIKLb003910@dexter.ludd.ltu.se> References: <201108091418 DOT p79EIKLb003910 AT dexter DOT ludd DOT ltu DOT se> From: "Rugxulo (rugxulo AT gmail DOT com) [via djgpp-workers AT delorie DOT com]" Date: Mon, 12 Sep 2016 15:44:47 -0500 Message-ID: Subject: Re: BinUtils (miscellaneous) To: djgpp-workers AT delorie DOT com Content-Type: text/plain; charset=UTF-8 Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Hi, (I know this isn't a serious issue, but I just wanted to clarify.) On Tue, Aug 9, 2011 at 9:18 AM, Martin Str|mberg wrote: > According to Rugxulo: >> 3). Does Martin S. still read here? I finally used his hack / tips to > > Yes... I'm still subscribed. > >> make a pure .COM with GAS + LD. >> It works ... except newer BinUtils (GAS) seem to have a problem. >> >> E.g. I'm on PuppyLinux (Lucid 5.25) now, which uses 2.20.1, and it >> doesn't work. It seems to work fine with 2.16.1 but 2.20.1 or 2.21 both >> don't like some uses of "LEA eax,[0]" or similar. But I can work >> around that. What I *can't* fix is it saying a spurious error message >> about "undefined symbol L0 not found". It's a new "change", >> and I'm not sure why! (DJ said, "I bet it's L0 Perhaps I'll look at it sometime. In a year. Or five. (Well, coincidentally ....) Okay, so the problem is still there in latest BinUtils 2.27. This hasn't worked correctly since 2.19 or such (yes, I re-tested). The workaround is to use AT&T syntax. There is no problem when using that. Confirmed with (Lucid/Ubuntu) Puppy Linux's 2.20.1, FPC/Win32's 2.22, Cygwin's 2.25, and DJGPP's 2.27. 1). as newbefi.s -o newbefi.o 2a). (non-Windows only) ld -T ldscr.txt --oformat=binary newbefi.o -o newbefi.com 2b). (Windows only) ld -T ldscr.txt newbefi.o -o newbefi2.o objcopy -O binary newbefi2.o newbefi.com So that was frustrating to deal with. :-/