issue-654: [pprof] handle split text segments
issue-654: [pprof] handle split text segments

This applies patch by user simonb.

Quoting:

Relocation packing splits a single executable load segment into two.  Before:

  LOAD           0x000000 0x00000000 0x00000000 0x2034d28 0x2034d28 R E 0x1000
  LOAD           0x2035888 0x02036888 0x02036888 0x182d38 0x1a67d0 RW  0x1000

After:
  LOAD           0x000000 0x00000000 0x00000000 0x14648 0x14648 R E 0x1000
  LOAD           0x014648 0x0020c648 0x0020c648 0x1e286e0 0x1e286e0 R E 0x1000
  ...
  LOAD           0x1e3d888 0x02036888 0x02036888 0x182d38 0x1a67d0 RW  0x1000

The .text section is in the second LOAD, and this is not at
offset/address zero.  The result is that this library shows up in
/proc/self/maps as multiple executable entries, for example (note:
this trace is not from the library dissected above, but rather from an
earlier version of it):

  73b0c000-73b21000 r-xp 00000000 b3:19 786460 /data/.../libchrome.2160.0.so
  73b21000-73d12000 ---p 00000000 00:00 0
  73d12000-75a90000 r-xp 00014000 b3:19 786460 /data/.../libchrome.2160.0.so
  75a90000-75c0d000 rw-p 01d91000 b3:19 786460 /data/.../libchrome.2160.0.so

When parsing this, pprof needs to merge the two r-xp entries above
into a single entry, otherwise the addresses it prints are incorrect.

The following fix against 2.2.1 was sufficient to make pprof --text
print the correct output.  Untested with other pprof options.

qchbai/gperftools,woodfishman/gperftools,myrsloik/gperftools,liuzel/gperftools,elehcim/gperftools,myrsloik/gperftools,Sgenmi/gperftools,d0f/gperftools,matt-cross/gperftools,juzhanglei/gperftools,stellar2012wxg/gperftools,sunqi800/gperftools,stellar2012wxg/gperftools,git3389/gperftools,gezidan/gperftools,daverigby/gperftools,tauger/gperftools,gshirishfree/gperftools,maolin-cdzl/gperftools,git-hulk/gperftools,zero91/gperftools,HushengGen/gperftools,chencl/gperftools,casseopea2/gperftools,alk/gperftools,HackLinux/gperftools,lxyhcx/gperftools,kcrane/gperftools,guruswaroop/gperftools,qchbai/gperftools,xiaoyur347/gperftools,wilebeast/gperftools,rainzq/gperftools,gcode-mirror/gperftools,hectorchn/gperftools,acmorrow/gperftools,strrchr/gperftools,wang1986one/gperftools,DavidMorre/gperftools,Formenel/gperftools,CodeJuan/gperftools,yongkangchen/gperftools,shashankthakare/gperftools,sunqi800/gperftools,tel8618217223380/gperftools,yuhaya/gperftools,lxyhcx/gperftools,Akheon23/gperftools,HackLinux/gperftools,skaes/gperftools,tauger/gperftools,koolhazz/gperftools,linshibo/gperftools,krime/gperftools,ddio/gperftools,davidlee80/gperftools,wilebeast/gperftools,lxyhcx/gperftools,tiansin/gperftools,zaxbbun/gperftools,aoyoo/gperftools,qchbai/gperftools,mzhaom/gperftools,Sgenmi/gperftools,skaes/gperftools,myself659/gperftools,bearjb/gperftools,zaxbbun/gperftools,dromanov/gperftools,git-hulk/gperftools,dromanov/gperftools,xcjmine/gperftools,vulgatecn/gperftools,wfxiang08/gperftools,ismile1943/gperftools,pandyxu/gperftools,tauger/gperftools,couchbasedeps/gperftools,Formenel/gperftools,myrsloik/gperftools,alk/gperftools,matt-cross/gperftools,tel8618217223380/gperftools,chencl/gperftools,gezidan/gperftools,edisonwsk/gperftools,rainzq/gperftools,davideuler/gperftools,acmorrow/gperftools,jack-ju/gperftools,maolin-cdzl/gperftools,hectorchn/gperftools,comicfans/gperftools,ddio/gperftools,webfd/gperftools,caohaiwd/gperftools,buffer8848/gperftools,shashankthakare/gperftools,Gwinel/gperftools,gshirishfree/gperftools,krime/gperftools,gshirishfree/gperftools,lixx1746/gperftools,elehcim/gperftools,elehcim/gperftools,liuzel/gperftools,thegooglecodearchive/gperftools,wfxiang08/gperftools,jacklicn/gperftools,acmorrow/gperftools,cynthia/gperftools,casseopea2/gperftools,kcrane/gperftools,bo-on-software/gperftools,koolhazz/gperftools-1,koolhazz/gperftools,lixx1746/gperftools,DavidMorre/gperftools,zzfnohell/gperftools,Akheon23/gperftools,zero91/gperftools,elehcim/gperftools,rainzq/gperftools,zaxbbun/gperftools,ismile1943/gperftools,myzhan/gperftools,woodfishman/gperftools,gcode-mirror/gperftools,d0f/gperftools,comicfans/gperftools,Akheon23/gperftools,thegooglecodearchive/gperftools,Sgenmi/gperftools,jacklicn/gperftools,hzshuai/gperftools,jimmie22/gperftools,inevity/gperftools,davideuler/gperftools,ssett/gperftools,xfun68/gperftools,jack-ju/gperftools,luffywu/gperftools,pandyxu/gperftools,chencl/gperftools,aoyoo/gperftools,greatmazinger/gperftools,John-He-928/gperftools,gperftools/gperftools,yuhaya/gperftools,thegooglecodearchive/gperftools,tel8618217223380/gperftools,DavidMorre/gperftools,niuys/gperftools,Formenel/gperftools,vulgatecn/gperftools,davideuler/gperftools,greatmazinger/gperftools,woodfishman/gperftools,zengzanda/gperftools,vulgatecn/gperftools,blueszhangsh/gperftools,wilebeast/gperftools,is00hcw/gperftools,pandyxu/gperftools,luffywu/gperftools,juzhanglei/gperftools,yongkangchen/gperftools,krime/gperftools,ido/gperftools-old,buffer8848/gperftools,gezidan/gperftools,vulgatecn/gperftools,daverigby/gperftools,guruswaroop/gperftools,koolhazz/gperftools,juzhanglei/gperftools,liuzel/gperftools,wang1986one/gperftools,zero91/gperftools,zzfnohell/gperftools,tfzxyinhao/gperftools,xcjmine/gperftools,CodeJuan/gperftools,shashankthakare/gperftools,lixx1746/gperftools,loverszhaokai/gperftools,zero91/gperftools,blueszhangsh/gperftools,wdv4758h/gperftools,zzfnohell/gperftools,mzhaom/gperftools,blueszhangsh/gperftools,mzhaom/gperftools,sunqi800/gperftools,greatmazinger/gperftools,fritzprix/gperftools,krime/gperftools,caohaiwd/gperftools,greatmazinger/gperftools,couchbasedeps/gperftools,loverszhaokai/gperftools,rise-worlds/gperftools,xcjmine/gperftools,davidlee80/gperftools,webfd/gperftools,yodamaster/gperftools,koolhazz/gperftools-1,myzhan/gperftools,romange/gperftools,tel8618217223380/gperftools,daverigby/gperftools,zaxbbun/gperftools,luftreich/gperftools,loverszhaokai/gperftools,pcwalton/gperftools,liuzel/gperftools,evilsong/gperftools,wfxiang08/gperftools,skaes/gperftools,cuitao2046/gperftools,d0f/gperftools,rise-worlds/gperftools,casseopea2/gperftools,yodamaster/gperftools,guiquanz/gperftools,Akheon23/gperftools,cuitao2046/gperftools,niuys/gperftools,romange/gperftools,pcwalton/gperftools,strrchr/gperftools,Chilledheart/gperftools,HushengGen/gperftools,linshibo/gperftools,zengzanda/gperftools,ido/gperftools-old,comicfans/gperftools,inevity/gperftools,yuhaya/gperftools,John-He-928/gperftools,edisonwsk/gperftools,lixx1746/gperftools,koolhazz/gperftools-1,luftreich/gperftools,koolhazz/gperftools-1,hzshuai/gperftools,wilebeast/gperftools,thegooglecodearchive/gperftools,CodeJuan/gperftools,luftreich/gperftools,CodeJuan/gperftools,rise-worlds/gperftools,gshirishfree/gperftools,guruswaroop/gperftools,wdv4758h/gperftools,wang1986one/gperftools,gcode-mirror/gperftools,TomasRejhons/gperftools,TomasRejhons/gperftools,gperftools/gperftools,cynthia/gperftools,casseopea2/gperftools,edisonwsk/gperftools,evilsong/gperftools,xfun68/gperftools,couchbasedeps/gperftools,matt-cross/gperftools,HushengGen/gperftools,buffer8848/gperftools,dromanov/gperftools,xiaoyur347/gperftools,is00hcw/gperftools,tfzxyinhao/gperftools,hectorchn/gperftools,comicfans/gperftools,wang1986one/gperftools,fritzprix/gperftools,tiansin/gperftools,bo-on-software/gperftools,webfd/gperftools,juzhanglei/gperftools,tiansin/gperftools,theRockLiu/gperftools,Gwinel/gperftools,myzhan/gperftools,sunqi800/gperftools,is00hcw/gperftools,hzshuai/gperftools,fritzprix/gperftools,bo-on-software/gperftools,caohaiwd/gperftools,Chilledheart/gperftools,rzinsly/gperftools,zengzanda/gperftools,jacklicn/gperftools,jack-ju/gperftools,fritzprix/gperftools,ddio/gperftools,strrchr/gperftools,yongkangchen/gperftools,guruswaroop/gperftools,tfzxyinhao/gperftools,couchbasedeps/gperftools,rainzq/gperftools,chencl/gperftools,ssett/gperftools,git-hulk/gperftools,niuys/gperftools,theRockLiu/gperftools,maolin-cdzl/gperftools,John-He-928/gperftools,davidlee80/gperftools,maolin-cdzl/gperftools,wdv4758h/gperftools,xfun68/gperftools,myzhan/gperftools,inevity/gperftools,skaes/gperftools,jimmie22/gperftools,git3389/gperftools,alk/gperftools,strrchr/gperftools,TomasRejhons/gperftools,guiquanz/gperftools,romange/gperftools,cuitao2046/gperftools,gcode-mirror/gperftools,aoyoo/gperftools,jimmie22/gperftools,ismile1943/gperftools,luffywu/gperftools,inevity/gperftools,evilsong/gperftools,DavidMorre/gperftools,hzshuai/gperftools,shashankthakare/gperftools,edisonwsk/gperftools,bo-on-software/gperftools,yongkangchen/gperftools,cynthia/gperftools,alk/gperftools,Gwinel/gperftools,stellar2012wxg/gperftools,rzinsly/gperftools,caohaiwd/gperftools,tauger/gperftools,linshibo/gperftools,John-He-928/gperftools,wfxiang08/gperftools,rzinsly/gperftools,matt-cross/gperftools,daverigby/gperftools,guiquanz/gperftools,niuys/gperftools,jacklicn/gperftools,ddio/gperftools,jimmie22/gperftools,kcrane/gperftools,webfd/gperftools,xfun68/gperftools,mzhaom/gperftools,evilsong/gperftools,pandyxu/gperftools,Chilledheart/gperftools,bearjb/gperftools,pcwalton/gperftools,git-hulk/gperftools,tiansin/gperftools,TomasRejhons/gperftools,yodamaster/gperftools,Formenel/gperftools,linshibo/gperftools,cynthia/gperftools,acmorrow/gperftools,davidlee80/gperftools,d0f/gperftools,bearjb/gperftools,tfzxyinhao/gperftools,koolhazz/gperftools,bearjb/gperftools,woodfishman/gperftools,myrsloik/gperftools,dromanov/gperftools,davideuler/gperftools,kcrane/gperftools,ido/gperftools-old,ssett/gperftools,ido/gperftools-old,xiaoyur347/gperftools,gperftools/gperftools,gezidan/gperftools,Sgenmi/gperftools,HackLinux/gperftools,lxyhcx/gperftools,pcwalton/gperftools,romange/gperftools,blueszhangsh/gperftools,hectorchn/gperftools,HushengGen/gperftools,yodamaster/gperftools,myself659/gperftools,rise-worlds/gperftools,ismile1943/gperftools,Gwinel/gperftools,luffywu/gperftools,git3389/gperftools,Chilledheart/gperftools,is00hcw/gperftools,aoyoo/gperftools,stellar2012wxg/gperftools,rzinsly/gperftools,qchbai/gperftools,wdv4758h/gperftools,luftreich/gperftools,yuhaya/gperftools,zzfnohell/gperftools,xcjmine/gperftools,gperftools/gperftools,jack-ju/gperftools,buffer8848/gperftools,myself659/gperftools,ssett/gperftools,myself659/gperftools,guiquanz/gperftools,theRockLiu/gperftools,theRockLiu/gperftools,cuitao2046/gperftools,zengzanda/gperftools,xiaoyur347/gperftools,loverszhaokai/gperftools,HackLinux/gperftools,git3389/gperftools