Better DLL support on x86-64.
commit040ef000e486ac1e47cde85698878cb06ad34973
authorShinichiro Hamaji <shinichiro.hamaji _at_ gmail.com>
Tue, 31 Mar 2009 13:17:36 +0000 (31 22:17 +0900)
committergrischka <grischka>
Sat, 18 Apr 2009 13:07:09 +0000 (18 15:07 +0200)
tree0cb8232d9b58e191052b0dc4be15facabd25c7e5
parentfe8f230ab6bc26ab0a9a61412594111d8df5971d
Better DLL support on x86-64.

- Add a macro TCC_OUTPUT_DLL_WITH_PLT.
-- Now, the DLL with PLT support works only on x86-64, but we may be able to support it on all architectures eventually.
- Define TCC_OUTPUT_DLL_WITH_PLT when target architecture is x86-64.
- Current status (x86-64):
-- Main program should be able to call functions in shared objects.
-- Main program should be able to use global variables in shared objects.
-- Shared objects should be able to call functions in main  program.
-- Shared objects can NOT use global variables in main program.
- To fix the last issue, we may need to add support of -fPIC option in our code generator.
tccelf.c