From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brian Raiter Subject: Re: why linux ELF base address is 0x8048000? Date: Wed, 4 Feb 2009 18:59:46 -0800 Message-ID: <18826.22050.739005.994893@eidolon.muppetlabs.com> References: <73512bc10902032321n863a27by7ac63193dfc4488a@mail.gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-assembly-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" To: pei lin Cc: Chris Evans , linux-assembly@vger.kernel.org > why linux ELF base address is 0x8048000? we can use ld to change > the base address or linker script.BUT why default is 0x8048000? > There must be some reasons or history i don't know. As far as I can tell, the reason is that this was the address used by SVR4, which was the first release of Unix to use ELF executables. The reason that SVR4 chose that particular address is that the stack top was located at 0x08000000 (growing downward, of course), and then the area between 0x08000000 and 0x08048000 was reserved for libc and possibly other system service code. b