Bug 507178
Summary: | i686-pc-mingw32-readelf reports "Not an ELF file" | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Miao ZhiCheng <hellwolf.misty> |
Component: | mingw32-binutils | Assignee: | Richard W.M. Jones <rjones> |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | 11 | CC: | berrange, erik-fedora, fedora-mingw, fedora, kevin, rjones |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-06-22 08:39:22 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Miao ZhiCheng
2009-06-21 14:25:53 UTC
What's wrong with this behaviour? Win32 executables are in the PE format instead of the ELF format so the error message is correct AFAIK. As Erik says, Mingw32 executes are *not* ELF files, therefore the error message from 'readelf' is correct. $ file virsh.exe virsh.exe: PE32 executable for MS Windows (console) Intel 80386 32-bit Why is there an i686-pc-mingw32-readelf at all? The target binaries are NOT ELF, so obviously readelf won't work, so why is upstream Binutils installing it and why are we packaging it? It doesn't make sense to ship stuff which can't work. I want to know what dlls it links to, in ELF I can use readelf to get those information. What tool should I use now? i686-pc-mingw32-objdump -x mydll.dll will list the import section, where you can find the DLL's it imports In reply to comment 3, I'm also having a hard time thinking of a situation where i686-pc-mingw32-readelf would be useful. But do we really want to bother deleting it? It takes a miniscule amount of space in the grand scheme of things, and might have some use to someone. |