X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FLinker.c;h=29dafaf6afcf99911e13874a8158f499f5bd99dc;hb=761fb8c1f0a519fdb52990c6054bf5c5022c7694;hp=1dd4b0f6068d3a03be00b2ab8c98f66020bebd74;hpb=a55ebc70b9874176d4892fbfb03935580a9c3837;p=ghc-hetmet.git diff --git a/ghc/rts/Linker.c b/ghc/rts/Linker.c index 1dd4b0f..29dafaf 100644 --- a/ghc/rts/Linker.c +++ b/ghc/rts/Linker.c @@ -1,5 +1,5 @@ /* ----------------------------------------------------------------------------- - * $Id: Linker.c,v 1.86 2002/04/01 11:18:18 panne Exp $ + * $Id: Linker.c,v 1.88 2002/04/23 17:33:54 ken Exp $ * * (c) The GHC Team, 2000, 2001 * @@ -216,6 +216,7 @@ typedef struct _RtsSymbolVal { SymX(divExactIntegerzh_fast) \ SymX(divModIntegerzh_fast) \ SymX(forkzh_fast) \ + SymX(forkProcesszh_fast) \ SymX(freeHaskellFunctionPtr) \ SymX(freeStablePtr) \ SymX(gcdIntegerzh_fast) \ @@ -240,6 +241,7 @@ typedef struct _RtsSymbolVal { SymX(minusIntegerzh_fast) \ SymX(mkApUpd0zh_fast) \ SymX(myThreadIdzh_fast) \ + SymX(labelThreadzh_fast) \ SymX(newArrayzh_fast) \ SymX(newBCOzh_fast) \ SymX(newByteArrayzh_fast) \ @@ -1703,7 +1705,7 @@ findElfSection ( void* objImage, Elf32_Word sh_type ) && i != ehdr->e_shstrndx /* Ignore string tables named .stabstr, as they contain debugging info. */ - && 0 != strncmp(".stabstr", sh_strtab + shdr[i].sh_name, 8) + && 0 != memcmp(".stabstr", sh_strtab + shdr[i].sh_name, 8) ) { ptr = ehdrC + shdr[i].sh_offset; break; @@ -1813,7 +1815,7 @@ ocVerifyImage_ELF ( ObjectCode* oc ) && i != ehdr->e_shstrndx /* Ignore string tables named .stabstr, as they contain debugging info. */ - && 0 != strncmp(".stabstr", sh_strtab + shdr[i].sh_name, 8) + && 0 != memcmp(".stabstr", sh_strtab + shdr[i].sh_name, 8) ) { IF_DEBUG(linker,belch(" section %d is a normal string table", i )); strtab = ehdrC + shdr[i].sh_offset; @@ -2270,7 +2272,7 @@ ocResolve_ELF ( ObjectCode* oc ) relocation entries that, when done, make the stabs debugging info point at the right places. We ain't interested in all dat jazz, mun. */ - if (0 == strncmp(".rel.stab", sh_strtab + shdr[shnum].sh_name, 9)) + if (0 == memcmp(".rel.stab", sh_strtab + shdr[shnum].sh_name, 9)) continue; if (shdr[shnum].sh_type == SHT_REL ) {