This patch fixes a number of embarrasing oversights which meant libfdt did not work correctly on little endian machines. With this patch the testsuite now passes on x86. Device trees are always created big-endian.
This makes the tests more flexible to re-use for testing the output from the write tests.
Initial revision, read-only and "in-place" (no memmove() required) write operations only.