diff options
author | Andy Fiddaman <omnios@citrus-it.co.uk> | 2021-11-20 21:28:57 +0000 |
---|---|---|
committer | Andy Fiddaman <omnios@citrus-it.co.uk> | 2021-12-09 15:37:51 +0000 |
commit | 3cac7b0d73edf3f2674ad0f64d1fff3d2e59ae8c (patch) | |
tree | e2e4d834b65e02fe2729323c23c91e901302c262 /usr/src/uts/intel | |
parent | cab61dfb78becc8381714d6b7c413391d89e1669 (diff) | |
download | illumos-gate-3cac7b0d73edf3f2674ad0f64d1fff3d2e59ae8c.tar.gz |
14255 gcc10 removes symbols from genunix, impeding CTF uniquification
Reviewed by: Jason King <jason.brian.king+illumos@gmail.com>
Reviewed by: Toomas Soome <tsoome@me.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/uts/intel')
-rw-r--r-- | usr/src/uts/intel/genunix/Makefile | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/usr/src/uts/intel/genunix/Makefile b/usr/src/uts/intel/genunix/Makefile index 570674f903..bd97c023ce 100644 --- a/usr/src/uts/intel/genunix/Makefile +++ b/usr/src/uts/intel/genunix/Makefile @@ -24,6 +24,7 @@ # Use is subject to license terms. # # Copyright 2019 Joyent, Inc. +# Copyright 2021 OmniOS Community Edition (OmniOSce) Association. # # @@ -89,6 +90,13 @@ CERRWARN += $(CNOWARN_UNINIT) CERRWARN += -_gcc=-Wno-clobbered CERRWARN += -_gcc=-Wno-empty-body +# +# Some compilers default to stripping unused debug information from +# objects. Since genunix is used as the uniquification source for CTF data +# in the kernel, explicitly keep as much debug data as possible. +# +CFLAGS += $(CALLSYMS) + # very hairy $(OBJS_DIR)/u8_textprep.o := SMATCH=off |