bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: debug info problem with mn10300-elf-gas


From: Bart Veer
Subject: Re: debug info problem with mn10300-elf-gas
Date: Thu, 13 Mar 2003 23:42:13 +0000 (GMT)

>>>>> "Daniel" == Daniel Jacobowitz <address@hidden> writes:

    <snip>

    >> Hmmm, offset 0x7e67c. According to mn10300-elf-readelf -S has an
    >> address of 0x7cb52 and a size of 0x850f. Absolute vs. section relative
    >> offsets, or something like that?

    Daniel> Sounds to me like your debug info sections aren't being placed at 
zero. 
    Daniel> That's a linker script bug, usually... does yours have something 
like
    Daniel> this:

    Daniel>   /* DWARF 2 */
    Daniel>   .debug_info     0 : { *(.debug_info) }
    Daniel>   .debug_abbrev   0 : { *(.debug_abbrev) }
    Daniel>   .debug_line     0 : { *(.debug_line) }
    Daniel>   .debug_frame    0 : { *(.debug_frame) }
    Daniel>   .debug_str      0 : { *(.debug_str) }
    Daniel>   .debug_loc      0 : { *(.debug_loc) }
    Daniel>   .debug_macinfo  0 : { *(.debug_macinfo) }

Good catch. The linker script did not have those entries, and adding
them gives working binaries. Presumably with an older version of the
tools the assembler did all the fixups, as still happens for e.g.
arm-elf. Therefore the linker did not have to do any debug-related
relocations, and it did not matter where the debug sections were
placed.

Thanks,
        Bart




reply via email to

[Prev in Thread] Current Thread [Next in Thread]