URL
https://opencores.org/ocsvn/riscv_vhdl/riscv_vhdl/trunk
Subversion Repositories riscv_vhdl
[/] [riscv_vhdl/] [trunk/] [examples/] [boot/] [makefiles/] [test.ld] - Rev 5
Compare with Previous | Blame | View Log
/*----------------------------------------------------------------------*/
/* Setup */
/*----------------------------------------------------------------------*/
/* The OUTPUT_ARCH command specifies the machine architecture where the
argument is one of the names used in the BFD library. More
specifically one of the entires in bfd/cpu-mips.c */
OUTPUT_ARCH( "riscv" )
/*----------------------------------------------------------------------*/
/* Sections */
/*----------------------------------------------------------------------*/
SECTIONS
{
/* text: test code section */
. = 0x0000;
.text :
{
../linuxbuild/obj/crt.o(.text)
}
/* data segment */
.data : { *(.data) }
.sdata : {
_gp = . + 0x800;
*(.srodata.cst16) *(.srodata.cst8) *(.srodata.cst4) *(.srodata.cst2) *(.srodata*)
*(.sdata .sdata.* .gnu.linkonce.s.*)
}
/* bss segment */
.sbss : {
*(.sbss .sbss.* .gnu.linkonce.sb.*)
*(.scommon)
}
.bss : { *(.bss) }
/* thread-local data segment */
.tdata :
{
_tls_data = .;
../linuxbuild/obj/crt.o(.tdata.begin)
*(.tdata)
../linuxbuild/obj/crt.o(.tdata.end)
}
.tbss :
{
*(.tbss)
../linuxbuild/obj/crt.o(.tbss.end)
}
/* End of uninitalized data segement */
_end = .;
}