search for: mconfig

Displaying 20 results from an estimated 172 matches for "mconfig".

Did you mean: config
2020 Jul 25
0
[klibc:master] arch: Explicitly disable or enable executable stacks
...licitly disable or enable executable stacks For each architecture (except cris, which is obsolete) set KLIBCEXECSTACK to 'y' or 'n', and comment on the kernel's signal return implementation. Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/klibc/arch/alpha/MCONFIG | 4 ++++ usr/klibc/arch/arm/MCONFIG | 3 +++ usr/klibc/arch/arm64/MCONFIG | 3 +++ usr/klibc/arch/i386/MCONFIG | 3 +++ usr/klibc/arch/ia64/MCONFIG | 3 +++ usr/klibc/arch/m68k/MCONFIG | 4 ++++ usr/klibc/arch/mips/MCONFIG | 3 +++ usr/klibc/arch/mips64/MCONFIG | 3 +++ usr/kl...
2020 Apr 29
2
[PATCH klibc 1/3] Revert " Kbuild: Tell gas we don't want executable stacks"
This reverts commit 9d8d648e604026b32cad00a84ed6c29cbd157641, which broke signal handing on some architectures. On m68k and parisc, signal return depends on a trampoline that the kernel writes on the stack. On alpha, s390, and sparc (32-bit), we can avoid this by providing our own function as sa_restorer, but we currently don't. Signed-off-by: Ben Hutchings <ben at decadent.org.uk>
2019 Jan 20
0
[klibc:master] Use -Ttext-segment to link shared library on all arches
...dded by the linker (commits 048bfb0df170, 2a705525e081, 34163a2c7d1c). Adding a build ID to support separate debug info causes a similar problem on other architectures. Use -Ttext-segment on all architectures. Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- usr/klibc/arch/alpha/MCONFIG | 2 +- usr/klibc/arch/arm/MCONFIG | 4 ++-- usr/klibc/arch/arm64/MCONFIG | 2 +- usr/klibc/arch/m68k/MCONFIG | 2 +- usr/klibc/arch/parisc/MCONFIG | 2 +- usr/klibc/arch/ppc/MCONFIG | 2 +- usr/klibc/arch/ppc64/MCONFIG | 2 +- usr/klibc/arch/riscv64/MCONFIG | 2 +- usr/klibc/arch...
2020 Jan 27
4
[PATCH] support llvm's lld
...ment: https://github.com/llvm/llvm-project/commit/4dc2fb123dcfe9a97ad6f3a1135053b74efd0bc9 Note that I've tested x86_64 only, everything else is just a copy-paste. Signed-off-by: Stanislav Fomichev <sdf at google.com> --- Makefile | 7 +++++++ usr/klibc/arch/alpha/MCONFIG | 2 +- usr/klibc/arch/arm/MCONFIG | 4 ++-- usr/klibc/arch/arm64/MCONFIG | 2 +- usr/klibc/arch/i386/MCONFIG | 2 +- usr/klibc/arch/m68k/MCONFIG | 2 +- usr/klibc/arch/mips/MCONFIG | 2 +- usr/klibc/arch/mips64/MCONFIG | 2 +- usr/klibc/arch/parisc/MCONFIG | 2 +- usr/klibc/arch...
2011 Apr 11
0
[PATCH] Makefile: Move Makefile fragments into mk/
From: Matt Fleming <matt.fleming at linux.intel.com> Move the MCONFIG files into a mk/ directory and give them more descriptive names. This is purely a cosmetic change to make the 'include' directives a bit more coherent by making it obvious exactly which MCONFIG file we're including. For example, in com32/lua/src/Makefile we exchange the line, include...
2020 Mar 27
1
[PATCH v2 2/5] Kbuild: support clang's lld
...at google.com> Clang's lld prefers the use of "-image-base" instead of "-Ttext-segment". Signed-off-by: Stanislav Fomichev <sdf at google.com> Signed-off-by: Bill Wendling <morbo at google.com> --- Makefile | 3 +++ usr/klibc/arch/i386/MCONFIG | 2 +- usr/klibc/arch/mips64/MCONFIG | 2 +- usr/klibc/arch/ppc/MCONFIG | 2 +- usr/klibc/arch/ppc64/MCONFIG | 2 +- usr/klibc/arch/riscv64/MCONFIG | 2 +- usr/klibc/arch/sparc64/MCONFIG | 2 +- usr/klibc/arch/x86_64/MCONFIG | 2 +- 8 files changed, 10 insertions(+), 7 deletions(-) dif...
2011 Apr 16
6
[PATCH 0/6] Makefile cleanups
...| 3 ++- extlinux/Makefile | 3 ++- linux/Makefile | 3 ++- lzo/Makefile | 3 ++- mbr/Makefile | 3 ++- memdisk/Makefile | 3 ++- memdump/Makefile | 3 ++- MCONFIG.build => mk/build.mk | 2 +- com32/MCONFIG => mk/com32.mk | 2 +- MCONFIG.devel => mk/devel.mk | 0 MCONFIG.embedded => mk/embedded.mk | 2 +- com32/lib/MCONFIG => mk/lib.mk | 2 +- com32/rosh/MCONFIG => mk/rosh.mk | 2 +- MCONFIG => mk...
2020 Mar 27
12
[PATCH 0/5] Clang compatibility patches
...+++ scripts/Kbuild.klibc | 19 +++++++++++++++++-- usr/dash/eval.c | 8 ++++---- usr/dash/jobs.c | 4 ++-- usr/dash/output.c | 12 ++++++------ usr/kinit/initrd.c | 2 +- usr/kinit/ramdisk_load.c | 2 +- usr/klibc/arch/i386/MCONFIG | 2 +- usr/klibc/arch/mips64/MCONFIG | 2 +- usr/klibc/arch/ppc/MCONFIG | 2 +- usr/klibc/arch/ppc64/MCONFIG | 2 +- usr/klibc/arch/riscv64/MCONFIG | 2 +- usr/klibc/arch/sparc64/MCONFIG | 2 +- usr/klibc/arch/x86_64/MCONFIG | 14 +++++++++++--- 15 files changed, 55 insertions(+),...
2003 Nov 27
1
[PATCH] do not use -R on ppc to link shared objects
...$(STRIP) $@.stripped tests/%.shared : tests/%.o interp.o $(SOLIB) - $(LD) $(LDFLAGS) -o $@ -e main interp.o tests/$*.o -R $(SOLIB) $(LIBGCC) + $(LD) $(LDFLAGS) -o $@ -e main interp.o tests/$*.o $(LD_SOLIB_FLAGS) $(SOLIB) $(LIBGCC) cp $@ $@.stripped $(STRIP) $@.stripped --- klibc/arch/alpha/MCONFIG +++ klibc/arch/alpha/MCONFIG 2003/11/27 15:04:12 @@ -14,4 +14,4 @@ # 7 GB - normal binaries start at 4.5 GB, and the stack is below # the binary. SHAREDFLAGS = -Ttext 0x1c0000200 - +LD_SOLIB_FLAGS = -R --- klibc/arch/arm/MCONFIG +++ klibc/arch/arm/MCONFIG 2003/11/27 15:04:16 @@ -24,3 +24,4 @@ #...
2020 Jul 25
0
[klibc:master] Kbuild: support clang's lld
...image-base" instead of "-Ttext-segment". Signed-off-by: Stanislav Fomichev <sdf at google.com> Signed-off-by: Bill Wendling <morbo at google.com> Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- Makefile | 3 +++ usr/klibc/arch/i386/MCONFIG | 2 +- usr/klibc/arch/mips64/MCONFIG | 5 +++-- usr/klibc/arch/ppc/MCONFIG | 2 +- usr/klibc/arch/ppc64/MCONFIG | 2 +- usr/klibc/arch/riscv64/MCONFIG | 2 +- usr/klibc/arch/sparc64/MCONFIG | 2 +- usr/klibc/arch/x86_64/MCONFIG | 2 +- 8 files changed, 12 insertions(+), 8 deletions(-)...
2019 Jan 18
0
[klibc:master] Kbuild: Remove KLIBCKERNELOBJ variable
...extra header directories based on it completely redundant. Link: https://www.zytor.com/pipermail/klibc/2019-January/004031.html Signed-off-by: Ben Hutchings <ben at decadent.org.uk> --- Makefile | 2 -- scripts/Kbuild.klibc | 8 +++----- usr/klibc/arch/i386/MCONFIG | 3 --- usr/klibc/arch/ppc/MCONFIG | 3 --- usr/klibc/arch/ppc64/MCONFIG | 3 --- usr/klibc/arch/riscv64/MCONFIG | 2 -- usr/klibc/arch/x86_64/MCONFIG | 3 --- 7 files changed, 3 insertions(+), 21 deletions(-) diff --git a/Makefile b/Makefile index 4386135..a11d1e6 100644 --- a/Makefile...
2020 Jul 26
0
[kvm-unit-tests PATCH v3 0/4] Update patch set
...+LLD := $(shell $(LD) --version 2>&1 | grep LLD) +export IMAGE_BASE=$(if $(LLD),--image-base,-Ttext-segment) + NOSTDINC_FLAGS := -nostdlib -nostdinc -isystem $(shell $(CC) -print-file-name=include) ARCH := $(shell uname -m | sed -e s/i.86/i386/ \ diff --git a/usr/klibc/arch/i386/MCONFIG b/usr/klibc/arch/i386/MCONFIG index 0704669500f0..baa7e59854f8 100644 --- a/usr/klibc/arch/i386/MCONFIG +++ b/usr/klibc/arch/i386/MCONFIG @@ -30,4 +30,4 @@ KLIBCBITSIZE = 32 # This address needs to be reachable using normal inter-module # calls, and work on the memory models for this architectur...
2020 Mar 29
7
[kvm-unit-tests PATCH v3 0/4] Update patch set
...p clang warnings Makefile | 3 +++ scripts/Kbuild.include | 8 ++++++-- scripts/Kbuild.klibc | 14 ++++++++++---- usr/kinit/initrd.c | 2 +- usr/kinit/ramdisk_load.c | 2 +- usr/klibc/Kbuild | 4 ++-- usr/klibc/arch/i386/MCONFIG | 2 +- usr/klibc/arch/mips64/MCONFIG | 5 +++-- usr/klibc/arch/ppc/MCONFIG | 2 +- usr/klibc/arch/ppc64/MCONFIG | 2 +- usr/klibc/arch/riscv64/MCONFIG | 2 +- usr/klibc/arch/sparc64/MCONFIG | 2 +- usr/klibc/arch/x86_64/MCONFIG | 8 +++++--- 13 files changed, 36 insertions(+), 20...
2019 Jan 07
4
[PATCH klibc 0/4] Fix the KLIBCKERNEL{SRC,OBJ} mess
...variable [klibc] Makefile: Update help text for KLIBCKERNELSRC [klibc] Kbuild.install: Copy UAPI headers instead of reinstalling them Makefile | 16 +++++++--------- scripts/Kbuild.install | 2 +- scripts/Kbuild.klibc | 8 +++----- usr/klibc/arch/i386/MCONFIG | 3 --- usr/klibc/arch/ppc/MCONFIG | 3 --- usr/klibc/arch/ppc64/MCONFIG | 3 --- usr/klibc/arch/riscv64/MCONFIG | 2 -- usr/klibc/arch/x86_64/MCONFIG | 3 --- 8 files changed, 11 insertions(+), 29 deletions(-) -------------- next part -------------- A non-text attachment was scrub...
2013 Dec 26
2
[PATCH] Update header locations for uapi & generated
...erate out generated headers. The old kernel header location needs to be included as well, because linux/compiler.h is available only in the base include directory. Signed-off-by: Robin H. Johnson <robbat2 at gentoo.org> --- scripts/Kbuild.klibc | 10 ++++++++-- usr/klibc/arch/i386/MCONFIG | 5 ++++- usr/klibc/arch/ppc/MCONFIG | 5 ++++- usr/klibc/arch/ppc64/MCONFIG | 5 ++++- usr/klibc/arch/x86_64/MCONFIG | 5 ++++- 5 files changed, 24 insertions(+), 6 deletions(-) diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc index f500d53..989a065 100644 --- a/scripts/Kbuild....
2020 Jul 25
2
[kvm-unit-tests PATCH v3 0/4] Update patch set
On Sat, 2020-07-25 at 15:16 -0700, Bill Wendling wrote: > On Sat, Jul 25, 2020 at 2:56 PM Ben Hutchings <ben at decadent.org.uk> wrote: > > On Sat, 2020-07-25 at 14:36 -0700, Bill Wendling wrote: > > [...] > > > I upstreamed a few patches to klibc to fix a few linker errors. Some > > > of these might help: > > > > I applied v3 of your patch
2005 Jun 17
2
Patch to support parisc
This patch allows klibc to build on parisc64 platforms. $ diff -u MCONFIG.old MCONFIG --- MCONFIG.old 2005-06-18 01:16:12.000000000 +0000 +++ MCONFIG 2005-06-18 01:18:51.000000000 +0000 @@ -33,7 +33,7 @@ KLIBCVER = -D__KLIBC__=$(shell cut -d. -f1 < $(SRCROOT)/version) \ -D__KLIBC_MINOR__=$(shell cut -d. -f2 < $(SRCROOT)/version) -ARCH = $(shell...
2020 Mar 27
3
[PATCH v2 3/5] Kbuild: use "libc.a" with clang
...ble replacement for libgcc readily available. Supply one that we know exists. Use "-fno-builtin-bcmp" to prevent clang from calling a function that doesn't exist. Signed-off-by: Bill Wendling <morbo at google.com> --- scripts/Kbuild.klibc | 2 ++ usr/klibc/arch/x86_64/MCONFIG | 2 ++ 2 files changed, 4 insertions(+) diff --git a/scripts/Kbuild.klibc b/scripts/Kbuild.klibc index 411d7ea9bea6..ba3f389626b3 100644 --- a/scripts/Kbuild.klibc +++ b/scripts/Kbuild.klibc @@ -141,6 +141,8 @@ KLIBCSTRIPFLAGS += --strip-all -R .comment -R .note # Don't attempt to set it if...
2020 Mar 27
1
[PATCH v2 4/5] Kbuild: Add "-fcommon" for clang builds
Clang defaults to "-fno-common" which causes linking errors because of duplicate symbols in the BSS section. Signed-off-by: Bill Wendling <morbo at google.com> --- usr/klibc/arch/x86_64/MCONFIG | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/klibc/arch/x86_64/MCONFIG b/usr/klibc/arch/x86_64/MCONFIG index a6ba7c85c68b..46d29985bfd6 100644 --- a/usr/klibc/arch/x86_64/MCONFIG +++ b/usr/klibc/arch/x86_64/MCONFIG @@ -27,7 +27,7 @@ ifneq ($(cc-name),clang) # so we can...
2005 Feb 10
1
[PATCH] make DEBUG=true
udev knows about DEBUG=true and builds a debug binary. Maybe klibc should do the same? Was there a reason for -g in the i386 MCONFIG? Index: MCONFIG =================================================================== --- MCONFIG (revision 1003) +++ MCONFIG (working copy) @@ -62,5 +62,11 @@ # include $(KLIBSRC)/arch/$(ARCH)/MCONFIG +ifeq ($(DEBUG),true) +STRIP = /bin/true -Since_we_are_debugging +OPTFLAGS += -O1 -g +endif +...