diff options
| author | Shinichiro Hamaji <shinichiro.hamaji _at_ gmail.com> | 2009-04-13 00:27:04 +0900 |
|---|---|---|
| committer | grischka <grischka> | 2009-04-18 15:08:01 +0200 |
| commit | 830b7533c99f86203c4fbaf94897679678c3bad0 (patch) | |
| tree | ed583dda98119b1248b857bdd20e22db457de0d5 /bcheck.c | |
| parent | 6c10429aa5e7c65e725ed1989ddb856bbf7283aa (diff) | |
| download | tinycc-830b7533c99f86203c4fbaf94897679678c3bad0.tar.gz tinycc-830b7533c99f86203c4fbaf94897679678c3bad0.tar.bz2 | |
Generate PIC code so that we can create shared objects properly.
- Add got_table in TCCState. This approach is naive and the distance between executable code and GOT can be longer than 32bit.
- Handle R_X86_64_GOTPCREL properly. We use got_table for TCC_OUTPUT_MEMORY case for now.
- Fix load() and store() so that they access global variables via GOT.
Diffstat (limited to 'bcheck.c')
0 files changed, 0 insertions, 0 deletions
