On 21.02.2012 00:16, Adrian Burns wrote:
Hi, i had sent this out to help-g...@gnu.org but perhaps its best sent to devel

Im looking for GRUB2's grub-mkimage to produce an efi file for target
execution along with a matching elf file that has all the debug
symbols included so that i can use a debugger to step through the
GRUB2 code. So far i see that strip is used in
grub/grub-core/genmod.sh.in to strip debug sections from the *.o files
as the build generates the *.mod file (i used readelf to verify this
after commenting out the strip command below) Then in grub-mkimage.c,
the generate_image() function appears to make no attempt to preserve
symbols. Is there a way to tell the build system to leave modules and
images with full symbol table and debugging information?
We don't put any debug symbols to the result image. Use *.image and *.module. They are exact counterpart or *.img and *.mod other than being ELF even if *.img isn't and not having module identication sections.
for the image....has anyone modified grub-mkimage.c to retain debug
symbols in generated image?

thanks,
Adrian



--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to