From owner-freebsd-hackers Fri Jun 1 0:42:59 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from whizkidtech.net (r23.bfm.org [216.127.220.119]) by hub.freebsd.org (Postfix) with ESMTP id 07F2A37B424 for ; Fri, 1 Jun 2001 00:42:55 -0700 (PDT) (envelope-from adam@whizkidtech.net) Received: (from adam@localhost) by whizkidtech.net (8.11.3/8.11.3) id f517gZl00452 for hackers@FreeBSD.org; Fri, 1 Jun 2001 02:42:35 -0500 (CDT) (envelope-from adam) Date: Fri, 1 Jun 2001 02:42:34 -0500 From: "G. Adam Stanislav" To: hackers@FreeBSD.org Subject: What changed in ld? Message-ID: <20010601024234.A440@whizkidtech.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Organization: Whiz Kid Technomagic X-Assembly-Language: http://int80h.org/ X-Web-Search: http://phonecowboy.master.com/ X-Operating-System: FreeBSD whizkidtech.net 4.3-20010525-STABLE FreeBSD 4.3-20010525-STABLE 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 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? Thank you, Adam -- Perfection is for neurotics To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message