Re: [Development] how to reduce the relocation <-- Use static qt libraries

2012-07-30 Thread Thiago Macieira
On segunda-feira, 30 de julho de 2012 08.54.20, lars.kn...@nokia.com wrote: > Hope they can agree at some point, so we can start using it. Until then it > would be great if we could have it as a configure option (off by default). That depends on what they agree on. If they agree on the GCC team's

Re: [Development] how to reduce the relocation <-- Use static qt libraries

2012-07-30 Thread lars.knoll
On Jul 30, 2012, at 10:34 AM, ext Thiago Macieira wrote: > On domingo, 29 de julho de 2012 10.12.50, song.7@nokia.com wrote: >>> After changed with _protected_ visibility, that kind of relocation is >>> reduced, but I still don't know why more R_ARM_RELATIVE relocation >>> introduced. >> Ans

Re: [Development] how to reduce the relocation <-- Use static qt libraries

2012-07-30 Thread Thiago Macieira
On domingo, 29 de julho de 2012 10.12.50, song.7@nokia.com wrote: > > After changed with _protected_ visibility, that kind of relocation is > > reduced, but I still don't know why more R_ARM_RELATIVE relocation > > introduced. > Answer my own question, that is because the loading address of the

Re: [Development] how to reduce the relocation <-- Use static qt libraries

2012-07-29 Thread song.7.liu
song.7.liu=nokia@qt-project.org] On Behalf Of ext Thiago Macieira Sent: Sunday, July 29, 2012 9:10 PM To: development@qt-project.org Subject: Re: [Development] how to reduce the relocation <-- Use static qt libraries On domingo, 29 de julho de 2012 08.13.20, song.7@nokia.com wrote: >

Re: [Development] how to reduce the relocation <-- Use static qt libraries

2012-07-29 Thread Thiago Macieira
On domingo, 29 de julho de 2012 08.13.20, song.7@nokia.com wrote: > - actually for loading time, the bottleneck is the R_ARM_ABS32 relocation, > which is reduced around 97% now ! > > Finally the overall loading time is reduced from ~10-20s to ~1s... Wow! Any chance you can blog about this some

Re: [Development] how to reduce the relocation <-- Use static qt libraries

2012-07-29 Thread song.7.liu
ent-bounces+song.7.liu=nokia@qt-project.org] On Behalf Of Liu Song.7 (Nokia-MP/Beijing) Sent: Sunday, July 29, 2012 6:02 PM To: thiago.macie...@intel.com; development@qt-project.org Subject: Re: [Development] how to reduce the relocation <-- Use static qt libraries Probably, I know that

Re: [Development] how to reduce the relocation <-- Use static qt libraries

2012-07-29 Thread song.7.liu
ong.7.liu=nokia@qt-project.org] On Behalf Of Liu Song.7 (Nokia-MP/Beijing) Sent: Sunday, July 29, 2012 4:13 PM To: thiago.macie...@intel.com; development@qt-project.org Subject: Re: [Development] how to reduce the relocation <-- Use static qt libraries Hi, I want to share some result a

Re: [Development] how to reduce the relocation <-- Use static qt libraries

2012-07-29 Thread song.7.liu
lto:development-bounces+song.7.liu=nokia@qt-project.org] On Behalf Of ext Thiago Macieira Sent: Tuesday, July 24, 2012 10:29 PM To: development@qt-project.org Subject: Re: [Development] how to reduce the relocation <-- Use static qt libraries On terça-feira, 24 de julho de 2012 13.22.25

Re: [Development] how to reduce the relocation <-- Use static qt libraries

2012-07-24 Thread Thiago Macieira
On terça-feira, 24 de julho de 2012 13.22.25, song.7@nokia.com wrote: > Yes, the bottleneck of the loading now is the local relocations instead of > inter-library's. > > So what we want to do will be reducing the number of local relocation. > > Based on my understanding, this local relocation s

Re: [Development] how to reduce the relocation <-- Use static qt libraries

2012-07-24 Thread song.7.liu
nces+song.7.liu=nokia@qt-project.org [mailto:development-bounces+song.7.liu=nokia@qt-project.org] On Behalf Of ext Thiago Macieira Sent: Tuesday, July 24, 2012 6:20 PM To: development@qt-project.org Subject: Re: [Development] how to reduce the relocation <-- Use static qt libraries On terça-

Re: [Development] how to reduce the relocation <-- Use static qt libraries

2012-07-24 Thread Thiago Macieira
On terça-feira, 24 de julho de 2012 08.42.29, song.7@nokia.com wrote: > Thanks, but can you detail more about the ELF pre-linking ? /sbin/prelink Indeed, I think prelinking is the only solution for your case. Given the statistics I posted on another email, the merging of libraries will not he

Re: [Development] how to reduce the relocation <-- Use static qt libraries

2012-07-24 Thread Thiago Macieira
On terça-feira, 24 de julho de 2012 06.40.15, song.7@nokia.com wrote: > This paintEvent is implemented inside the analogclock.cpp, but "readelf -r > analogclock" shows that: > > Relocation section '.rel.dyn' at offset 0x1b08 contains 72 > entries: > Offset InfoTypeSym.Value

Re: [Development] how to reduce the relocation <-- Use static qt libraries

2012-07-24 Thread song.7.liu
u Song.7 (Nokia-MP/Beijing) Sent: Tuesday, July 24, 2012 2:40 PM To: Storm-Olsen Marius (Nokia-MP/Austin); thiago.macie...@intel.com; development@qt-project.org Subject: Re: [Development] how to reduce the relocation <-- Use static qt libraries Hi, Finally we can build out and load the libqt5.so

Re: [Development] how to reduce the relocation <-- Use static qt libraries

2012-07-24 Thread simon.hausmann
uesday, July 24, 2012 2:40 PM To: Storm-Olsen Marius (Nokia-MP/Austin); thiago.macie...@intel.com; development@qt-project.org Subject: Re: [Development] how to reduce the relocation <-- Use static qt libraries Hi, Finally we can build out and load the libqt5.so successfully, but the loading

Re: [Development] how to reduce the relocation <-- Use static qt libraries

2012-07-24 Thread song.7.liu
iu=nokia@qt-project.org [mailto:development-bounces+song.7.liu=nokia@qt-project.org] On Behalf Of Liu Song.7 (Nokia-MP/Beijing) Sent: Tuesday, July 24, 2012 2:40 PM To: Storm-Olsen Marius (Nokia-MP/Austin); thiago.macie...@intel.com; development@qt-project.org Subject: Re: [Development] ho

Re: [Development] how to reduce the relocation <-- Use static qt libraries

2012-07-23 Thread song.7.liu
Hi, Finally we can build out and load the libqt5.so successfully, but the loading is still very slow because too many symbols are to be relocated. Even many of these relocated symbols are inside the libqt5.so, we suppose they should be resolved during the link time instead of loading time. And