roms in qemu-system-data miss debuginfo
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qemu (Ubuntu) |
New
|
Undecided
|
Sergio Durigan Junior |
Bug Description
I thought I have debugged them in the past, but maybe I did build qemu myself back then.
Anyway, the problem is that qemu-system-data (arch indep) has a bunch of files for early loading.
And while for some of them I'm not sure we could have debuginfo ever, like:
ubuntu@s1lp5:~$ file /usr/share/
/usr/share/
Others clearly are full executables, got stripped on build and would benefit from having that:
ubuntu@s1lp5:~$ file /usr/share/
/usr/share/
But while this was stripped there is no qemu-system-
I can't find it in a dbgsym file of qmeu.
I checked with the dbeuginfo server in case it would have been placed elsewhere, but
$ debuginfod-find -v executable /usr/share/
tells me it does not exist.
It would be great to provide this data for anything that got stripped.
If too complex for all of them, at least for those with a BuildID.
ubuntu@s1lp5:~$ for f in $(dpkg -L qemu-system-data); do file $f; done | grep stripped
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
/usr/share/
The alternative is to check what it would "cost" to just not strip them.
P.S. This isn't just for fun or a theoretical issue, I got an IBM friend asking for that very file :-/
Changed in qemu (Ubuntu): | |
assignee: | nobody → Sergio Durigan Junior (sergiodj) |
tags: | added: server-todo |
Hm, a first look into this issue showed me that the problem happens because upstream always invokes strip when building the objects that get shipped into qemu-system-data. For example, this is the excerpt from pc-bios/ s390-ccw/ Makefile:
s390-ccw.img: s390-ccw.elf $(STRIP) --strip-unneeded $< -o $@,Stripping $< into)
$(call quiet-command,
Unfortunately these Makefiles don't take into account the "--disable-strip" configuration option that we pass when building qemu.
My first plan here is to determine how hard it is to extend the Makefiles and make them honour the "--disable-strip" option, but it may be worth simply commenting these strips out.