- New toolchain support - Add new flags
Signed-off-by: Yoshinori Sato ysato@users.sourceforge.jp --- Rules.mak | 2 ++ extra/Configs/Config.h8300 | 1 + 2 files changed, 3 insertions(+)
diff --git a/Rules.mak b/Rules.mak index 39bfbd1..e48ed50 100644 --- a/Rules.mak +++ b/Rules.mak @@ -429,6 +429,8 @@ endif endif
ifeq ($(TARGET_ARCH),h8300) + CPU_LDFLAGS-$(CONFIG_H8300H)+= -Wl,-mh8300h_linux + CPU_LDFLAGS-$(CONFIG_H8S) += -Wl,-mh8300s_linux CPU_CFLAGS-$(CONFIG_H8300H) += -mh -mint32 CPU_CFLAGS-$(CONFIG_H8S) += -ms -mint32 endif diff --git a/extra/Configs/Config.h8300 b/extra/Configs/Config.h8300 index 0c5486c..ad01596 100644 --- a/extra/Configs/Config.h8300 +++ b/extra/Configs/Config.h8300 @@ -14,6 +14,7 @@ config FORCE_OPTIONS_FOR_ARCH select ARCH_HAS_NO_MMU select ARCH_HAS_NO_LDSO select HAVE_NO_PIC + select ARCH_HAS_DEPRECATED_SYSCALLS
choice prompt "Target Processor"
Diffrent define of latest kernel. kernel define is #define O_DIRECT 00040000 /* direct disk access hint */ #define O_DIRECTORY 00200000 /* must be a directory */
--- libc/sysdeps/linux/h8300/bits/fcntl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libc/sysdeps/linux/h8300/bits/fcntl.h b/libc/sysdeps/linux/h8300/bits/fcntl.h index d180cbd..c167ee2 100644 --- a/libc/sysdeps/linux/h8300/bits/fcntl.h +++ b/libc/sysdeps/linux/h8300/bits/fcntl.h @@ -44,8 +44,8 @@ #define O_ASYNC 020000
#ifdef __USE_GNU -# define O_DIRECTORY 040000 /* Must be a directory. */ -# define O_DIRECT 0200000 /* Direct disk access. */ +# define O_DIRECT 040000 /* Direct disk access. */ +# define O_DIRECTORY 0200000 /* Must be a directory. */ # define O_NOFOLLOW 0400000 /* Do not follow links. */ # define O_NOATIME 01000000 /* Do not set atime. */ # define O_CLOEXEC 02000000 /* Set close_on_exec. */
Hi Yoshinori, Yoshinori Sato wrote,
Diffrent define of latest kernel. kernel define is #define O_DIRECT 00040000 /* direct disk access hint */ #define O_DIRECTORY 00200000 /* must be a directory */
libc/sysdeps/linux/h8300/bits/fcntl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
applied and pushed, thx Waldemar