This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Section garbage collection and function addresses
- To: ecos-discuss at sourceware dot cygnus dot com
- Subject: [ECOS] Section garbage collection and function addresses
- From: Chris Morrow <cmorrow at YottaYotta dot com>
- Date: Tue, 01 Aug 2000 15:16:25 -0600
- Organization: YottaYotta Inc.
This is appears to be a compiler issue, but I thought some people here
might find this
of interest.
I'm using gdb 4.18, gcc 2.95 and binutils 2.10, all configured as
mips64-unknown-elf.
Examining a linked program with objdump show nothing out of the
ordinary. Using gdb
on the linked file in elf format mostly works, however some functions
are reported
as having an address of 0. Functions towards the start of the text
section are okay,
but after some point every function has an address of zero.
Turning off -gc-sections on the linker removes this problem.
Objdump -g also appears to be broken.
--
Chris Morrow YottaYotta Inc.
email: cmorrow@yottayotta.com
phone: (780) 439 9000 ext 227
web: http://www.yottayotta.com