summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl@lucon.org>2001-07-14 16:36:25 +0000
committerH.J. Lu <hjl@lucon.org>2001-07-14 16:36:25 +0000
commite6a1fe4e24dac5167c3df68dbb5e813ecf49ccb4 (patch)
treea05527931f5710a15858acb6639fb9c2a86a8a0c
parent0adb3e068902cfe2b47d41e4572fd931e95fcd3e (diff)
downloadbinutils-redhat-e6a1fe4e24dac5167c3df68dbb5e813ecf49ccb4.tar.gz
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.
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/emultempl/elf32.em5
2 files changed, 10 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 3c16d2f64e..284c5aec5f 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -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
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
index 67e0d250b2..a305888c3e 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;
}