From owner-freebsd-hackers Fri Jun 1 9:39: 8 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from meow.osd.bsdi.com (meow.osd.bsdi.com [204.216.28.88]) by hub.freebsd.org (Postfix) with ESMTP id D08DC37B43C for ; Fri, 1 Jun 2001 09:39:00 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: from laptop.baldwin.cx (john@jhb-laptop.osd.bsdi.com [204.216.28.241]) by meow.osd.bsdi.com (8.11.2/8.11.2) with ESMTP id f51GcKG71718; Fri, 1 Jun 2001 09:38:20 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20010601024234.A440@whizkidtech.net> Date: Fri, 01 Jun 2001 09:38:23 -0700 (PDT) From: John Baldwin To: "G. Adam Stanislav" Subject: RE: What changed in ld? Cc: hackers@FreeBSD.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 01-Jun-01 G. Adam Stanislav wrote: > I have recently upgraded from FreeBSD 3.1 to 4.3-20010525-STABLE. > > I wrote a very simple assembly language program that was giving me > a bus error. For several hours I have been trying to find what was > wrong with it, but could not. > > Finally, out of desperation, I moved uninitialized data from .bss > to .data, and suddenly the program worked without a problem. > > This puzzled me, so I used ld on an older program of mine, one of > the programs from my assembly language tutorial > (http://www.int80h.org/bsdasm/). It started giving me the same > bus errors. The version I created under 3.1 continues to work > fine. > > That tells me something has changed in the way ld handles the .bss > section between 3.1 and 4.3 - either on purpose or as a bug. > This completely invalidates my assembly language tutorial. If the > change was on purpose, can someone please tell me what new switch > I need to use with ld to recognize the .bss section as being bss? binutils was upgraded from 2.9.x to 2.10.x as of 4.1 release. This might be a bug in the new ld. You might want to ask the binutils list about it. I don't have the address for it handy, but David O`Brien should. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.baldwin.cx/~john/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message