2001-07-14 H.J. Lu <hjl@gnu.org>
authorH.J. Lu <hjl.tools@gmail.com>
Sat, 14 Jul 2001 16:36:25 +0000 (16:36 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Sat, 14 Jul 2001 16:36:25 +0000 (16:36 +0000)
* emultempl/elf32.em (output_prev_sec_find): Never return
bfd_abs_section_ptr, bfd_com_section_ptr nor
bfd_und_section_ptr.

ld/ChangeLog
ld/emultempl/elf32.em

index 3c16d2f64eff4e6cf6a3cccaa6a7041fdb359c48..284c5aec5fe645eb177fa7a6cf41ace1e64bad3c 100644 (file)
@@ -1,3 +1,9 @@
+2001-07-14  H.J. Lu  <hjl@gnu.org>
+
+       * 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  <nickc@cambridge.redhat.com>
 
        * Makefile.am (em32relf.c): Chnage dependencu from generic.em to
index 67e0d250b22a9f162155934c4bf017071451766d..a305888c3eb7d1a9737de10e8c8c58d0b5ba7af5 100644 (file)
@@ -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;
     }