* hpux-core.c (hpux_core_core_file_p): Use offsetof macro in calls to

make_bfd_asection.
This commit is contained in:
Dave Anglin 2004-11-20 16:54:15 +00:00
parent f1bc22da72
commit 3dd2fcf06b
2 changed files with 17 additions and 9 deletions

View file

@ -1,3 +1,8 @@
2004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* hpux-core.c (hpux_core_core_file_p): Use offsetof macro in calls to
make_bfd_asection.
2004-11-19 Alan Modra <amodra@bigpond.net.au>
* elf32-arm.c (elf32_arm_finish_dynamic_sections): Warning fix.

View file

@ -246,7 +246,8 @@ hpux_core_core_file_p (abfd)
if (!make_bfd_asection (abfd, ".reg",
SEC_HAS_CONTENTS,
core_header.len,
(int) &proc_info - (int) & proc_info.hw_regs,
(bfd_vma) offsetof (struct proc_info,
hw_regs),
2))
goto fail;
}
@ -259,7 +260,8 @@ hpux_core_core_file_p (abfd)
if (!make_bfd_asection (abfd, ".reg",
SEC_HAS_CONTENTS,
core_header.len,
(int) &proc_info - (int) & proc_info.hw_regs,
(bfd_vma)offsetof (struct proc_info,
hw_regs),
2))
goto fail;
}
@ -268,7 +270,8 @@ hpux_core_core_file_p (abfd)
if (!make_bfd_asection (abfd, secname,
SEC_HAS_CONTENTS,
core_header.len,
(int) &proc_info - (int) & proc_info.hw_regs,
(bfd_vma) offsetof (struct proc_info,
hw_regs),
2))
goto fail;
}