aboutsummaryrefslogtreecommitdiff
path: root/ld/emultempl
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2001-07-14 16:36:25 +0000
committerH.J. Lu <hjl.tools@gmail.com>2001-07-14 16:36:25 +0000
commit5030876b5d24547ba717ad06408848145374e276 (patch)
tree906bb3a9ae5a459da32dd88fc7e258612788c4f7 /ld/emultempl
parentdfa249fb263f24f31fc88a3753b2eb26ffc5219e (diff)
downloadgdb-5030876b5d24547ba717ad06408848145374e276.zip
gdb-5030876b5d24547ba717ad06408848145374e276.tar.gz
gdb-5030876b5d24547ba717ad06408848145374e276.tar.bz2
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.
Diffstat (limited to 'ld/emultempl')
-rw-r--r--ld/emultempl/elf32.em5
1 files changed, 4 insertions, 1 deletions
diff --git a/ld/emultempl/elf32.em b/ld/emultempl/elf32.em
index 67e0d25..a305888 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;
}