Target value for val has uint32_t type, not uint, adjust used constant.
Cast val to unsigned so that left and right sides of comparision operator do not expose different signed types of same range.
This still breaks buildworld on several archs:
/usr/src/usr.bin/elfctl/elfctl.c:258:35: error: use of undeclared identifier 'UINT32_MAX'else if ((unsigned long)val > UINT32_MAX)
adding stdint.h fixes it
huh, bad timing