Subject: Re: ELF and m68k
To: Steve Woodford <firstname.lastname@example.org>
From: Todd Vierling <email@example.com>
Date: 12/05/2000 11:40:50
On Tue, 5 Dec 2000, Steve Woodford wrote:
: > To my knowledge, this is a violation of common sections -- if it's
: > initialized in one file, it should wind up in a data section (instead of a
: > common bss section) and cause the linker to fail.
: The variable *does* end up in the data section of the final binary, which
: is why the resulting programs still work. :)
Right, but that seems like it would be a linker extension -- many systems
will just barf if a symbol exists in the .data of one .o and the .bss of
another. Using "extern" where appropriate is a much more portable solution. :)
-- Todd Vierling <firstname.lastname@example.org> * http://www.wasabisystems.com/
-- Speed, stability, security, and support. Wasabi NetBSD: Run with it.