[ECOS] Section garbage collection and function addresses

Chris Morrow cmorrow@YottaYotta.com
Tue Aug 1 14:16:00 GMT 2000


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


More information about the Ecos-discuss mailing list