[syslinux] syslinux current dir
H. Peter Anvin
hpa at zytor.com
Fri May 25 14:41:38 PDT 2007
Wagner Ferenc wrote:
> "H. Peter Anvin" <hpa at zytor.com> writes:
>>> Is there a way to get syslinux symbol information into gdb?
>> Unfortunately I don't think so.
> I had some success by generating a dummy as source file full of .stabs
> directives, based on ldlinux.map. It lets me insert breakpoints via
> labels at least. However, nasm can generate stabs info for the elf
> output format, which would be more fun to use. If only ldlinux.asm
> could be assembled into elf format. Problems start at the org
> directive, which is accepted for the bin format only... Can't you
> perhaps think of a way around? Then the debugging info could be
> loaded from that after gdb was attached to qemu.
That can be dealt with with a linker script, but what's a much bigger
problem is cross-section references, which are harder to represent in NASM.
For ELF, you would just drop the org directive (which just tells the bin
format linker where the file starts) and instead use the linker script,
or even a post-processing script. Easy enough.
Now, that being said, I think that the current SYSLINUX probably could
be much easier switched over to the ELF format than last time I tried
it. It's not a high priority for me (I tend to use bochs rather than
qemu+gdb to debug, mostly because I think there are too many bugs in
qemu's debugger interface) so I don't think it'll get done any time soon.
More information about the Syslinux