https://bitbucket.org/hudson/magic-lantern
Revision 708c6c805f40a7933f1c53ab30be6ad44e0ebb6e authored by hudson@kremvax on 04 June 2009, 06:55:55 UTC, committed by hudson@kremvax on 04 June 2009, 06:55:55 UTC
1 parent 0632a1b
Raw File
Tip revision: 708c6c805f40a7933f1c53ab30be6ad44e0ebb6e authored by hudson@kremvax on 04 June 2009, 06:55:55 UTC
Confirmed mostly functional on 1.1.0; meters are not active during recording?
Tip revision: 708c6c8
ROM0.subs.S
.text
.org 0
.align 2
.globl _start
 
// stubs_2_elf.S
// (c) 2008 chr
// GPL v3+
// create elf file from a binary blob
// and mix with symbols from stubs files
 
// compile with:
// arm-linux-gnu-gcc -Wl,-N,-Ttext,0xff810000 -nostdlib stubs_2_elf.S -o rom.elf
 
 
// cheat around gdb ignoring absolute symbols
here = .
#define offs BASE
//#define offs 0
#define NSTUB(addr, name) \
	.global name; \
	name = here + addr - BASE;

#define NHSTUB NSTUB

 
// include rom dump
_start:
.text

// include translated file
#include "stubs.S"

blob_start:
.incbin "ROM0.bin"
blob_end:
back to top