When I make shared library with option -fPIC, the result is wrong and
different
that made static library.
first time , I made apps with static library. code works fine.
however when i make apps with shared library , it's not fine. but I must
use shared library.
My library is something about image routine(contains mmx inline assembly).
This code is inline assem sample
Expand|Select|Wrap|Line Numbers
- extern const short tab_row[];
- extern const short tab_col[];
- img_mmx(short* blk)
- {
- asm volatile(
- ....
- :
- :"m"(blk), "m"(*tab_row), "m"(*tab_col)
- :"memory"
- );
- );
- }
------------------------------------------------
with -fPIC
Expand|Select|Wrap|Line Numbers
- U _GLOBAL_OFFSET_TABLE
- ....000 T __i686.get_pc_thunk.bx
- ....000 T __i686.get_pc_thunk.cx
- ....324 T img_mmx
- U tab_row
- U tab_col
Expand|Select|Wrap|Line Numbers
- ....324 T img_mmx
- U tab_row
- U tab_col
compile with gcc3.3.1
I think this problem is about memory reallocation. How do i solve it?
Anyone have a similar problem with this?
thanks in advance