getauxval() and the auxiliary vector
getauxval() and the auxiliary vector
Posted Oct 15, 2012 17:48 UTC (Mon) by dashesy (guest, #74652)Parent article: getauxval() and the auxiliary vector
Sorry if I am outright clueless, but it would be very interesting if it can be used for multiarch scenarios. Maybe to simplify mixing x64 and x86 in a distribution-agnostic fashion, or even more interesting; Not only to run the foreign code but also link to a library of foreign architecture.
Posted Oct 15, 2012 19:21 UTC (Mon)
by BenHutchings (subscriber, #37955)
[Link] (1 responses)
Multiarch and biarch requite that each coexisting architecture has a distinct dynamic linker. This is not possible even with thunking of function calls (very expensive if you have to make 32/64-bit mode switches) as the different architectures have different memory layouts.
Posted Nov 13, 2012 11:09 UTC (Tue)
by oak (guest, #2786)
[Link]
(If everything would use it instead of reading the /proc/self/auxv file directly, it would be nice, now it just means that tools like SB2 and user-space Qemu have yet another thing they need to catch & override, but at least this new method is easier to override.)
getauxval() and the auxiliary vector
Sorry if I am outright clueless, but it would be very interesting if it can be used for multiarch scenarios.
Maybe to simplify mixing x64 and x86 in a distribution-agnostic fashion, or even more interesting; Not only to run the foreign code but also link to a library of foreign architecture.
getauxval() and the auxiliary vector