K
kscho
Hi~
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
This is check result with nm :
------------------------------------------------
with -fPIC
no -fPIC
-------------------------------------------------------
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
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
Code:
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"
);
);
}
This is check result with nm :
------------------------------------------------
with -fPIC
Code:
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
no -fPIC
Code:
....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