2005-10-10 H.J. Lu <hongjiu.lu@intel.com>

PR binutils/1436
	* readelf.c (ABSADDR): New.
	(dump_ia64_unwind): Use ABSADDR to get the unwind info address.
This commit is contained in:
H.J. Lu 2005-10-10 18:42:11 +00:00
parent fa4ec3f59f
commit 1949de15f0
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2005-10-10 H.J. Lu <hongjiu.lu@intel.com>
PR binutils/1436
* readelf.c (ABSADDR): New.
(dump_ia64_unwind): Use ABSADDR to get the unwind info address.
2005-10-10 Thomas Weidenmueller <w3seek@reactos.com>
* resbin.c (res_to_bin_accelerator): Place the terminating NUL at

View File

@ -4580,6 +4580,11 @@ struct absaddr
bfd_vma offset;
};
#define ABSADDR(a) \
((a).section \
? section_headers [(a).section].sh_addr + (a).offset \
: (a).offset)
struct ia64_unw_aux_info
{
struct ia64_unw_table_entry
@ -4672,7 +4677,7 @@ dump_ia64_unwind (struct ia64_unw_aux_info *aux)
printf ("], info at +0x%lx\n",
(unsigned long) (tp->info.offset - aux->seg_base));
head = aux->info + (tp->info.offset - aux->info_addr);
head = aux->info + (ABSADDR (tp->info) - aux->info_addr);
stamp = byte_get ((unsigned char *) head, sizeof (stamp));
printf (" v%u, flags=0x%lx (%s%s), len=%lu bytes\n",