From 6c87b783aabb64e30042d1a11ec01df9af0dbb6b Mon Sep 17 00:00:00 2001 From: David McCullough Date: Wed, 25 Jun 2003 04:49:40 +0000 Subject: [PATCH] Microblaze changes from John Williams. --- elf2flt.ld | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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) -- 2.39.5