Revision ebef9db770b949ff44442a7de8c0bb23039090d0 authored by Trammell Hudson on 17 May 2009, 05:22:01 UTC, committed by Trammell Hudson on 17 May 2009, 05:22:01 UTC
1 parent 15f8548
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:
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...