[systemd-devel] Add ARCH parameter to /etc/os-release

Lennart Poettering lennart at poettering.net
Thu Apr 18 05:08:33 PDT 2013


On Thu, 18.04.13 09:26, Koen Kooi (koen at dominion.thruhere.net) wrote:

> So it returns something that could be considered usefull on my laptop, but the output on the beaglebone is useless. On ARM you need to know the following to see if you can execute the binary:
> 
> 1) instruction set revision (armvX, e.g. armv5te, armv6, armv7a)
> 2) OABI or EABI
> 3) floating point calling conventions, softp vs hardfp

Are these even encoded in the ELF header? If you take an armv7a binary
and execute it on arm5te, what happens? will the kernel quickly say
"Nah, incompatible binary"? Or will it run until the first unknown
instruction comes and the segfault or sigbus?

Lennart

-- 
Lennart Poettering - Red Hat, Inc.


More information about the systemd-devel mailing list