symbian rodata overlap errors

來源:互聯網
上載者:User

error description:

 

arm-none-symbianelf-ld: section .rodata [002c8ed0 -> 004488f7] overlaps section .data [00400000 -> 00400083]
arm-none-symbianelf-ld: section .bss [00400084 -> 00400993] overlaps section .rodata [002c8ed0 -> 004488f7]
arm-none-symbianelf-ld: C:/proj/group/Proj_Data/GCCE_UREL/Proj.exe: section .data lma 0x400000 overlaps
previous sections

 

查詢網上資料:

Your code size (.rodata) is too large so it overlaps the hard coded .data section begining at 0x400000.

I've changed these hard coded .data section in /epoc32/tools/cl_bpabi.pm line 793 & 799 :

"/$(CODE_SEGMENT_START) ", "/$(DATA_SEGMENT_START) 0x400000 ", "/$(SYMVER_OPTION) ","/$(SO_NAME_OPTION) ","$LinkAs"

I replaced 0x400000 by 0xA00000 and I get my app properly linked linked, and it works fine on phone.

 

我改了以後好像沒什麼用,看到這個:For UREL static solution everything is fine as the size is much more less then 4mb, but for UDEB (to be able to debug on hardware) the size goes beyond...

和我情況一樣,我也是編譯gcce udeb才不成功

然後我改MMP檔案:

EPOCSTACKSIZE                           0x10000
EPOCHEAPSIZE                             0x100000 0x4000000

變為

EPOCSTACKSIZE                           0x100000
EPOCHEAPSIZE                             0x100000 0x4000000

再編譯,搞定

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.