From a7f49d812fee7df00def7a127aa674ab64e97aaf Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sat, 11 Oct 2003 12:32:18 +0000 Subject: [PATCH] * section.c (bfd_get_section_size_before_reloc): Ignore reloc_done. * bfd-in2.h: Regenerate. --- bfd/ChangeLog | 4 ++++ bfd/bfd-in2.h | 3 +-- bfd/section.c | 3 +-- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index ee6b819bbb4..5abc746e286 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2003-10-11 Alan Modra + + * section.c (bfd_get_section_size_before_reloc): Ignore reloc_done. + 2003-10-10 H.J. Lu * Makefile.am: Run "make dep-am". diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index fcbe98afaaa..034330fd92f 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -1421,8 +1421,7 @@ extern const struct symbol_cache_entry * const bfd_com_symbol; extern const struct symbol_cache_entry * const bfd_und_symbol; extern const struct symbol_cache_entry * const bfd_ind_symbol; #define bfd_get_section_size_before_reloc(section) \ - ((section)->reloc_done ? (abort (), (bfd_size_type) 1) \ - : (section)->_raw_size) + ((section)->_raw_size) #define bfd_get_section_size_after_reloc(section) \ ((section)->reloc_done ? (section)->_cooked_size \ : (abort (), (bfd_size_type) 1)) diff --git a/bfd/section.c b/bfd/section.c index 5347c2b3f85..5842748f72b 100644 --- a/bfd/section.c +++ b/bfd/section.c @@ -558,8 +558,7 @@ CODE_FRAGMENT .extern const struct symbol_cache_entry * const bfd_und_symbol; .extern const struct symbol_cache_entry * const bfd_ind_symbol; .#define bfd_get_section_size_before_reloc(section) \ -. ((section)->reloc_done ? (abort (), (bfd_size_type) 1) \ -. : (section)->_raw_size) +. ((section)->_raw_size) .#define bfd_get_section_size_after_reloc(section) \ . ((section)->reloc_done ? (section)->_cooked_size \ . : (abort (), (bfd_size_type) 1)) -- 2.30.2