Fix #8698 by properly handling long section names and reenabling .ctors handling
Fix #8698 by properly handling long section names and reenabling .ctors handling

Our old function for searching for sections could only deal
with section names that were eight bytes or shorter; this
patch adds support for long section names.

Signed-off-by: Edward Z. Yang <dbd597f5635f432486c5d365e9bb585b3eaa1853@cs.stanford.edu>

gcampax/ghc,ml9951/ghc,vTurbine/ghc,mettekou/ghc,mettekou/ghc,frantisekfarka/ghc-dsi,GaloisInc/halvm-ghc,elieux/ghc,vikraman/ghc,tjakway/ghcjvm,ml9951/ghc,TomMD/ghc,christiaanb/ghc,fmthoma/ghc,nushio3/ghc,urbanslug/ghc,mettekou/ghc,anton-dessiatov/ghc,shlevy/ghc,elieux/ghc,jstolarek/ghc,green-haskell/ghc,tibbe/ghc,mcschroeder/ghc,frantisekfarka/ghc-dsi,olsner/ghc,ezyang/ghc,forked-upstream-packages-for-ghcjs/ghc,olsner/ghc,wxwxwwxxx/ghc,elieux/ghc,urbanslug/ghc,da-x/ghc,forked-upstream-packages-for-ghcjs/ghc,mettekou/ghc,ryantm/ghc,elieux/ghc,sdiehl/ghc,wxwxwwxxx/ghc,shlevy/ghc,mfine/ghc,ghc-android/ghc,acowley/ghc,bitemyapp/ghc,nushio3/ghc,siddhanathan/ghc,nkaretnikov/ghc,AlexanderPankiv/ghc,ezyang/ghc,sdiehl/ghc,mcschroeder/ghc,anton-dessiatov/ghc,GaloisInc/halvm-ghc,frantisekfarka/ghc-dsi,elieux/ghc,acowley/ghc,nkaretnikov/ghc,wxwxwwxxx/ghc,urbanslug/ghc,holzensp/ghc,oldmanmike/ghc,spacekitteh/smcghc,oldmanmike/ghc,tjakway/ghcjvm,ml9951/ghc,fmthoma/ghc,holzensp/ghc,frantisekfarka/ghc-dsi,ezyang/ghc,forked-upstream-packages-for-ghcjs/ghc,green-haskell/ghc,ml9951/ghc,acowley/ghc,spacekitteh/smcghc,wxwxwwxxx/ghc,shlevy/ghc,fmthoma/ghc,ryantm/ghc,vikraman/ghc,urbanslug/ghc,siddhanathan/ghc,elieux/ghc,vTurbine/ghc,green-haskell/ghc,wxwxwwxxx/ghc,vikraman/ghc,gcampax/ghc,AlexanderPankiv/ghc,nushio3/ghc,urbanslug/ghc,da-x/ghc,mcschroeder/ghc,vTurbine/ghc,jstolarek/ghc,snoyberg/ghc,siddhanathan/ghc,sdiehl/ghc,snoyberg/ghc,GaloisInc/halvm-ghc,oldmanmike/ghc,christiaanb/ghc,mettekou/ghc,bitemyapp/ghc,nathyong/microghc-ghc,vTurbine/ghc,shlevy/ghc,snoyberg/ghc,urbanslug/ghc,nushio3/ghc,ml9951/ghc,tjakway/ghcjvm,gridaphobe/ghc,ghc-android/ghc,sdiehl/ghc,acowley/ghc,nushio3/ghc,TomMD/ghc,vikraman/ghc,ghc-android/ghc,lukexi/ghc,nathyong/microghc-ghc,tibbe/ghc,gridaphobe/ghc,christiaanb/ghc,nushio3/ghc,sgillespie/ghc,olsner/ghc,snoyberg/ghc,lukexi/ghc,TomMD/ghc,mettekou/ghc,ml9951/ghc,bitemyapp/ghc,tjakway/ghcjvm,siddhanathan/ghc,GaloisInc/halvm-ghc,AlexanderPankiv/ghc,mcschroeder/ghc,nkaretnikov/ghc,lukexi/ghc,vTurbine/ghc,gridaphobe/ghc,siddhanathan/ghc,green-haskell/ghc,ml9951/ghc,sdiehl/ghc,holzensp/ghc,urbanslug/ghc,nathyong/microghc-ghc,holzensp/ghc,oldmanmike/ghc,forked-upstream-packages-for-ghcjs/ghc,tjakway/ghcjvm,spacekitteh/smcghc,ghc-android/ghc,lukexi/ghc,TomMD/ghc,christiaanb/ghc,sgillespie/ghc,AlexanderPankiv/ghc,snoyberg/ghc,vikraman/ghc,frantisekfarka/ghc-dsi,anton-dessiatov/ghc,sgillespie/ghc,christiaanb/ghc,gcampax/ghc,nkaretnikov/ghc,shlevy/ghc,ryantm/ghc,oldmanmike/ghc,sgillespie/ghc,AlexanderPankiv/ghc,anton-dessiatov/ghc,oldmanmike/ghc,gridaphobe/ghc,mcschroeder/ghc,anton-dessiatov/ghc,da-x/ghc,tjakway/ghcjvm,nathyong/microghc-ghc,fmthoma/ghc,ezyang/ghc,da-x/ghc,sdiehl/ghc,siddhanathan/ghc,siddhanathan/ghc,ghc-android/ghc,wxwxwwxxx/ghc,elieux/ghc,tjakway/ghcjvm,nushio3/ghc,GaloisInc/halvm-ghc,nkaretnikov/ghc,tibbe/ghc,ghc-android/ghc,gridaphobe/ghc,christiaanb/ghc,snoyberg/ghc,gcampax/ghc,mfine/ghc,ezyang/ghc,vTurbine/ghc,olsner/ghc,fmthoma/ghc,forked-upstream-packages-for-ghcjs/ghc,mfine/ghc,olsner/ghc,ryantm/ghc,bitemyapp/ghc,TomMD/ghc,mcschroeder/ghc,lukexi/ghc,nathyong/microghc-ghc,tibbe/ghc,fmthoma/ghc,bitemyapp/ghc,olsner/ghc,AlexanderPankiv/ghc,ezyang/ghc,gridaphobe/ghc,ghc-android/ghc,sgillespie/ghc,mettekou/ghc,sdiehl/ghc,ryantm/ghc,vikraman/ghc,anton-dessiatov/ghc,snoyberg/ghc,mfine/ghc,jstolarek/ghc,gcampax/ghc,vikraman/ghc,jstolarek/ghc,acowley/ghc,da-x/ghc,spacekitteh/smcghc,gridaphobe/ghc,gcampax/ghc,AlexanderPankiv/ghc,sgillespie/ghc,acowley/ghc,GaloisInc/halvm-ghc,GaloisInc/halvm-ghc,da-x/ghc,nkaretnikov/ghc,shlevy/ghc,sgillespie/ghc,wxwxwwxxx/ghc,ml9951/ghc,TomMD/ghc,anton-dessiatov/ghc,mcschroeder/ghc,holzensp/ghc,nathyong/microghc-ghc,da-x/ghc,tibbe/ghc,shlevy/ghc,nkaretnikov/ghc,mfine/ghc,green-haskell/ghc,ezyang/ghc,nathyong/microghc-ghc,olsner/ghc,TomMD/ghc,gcampax/ghc,jstolarek/ghc,spacekitteh/smcghc,oldmanmike/ghc,acowley/ghc,fmthoma/ghc,forked-upstream-packages-for-ghcjs/ghc,christiaanb/ghc,mfine/ghc,mfine/ghc,forked-upstream-packages-for-ghcjs/ghc,vTurbine/ghc