public inbox for linuxppc-dev@ozlabs.org 
 help / color / mirror / Atom feed
From: Frank Przybylski <Frank.Przybylski@vas-gmbh•de>
To: linuxppc-embedded@lists•linuxppc.org
Subject: Re: Getting the image section of the ELF file to load w/ VxWorks boot ROM
Date: Tue, 09 May 2000 12:04:23 +0200	[thread overview]
Message-ID: <3917E2A7.6EEDDD93@vas-gmbh.de> (raw)
In-Reply-To: m12mgPF-001SyZC@bucks


Hi,
I had similar problems when loading kernel images with gdb over BDM into
an MPC.
I have no solution (which would be a patch to the Makefile in
/usr/src/linux/arch/ppc/mbxboot) but I try to handle the symptons:
  powerpc-linux-objcopy \
    --set-section-flags=image=contents,alloc,load,readonly,data \
    --adjust-section-vma=image=$(powerpc-linux-objdump -h
$kernel/zvmlinux | grep .bss | awk '{print "0x"$4}') \
    $kernel/zvmlinux \
    $kernel/zvmlinux2

The first command to objcopy is to set the 'load' flag for the image
section. Without this, gdb won't load this section.
The second is to patch the load address of that section to be the same
as the .bss section. I'm a little bit unsecure about the last, but it
seems to work. I think this is what the loader expects and I hope
someone can verify this?

hth
	Frank

--
===============================================================================
Frank Przybylski,VAS GmbH,Gotenstr.6,20097
Hamburg,GERMANY,TEL:+49-40-238568-14
   mailto:Frank.Przybylski@vas-gmbh•de , visit us at
http://www.vas-gmbh.de
===============================================================================

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

  parent reply	other threads:[~2000-05-09 10:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-02 17:24 Getting the image section of the ELF file to load w/ VxWorks boot ROM diekema_jon
2000-05-03  8:07 ` Arto Vuori
2000-05-09 10:04 ` Frank Przybylski [this message]
2000-05-09 15:54   ` Daniel G. Clemmensen
2000-05-09 17:51     ` Getting the image section of the ELF file to load w/ VxWorks boot diekema_jon
2000-05-17 20:30   ` Getting the image section of the ELF file to load w/ VxWorks boot ROM Dan Malek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3917E2A7.6EEDDD93@vas-gmbh.de \
    --to=frank.przybylski@vas-gmbh$(echo .)de \
    --cc=linuxppc-embedded@lists$(echo .)linuxppc.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox