summaryrefslogtreecommitdiffstats
path: root/libdw
diff options
context:
space:
mode:
Diffstat (limited to 'libdw')
-rw-r--r--libdw/ChangeLog13
-rw-r--r--libdw/dwarf_begin_elf.c8
-rw-r--r--libdw/libdw.h2
3 files changed, 22 insertions, 1 deletions
diff --git a/libdw/ChangeLog b/libdw/ChangeLog
index 487e34a7..06c737bb 100644
--- a/libdw/ChangeLog
+++ b/libdw/ChangeLog
@@ -889,6 +889,10 @@
* Makefile.am (known-dwarf.h): Run gawk on config/known-dwarf.awk.
+2011-07-20 Mark Wielaard <[email protected]>
+
+ * dwarf_begin_elf.c: Add fallback for be64toh if not defined.
+
2011-07-14 Mark Wielaard <[email protected]>
* libdw.h (dwarf_offdie): Fix documentation to mention .debug_info.
@@ -1248,6 +1252,10 @@
* dwarf_hasattr_integrate.c: Integrate DW_AT_specification too.
+2009-08-17 Roland McGrath <[email protected]>
+
+ * libdw.h: Disable extern inlines for GCC 4.2.
+
2009-08-10 Roland McGrath <[email protected]>
* dwarf_getscopevar.c: Use dwarf_diename.
@@ -2016,6 +2024,11 @@
2005-05-31 Roland McGrath <[email protected]>
+ * Makefile.am (WEXTRA): New variable, substituted by configure.
+ (AM_CFLAGS): Use it in place of -Wextra.
+
+2005-05-31 Roland McGrath <[email protected]>
+
* dwarf_formref_die.c (dwarf_formref_die): Add CU header offset to
formref offset.
diff --git a/libdw/dwarf_begin_elf.c b/libdw/dwarf_begin_elf.c
index 4e0d590d..a6616a19 100644
--- a/libdw/dwarf_begin_elf.c
+++ b/libdw/dwarf_begin_elf.c
@@ -47,6 +47,14 @@
#if USE_ZLIB
# include <endian.h>
# define crc32 loser_crc32
+# ifndef be64toh
+# include <byteswap.h>
+# if __BYTE_ORDER == __LITTLE_ENDIAN
+# define be64toh(x) bswap_64 (x)
+# else
+# define be64toh(x) (x)
+# endif
+# endif
# include <zlib.h>
# undef crc32
#endif
diff --git a/libdw/libdw.h b/libdw/libdw.h
index 473e1a25..5a511cd5 100644
--- a/libdw/libdw.h
+++ b/libdw/libdw.h
@@ -1004,7 +1004,7 @@ extern Dwarf_OOM dwarf_new_oom_handler (Dwarf *dbg, Dwarf_OOM handler);
/* Inline optimizations. */
-#ifdef __OPTIMIZE__
+#if defined __OPTIMIZE__ && !(__GNUC__ == 4 && __GNUC_MINOR__ == 2)
/* Return attribute code of given attribute. */
__libdw_extern_inline unsigned int
dwarf_whatattr (Dwarf_Attribute *attr)