mn10300 linker script fix
Jonathan Larmour
jifl@eCosCentric.com
Wed Mar 19 14:28:00 GMT 2003
Bart Veer wrote:
> With the current versions of the mn10300 tools you must have linker
> script entries for the various debug sections, otherwise the final
> executables will contain bogus offsets in .debug_info. I have added
> the full set of debug-related sections from the libgloss linker
> scripts, even though usually we only need the dwarf2 ones, just in
> case somebody decides to compile with e.g. -gstabs.
Actually the libgloss linker scripts aren't always right (bitter
experience) - sometimes they are obsolete as they are maintained by hand
and no-one has noticed if a particular linker script is no longer used any
more. However mn10300-elf-ld --verbose should give you the linker script
that is almost always used for testing etc.
It may well be the same though, but if you've get the latest mn10300-elf
tools to hand (I don't) you may want to check the sections tally and there
aren't any omissions.
Jifl
--
eCosCentric http://www.eCosCentric.com/ The eCos and RedBoot experts
--[ "You can complain because roses have thorns, or you ]--
--[ can rejoice because thorns have roses." -Lincoln ]-- Opinions==mine
More information about the Ecos-patches
mailing list