[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[microblaze-uclinux] Relocate sections in bflt file format
- To: microblaze-uclinux@xxxxxxxxxxxxxx
- Subject: [microblaze-uclinux] Relocate sections in bflt file format
- From: "Tommy Kamps" <tommy.kamps@xxxxxxxxx>
- Date: Mon, 17 Mar 2008 15:39:37 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=dnN2qS5yqO/5mKkUqoE54qsJzMVCoO6JmaOru6ujkSo=; b=H9jyG8mI1EypYKT3SbMeL2YxfucHKEquYbjoLxYmmFXXk3Ke5mxiMbr8slqwWltgfYzd9VFdNlBw7eKmCtPzA8neBIFe0tsR+BZDbtYELjMDUrDA4V9PTEM86aoC2A84dfjN3e53RFQKB8KkeqxKSUs96WoE1cBtjKMOTutz13I=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=g5JQ7BMa78XOIs4vQxxqYAjZyCryuh6O2lyfeBnQLLWMxzOCzITUHPADZVMPJJqkpBDS+HiFo8qyBXkXQIWBfKUnnMJCvxVnPprFKyjhMMkm5zKAljigXPeG/Z95n0Xm4YI4XEB+L+iiXS6exQMmSOg93qxOBNEiHzfqnLE/HuQ=
- Reply-to: microblaze-uclinux@xxxxxxxxxxxxxx
- Sender: owner-microblaze-uclinux@xxxxxxxxxxxxxx
Hi,
Hopefully, I am in the right place for this question.
I am running uClinux 2.6.20 on A Xilinx Spartan3E500 Revision D board.
The MicroBlaze design contains a coprocessor that I have designed myself.
This coprocessor has an internal block ram and some custom logic and
is connected to the FSL bus
and to the PLB for memory access to the block ram.
I have developed a user program that contains two global arrays that
should be put in the
block RAM of the coprocessor. When using the Xilinx kernel, this can
be done by putting the arrays
in a separate section:
int array_1[16] __attribute__ ((section(".cpmem")));
int array_2[16] __attribute__ ((section(".cpmem")));
and using a linker script that assigns the PLB address of the
coprocessor to this section.
Now, I want to run this application in uClinux. The problem is that
the elf file format is not used here, but the
Binary Flat File Format (bflt). The linker script that worked for the
Xilinx MicroBlaze linker does not work for the
microblaze-uclinux-ld linker. I have found some information about the
bflt format, but it was not sufficient for me
to solve this problem. I know I have to do something with relocation,
but I am not sure how, and I could not find sufficient
information about this subject.
Can someone please give some pointers to fix this?
Thanks in advance,
Tommy Kamps
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/