On 02/24/17 12:07, Sebastien Marie wrote: > On Fri, Feb 24, 2017 at 11:08:21AM +0100, Martijn Rijkeboer wrote: >> Hi, >> >> If I have a static binary compiled on OpenBSD release X, is that binary >> expected to also run on release X+1, X+2 and X+Y? For example, a static >> binary that is compiled on OpenBSD 6.0, is it expected to also run on >> 6.1, 6.2 and 6.3? The reason for asking is a Haskell stack issue [0] >> that involves GHC bindists. >> > > The generic answer will be "no". > > The example is the switch from 5.4 to 5.5 release which included time_t > change (32 to 64 bits) - see https://www.openbsd.org/faq/upgrade55.html#time_t > > But generally, an old binary (from release X) is able to run on a new > kernel (from release X+1), but nothing more could be expected: old > things are cleaned, so an old binary could be able to run or not (it > just depends if relying on old API/ABI with kernel - syscalls, struct > size...).
Thanks for your answer. This is what I was expecting, but wanted to make sure before adding the info to the stack issue. Kind regards, Martijn Rijkeboer