x86-64: Combine buffers of sections before we call tcc_run().
- Now we can run tcc -run tcc.c successfully, though there are some bugs. - Remove jmp_table and got_table and use text_section for got and plt entries. - Combine buffers in tcc_relocate(). - Use R_X86_64_64 instead of R_X86_64_32 for R_DATA_32 (now the name R_DATA_32 is inappropriate...).
This commit is contained in:
committed by
grischka
parent
830b7533c9
commit
fcf2e5981f
@ -91,7 +91,7 @@ int reg_classes[NB_REGS] = {
|
||||
#define EM_TCC_TARGET EM_X86_64
|
||||
|
||||
/* relocation type for 32 bit data relocation */
|
||||
#define R_DATA_32 R_X86_64_32
|
||||
#define R_DATA_32 R_X86_64_64
|
||||
#define R_JMP_SLOT R_X86_64_JUMP_SLOT
|
||||
#define R_COPY R_X86_64_COPY
|
||||
|
||||
|
||||
Reference in New Issue
Block a user