summaryrefslogtreecommitdiffstats
path: root/tools/dwarves/patches/100-reproducible-builds.patch
blob: d8cbd114c61e4852f0e4457bbb97827711334957 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/pahole.c
+++ b/pahole.c
@@ -3681,6 +3681,9 @@ int main(int argc, char *argv[])
 		goto out;
 	}
 
+	if (getenv("SOURCE_DATE_EPOCH") || getenv("KBUILD_BUILD_TIMESTAMP"))
+		conf_load.reproducible_build = true;
+
 	if (dwarves__init()) {
 		fputs("pahole: insufficient memory\n", stderr);
 		goto out;