Call a function in another object file without using PLT within a shared library?
问题 I have two assembly codes, code1.s and code2.s and I want to build a relocatable (using -fPIC switch) shared library from these two. I want code2.s call a function, named myfun1 , which is defined in code1.s . When I use call myfun1@PLT in code2.s it finds the function and it works like a charm but it uses PLT section to call this function which is in the same shared library. I want to do this without adhering to PLT section. When I remove @PLT I get the relocation R_X86_64_PC32 against