sh: alignment
authorAlan Cox <alan@linux.intel.com>
Sun, 17 May 2015 15:21:51 +0000 (16:21 +0100)
committerAlan Cox <alan@linux.intel.com>
Sun, 17 May 2015 15:21:51 +0000 (16:21 +0100)
commit5a97e5871e968f653d180a5b9825f2648c9e4484
tree3880166d552663dfd9a88e58871195b31a869ea9
parenta8f425877d6773a9d14099599b22f3f799fa19b4
sh: alignment

V7 happens to word pack binaries so that the low bit of the first address
beyond the end of the program is clear. We don't. This causes sh to get
a bit upset 50% of the time you fiddle with it. Instead check the sbrk
value when we start up and sbrk ourselves a byte if needed.

The sh allocator providing it is started on an even address will stay even.
Applications/V7/cmd/sh/blok.c