public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andrew Haley <aph@redhat.com>
To: Ted Phares <tphares@ybad.com>
Cc: gcc-help@gcc.gnu.org
Subject: Re: malloc always returns null
Date: Sat, 19 Jul 2008 13:12:00 -0000	[thread overview]
Message-ID: <4881E7E8.4050703@redhat.com> (raw)
In-Reply-To: <48812B89.1040804@ybad.com>

Ted Phares wrote:
> Hi,
> 
> I'm attempting to configure the gcc 4.0.3 tool chain to compile c++
> source on an ARM 9 (ARM926-ejs) target.  At this point, everything seems
> to be working except malloc:  It always returns the null pointer.
> 
> I'm wondering if I've correctly configured my .ld script indicate the
> location and size of the heap.  It was put together with a bit of
> guesswork & patching together examples for other targets, since it's not
> clear to me what symbols malloc() relies upon for locating the heap (is
> this documented somewhere?).
> 
> Below are the command lines i'm using for compile/assemble/link & the ld
> script.  Do they look substantially complete?

Questions like this really need the expertise of the binutils list.

Andrew.

  reply	other threads:[~2008-07-19 13:11 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-19  0:48 Ted Phares
2008-07-19 13:12 ` Andrew Haley [this message]
2008-07-19 21:54   ` Ted Phares
2008-07-20  2:44 Duane Ellis
2008-07-20 22:54 ` Ted Phares
2008-07-20 23:05   ` Duane Ellis
2008-07-20 23:21     ` Ted Phares
2008-07-21  6:18       ` Duane Ellis
2008-07-23  0:46 ` Ted Phares

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=4881E7E8.4050703@redhat.com \
    --to=aph@redhat.com \
    --cc=gcc-help@gcc.gnu.org \
    --cc=tphares@ybad.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).