ca9111ef64
Vectors are needed by the CPU, but they don't need to be accessed by Rockbox. Without the KEEP(), they can be removed when liking with --gc-sections, creating a broken binary without any warnings. This tells the linker to not remove them. It should enable use of --gc-sections for all targets. When not using --gc-sections, this does not change the binary. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31351 a1c6a512-1295-4272-9138-f99709370657
36 lines
424 B
Text
36 lines
424 B
Text
ENTRY(start)
|
|
OUTPUT_FORMAT(elf32-sh)
|
|
SECTIONS
|
|
{
|
|
.text 0x09010000 :
|
|
{
|
|
KEEP(*(.vectors))
|
|
. = ALIGN(0x200);
|
|
*(.init.text)
|
|
}
|
|
|
|
.text :
|
|
{
|
|
*(.text)
|
|
}
|
|
|
|
.data :
|
|
{
|
|
*(.rodata)
|
|
*(.data)
|
|
}
|
|
|
|
.rodata :
|
|
{
|
|
*(.rodata)
|
|
}
|
|
|
|
.bss :
|
|
{
|
|
_edata = .;
|
|
*(.bss)
|
|
*(COMMON)
|
|
_end = .;
|
|
_stack = . + 0x80000;
|
|
}
|
|
}
|