aboutsummaryrefslogtreecommitdiff
path: root/tests2/43_void_param.c
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2012-11-04 00:40:05 +0100
committerThomas Preud'homme <robotux@celest.fr>2012-11-07 20:51:33 +0100
commit891dfcdf3fc441a1863c43d179dc6e0e4d65836f (patch)
treed1e90545bf0b49c3d7cb65487663077892b3e1ba /tests2/43_void_param.c
parente07802e39d415951ff4a57e12de9b1855d8b0d77 (diff)
downloadtinycc-891dfcdf3fc441a1863c43d179dc6e0e4d65836f.tar.gz
tinycc-891dfcdf3fc441a1863c43d179dc6e0e4d65836f.tar.bz2
Generate PLT thumb stub only when necessary
Generate PLT thumb stub for an ARM PLT entry only when at least one Thumb instruction branches to that entry. Warning: To save space, this commit reuses the bit 0 of entries of got_offsets array. The GOT offset is thus saved in a 31 bit value. Make sure to divide by 2 (right shift by 1) an offset before storing it there and conversely to multiply the value by 2 (left shift by 1) before using it.
Diffstat (limited to 'tests2/43_void_param.c')
0 files changed, 0 insertions, 0 deletions