On 22/01/11 00:25, Florian Pritz wrote:
On 19.01.2011 19:54, Dan McGee wrote: <snip>
* introducing dependencies on readelf and objdump. At least elsewhere in the strip code, we use `file` to locate shared libraries. And you can get the SONAME bit out of objdump -p, which would at least limit this to one tool.
readelf and objdump are both in binutils, but I've noticed that objdump doesn't support the file format generated by tcc although readelf does and it's a valid ELF file afaict.
eu-objdump (elfutils) can't output that much, but it understands tcc's format and outputs pretty nice architecture information. Sadly I have no idea if that's portable.
Now I'm using readelf (binutils) and eu-objdump (elfutils). I think it's fine since both are in core and you only need them for makepkg anyway.
We have pacman/makepkg users on Linux, OSX, BSD, Hurd, Cygwin... Whatever is used here needs to be portable to all those. I do not believe elfutils is particularly portable... Allan