Displaying 3 results from an estimated 3 matches for "19ccfbec".
Did you mean:
02ccfbec
2020 Feb 29
0
[klibc:master] Kbuild: Tell gas we don't want executable stacks
...+= -D__ASSEMBLY__ $(KLIBCCFLAGS)
+KLIBCAFLAGS += -D__ASSEMBLY__ -Wa,--noexecstack $(KLIBCCFLAGS)
KLIBCSTRIPFLAGS += --strip-all -R .comment -R .note
KLIBCLIBGCC_DEF := $(shell $(KLIBCCC) $(KLIBCCFLAGS) --print-libgcc)
diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild
index b462fbec..19ccfbec 100644
--- a/usr/klibc/Kbuild
+++ b/usr/klibc/Kbuild
@@ -180,6 +180,7 @@ quiet_cmd_interp = BUILD $@
cmd_interp = $(KLIBCCC) $(klibccflags) -D__ASSEMBLY__ \
-DLIBDIR=\"$(SHLIBDIR)\" \
-DSOHASH=\"$(SOLIBHASH)\" \
+...
2020 Mar 28
0
[klibc:master] Suppress format truncation warnings for sprintf() and vsprintf()
...this and suggests that
we should pass INT_MAX at most. I don't think this is correct, so
suppress the warnings.
Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
---
usr/klibc/Kbuild | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild
index 19ccfbec..24bad07d 100644
--- a/usr/klibc/Kbuild
+++ b/usr/klibc/Kbuild
@@ -83,6 +83,11 @@ ifeq ($(CONFIG_KLIBC_ERRLIST),y)
KLIBCCFLAGS_strerror.o += -DWITH_ERRLIST
endif
+# These pass a huge maximum length to the corresponding length-limiting
+# functions
+KLIBCCFLAGS_sprintf.o += -Wno-format-truncatio...
2020 Mar 28
0
[klibc:update-dash] Implement stpcpy() and stpncpy()
...st char *);
__extern char *strtok(char *, const char *);
__extern char *strtok_r(char *, const char *, char **);
+__extern char *stpcpy(char *, const char *);
+__extern char *stpncpy(char *, const char *, size_t);
#endif /* _STRING_H */
diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild
index 19ccfbec..b966e306 100644
--- a/usr/klibc/Kbuild
+++ b/usr/klibc/Kbuild
@@ -46,6 +46,7 @@ klib-y += vsnprintf.o snprintf.o vsprintf.o sprintf.o \
strstr.o strncmp.o strncpy.o strrchr.o \
strxspn.o strspn.o strcspn.o strpbrk.o strsep.o strtok.o \
strtok_r.o \
+ stpcpy.o stpncpy.o \
fnmatch....