Fix compiler warnings and 64bitisms.
This commit is contained in:
parent
870489c8b0
commit
7b8d9e2d0e
|
@ -23,6 +23,9 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
#include <inttypes.h>
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
#include "out.h"
|
#include "out.h"
|
||||||
|
|
||||||
#define ASSERT(x) switch (2) { case 0: case (x): ; }
|
#define ASSERT(x) switch (2) { case 0: case (x): ; }
|
||||||
|
@ -300,11 +303,11 @@ int main(int argc, char* argv[])
|
||||||
|
|
||||||
{
|
{
|
||||||
long ss = 0;
|
long ss = 0;
|
||||||
printf(" base : %08lX\n", outsect[TEXT].os_base) ;
|
printf(" base : "PRIu32"\n", outsect[TEXT].os_base) ;
|
||||||
printf(" text = %08lX\n", outsect[TEXT].os_size);
|
printf(" text = "PRIu32"\n", outsect[TEXT].os_size);
|
||||||
printf(" rom = %08lX\n", outsect[ROM].os_size);
|
printf(" rom = "PRIu32"\n", outsect[ROM].os_size);
|
||||||
printf(" data = %08lX\n", outsect[DATA].os_size);
|
printf(" data = "PRIu32"\n", outsect[DATA].os_size);
|
||||||
printf(" bss = %08lX\n", outsect[BSS].os_size);
|
printf(" bss = "PRIu32"\n", outsect[BSS].os_size);
|
||||||
ss += outsect[TEXT].os_size;
|
ss += outsect[TEXT].os_size;
|
||||||
ss += outsect[ROM].os_size;
|
ss += outsect[ROM].os_size;
|
||||||
ss += outsect[DATA].os_size;
|
ss += outsect[DATA].os_size;
|
||||||
|
|
Loading…
Reference in a new issue