diff options
| author | Shinichiro Hamaji <shinichiro.hamaji _at_ gmail.com> | 2009-04-13 03:22:08 +0900 |
|---|---|---|
| committer | grischka <grischka> | 2009-04-18 15:08:01 +0200 |
| commit | fcf2e5981fe5e37e3aee633b414486311e54bc8e (patch) | |
| tree | c6d2a56070f03622b184654bb2b37dc58a038ea8 /x86_64-gen.c | |
| parent | 830b7533c99f86203c4fbaf94897679678c3bad0 (diff) | |
| download | tinycc-fcf2e5981fe5e37e3aee633b414486311e54bc8e.tar.gz tinycc-fcf2e5981fe5e37e3aee633b414486311e54bc8e.tar.bz2 | |
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...).
Diffstat (limited to 'x86_64-gen.c')
| -rw-r--r-- | x86_64-gen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/x86_64-gen.c b/x86_64-gen.c index 8e39372..1d0d8db 100644 --- a/x86_64-gen.c +++ b/x86_64-gen.c @@ -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 |
