+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
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
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",