Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F144401793
D11314.id29974.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
854 B
Referenced Files
None
Subscribers
None
D11314.id29974.diff
View Options
Index: sys/conf/kern.pre.mk
===================================================================
--- sys/conf/kern.pre.mk
+++ sys/conf/kern.pre.mk
@@ -114,6 +114,10 @@
# can override the others.
CFLAGS+= ${CONF_CFLAGS}
+.if ${LINKER_TYPE} != "binutils" || ${LINKER_VERSION} > 21750
+LDFLAGS+= -Wl,--build-id=sha1
+.endif
+
# Optional linting. This can be overridden in /etc/make.conf.
LINTFLAGS= ${LINTOBJKERNFLAGS}
Index: sys/conf/kmod.mk
===================================================================
--- sys/conf/kmod.mk
+++ sys/conf/kmod.mk
@@ -125,6 +125,10 @@
CFLAGS+= -fno-common
LDFLAGS+= -d -warn-common
+.if ${LINKER_TYPE} != "binutils" || ${LINKER_VERSION} > 21750
+LDFLAGS+= -Wl,--build-id=sha1
+.endif
+
CFLAGS+= ${DEBUG_FLAGS}
.if ${MACHINE_CPUARCH} == amd64
CFLAGS+= -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 9, 6:19 AM (16 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28547056
Default Alt Text
D11314.id29974.diff (854 B)
Attached To
Mode
D11314: Add build-id to kernel and module link commandlines
Attached
Detach File
Event Timeline
Log In to Comment