[PATCH] Handle new core note types in EBL
by Petr Machata
This is to give names to the new core note type values that were
introduced in the previous commit.
Signed-off-by: Petr Machata <pmachata(a)redhat.com>
---
libebl/ChangeLog | 6 ++++++
libebl/eblcorenotetypename.c | 13 ++++++++++++-
2 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/libebl/ChangeLog b/libebl/ChangeLog
index af819a2..f12613a 100644
--- a/libebl/ChangeLog
+++ b/libebl/ChangeLog
@@ -1,3 +1,9 @@
+2012-08-30 Petr Machata <pmachata(a)redhat.com>
+
+ * eblcorenotetypename.c: Handle PPC_VSX, X86_XSTATE,
+ S390_HIGH_GPRS, S390_TIMER, S390_TODCMP, S390_TODPREG, S390_CTRS,
+ S390_PREFIX, S390_LAST_BREAK, S390_SYSTEM_CALL, and ARM_VFP.
+
2012-08-22 Jeff Kenton <jkenton(a)tilera.com>
* eblopenbackend.c (machines): Add tilegx.
diff --git a/libebl/eblcorenotetypename.c b/libebl/eblcorenotetypename.c
index c4c0c9c..21fff73 100644
--- a/libebl/eblcorenotetypename.c
+++ b/libebl/eblcorenotetypename.c
@@ -1,5 +1,5 @@
/* Return note type name.
- Copyright (C) 2002, 2007, 2008 Red Hat, Inc.
+ Copyright (C) 2002, 2007, 2008, 2012 Red Hat, Inc.
This file is part of elfutils.
Written by Ulrich Drepper <drepper(a)redhat.com>, 2002.
@@ -78,8 +78,19 @@ ebl_core_note_type_name (ebl, type, buf, len)
KNOWNSTYPE (PRXFPREG);
KNOWNSTYPE (PPC_VMX);
KNOWNSTYPE (PPC_SPE);
+ KNOWNSTYPE (PPC_VSX);
KNOWNSTYPE (386_TLS);
KNOWNSTYPE (386_IOPERM);
+ KNOWNSTYPE (X86_XSTATE);
+ KNOWNSTYPE (S390_HIGH_GPRS);
+ KNOWNSTYPE (S390_TIMER);
+ KNOWNSTYPE (S390_TODCMP);
+ KNOWNSTYPE (S390_TODPREG);
+ KNOWNSTYPE (S390_CTRS);
+ KNOWNSTYPE (S390_PREFIX);
+ KNOWNSTYPE (S390_LAST_BREAK);
+ KNOWNSTYPE (S390_SYSTEM_CALL);
+ KNOWNSTYPE (ARM_VFP);
#undef KNOWNSTYPE
default:
--
1.7.6.5
11 years, 7 months
elfutils 0.155 released
by Mark Wielaard
A new release of elfutils is available now at:
https://fedorahosted.org/releases/e/l/elfutils/0.155/
* NEWS *
Version 0.155
libelf: elf*_xlatetomd now works for cross-endian ELF note data.
elf_getshdr now works consistently on non-mmaped ELF files after
calling elf_cntl(ELF_C_FDREAD).
Implement support for ar archives with 64-bit symbol table.
libdw: dwarf.h corrected the DW_LANG_ObjC constant name (was DW_LANG_Objc).
Any existing sources using the old name will have to be updated.
Add DW_MACRO_GNU .debug_macro type encodings constants, DW_ATE_UTF
and DW_OP_GNU_parameter_ref to dwarf.h.
Experimental support for DWZ multifile forms DW_FORM_GNU_ref_alt
and DW_FORM_GNU_strp_alt. Disabled by default. Use configure
--enable-dwz to test it.
readelf: Add .debug_macro parsing support.
Add .gdb_index version 7 parsing support.
Recognize DW_OP_GNU_parameter_ref.
backends: Add support for Tilera TILE-Gx processor.
translations: Updated Ukrainian translation.
* GIT SHORTLOG *
Jan Pokorný (1):
Update main bugzilla URL
Jeff Kenton (1):
Add support for Tilera TILE-Gx processor.
Mark Wielaard (27):
Add low-level support for .debug_macro.
dwarf.h: Add DW_MACRO_GNU .debug_macro type encodings.
readelf: Add .gdb_index version 7 support.
readelf: Add .debug_macro parsing support.
Add ppc testcase for elf32_xlatetom.c fix.
Merge branch 'gdb_index7'
Merge branch 'debug_macro'
test_cleanup run-unstrip-n.sh and add testcore-rtlib-ppc.bz2 to EXTRA_DIST.
test: run-elflint-self.sh ebl shared libraries are under backends now.
elf_getshdr should work for elf->flags & ELF_F_MALLOCED.
libdw: Add DWARF4 DW_ATE_UTF.
Correct spelling of DW_LANG_ObjC in dwarf.h.
Add DW_OP_GNU_parameter_ref to dwarf.h and handle it in readelf.
config: known-dwarf.awk Fix "Generated by" header.
readelf: Use DW_LANG_ObjC and known[op].
tests: Introduce testrun_on_self, use it in run-elflint-self.sh
tests: Add run-nm-self.sh and run-readelf-self.sh tests.
libdw: Add support for DWZ multifile forms DW_FORM_GNU_ref_alt/strp_alt.
elf32_checksum.c: Removed unused ebl_debugscn_p define and confusing comment.
Rewrite DWARF string functions using known-dwarf macros.
Add 0.155 NEWS entries for libelf, libdw and readelf.
Use ELF in NEWS.
Don't include dwz support by default.
tests: Add testfile60.bz2 to EXTRA_DIST.
readelf.c (register_info): Handle loc == NULL.
readelf.c (print_debug_macro_section): Print offset as PRIx64.
Prepare 0.155 release.
Mike Frysinger (1):
tests: only compile test programs when running test
Petr Machata (5):
elf*_xlatetom: do not check ELF_T_NHDR has integer number of records
Reorder formatting string arguments so that there are no gaps in references
Implement support for archives with 64-bit symbol table
Test case for handling archives with 64-bit symbol table
Fix formatting string in readelf
Roland McGrath (2):
Add a rule to make build failure w/o --enable-maintainer-mode clearer.
Update elf.h from glibc.
Yuri Chornoivan (1):
Update Ukrainian translation.
11 years, 7 months
Two small readelf.c fixes
by Mark Wielaard
Hi,
While doing release testing for 0.155 I found two small issues in
readelf.c. The first is triggered by the new readelf-self testcase
on ARM. register_info is called by print_cfa_program with loc being
NULL, but didn't check for that possibility. The second is a compile
error on s390 because we were using %z to print the offset in
print_debug_macro_section which isn't correct, but only shows on s390
because size_t is unsigned long (not int) there.
The attached patches fix these issues.
I'll write a more direct testcase for the first issue after the
release because the underlying issue really is an unknown DWARF
register number on the architecture.
Cheers,
Mark
11 years, 8 months