Page 1 of 1

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

Posted: Fri Nov 21, 2014 11:16 am
by Rinnegatamante
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?

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

Posted: Fri Nov 21, 2014 10:04 pm
by YoshiInAVoid
Strip the ELF first:

Code: Select all

arm-none-eabi-strip file.elf

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

Posted: Sat Nov 22, 2014 10:33 am
by Rinnegatamante
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

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

Posted: Sat Nov 22, 2014 4:07 pm
by YoshiInAVoid
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

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

Posted: Sat Nov 22, 2014 4:27 pm
by Rinnegatamante
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