Forums | developer.brewmp.com Forums | developer.brewmp.com

Developer

Forums

I've compile my c++ application for brew and get ELF file which should be translated to MOD file using BREWelf2mod.exe from BREW Addins...
(I'm using STL in my code)

And getting this error: Unknown type "R_ARM_THM_CALL"

So, following instructions from wardw's topic "HOWTO: Compile with GNU WinARM 4.1.0", used his tool to replace R_ARM_THM_CALL with R_ARM_THM_PC22 I've got Unknown type "R_ARM_THM_PC22"

Somebody can say, how to translate elf to mod correctly?

Wow, this could not have been more timely for you.
We have found this tool to work quite well.
http://brewforums.qualcomm.com/showthread.php?t=12804

Wow, this could not have been more timely for you.
We have found this tool to work quite well.
http://brewforums.qualcomm.com/showthread.php?t=12804

:cool: :)

:cool: :)

elf2mod: Error: ELFFile:343: ELF2Mod_Exception : No RO PT_LOAD Segment in ELF file

elf2mod: Error: ELFFile:343: ELF2Mod_Exception : No RO PT_LOAD Segment in ELF file

I am also having trouble changing the elf from the linker into a mod while using the WinARM tool chain. The error message I'm getting is:
elf2mod: Error: ELFFile:343: Elf2Mod_Exception : No RO PT_LOAD Segment in ELF file
I followed Ward Willat's guide at: http://brew.wardco.com/index.html.
I'm using the latest elf2mod from the BREW website. If I use the old BREWelf2mod, everything works. Not really sure where to go from here, so I'd definitely appreciate any help that could be offered.

I am also having trouble changing the elf from the linker into a mod while using the WinARM tool chain. The error message I'm getting is:
elf2mod: Error: ELFFile:343: Elf2Mod_Exception : No RO PT_LOAD Segment in ELF file
I followed Ward Willat's guide at: http://brew.wardco.com/index.html.
I'm using the latest elf2mod from the BREW website. If I use the old BREWelf2mod, everything works. Not really sure where to go from here, so I'd definitely appreciate any help that could be offered.

While linking you .o files, use the link script provided in Quote:%programfiles%\BREW ELF2MOD\gnu\elf2mod.x
thus your link operation will become
Quote:arm-elf-ld -o APPModGen.o AppAppGen.o
elf2mod will happily accept the elf file created by the above step.
Quote:elf2mod.exe -o
Cheers :-)

While linking you .o files, use the link script provided in Quote:%programfiles%\BREW ELF2MOD\gnu\elf2mod.x
thus your link operation will become
Quote:arm-elf-ld -o APPModGen.o AppAppGen.o
elf2mod will happily accept the elf file created by the above step.
Quote:elf2mod.exe -o
Cheers :-)

Read APPModGen.o and APPAppGen.o as AEEModGen.o and AEEAppGen.o

Read APPModGen.o and APPAppGen.o as AEEModGen.o and AEEAppGen.o

I did all this and my mod is generated but still wont run. I noticed that elf2mod.x doesn't put AEEModLoad as the entry point.
So I changed this... but still my mom wont run on the phone (reboots). Any ideas?

I did all this and my mod is generated but still wont run. I noticed that elf2mod.x doesn't put AEEModLoad as the entry point.
So I changed this... but still my mom wont run on the phone (reboots). Any ideas?