diff options
author | Mark Wielaard <mjw@redhat.com> | 2011-04-24 17:53:38 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2011-04-26 14:15:27 +0200 |
commit | bb9d1b4bf225a604ceb69130f5a54a66f95b525d (patch) | |
tree | a5b40850d9404510d6e56f26240d18073979895c /libebl/libebl.h | |
parent | ed52618203ac78179e3a0cf36db5bdca8958da1d (diff) | |
download | android_external_elfutils-bb9d1b4bf225a604ceb69130f5a54a66f95b525d.tar.gz android_external_elfutils-bb9d1b4bf225a604ceb69130f5a54a66f95b525d.tar.bz2 android_external_elfutils-bb9d1b4bf225a604ceb69130f5a54a66f95b525d.zip |
Add support for printing SDT elf notes.
libebl/
* libebl.h (ebl_object_note_type_name): Add const char *name arg.
* eblhooks.h (object_note_type_name): Likewise.
* eblopenbackend.c (default_object_note_type_name): Likewise.
* eblobjnotetypename.c (ebl_object_note_type_name): Likewise.
And print version if name is "stapsdt".
* eblobjnote.c (ebl_object_note): Add output for "stapsdt" notes.
src/
* readelf.c (handle_notes_data): Call ebl_object_note_type_name
with note name.
Diffstat (limited to 'libebl/libebl.h')
-rw-r--r-- | libebl/libebl.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libebl/libebl.h b/libebl/libebl.h index b4307282..3a334024 100644 --- a/libebl/libebl.h +++ b/libebl/libebl.h @@ -184,8 +184,9 @@ extern const char *ebl_core_note_type_name (Ebl *ebl, uint32_t type, char *buf, size_t len); /* Return name of the note section type for an object file. */ -extern const char *ebl_object_note_type_name (Ebl *ebl, uint32_t type, - char *buf, size_t len); +extern const char *ebl_object_note_type_name (Ebl *ebl, const char *name, + uint32_t type, char *buf, + size_t len); /* Print information about object note if available. */ extern void ebl_object_note (Ebl *ebl, const char *name, uint32_t type, |