From bbb9d913093c24848f69b435171160226eac614b Mon Sep 17 00:00:00 2001 From: sewardj Date: Mon, 12 Feb 2001 13:30:15 +0000 Subject: [PATCH] [project @ 2001-02-12 13:30:15 by sewardj] ocGetNames_ELF: don't load symbols in "special" (bogus!) sections >= SHN_LORESERVE, since they don't exist. --- ghc/rts/Linker.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ghc/rts/Linker.c b/ghc/rts/Linker.c index b4d682e..02be005 100644 --- a/ghc/rts/Linker.c +++ b/ghc/rts/Linker.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: Linker.c,v 1.24 2001/02/12 12:46:23 sewardj Exp $ + * $Id: Linker.c,v 1.25 2001/02/12 13:30:15 sewardj Exp $ * * (c) The GHC Team, 2000 * @@ -1353,6 +1353,8 @@ ocGetNames_ELF ( ObjectCode* oc ) ) /* and not an undefined symbol */ && stab[j].st_shndx != SHN_UNDEF + /* and not in a "special section" */ + && stab[j].st_shndx < SHN_LORESERVE && /* and it's a not a section or string table or anything silly */ ( ELF32_ST_TYPE(stab[j].st_info)==STT_FUNC || -- 1.7.10.4