This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


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

Re: v850-elf-gcc produces corrupted debugging info


[snip]

: and linked it with
: 
: v850-elf-ld -v -o gnu.out gnu.o
: ../lib/gcc-lib/v850-elf/egcs-2.91.34/libgcc.a --entry _main -Ttext 0x0
: --oformat elf32-v850
: GNU ld version 2.9.4 (with BFD 980602)
: 
: The resulting gnu.out is corrupted. I cannot load it into our debugger and
: v850-elf-objdump -d --source segfaults on it.
: 
: Thanks,
: Franz.

Well the problem appears to be the '-Ttext 0x0' switch to the linker.
If you omit this, then everything works fine.  Since the v850 reserves
addresses around 0 for the .zdata section, this going to cause some
problems.  (Of course ld ought to detect this conflict and report it -
this is something I will look into).  Anyway if you must put the .text
section at 0 then I suggest you create your own linker script to do it
for you.

Cheers
	Nick


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