2009-08-28 15:54:03 +02:00
|
|
|
Make debugedit build without dwarf.h
|
2006-12-19 00:17:44 +01:00
|
|
|
|
2017-01-19 16:41:55 +01:00
|
|
|
--- ./Makefile.am.orig 2016-10-21 09:44:00.299962090 +0000
|
|
|
|
+++ ./Makefile.am 2017-01-19 10:25:42.252270176 +0000
|
|
|
|
@@ -155,7 +155,6 @@ rpm2archive_LDADD += @WITH_NSS_LIB@ @WIT
|
2011-05-16 18:07:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
if LIBELF
|
|
|
|
-if LIBDWARF
|
|
|
|
rpmconfig_SCRIPTS += scripts/find-debuginfo.sh
|
|
|
|
|
|
|
|
rpmlibexec_PROGRAMS += debugedit
|
2017-01-19 16:41:55 +01:00
|
|
|
@@ -172,7 +171,6 @@ rpmlibexec_PROGRAMS += sepdebugcrcfix
|
|
|
|
sepdebugcrcfix_SOURCES = tools/sepdebugcrcfix.c
|
|
|
|
sepdebugcrcfix_LDADD = @WITH_LIBELF_LIB@
|
2011-05-16 18:07:44 +02:00
|
|
|
endif
|
|
|
|
-endif
|
|
|
|
|
2012-08-28 15:31:44 +02:00
|
|
|
rpmlibexec_PROGRAMS += rpmdeps
|
|
|
|
rpmdeps_SOURCES = tools/rpmdeps.c
|
2017-01-19 16:41:55 +01:00
|
|
|
--- ./tools/debugedit.c.orig 2016-10-13 07:12:21.471778488 +0000
|
|
|
|
+++ ./tools/debugedit.c 2017-01-19 10:25:42.252270176 +0000
|
2009-08-28 15:54:03 +02:00
|
|
|
@@ -37,7 +37,37 @@
|
2006-12-19 00:17:44 +01:00
|
|
|
#include <popt.h>
|
|
|
|
|
|
|
|
#include <gelf.h>
|
|
|
|
-#include <dwarf.h>
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+/* some defines taken from the dwarf standard */
|
|
|
|
+
|
|
|
|
+#define DW_TAG_compile_unit 0x11
|
|
|
|
+
|
|
|
|
+#define DW_AT_name 0x03
|
|
|
|
+#define DW_AT_stmt_list 0x10
|
|
|
|
+#define DW_AT_comp_dir 0x1b
|
|
|
|
+
|
|
|
|
+#define DW_FORM_addr 0x01
|
|
|
|
+#define DW_FORM_block2 0x03
|
|
|
|
+#define DW_FORM_block4 0x04
|
|
|
|
+#define DW_FORM_data2 0x05
|
|
|
|
+#define DW_FORM_data4 0x06
|
|
|
|
+#define DW_FORM_data8 0x07
|
|
|
|
+#define DW_FORM_string 0x08
|
|
|
|
+#define DW_FORM_block 0x09
|
|
|
|
+#define DW_FORM_block1 0x0a
|
|
|
|
+#define DW_FORM_data1 0x0b
|
|
|
|
+#define DW_FORM_flag 0x0c
|
|
|
|
+#define DW_FORM_sdata 0x0d
|
|
|
|
+#define DW_FORM_strp 0x0e
|
|
|
|
+#define DW_FORM_udata 0x0f
|
|
|
|
+#define DW_FORM_ref_addr 0x10
|
|
|
|
+#define DW_FORM_ref1 0x11
|
|
|
|
+#define DW_FORM_ref2 0x12
|
|
|
|
+#define DW_FORM_ref4 0x13
|
|
|
|
+#define DW_FORM_ref8 0x14
|
|
|
|
+#define DW_FORM_ref_udata 0x15
|
|
|
|
+#define DW_FORM_indirect 0x16
|
|
|
|
|
2009-08-28 15:54:03 +02:00
|
|
|
#include <rpm/rpmio.h>
|
|
|
|
#include <rpm/rpmpgp.h>
|