×

Discussion Board

Page 1 of 2 12 LastLast
Results 1 to 15 of 16
  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    33

    rodata overlap errors

    Any ideas on the linker errors using GCCE (Symbian Os 9.1, Nokia Series60 SDKv3):
    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

    Ahti.

  2. #2
    Registered User
    Join Date
    Mar 2003
    Location
    France - Nantes
    Posts
    1

    Re: rodata overlap errors

    Hi Ahti,

    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.

    I hope it will help
    Greg

  3. #3
    Registered User
    Join Date
    Feb 2007
    Location
    Belarus
    Posts
    14

    Re: rodata overlap errors

    Hi All!
    I've met similar problem.
    Here is the err output:
    arm-none-symbianelf-ld: section .bss [00400000 -> 00400003] overlaps section .rodata [001167f8 -> 004ce23f]
    arm-none-symbianelf-ld: ..\..\..\..\..\Symbian\9.1\S60_3rd_MR_2\EPOC32\BUILD\movial_im\stdclient\symbian\movial_connect\groupv9\MYAPP9\GCCE\UDEB\MYAPP.exe: section .data lma 0x400000 overlaps previous sections
    make[1]: *** [..\..\..\..\..\Symbian\9.1\S60_3rd_MR_2\EPOC32\RELEASE\GCCE\UDEB\MYAPP.exe] Error 1
    make: *** [TARGETMYAPP9] Error 2
    I've tried the solution described above but it is doesn't works for me.
    Can anyone help me?

    P.S. s60 3rd mr. gcce udeb.

  4. #4
    Registered User
    Join Date
    Nov 2004
    Posts
    42

    Re: rodata overlap errors

    The size of the ".ro_data" section(initialised constants) is huge which is overlapping with the ".data" section at 0x400000.

    The above solution should work, but you really should look at whether you can reduce the size of this initialised constant data in the application.

    Symbian and Nokia are looking at the best long term workaround to the toolchain for this.

    Regards
    H

  5. #5
    Regular Contributor
    Join Date
    Feb 2007
    Posts
    82

    Re: rodata overlap errors

    is there a way to find which data is so big and where it can be?

  6. #6
    Super Contributor
    Join Date
    Nov 2004
    Location
    Wiltshire, UK
    Posts
    3,644

  7. #7
    Regular Contributor
    Join Date
    Dec 2007
    Posts
    62

    Re: rodata overlap errors

    The .map file generated by a successful link definitely shows memory usage. I think it also shows what's happening in the overlap case. (I had the overlap case, found this thread, modified my cl_bapi.pm, and I'm good to go for now...)

  8. #8
    Regular Contributor
    Join Date
    Feb 2007
    Posts
    82

    Re: rodata overlap errors

    I have tried to change the address but i got the same results. but the error i have is

    arm-none-symbianelf-ld: section .ARM.exidx 003e6530 -> 0040af87 overlaps secti
    on .data 00400000 -> 0040047f
    arm-none-symbianelf-ld: section .bss 00400480 -> 00400f03 overlaps section .AR
    M.exidx 003e6530 -> 0040af87
    arm-none-symbianelf-ld: ..\..\..\..\..\..\Symbian\9.1\S60_3rd_MR\EPOC32\BUILD\wo
    rk\devel\projects\symbian\build\s60_3rd_mr\STATIC_TESTER_S60\GCCE\UREL\tester.exe: section .data lma 0x400000 overlaps previous sections


    which is not a .ro data

    any help on this would be highly valuable.

    thanks a lot.

  9. #9
    Registered User
    Join Date
    Dec 2009
    Posts
    1

    Re: rodata overlap errors

    Quote Originally Posted by gdescamps View Post
    Hi Ahti,

    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.

    I hope it will help
    Greg
    Works for me as well on linux, tnx a lot!

  10. #10
    Nokia Developer Champion
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: rodata overlap errors

    Thought it would be good to cross-reference to this thread: http://discussion.forum.nokia.com/fo...d.php?t=196978

    There are PRO file settings that eliminate the need to modify the Perl code:
    QMAKE_LFLAGS.ARMCC += --rw-base 0x700000
    QMAKE_LFLAGS.GCCE += -Tdata 0x700000

  11. #11
    Regular Contributor
    Join Date
    May 2008
    Location
    igala.net
    Posts
    79

    Re: rodata overlap errors

    I have the same problem, and this solution does not work for me
    ___________________________
    http://AndroidCore.com

  12. #12
    Nokia Developer Champion
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: rodata overlap errors

    Note that you need to observe the values in the error messages and adjust the PRO file parameters (or Perl modifications) so that the areas are large enough in your specific case. Usually the overlap is just a few hundred bytes, but it could be much larger with some large applications.

  13. #13
    Registered User
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    305

    Re: rodata overlap errors

    Don't forget to clean up folder

    Nokia_N97_SDK_v1.0\epoc32\BUILD\

  14. #14
    Registered User
    Join Date
    Oct 2010
    Posts
    1

    Re: rodata overlap errors

    This solution is really help me. Thank you very much!

  15. #15
    Registered User
    Join Date
    Jul 2007
    Posts
    32

    Re: rodata overlap errors

    Has anyone updated version eexe.lib? In this thread in developer.nokia.com links are dead.

Page 1 of 2 12 LastLast

Similar Threads

  1. How to receive ETEL errors ?
    By Symbian_Programmer in forum Symbian Networking & Messaging (Closed)
    Replies: 5
    Last Post: 2006-09-15, 13:48
  2. Send As Example (saex) compiling errors
    By mubx2000 in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2006-03-15, 12:23
  3. how to resolve these linker errors...?
    By peter_k_john in forum Carbide.c++ IDE and plug-ins (Closed)
    Replies: 4
    Last Post: 2005-11-01, 04:29
  4. DLL linker errors
    By markcgriffiths in forum Symbian C++
    Replies: 0
    Last Post: 2005-08-15, 10:22
  5. strange errors???
    By rahulchavan_2000 in forum Symbian C++
    Replies: 1
    Last Post: 2005-02-05, 13:20

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •