config 版本 s3c6410
内核版本 goldfish 3.4
error1
fs/binfmt_aout.c: In function ‘load_aout_binary’:
fs/binfmt_aout.c:271: error: ‘SEGMENT_SIZE’ undeclared (first use in this function)
solution1
Update the Makefile:
NOSTDINC_FLAGS += -nostdinc -isystem
(shell
(CC) -print-file-name=include)
==>
NOSTDINC_FLAGS += -nostdinc -isystem
(shell
(CC) -print-file-name=include) -Dlinux
note: include/linux/a.out.h checks if “linux” is defined, then it checks if KERNEL is defined and then it assigns a value to “SEGMENT_SIZE”.