From b78c1972feed4c57eebba8f94de86a91e32c3fa7 Mon Sep 17 00:00:00 2001 From: Eric Biederman Date: Thu, 14 Oct 2004 20:54:17 +0000 Subject: - First pass through with with device tree enhancement merge. Most of the mechanisms should be in place but don't expect anything to quite work yet. git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1662 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/boot/elfboot.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/boot/elfboot.c') diff --git a/src/boot/elfboot.c b/src/boot/elfboot.c index 272aee9d73..eeb4e40cd4 100644 --- a/src/boot/elfboot.c +++ b/src/boot/elfboot.c @@ -440,6 +440,12 @@ static int load_elf_segments( end = dest + ptr->s_memsz; middle = dest + ptr->s_filesz; start_offset = ptr->s_offset; +#if 1 + if (ptr->s_filesz == 0) { + start_offset = offset; + } +#endif + printk_spew("[ 0x%016lx, %016lx, 0x%016lx) <- %016lx\n", (unsigned long)dest, -- cgit v1.2.3