|
From: Tom H. <to...@co...> - 2005-08-28 15:42:39
|
In message <Pin...@ch...>
Nicholas Nethercote <nj...@cs...> wrote:
> How will this relate to getting transparent handling of 32- and 64-bit
> programs working on AMD64? It seems like this launcher would be the right
> place to detect which stage2 (stage2_32 or stage2_64) is needed. That
> would require parsing the command line a bit more to find the file being
> executed, and then inspecting the ELF header. Is that the right way to do
> it?
That is my plan, yes. It's a bit more complicated than that because
if it is a script you have to parse the #! line to get the interpreter
and then probe the ELF header of the interpreter.
What I'm thinking is to create x86-linux and amd64-linux subdirectories
under the normal valgrind library directory, move all the static tool
executables and the preload libraries there so we have two copies and
then get the launcher to choose the right ones.
Tom
--
Tom Hughes (to...@co...)
http://www.compton.nu/
|