From: David McCullough Date: Wed, 25 Jun 2003 04:49:40 +0000 (+0000) Subject: Microblaze changes from John Williams. X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=6c87b783aabb64e30042d1a11ec01df9af0dbb6b;p=elf2flt.git Microblaze changes from John Williams. --- diff --git a/elf2flt.ld b/elf2flt.ld index acb893c..fd02352 100644 --- a/elf2flt.ld +++ b/elf2flt.ld @@ -59,14 +59,32 @@ R_RODAT *(.rodata.*) *(.data1) *(.eh_frame) *(.gcc_except_table) + + /* Microblaze has .sdata and .sbss (small bss). They must + be contiguous, so please don't move any of this. JW */ + _ssrw = . ; *(.sdata) *(.sdata.*) + *(.sbss) /* Don't move this! */ + _essrw = . ; + + _ssrw_size = _essrw - _ssrw; + PROVIDE(_SDA_BASE_ = _ssrw + (_ssrw_size / 2)); + *(.gnu.linkonce.s.*) *(__libc_atexit) *(__libc_subinit) *(__libc_subfreeres) *(.note.ABI-tag) + /* microblaze-specific read-only small data area + and associated locating symbols */ + _ssro = . ; + *(.sdata2) + _essro = . ; + _ssro_size = _essro - _ssro; + PROVIDE(_SDA2_BASE_ = _ssro + (_ssro_size / 2)); + . = ALIGN(4) ; __CTOR_LIST__ = .; LONG((__CTOR_END__ - __CTOR_LIST__) / 4 - 2)