This is the mail archive of the ecos-patches@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]
Other format: [Raw text]

Re: mn10300 linker script fix


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


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