forked from len0rd/rockbox
This test program. I add it mainly to document somehow my work: 1) atj213x.h lists registers addresses 2) crt0.S exploits self relocation of the binary 3) test_bl.c documents how to control backlight on e150 Change-Id: I055e0fe065d926a5c3805b73cea3f537cb64bf52
38 lines
479 B
Text
38 lines
479 B
Text
OUTPUT_ARCH(mips)
|
|
ENTRY(main)
|
|
|
|
SECTIONS
|
|
{
|
|
|
|
|
|
.text 0xa0001000 :
|
|
{
|
|
relocstart = .;
|
|
*(.init.text*)
|
|
*(.text*)
|
|
}
|
|
|
|
.data :
|
|
{
|
|
*(.rodata*)
|
|
*(.data*)
|
|
relocend = .;
|
|
}
|
|
|
|
.bss :
|
|
{
|
|
bssbegin = .;
|
|
*(.sbss*)
|
|
*(.bss*)
|
|
*(COMMON)
|
|
*(.scommon*)
|
|
bssend = .;
|
|
}
|
|
|
|
.stack (NOLOAD) :
|
|
{
|
|
stackbegin = .;
|
|
. += 0x2000;
|
|
stackend = .;
|
|
}
|
|
}
|