Displaying 20 results from an estimated 76 matches for "klibcoptflag".
Did you mean:
klibcoptflags
2020 Mar 27
2
[PATCH v2 1/5] Kbuild: add support for clang builds
...KLIBCLIBC := $(KLIBCOBJ)/libc.a
diff --git a/usr/klibc/arch/x86_64/MCONFIG b/usr/klibc/arch/x86_64/MCONFIG
index c5f2fa265a26..77e2ad279884 100644
--- a/usr/klibc/arch/x86_64/MCONFIG
+++ b/usr/klibc/arch/x86_64/MCONFIG
@@ -15,13 +15,19 @@
# debugging using gdb.
#
KLIBCARCHREQFLAGS = -m64
-KLIBCOPTFLAGS += -Os -fomit-frame-pointer -mno-sse \
- -falign-functions=1 -falign-jumps=1 -falign-loops=1
+KLIBCOPTFLAGS += -Os -fomit-frame-pointer -mno-sse
ifeq ($(DEBUG),y)
KLIBCOPTFLAGS += -g
else
KLIBCOPTFLAGS += -fno-asynchronous-unwind-tables
endif
+
+ifneq ($(cc-name),clang)
+# These opti...
2020 Mar 28
0
[PATCH v2 1/5] Kbuild: add support for clang builds
...iff --git a/usr/klibc/arch/x86_64/MCONFIG b/usr/klibc/arch/x86_64/MCONFIG
> index c5f2fa265a26..77e2ad279884 100644
> --- a/usr/klibc/arch/x86_64/MCONFIG
> +++ b/usr/klibc/arch/x86_64/MCONFIG
> @@ -15,13 +15,19 @@
> # debugging using gdb.
> #
> KLIBCARCHREQFLAGS = -m64
> -KLIBCOPTFLAGS += -Os -fomit-frame-pointer -mno-sse \
> - -falign-functions=1 -falign-jumps=1 -falign-loops=1
> +KLIBCOPTFLAGS += -Os -fomit-frame-pointer -mno-sse
> ifeq ($(DEBUG),y)
> KLIBCOPTFLAGS += -g
> else
> KLIBCOPTFLAGS += -fno-asynchronous-unwind-tables
> endif
> +...
2020 Mar 27
1
[PATCH v2 4/5] Kbuild: Add "-fcommon" for clang builds
...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't use a cc-option test to filter them.
KLIBCOPTFLAGS += -falign-functions=1 -falign-jumps=1 -falign-loops=1
else
-KLIBCOPTFLAGS += -fno-builtin-bcmp
+KLIBCOPTFLAGS += -fno-builtin-bcmp -fcommon
endif
KLIBCBITSIZE = 64
--
2.26.0.rc2.310.g2932bb562d-goog
2014 Apr 15
0
[klibc:master] x86-64: disable the use of SSE
...nsertions(+), 4 deletions(-)
diff --git a/usr/klibc/arch/x86_64/MCONFIG b/usr/klibc/arch/x86_64/MCONFIG
index d4ff5ea..4b1a33a 100644
--- a/usr/klibc/arch/x86_64/MCONFIG
+++ b/usr/klibc/arch/x86_64/MCONFIG
@@ -15,12 +15,12 @@
# debugging using gdb.
#
KLIBCARCHREQFLAGS = -m64
-ifeq ($(DEBUG),y)
-KLIBCOPTFLAGS += -g -Os -fomit-frame-pointer \
+KLIBCOPTFLAGS += -Os -fomit-frame-pointer -mno-sse \
-falign-functions=1 -falign-jumps=1 -falign-loops=1
+ifeq ($(DEBUG),y)
+KLIBCOPTFLAGS += -g
else
-KLIBCOPTFLAGS += -Os -fno-asynchronous-unwind-tables -fomit-frame-pointer \
- -falign-functions=...
2020 Mar 27
12
[PATCH 0/5] Clang compatibility patches
This is a series of patches for clang compatibility:
- Using flags needed flags and removing unsupported flags.
- Adding support for clang's LLD linker.
- Removing a variety of warnings.
Bill Wendling (3):
[klibc] Kbuild: use "libc.a" with clang
[klibc] Kbuild: Add "-fcommon" for clang builds
[klibc] Clean up clang warnings
Michael Davidson (1):
[klibc] Kbuild:
2020 Mar 27
3
[PATCH v2 3/5] Kbuild: use "libc.a" with clang
...x86_64/MCONFIG
index ac1ac074c00a..a6ba7c85c68b 100644
--- a/usr/klibc/arch/x86_64/MCONFIG
+++ b/usr/klibc/arch/x86_64/MCONFIG
@@ -26,6 +26,8 @@ ifneq ($(cc-name),clang)
# These options are not supported by clang but only result in a warning
# so we can't use a cc-option test to filter them.
KLIBCOPTFLAGS += -falign-functions=1 -falign-jumps=1 -falign-loops=1
+else
+KLIBCOPTFLAGS += -fno-builtin-bcmp
endif
KLIBCBITSIZE = 64
--
2.26.0.rc2.310.g2932bb562d-goog
2020 Mar 29
0
[kvm-unit-tests PATCH v3 1/4] Kbuild: add support for clang builds
...uild.include
KLIBCREQFLAGS := $(call cc-option, -fno-stack-protector, ) \
$(call cc-option, -fwrapv, ) \
$(call cc-option, -fno-PIE, ) \
+ $(call cc-option, -fno-builtin-bcmp, ) \
-ggdb
KLIBCARCHREQFLAGS :=
KLIBCOPTFLAGS :=
@@ -108,10 +109,14 @@ KLIBCOBJDUMP := $(OBJDUMP)
# klibc include paths
KLIBCCPPFLAGS := -nostdinc -iwithprefix include \
- -I$(KLIBCINC)/arch/$(KLIBCARCHDIR) \
+ -I$(KLIBCINC)/arch/$(KLIBCARCHDIR) \
-I$(KLIBCINC)/bits$(KLIBCBITSIZE) \...
2020 Jul 25
0
[klibc:master] Kbuild: add support for clang builds
...uild.include
KLIBCREQFLAGS := $(call cc-option, -fno-stack-protector, ) \
$(call cc-option, -fwrapv, ) \
$(call cc-option, -fno-PIE, ) \
+ $(call cc-option, -fno-builtin-bcmp, ) \
-ggdb
KLIBCARCHREQFLAGS :=
KLIBCOPTFLAGS :=
@@ -108,10 +109,14 @@ KLIBCOBJDUMP := $(OBJDUMP)
# klibc include paths
KLIBCCPPFLAGS := -nostdinc -iwithprefix include \
- -I$(KLIBCINC)/arch/$(KLIBCARCHDIR) \
+ -I$(KLIBCINC)/arch/$(KLIBCARCHDIR) \
-I$(KLIBCINC)/bits$(KLIBCBITSIZE) \...
2020 Mar 29
7
[kvm-unit-tests PATCH v3 0/4] Update patch set
- Renamed IMAGE_BASE to LD_IMAGE_BASE_OPT.
- Moved "-fcommon" to KLIBCREQFLAGS in scripts/Kbuild.klibc.
- Remove "dash" warning fixes which have been upstreamed.
- Conditionalize the inclusion of compiler flags by using the proper
compiler name or "cc-option".
- Added "-Werror" to "cc-option" to catch flags that cause warnings.
- Retain
2020 Apr 29
2
[PATCH klibc 1/3] Revert " Kbuild: Tell gas we don't want executable stacks"
...index afc9a546..b7e99b56 100644
--- a/scripts/Kbuild.klibc
+++ b/scripts/Kbuild.klibc
@@ -125,7 +125,7 @@ KLIBCDEFS += -D__KLIBC__=$(KLIBCMAJOR) \
KLIBCCPPFLAGS += $(KLIBCDEFS)
KLIBCCFLAGS += $(KLIBCCPPFLAGS) $(KLIBCREQFLAGS) $(KLIBCARCHREQFLAGS) \
$(KLIBCOPTFLAGS) $(KLIBCWARNFLAGS)
-KLIBCAFLAGS += -D__ASSEMBLY__ -Wa,--noexecstack $(KLIBCCFLAGS)
+KLIBCAFLAGS += -D__ASSEMBLY__ $(KLIBCCFLAGS)
KLIBCSTRIPFLAGS += --strip-all -R .comment -R .note
KLIBCLIBGCC_DEF := $(shell $(KLIBCCC) $(KLIBCCFLAGS) --print-libgcc)
diff --git a/usr/klibc/Kbuild b/...
2017 Dec 30
0
building debug version of klibc
.../Kbuild.klibc
index f500d535..3e8124f7 100644
--- a/scripts/Kbuild.klibc
+++ b/scripts/Kbuild.klibc
@@ -69,7 +69,7 @@ include $(srctree)/scripts/Kbuild.include
KLIBCREQFLAGS := $(call cc-option, -fno-stack-protector, ) \
$(call cc-option, -fwrapv, )
KLIBCARCHREQFLAGS :=
-KLIBCOPTFLAGS :=
+KLIBCOPTFLAGS := -g
KLIBCWARNFLAGS := -W -Wall -Wno-sign-compare -Wno-unused-parameter
KLIBCSHAREDFLAGS :=
KLIBCBITSIZE :=
If you use make V=1 then you should be able to see the
full gcc command line, where -g should be included with
theabove fix.
Sam
2020 Mar 28
0
[PATCH v2 3/5] Kbuild: use "libc.a" with clang
...00a..a6ba7c85c68b 100644
> --- a/usr/klibc/arch/x86_64/MCONFIG
> +++ b/usr/klibc/arch/x86_64/MCONFIG
> @@ -26,6 +26,8 @@ ifneq ($(cc-name),clang)
> # These options are not supported by clang but only result in a warning
> # so we can't use a cc-option test to filter them.
> KLIBCOPTFLAGS += -falign-functions=1 -falign-jumps=1 -falign-loops=1
> +else
> +KLIBCOPTFLAGS += -fno-builtin-bcmp
This doesn't seem to be an optimisation option. It belongs in
KLIBCARCHREQFLAGS if it's really arch-specific. But it appears to be
arch-independent, in which case scripts/K...
2020 Jul 25
0
[klibc:master] Kbuild: Add a per-architecture option to disable exectable stacks
...tack
+
# klibc definitions
KLIBCDEFS += -D__KLIBC__=$(KLIBCMAJOR) \
-D__KLIBC_MINOR__=$(KLIBCMINOR) \
-D_BITSIZE=$(KLIBCBITSIZE)
KLIBCCPPFLAGS += $(KLIBCDEFS)
KLIBCCFLAGS += $(KLIBCCPPFLAGS) $(KLIBCREQFLAGS) $(KLIBCARCHREQFLAGS) \
- $(KLIBCOPTFLAGS) $(KLIBCWARNFLAGS)
+ $(KLIBCOPTFLAGS) $(KLIBCSTACKFLGS) $(KLIBCWARNFLAGS)
KLIBCAFLAGS += -D__ASSEMBLY__ $(KLIBCCFLAGS)
KLIBCSTRIPFLAGS += --strip-all -R .comment -R .note
diff --git a/usr/klibc/Kbuild b/usr/klibc/Kbuild
index bec9cdb4..c6338851 100644
--- a/usr/klibc/K...
2006 Jun 06
0
ppc32: "Relocation truncated to fit"
...r/klibc/arch/ppc/MCONFIG | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/usr/klibc/arch/ppc/MCONFIG b/usr/klibc/arch/ppc/MCONFIG
index 8b51e65..5410933 100644
--- a/usr/klibc/arch/ppc/MCONFIG
+++ b/usr/klibc/arch/ppc/MCONFIG
@@ -7,15 +7,20 @@
# accordingly.
#
-KLIBCOPTFLAGS = -Os
-KLIBCBITSIZE = 32
+gcc_m32_option := $(call cc-option, -m32, )
+
+KLIBCOPTFLAGS = -Os
+KLIBCLDFLAGS = -m elf32ppclinux
+KLIBCARCHREQFLAGS += $(gcc_m32_option)
+
+KLIBCBITSIZE = 32
# Extra linkflags when building the shared version of the library
# This address needs to...
2020 Aug 29
0
[klibc:riscv64-enable-relax] riscv64: Make linker relaxation work and enable it
...G
index 9bc7bd24..fdd6c92c 100644
--- a/usr/klibc/arch/riscv64/MCONFIG
+++ b/usr/klibc/arch/riscv64/MCONFIG
@@ -7,9 +7,6 @@
# accordingly.
#
-# We should get klibc.so and the executables to agree on what gp
-# should be. For now, disable gp-relative addressing.
-KLIBCLDFLAGS = --no-relax
KLIBCOPTFLAGS += -Os -fomit-frame-pointer
ifeq ($(DEBUG),y)
KLIBCOPTFLAGS += -g
@@ -21,3 +18,6 @@ KLIBCSHAREDFLAGS = $(LD_IMAGE_BASE_OPT) 0x00200000
# Kernel has never used stack trampolines
KLIBCEXECSTACK := n
+
+KLIBCEMAIN := -e _main
+KLIBCCRTSHARED += $(KLIBCOBJ)/arch/riscv64/_main.o...
2020 Aug 29
0
[klibc:riscv64-enable-relax] riscv64: Make linker relaxation work and enable it
...G
index 9bc7bd24..34061086 100644
--- a/usr/klibc/arch/riscv64/MCONFIG
+++ b/usr/klibc/arch/riscv64/MCONFIG
@@ -7,9 +7,6 @@
# accordingly.
#
-# We should get klibc.so and the executables to agree on what gp
-# should be. For now, disable gp-relative addressing.
-KLIBCLDFLAGS = --no-relax
KLIBCOPTFLAGS += -Os -fomit-frame-pointer
ifeq ($(DEBUG),y)
KLIBCOPTFLAGS += -g
@@ -18,6 +15,10 @@ KLIBCBITSIZE = 64
# Normal binaries start at 64 KB, so start the libary at 2 MB.
KLIBCSHAREDFLAGS = $(LD_IMAGE_BASE_OPT) 0x00200000
+KLIBCSHAREDFLAGS += --defsym '__global_pointer$$=0'...
2017 Dec 30
6
building debug version of klibc
Hello!
Can someone please help me in building debug version of klibc ?
I've cloned git://git.kernel.org/pub/scm/libs/klibc/klibc.git , but
failed to build it with debug info
added "-g" to HOSTCFLAGS in Makefile, but
$ make -j KLIBCKERNELSRC=`pwd`/../linux-2.6/usr
still strips every debug symbol , and i'm failed to change
scripts/Kbuild.klibc and Makefile to remove strip
2013 Dec 03
2
[PATCH 1/2] ppc64: Add ppc64le support
...FIG b/usr/klibc/arch/ppc64/MCONFIG
index cb66614..0294c44 100644
--- a/usr/klibc/arch/ppc64/MCONFIG
+++ b/usr/klibc/arch/ppc64/MCONFIG
@@ -7,10 +7,10 @@
# accordingly.
#
-KLIBCARCHREQFLAGS = -m64 -mcall-aixdesc
+KLIBCARCHREQFLAGS = -m64
+KLIBCARCHREQFLAGS += $(call cc-option, -mcall-aixdesc, )
KLIBCOPTFLAGS += -Os
KLIBCBITSIZE = 64
-KLIBCLDFLAGS = -m elf64ppc
# Extra linkflags when building the shared version of the library
# This address needs to be reachable using normal inter-module
diff --git a/usr/klibc/arch/ppc64/crt0.S b/usr/klibc/arch/ppc64/crt0.S
index c976d5c..250a84a 100...
2016 Apr 13
0
[PATCH 1/1] x32 support
...ts Petersson, AMD,
+# afterwards ripped off shamelessly by Denis Bychkov and made into x32 version.
+
+#
+# NOTE: -fno-asynchronous-unwind-tables produce significantly smaller
+# binaries (20% smaller), but makes the code completely useless for
+# debugging using gdb.
+#
+KLIBCARCHREQFLAGS = -mx32
+KLIBCOPTFLAGS += -Os -fomit-frame-pointer -mno-sse \
+ -falign-functions=1 -falign-jumps=1 -falign-loops=1
+ifeq ($(DEBUG),y)
+KLIBCOPTFLAGS += -g
+else
+KLIBCOPTFLAGS += -fno-asynchronous-unwind-tables
+endif
+KLIBCBITSIZE = 32
+KLIBCLDFLAGS = -m elf32_x86_64
+
+# Extra linkflags when buildin...
2020 Jul 25
0
[klibc:master] arch: Explicitly disable or enable executable stacks
...segment 0x06000000
+
+# Kernel uses dedicated page or vDSO for signal return since 2.5.55
+KLIBCEXECSTACK := n
diff --git a/usr/klibc/arch/ia64/MCONFIG b/usr/klibc/arch/ia64/MCONFIG
index d12c9bf2..f2a25395 100644
--- a/usr/klibc/arch/ia64/MCONFIG
+++ b/usr/klibc/arch/ia64/MCONFIG
@@ -12,3 +12,6 @@ KLIBCOPTFLAGS += -Os
KLIBCBITSIZE = 64
KLIBCSHAREDFLAGS = -T $(src)/arch/$(KLIBCARCH)/klibc.ld
+
+# Kernel has never used stack trampolines
+KLIBCEXECSTACK := n
diff --git a/usr/klibc/arch/m68k/MCONFIG b/usr/klibc/arch/m68k/MCONFIG
index 3f4bdae6..b57714e4 100644
--- a/usr/klibc/arch/m68k/MCONFIG
+++ b/usr...