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

Koen Kooi koen at dominion.thruhere.net
Thu Apr 18 23:50:50 PDT 2013


Op 18 apr. 2013, om 14:08 heeft Lennart Poettering <lennart at poettering.net> het volgende geschreven:

> 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?

Usually sigbus, but it depends on what you're trying to mix. It's a mess on ARM, don't try to understand it :)

regards,

Koen


More information about the systemd-devel mailing list