2006-12-19 00:17:44 +01:00
|
|
|
Make debugedit build without dwarf.h. Also fixes a logic bug for ppc.
|
|
|
|
|
2008-09-12 20:37:28 +02:00
|
|
|
Index: tools/debugedit.c
|
|
|
|
===================================================================
|
|
|
|
--- tools/debugedit.c.orig
|
|
|
|
+++ tools/debugedit.c
|
2006-12-19 00:17:44 +01:00
|
|
|
@@ -34,7 +34,37 @@
|
|
|
|
#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
|
|
|
|
|
2008-09-12 20:37:28 +02:00
|
|
|
#include <beecrypt/beecrypt.h>
|
2006-12-19 00:17:44 +01:00
|
|
|
|
2008-09-12 20:37:28 +02:00
|
|
|
@@ -1346,7 +1376,6 @@ handle_build_id (DSO *dso, Elf_Data *bui
|
|
|
|
or Elf64 object, only that we are consistent in what bits feed the
|
|
|
|
hash so it comes out the same for the same file contents. */
|
|
|
|
{
|
|
|
|
- inline void process (const void *data, size_t size);
|
|
|
|
inline void process (const void *data, size_t size)
|
|
|
|
{
|
|
|
|
memchunk chunk = { .data = (void *) data, .size = size };
|
|
|
|
Index: tools/Makefile.am
|
|
|
|
===================================================================
|
|
|
|
--- tools/Makefile.am.orig
|
|
|
|
+++ tools/Makefile.am
|
|
|
|
@@ -39,7 +39,7 @@ debugedit_SOURCES = debugedit.c hashtab.
|
|
|
|
#debugedit_LDADD = @LDFLAGS_STATIC@ \
|
|
|
|
debugedit_LDADD = \
|
|
|
|
@WITH_LIBELF_LIB@ \
|
|
|
|
- @WITH_BEECRYPT_LIB@ \
|
|
|
|
+ $(top_builddir)/rpmdb/librpmdb.la \
|
|
|
|
@WITH_POPT_LIB@
|
|
|
|
|
|
|
|
javadeps_SOURCES = javadeps.c
|