From b7bdd255f8de9cf6df6f63776c9f97575e435198 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 19 Jul 2007 01:48:40 -0700 Subject: [PATCH] --- yaml --- r: 61615 b: refs/heads/master c: 18991197b4b588255ccabf472ebc84db7b66a19c h: refs/heads/master i: 61613: e4784da075a0abc05400a2e7729a6d4de0d4069d 61611: ac58aa78194bb5fc3c36595f6d08f40727a68f3e 61607: 2d82dec8fdfa7db632ddc6ed838158478ffdc944 61599: 609983e1a99db716fbc2d4d6e5ab4f3f36665ab2 v: v3 --- [refs] | 2 +- trunk/Makefile | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 1f3ded236fd4..6dfcbd858cba 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: da1a679cde9b12d6e331f43d2d92a234f2d1f9b0 +refs/heads/master: 18991197b4b588255ccabf472ebc84db7b66a19c diff --git a/trunk/Makefile b/trunk/Makefile index ddbfcac299c1..eccb03b88b8d 100644 --- a/trunk/Makefile +++ b/trunk/Makefile @@ -514,6 +514,12 @@ CFLAGS += $(call cc-option,-Wdeclaration-after-statement,) # disable pointer signed / unsigned warnings in gcc 4.0 CFLAGS += $(call cc-option,-Wno-pointer-sign,) +# Use --build-id when available. +LDFLAGS_BUILD_ID = $(patsubst -Wl$(comma)%,%,\ + $(call ld-option, -Wl$(comma)--build-id,)) +LDFLAGS_MODULE += $(LDFLAGS_BUILD_ID) +LDFLAGS_vmlinux += $(LDFLAGS_BUILD_ID) + # Default kernel image to build when no specific target is given. # KBUILD_IMAGE may be overruled on the command line or # set in the environment