elf file size
Michael Grunditz (467) 531 posts |
Hi I am porting a new/old browser to RISC OS. It is statically linked. |
Rick Murray (539) 13385 posts |
Don’t know about ELF, but old RISC OS (and new if you use Aemulor) has a 26MB application size limit (for historical reasons). |
Steffen Huber (91) 1945 posts |
I don’t remember specific limits for ELF handled by SOManager. Have you tried elf2aif, if that changes anything (so that we could rule out “ELF” being the problem? What type of crash is it? Application Next slot large enough? |
Michael Grunditz (467) 531 posts |
I get a crash before main() is called , in the constructors of static global classes (c++) I just tried elf2aif. Gets adt in application. also tried with NM and c++filt to look at the address. Didn’t tell me more than that the crash was at elf starting point. |
Chris Gransden (337) 1148 posts |
If any code in the static executable is compiled with -fPIC it causes a similar crash. You can use ‘readelf’ to check. |
Michael Grunditz (467) 531 posts |
I assume that support libraries is that , libpng etc. but will check. EDIT How do I use readelf for this? |
Michael Grunditz (467) 531 posts |
Running thread 0xd8a38c (Main Thread) |
Steffen Huber (91) 1945 posts |
Somehow, I immediately related “fpconst.cpp()” with a mixup of Floating Point compilation options in the various libs you link together. I don’t know if compatibility is checked somewhere at the linking stage. |
Michael Grunditz (467) 531 posts |
LInker complains about it refusing to merge objects. |