#!/bin/bash . $(dirname $0)/common.inc cat < #include extern char x1, x2; int main() { printf("%lu %lu %lu\n", (uintptr_t)&x1 % 32, (uintptr_t)&x2 % 32, &x2 - &x1); } EOF $CC -B. -o $t/exe $t/a.o $t/b.o $t/c.o $QEMU $t/exe | grep '0 0 32'