diff options
| author | Thomas Preud'homme <robotux@celest.fr> | 2016-11-17 22:54:06 +0000 |
|---|---|---|
| committer | Thomas Preud'homme <robotux@celest.fr> | 2016-12-03 17:26:51 +0000 |
| commit | 523b55d82d455951659868d68eb54c4f5dbfb5a4 (patch) | |
| tree | 5b73752ab76c0365f763a354920a78bd3ec27b07 /arm-gen.c | |
| parent | 6cd23d1d8cb904e7168893e67b7ffbc718b3237d (diff) | |
| download | tinycc-523b55d82d455951659868d68eb54c4f5dbfb5a4.tar.gz tinycc-523b55d82d455951659868d68eb54c4f5dbfb5a4.tar.bz2 | |
Only create GOT or GOT entry when needed
Currently we always build a GOT when we recognize a relocation in
build_got_entries even if the relocation does not require one. In the
same spirit, when the relocation does require one we always create a GOT
entry even if not entry is necessary. This patch restricts the creation
of a GOT and a GOT entry to relocations that needs it, ie:
- do not create a GOT if relocation is not related to GOT and symbol is
not UNDEF
- do not create a GOT entry if relocation only relates to beginning of
GOT
Diffstat (limited to 'arm-gen.c')
0 files changed, 0 insertions, 0 deletions
