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.
Locked
Rinnegatamante
VIP
Posts: 912
Joined: Sat Mar 26, 2011 10:02 am
Contact:

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

Post 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?
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 »

Strip the ELF first:

Code: Select all

arm-none-eabi-strip file.elf
Advertising
Rinnegatamante
VIP
Posts: 912
Joined: Sat Mar 26, 2011 10:02 am
Contact:

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

Post 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
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 »

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
Rinnegatamante
VIP
Posts: 912
Joined: Sat Mar 26, 2011 10:02 am
Contact:

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

Post 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
If you want, visit my website: http://rinnegatamante.it :D
Locked

Return to “Programming and Security”