From 96982dc91f54359a358c2083d22cead64f175f52 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 4 Apr 2005 16:11:02 +0000 Subject: [PATCH] 2005-04-04 H.J. Lu * elf-bfd.h (elf_section_data): Use (sec) instead of sec. --- bfd/ChangeLog | 4 ++++ bfd/elf-bfd.h | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 69ecc2ee987..15cd069e096 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2005-04-04 H.J. Lu + + * elf-bfd.h (elf_section_data): Use (sec) instead of sec. + 2005-04-03 Fred Fish * dwarf2.c (struct dwarf2_debug): Add dwarf_ranges_buffer and diff --git a/bfd/elf-bfd.h b/bfd/elf-bfd.h index 9d3871b0436..e8cd8e0fa26 100644 --- a/bfd/elf-bfd.h +++ b/bfd/elf-bfd.h @@ -1115,7 +1115,7 @@ struct bfd_elf_section_data void *sec_info; }; -#define elf_section_data(sec) ((struct bfd_elf_section_data*)sec->used_by_bfd) +#define elf_section_data(sec) ((struct bfd_elf_section_data*)(sec)->used_by_bfd) #define elf_linked_to_section(sec) (elf_section_data(sec)->linked_to) #define elf_section_type(sec) (elf_section_data(sec)->this_hdr.sh_type) #define elf_section_flags(sec) (elf_section_data(sec)->this_hdr.sh_flags) -- 2.30.2