File: fix-debug-symbol-missing.patch

package info (click to toggle)
coreboot 25.09%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 217,084 kB
  • sloc: ansic: 1,685,313; sh: 15,803; python: 11,200; perl: 10,186; asm: 8,519; makefile: 5,179; cpp: 4,724; pascal: 2,327; ada: 1,985; yacc: 1,264; lex: 731; sed: 75; ruby: 5; lisp: 5; awk: 4
file content (40 lines) | stat: -rw-r--r-- 1,101 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From: Ahmad Khalifa <ahmad@khalifa.ws>
Date: Fri, 15 Nov 2024 19:40:54 +0000
Forwarded: not-needed
Subject: fix debug symbols missing in some binaries

This does not fix all of them, but only mentioned ones

--- a/util/bucts/Makefile
+++ b/util/bucts/Makefile
@@ -4,7 +4,7 @@
 TARGET=bucts
 VERSION:=$(shell git describe)
 WERROR=-Werror
-CFLAGS=-O2 -Wall -Wextra -Wshadow ${WERROR}
+CFLAGS=-g -D_FORTIFY_SOURCE=2 -O2 -Wall -Wextra -Wshadow ${WERROR}

 ifeq ($(shell uname), FreeBSD)
 	CFLAGS += -I/usr/local/include
--- a/util/ectool/Makefile
+++ b/util/ectool/Makefile
@@ -2,7 +2,7 @@

 CC ?= gcc
 WERROR=-Werror
-CFLAGS = -O2 -Wall -Wextra -Wshadow $(WERROR)
+CFLAGS = -g -D_FORTIFY_SOURCE=2 -O2 -Wall -Wextra -Wshadow $(WERROR)
 PROGRAM = ectool
 INSTALL ?= /usr/bin/env install
 PREFIX  ?= /usr/local
--- a/util/pmh7tool/Makefile
+++ b/util/pmh7tool/Makefile
@@ -1,7 +1,7 @@
 ## SPDX-License-Identifier: GPL-2.0-only

 CC = gcc
-CFLAGS = -O2 -Wall -Wextra -Werror
+CFLAGS = -g -D_FORTIFY_SOURCE=2 -O2 -Wall -Wextra -Werror
 PROGRAM = pmh7tool
 INSTALL = /usr/bin/env install
 PREFIX	= /usr/local