Advertising (This ad goes away for registered users. You can Login or Register)

Makefile error: [ELF ERROR] Too large section size.

Underground 3DS Discussions
Forum rules
Forum rule Nº 15 is strictly enforced in this subforum.
Post Reply
User avatar
Rinnegatamante
VIP
Posts: 758
Joined: Sat Mar 26, 2011 10:02 am
Contact:

Makefile error: [ELF ERROR] Too large section size.

Post by Rinnegatamante » Fri Nov 21, 2014 11:16 am

Hi, i'm trying to compile with the GW workaroung a simple hello world which includes lualib. I get from the normal make command a .3dsx,.smdh and a .elf files but when i try to use makerom, i get this error:

Code: Select all

[ELF ERROR] Too large section size.
 Segment size = 0x4c4c
 Section Size = 0xfff016e8
[ELF ERROR] Failed to process ELF file (-16)
[NCCH ERROR] NCCH Build Process Failed
[RESULT] Failed to build outfile
Someone knows how to fix?
Advertising
If you want, visit my website: http://rinnegatamante.it :D

YoshiInAVoid
Posts: 8
Joined: Thu Feb 20, 2014 1:23 pm

Re: Makefile error: [ELF ERROR] Too large section size.

Post by YoshiInAVoid » Fri Nov 21, 2014 10:04 pm

Strip the ELF first:

Code: Select all

arm-none-eabi-strip file.elf
Advertising

User avatar
Rinnegatamante
VIP
Posts: 758
Joined: Sat Mar 26, 2011 10:02 am
Contact:

Re: Makefile error: [ELF ERROR] Too large section size.

Post by Rinnegatamante » Sat Nov 22, 2014 10:33 am

Thanks, it seems to work but now i have another error:

Code: Select all

[CCI ERROR] 'CardDevice: NorFlash' can only be used with save-data sizes: 128K &
 512K
[RESULT] Failed to build CCI
If you want, visit my website: http://rinnegatamante.it :D

YoshiInAVoid
Posts: 8
Joined: Thu Feb 20, 2014 1:23 pm

Re: Makefile error: [ELF ERROR] Too large section size.

Post by YoshiInAVoid » Sat Nov 22, 2014 4:07 pm

This is an error with your RSF, change this:

Code: Select all

CardDevice              : NorFlash
To this:

Code: Select all

CardDevice              : None
Or you could correct the size. As the message says, it should be 128KB or 512KB, for example:

Code: Select all

SystemControlInfo:
  SaveDataSize: 128KB
  RemasterVersion: 0
  StackSize: 0x40000

User avatar
Rinnegatamante
VIP
Posts: 758
Joined: Sat Mar 26, 2011 10:02 am
Contact:

Re: Makefile error: [ELF ERROR] Too large section size.

Post by Rinnegatamante » Sat Nov 22, 2014 4:27 pm

I'm using the GW_workaround.rsf and, infact, i have this in my RSF file:

Code: Select all

SystemControlInfo:
  SaveDataSize: 128KB
  RemasterVersion: 0
  StackSize: 0x40000
If you want, visit my website: http://rinnegatamante.it :D

Post Reply

Return to “Programming and Security”