This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Section garbage collection and function addresses



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]