src/sstrip.c: In function 'readelfheader32':
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:155:6: note: in expansion of macro 'EGET'
  if (EGET(ehdr->e_ehsize) != sizeof(Elf ## CLASS ## _Ehdr)) \
      ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:157:6: note: in expansion of macro 'EGET'
  if (EGET(ehdr->e_phentsize) != sizeof(Elf ## CLASS ## _Phdr)) \
      ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:162:6: note: in expansion of macro 'EGET'
  if (EGET(ehdr->e_type) != ET_EXEC && EGET(ehdr->e_type) != ET_DYN) \
      ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:162:39: note: in expansion of macro 'EGET'
  if (EGET(ehdr->e_type) != ET_EXEC && EGET(ehdr->e_type) != ET_DYN) \
                                       ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c: In function 'readphdrtable32':
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:175:7: note: in expansion of macro 'EGET'
  if (!EGET(ehdr->e_phoff) || !EGET(ehdr->e_phnum) \
       ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:175:31: note: in expansion of macro 'EGET'
  if (!EGET(ehdr->e_phoff) || !EGET(ehdr->e_phnum) \
                               ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:178:9: note: in expansion of macro 'EGET'
  size = EGET(ehdr->e_phnum) * sizeof **phdrs; \
         ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c: In function 'getmemorysize32':
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:205:9: note: in expansion of macro 'EGET'
  size = EGET(ehdr->e_phoff) + EGET(ehdr->e_phnum) * sizeof *phdrs; \
         ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:205:31: note: in expansion of macro 'EGET'
  size = EGET(ehdr->e_phoff) + EGET(ehdr->e_phnum) * sizeof *phdrs; \
                               ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:212:33: note: in expansion of macro 'EGET'
  for (i = 0, phdr = phdrs ; i < EGET(ehdr->e_phnum) ; ++i, ++phdr) { \
                                 ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:213:7: note: in expansion of macro 'EGET'
   if (EGET(phdr->p_type) != PT_NULL) { \
       ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:214:8: note: in expansion of macro 'EGET'
    n = EGET(phdr->p_offset) + EGET(phdr->p_filesz); \
        ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:214:31: note: in expansion of macro 'EGET'
    n = EGET(phdr->p_offset) + EGET(phdr->p_filesz); \
                               ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c: In function 'modifyheaders32':
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:238:6: note: in expansion of macro 'EGET'
  if (EGET(ehdr->e_shoff) >= newsize) { \
      ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c:127:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: ESET failed for size %d\n", \
                    ^
src/sstrip.c:239:3: note: in expansion of macro 'ESET'
   ESET(ehdr->e_shoff,0); \
   ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c:127:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: ESET failed for size %d\n", \
                    ^
src/sstrip.c:240:3: note: in expansion of macro 'ESET'
   ESET(ehdr->e_shnum,0); \
   ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c:127:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: ESET failed for size %d\n", \
                    ^
src/sstrip.c:241:3: note: in expansion of macro 'ESET'
   ESET(ehdr->e_shentsize,0); \
   ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c:127:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: ESET failed for size %d\n", \
                    ^
src/sstrip.c:242:3: note: in expansion of macro 'ESET'
   ESET(ehdr->e_shstrndx,0); \
   ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:249:33: note: in expansion of macro 'EGET'
  for (i = 0, phdr = phdrs ; i < EGET(ehdr->e_phnum) ; ++i, ++phdr) { \
                                 ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:250:7: note: in expansion of macro 'EGET'
   if (EGET(phdr->p_offset) >= newsize) { \
       ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c:127:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: ESET failed for size %d\n", \
                    ^
src/sstrip.c:251:4: note: in expansion of macro 'ESET'
    ESET(phdr->p_offset,newsize); \
    ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c:127:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: ESET failed for size %d\n", \
                    ^
src/sstrip.c:252:4: note: in expansion of macro 'ESET'
    ESET(phdr->p_filesz,0); \
    ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:253:14: note: in expansion of macro 'EGET'
   } else if (EGET(phdr->p_offset) + EGET(phdr->p_filesz) > newsize) { \
              ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:253:37: note: in expansion of macro 'EGET'
   } else if (EGET(phdr->p_offset) + EGET(phdr->p_filesz) > newsize) { \
                                     ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:117:9: note: in definition of macro 'ESET'
    Y = (X); \
         ^
src/sstrip.c:254:35: note: in expansion of macro 'EGET'
    ESET(phdr->p_filesz, newsize - EGET(phdr->p_offset)); \
                                   ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:119:9: note: in definition of macro 'ESET'
    Y = (X); \
         ^
src/sstrip.c:254:35: note: in expansion of macro 'EGET'
    ESET(phdr->p_filesz, newsize - EGET(phdr->p_offset)); \
                                   ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
In file included from /usr/include/x86_64-linux-gnu/bits/byteswap.h:35:0,
                 from /usr/include/byteswap.h:24,
                 from /home/bastian/ledebot/source/staging_dir/host/include/byteswap.h:2,
                 from /home/bastian/ledebot/source/staging_dir/host/include/endian.h:5,
                 from <command-line>:1:
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:254:4: note: in expansion of macro 'ESET'
    ESET(phdr->p_filesz, newsize - EGET(phdr->p_offset)); \
    ^
src/sstrip.c:254:35: note: in expansion of macro 'EGET'
    ESET(phdr->p_filesz, newsize - EGET(phdr->p_offset)); \
                                   ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
In file included from /home/bastian/ledebot/source/staging_dir/host/include/byteswap.h:2:0,
                 from /home/bastian/ledebot/source/staging_dir/host/include/endian.h:5,
                 from <command-line>:1:
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:254:4: note: in expansion of macro 'ESET'
    ESET(phdr->p_filesz, newsize - EGET(phdr->p_offset)); \
    ^
src/sstrip.c:254:35: note: in expansion of macro 'EGET'
    ESET(phdr->p_filesz, newsize - EGET(phdr->p_offset)); \
                                   ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:254:4: note: in expansion of macro 'ESET'
    ESET(phdr->p_filesz, newsize - EGET(phdr->p_offset)); \
    ^
src/sstrip.c:254:35: note: in expansion of macro 'EGET'
    ESET(phdr->p_filesz, newsize - EGET(phdr->p_offset)); \
                                   ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c:127:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: ESET failed for size %d\n", \
                    ^
src/sstrip.c:254:4: note: in expansion of macro 'ESET'
    ESET(phdr->p_filesz, newsize - EGET(phdr->p_offset)); \
    ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c: In function 'commitchanges32':
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:280:16: note: in expansion of macro 'EGET'
  if (lseek(fd, EGET(ehdr->e_phoff), SEEK_SET) == (off_t)-1) { \
                ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:284:6: note: in expansion of macro 'EGET'
  n = EGET(ehdr->e_phnum) * sizeof *phdrs; \
      ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:293:16: note: in expansion of macro 'EGET'
  if (newsize < EGET(ehdr->e_phoff) + n) \
                ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:294:13: note: in expansion of macro 'EGET'
   newsize = EGET(ehdr->e_phoff) + n; \
             ^
src/sstrip.c:363:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(32)
 ^
src/sstrip.c: In function 'readelfheader64':
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:155:6: note: in expansion of macro 'EGET'
  if (EGET(ehdr->e_ehsize) != sizeof(Elf ## CLASS ## _Ehdr)) \
      ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:157:6: note: in expansion of macro 'EGET'
  if (EGET(ehdr->e_phentsize) != sizeof(Elf ## CLASS ## _Phdr)) \
      ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:162:6: note: in expansion of macro 'EGET'
  if (EGET(ehdr->e_type) != ET_EXEC && EGET(ehdr->e_type) != ET_DYN) \
      ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:162:39: note: in expansion of macro 'EGET'
  if (EGET(ehdr->e_type) != ET_EXEC && EGET(ehdr->e_type) != ET_DYN) \
                                       ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c: In function 'readphdrtable64':
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:175:7: note: in expansion of macro 'EGET'
  if (!EGET(ehdr->e_phoff) || !EGET(ehdr->e_phnum) \
       ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:175:31: note: in expansion of macro 'EGET'
  if (!EGET(ehdr->e_phoff) || !EGET(ehdr->e_phnum) \
                               ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:178:9: note: in expansion of macro 'EGET'
  size = EGET(ehdr->e_phnum) * sizeof **phdrs; \
         ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c: In function 'getmemorysize64':
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:205:9: note: in expansion of macro 'EGET'
  size = EGET(ehdr->e_phoff) + EGET(ehdr->e_phnum) * sizeof *phdrs; \
         ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:205:31: note: in expansion of macro 'EGET'
  size = EGET(ehdr->e_phoff) + EGET(ehdr->e_phnum) * sizeof *phdrs; \
                               ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:212:33: note: in expansion of macro 'EGET'
  for (i = 0, phdr = phdrs ; i < EGET(ehdr->e_phnum) ; ++i, ++phdr) { \
                                 ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:213:7: note: in expansion of macro 'EGET'
   if (EGET(phdr->p_type) != PT_NULL) { \
       ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:214:8: note: in expansion of macro 'EGET'
    n = EGET(phdr->p_offset) + EGET(phdr->p_filesz); \
        ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:214:31: note: in expansion of macro 'EGET'
    n = EGET(phdr->p_offset) + EGET(phdr->p_filesz); \
                               ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c: In function 'modifyheaders64':
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:238:6: note: in expansion of macro 'EGET'
  if (EGET(ehdr->e_shoff) >= newsize) { \
      ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c:127:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: ESET failed for size %d\n", \
                    ^
src/sstrip.c:239:3: note: in expansion of macro 'ESET'
   ESET(ehdr->e_shoff,0); \
   ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c:127:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: ESET failed for size %d\n", \
                    ^
src/sstrip.c:240:3: note: in expansion of macro 'ESET'
   ESET(ehdr->e_shnum,0); \
   ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c:127:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: ESET failed for size %d\n", \
                    ^
src/sstrip.c:241:3: note: in expansion of macro 'ESET'
   ESET(ehdr->e_shentsize,0); \
   ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c:127:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: ESET failed for size %d\n", \
                    ^
src/sstrip.c:242:3: note: in expansion of macro 'ESET'
   ESET(ehdr->e_shstrndx,0); \
   ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:249:33: note: in expansion of macro 'EGET'
  for (i = 0, phdr = phdrs ; i < EGET(ehdr->e_phnum) ; ++i, ++phdr) { \
                                 ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:250:7: note: in expansion of macro 'EGET'
   if (EGET(phdr->p_offset) >= newsize) { \
       ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c:127:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: ESET failed for size %d\n", \
                    ^
src/sstrip.c:251:4: note: in expansion of macro 'ESET'
    ESET(phdr->p_offset,newsize); \
    ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c:127:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: ESET failed for size %d\n", \
                    ^
src/sstrip.c:252:4: note: in expansion of macro 'ESET'
    ESET(phdr->p_filesz,0); \
    ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:253:14: note: in expansion of macro 'EGET'
   } else if (EGET(phdr->p_offset) + EGET(phdr->p_filesz) > newsize) { \
              ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:253:37: note: in expansion of macro 'EGET'
   } else if (EGET(phdr->p_offset) + EGET(phdr->p_filesz) > newsize) { \
                                     ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:117:9: note: in definition of macro 'ESET'
    Y = (X); \
         ^
src/sstrip.c:254:35: note: in expansion of macro 'EGET'
    ESET(phdr->p_filesz, newsize - EGET(phdr->p_offset)); \
                                   ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:119:9: note: in definition of macro 'ESET'
    Y = (X); \
         ^
src/sstrip.c:254:35: note: in expansion of macro 'EGET'
    ESET(phdr->p_filesz, newsize - EGET(phdr->p_offset)); \
                                   ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
In file included from /usr/include/x86_64-linux-gnu/bits/byteswap.h:35:0,
                 from /usr/include/byteswap.h:24,
                 from /home/bastian/ledebot/source/staging_dir/host/include/byteswap.h:2,
                 from /home/bastian/ledebot/source/staging_dir/host/include/endian.h:5,
                 from <command-line>:1:
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:254:4: note: in expansion of macro 'ESET'
    ESET(phdr->p_filesz, newsize - EGET(phdr->p_offset)); \
    ^
src/sstrip.c:254:35: note: in expansion of macro 'EGET'
    ESET(phdr->p_filesz, newsize - EGET(phdr->p_offset)); \
                                   ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
In file included from /home/bastian/ledebot/source/staging_dir/host/include/byteswap.h:2:0,
                 from /home/bastian/ledebot/source/staging_dir/host/include/endian.h:5,
                 from <command-line>:1:
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:254:4: note: in expansion of macro 'ESET'
    ESET(phdr->p_filesz, newsize - EGET(phdr->p_offset)); \
    ^
src/sstrip.c:254:35: note: in expansion of macro 'EGET'
    ESET(phdr->p_filesz, newsize - EGET(phdr->p_offset)); \
                                   ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:254:4: note: in expansion of macro 'ESET'
    ESET(phdr->p_filesz, newsize - EGET(phdr->p_offset)); \
    ^
src/sstrip.c:254:35: note: in expansion of macro 'EGET'
    ESET(phdr->p_filesz, newsize - EGET(phdr->p_offset)); \
                                   ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c:127:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: ESET failed for size %d\n", \
                    ^
src/sstrip.c:254:4: note: in expansion of macro 'ESET'
    ESET(phdr->p_filesz, newsize - EGET(phdr->p_offset)); \
    ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c: In function 'commitchanges64':
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:280:16: note: in expansion of macro 'EGET'
  if (lseek(fd, EGET(ehdr->e_phoff), SEEK_SET) == (off_t)-1) { \
                ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:284:6: note: in expansion of macro 'EGET'
  n = EGET(ehdr->e_phnum) * sizeof *phdrs; \
      ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:293:16: note: in expansion of macro 'EGET'
  if (newsize < EGET(ehdr->e_phoff) + n) \
                ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
src/sstrip.c:106:20: warning: format '%d' expects argument of type 'int', but argument 5 has type 'long unsigned int' [-Wformat=]
    fprintf(stderr, "%s: %s: EGET failed for size %d\n", \
                    ^
src/sstrip.c:294:13: note: in expansion of macro 'EGET'
   newsize = EGET(ehdr->e_phoff) + n; \
             ^
src/sstrip.c:365:1: note: in expansion of macro 'HEADER_FUNCTIONS'
 HEADER_FUNCTIONS(64)
 ^
