[#4535] put shared lib function into l2 failed be called
Submitted By: Mingquan Pan
Open Date
2008-10-16 02:52:59 Close Date
2008-10-31 05:07:08
Priority:
Medium High Assignee:
Jie Zhang
Status:
Closed Fixed In Release:
N/A
Found In Release:
N/A Release:
Category:
N/A Board:
N/A
Processor:
N/A Silicon Revision:
Is this bug repeatable?:
Yes Resolution:
Fixed
Uboot version or rev.:
Toolchain version or rev.:
trunk toolchain Oct 10
App binary format:
N/A
Summary: put shared lib function into l2 failed be called
Details:
put shared lib function into l2 failed be called in main on bf548.
helloworld.c:
#include <stdio.h>
int helloworld(char *str) __attribute__ ((l2));
int helloworld(char *str)
{
int i,r;
i = 0;
r = i+2;
printf("%s", str);
return r;
}
build command:
bfin-linux-uclibc-gcc -shared -o libhelloworld.so helloworld.c -fno-jump-tables -mfdpic -Wl,--sep-code -Wl,-z -Wl,now
bfin-linux-uclibc-gcc -o test_helloworld test_helloworld.c -lhelloworld -L./ -fno-jump-tables -mfdpic
Case 1 ...PASS
ifconfig eth0 10.100.4.50 up
root:/> ifconfig set success.
*******************************************************************
STEP 6: Copy testcase to target board
spawn rcp libhelloworld.so root@10.100.4.50:/lib/.
spawn rcp test_helloworld root@10.100.4.50:/.
Copy test_helloworld to target board done
/test_helloworld
/test_helloworld:582: can't map '/lib/libhelloworld.so'
/test_helloworld:582: can't map '/lib/libhelloworld.so'
/test_helloworld: can't load library 'libhelloworld.so'
root:/>
test_helloworld.c attached.
kernel version:## Starting application at 0x0026b568 ...
Linux version 2.6.26.5-ADI-2009R1-pre-svn5419 (test@my-local-machine) (gcc version 4.1.2 (ADI svn)) #12 Thu Oct 16 11:27:06 CST 2008
console [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 64MB
...
Follow-ups
--- Jie Zhang 2008-10-25 12:17:45
Should be fixed now. Please verify.
--- Mingquan Pan 2008-10-31 06:07:11
Yes,close.
Files
Changes
Commits
Dependencies
Duplicates
Associations
Tags
File Name File Type File Size Posted By
test_helloworld.c text/x-csrc 1259 Mingquan Pan
Makefile application/octet-stream 414 Mingquan Pan