From: sewardj Date: Mon, 12 Feb 2001 13:30:15 +0000 (+0000) Subject: [project @ 2001-02-12 13:30:15 by sewardj] X-Git-Tag: Approximately_9120_patches~2665 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=bbb9d913093c24848f69b435171160226eac614b;p=ghc-hetmet.git [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. --- 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 ||