ptools/output-l_addr.diff

26 lines
830 B
Diff
Raw Normal View History

diff --git a/src/pbuildid.c b/src/pbuildid.c
index 3e480aa..445d6bf 100644
--- a/src/pbuildid.c
+++ b/src/pbuildid.c
@@ -234,7 +234,7 @@ static void so_print_buildid(struct core_map_info *core_map, const char *name,
note_phdr->p_filesz);
if (len) {
unsigned int i;
- printf("%s ", name);
+ printf("%s %#" PRIx64 " ", name, ehdr_addr);
for (i = 0; i < len; i++)
printf("%02" PRIx8, build_id[i]);
printf("\n");
@@ -915,8 +915,9 @@ static int process_core(Elf *elf, GElf_Ehdr *ehdr)
nphdr->p_filesz);
if (len) {
unsigned int i;
- printf("%s ",
- core_fname ? core_fname : "");
+ printf("%s %#" PRIx64 " ",
+ core_fname ? core_fname : "",
+ core_l_addr);
for (i = 0; i < len; i++)
printf("%02" PRIx8,
build_id[i]);