From: paawan oza <paawan1982@yahoo.com>
To: Pedro Alves <pedro@codesourcery.com>
Cc: Baurzhan Ismagulov <ibr@radix50.net>, gdb@sourceware.org
Subject: Re: gdb cross compilation, error from gdb/tui module
Date: Thu, 28 Oct 2010 14:06:00 -0000 [thread overview]
Message-ID: <876325.58501.qm@web112502.mail.gq1.yahoo.com> (raw)
In-Reply-To: <201010281411.37353.pedro@codesourcery.com>
but it is bare metal tool chain, I tried to compile sample application with that
but got linker error as follows.
/home/oza/mk_patch/gdb/gdb-7.2/gdb # arm-none-eabi-gcc -g ./test.c
/home/oza/mk_patch/packages/arm-2009q3/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/bin/ld:
warning: cannot find entry symbol _start; defaulting to 00008018
/home/oza/mk_patch/packages/arm-2009q3/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/libc.a(lib_a-sbrkr.o):
In function `_sbrk_r':
sbrkr.c:(.text+0x18): undefined reference to `_sbrk'
/home/oza/mk_patch/packages/arm-2009q3/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/libc.a(lib_a-writer.o):
In function `_write_r':
writer.c:(.text+0x20): undefined reference to `_write'
/home/oza/mk_patch/packages/arm-2009q3/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/libc.a(lib_a-closer.o):
In function `_close_r':
closer.c:(.text+0x18): undefined reference to `_close'
/home/oza/mk_patch/packages/arm-2009q3/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/libc.a(lib_a-fstatr.o):
In function `_fstat_r':
fstatr.c:(.text+0x1c): undefined reference to `_fstat'
/home/oza/mk_patch/packages/arm-2009q3/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/libc.a(lib_a-isattyr.o):
In function `_isatty_r':
isattyr.c:(.text+0x18): undefined reference to `_isatty'
/home/oza/mk_patch/packages/arm-2009q3/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/libc.a(lib_a-lseekr.o):
In function `_lseek_r':
lseekr.c:(.text+0x20): undefined reference to `_lseek'
/home/oza/mk_patch/packages/arm-2009q3/bin/../lib/gcc/arm-none-eabi/4.4.1/../../../../arm-none-eabi/lib/libc.a(lib_a-readr.o):
In function `_read_r':
readr.c:(.text+0x20): undefined reference to `_read'
collect2: ld returned 1 exit status
8
----- Original Message ----
From: Pedro Alves <pedro@codesourcery.com>
To: paawan oza <paawan1982@yahoo.com>
Cc: Baurzhan Ismagulov <ibr@radix50.net>; gdb@sourceware.org
Sent: Thu, October 28, 2010 6:41:37 PM
Subject: Re: gdb cross compilation, error from gdb/tui module
On Thursday 28 October 2010 13:46:41, paawan oza wrote:
> same results with arm-eabi
...
> linux-ghot:/home/oza/mk_patch/gdb/gdb-7.2/gdb # arm-none-linux-gnueabi-gcc -g
...
But I suggested:
"I suppose you'll get better results with a compiler that matches
your target..."
"... and to use the arm-eabi compiler, not the arm-linux-gnueabi compiler."
--
Pedro Alves
next prev parent reply other threads:[~2010-10-28 14:06 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-27 15:36 gdb cross compilation, error from gdb/tui module.... please help paawan oza
2010-10-27 16:14 ` Baurzhan Ismagulov
2010-10-28 4:02 ` gdb cross compilation, error from gdb/tui module.... please help. <readline comilation error after disabling tui> paawan oza
2010-10-28 9:43 ` gdb cross compilation, error from gdb/tui module paawan oza
2010-10-28 10:18 ` Pedro Alves
2010-10-28 11:13 ` paawan oza
2010-10-28 11:27 ` Pedro Alves
2010-10-28 11:57 ` paawan oza
2010-10-28 12:11 ` Pedro Alves
2010-10-28 12:46 ` paawan oza
2010-10-28 13:11 ` Pedro Alves
2010-10-28 14:06 ` paawan oza [this message]
2010-10-28 15:14 paawan oza
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=876325.58501.qm@web112502.mail.gq1.yahoo.com \
--to=paawan1982@yahoo.com \
--cc=gdb@sourceware.org \
--cc=ibr@radix50.net \
--cc=pedro@codesourcery.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