From: H.J. Lu Date: Sat, 14 Jul 2001 16:36:25 +0000 (+0000) Subject: 2001-07-14 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5030876b5d24547ba717ad06408848145374e276;p=binutils-gdb.git 2001-07-14 H.J. Lu * emultempl/elf32.em (output_prev_sec_find): Never return bfd_abs_section_ptr, bfd_com_section_ptr nor bfd_und_section_ptr. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 3c16d2f64ef..284c5aec5fe 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,9 @@ +2001-07-14 H.J. Lu + + * emultempl/elf32.em (output_prev_sec_find): Never return + bfd_abs_section_ptr, bfd_com_section_ptr nor + bfd_und_section_ptr. + 2001-07-14 Nick Clifton * Makefile.am (em32relf.c): Chnage dependencu from generic.em to diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em index 67e0d250b22..a305888c3eb 100644 --- a/ld/emultempl/elf32.em +++ b/ld/emultempl/elf32.em @@ -1024,7 +1024,10 @@ output_prev_sec_find (os) lookup = &u->output_section_statement; if (lookup == os) break; - if (lookup->bfd_section != NULL) + if (lookup->bfd_section != NULL + && lookup->bfd_section != bfd_abs_section_ptr + && lookup->bfd_section != bfd_com_section_ptr + && lookup->bfd_section != bfd_und_section_ptr) s = lookup->bfd_section; }