aboutsummaryrefslogtreecommitdiff
path: root/tccelf.c
diff options
context:
space:
mode:
authorThomas Preud'homme <robotux@celest.fr>2012-06-12 17:57:31 +0200
committerThomas Preud'homme <robotux@celest.fr>2012-07-09 18:41:55 +0200
commited9c6b132abab8fad614b2a077a69b86cbb95cdd (patch)
tree55ab9965c44e97af8f81a0c91ced575e8cb7cfc4 /tccelf.c
parentd27a0b35482b907357d76a9db4e0b18ec89cf979 (diff)
downloadtinycc-ed9c6b132abab8fad614b2a077a69b86cbb95cdd.tar.gz
tinycc-ed9c6b132abab8fad614b2a077a69b86cbb95cdd.tar.bz2
Fix R_ARM_REL32 relocation
Add missing break in the code handling R_ARM_REL32 relocation.
Diffstat (limited to 'tccelf.c')
-rw-r--r--tccelf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tccelf.c b/tccelf.c
index 655860b..a16499b 100644
--- a/tccelf.c
+++ b/tccelf.c
@@ -636,6 +636,7 @@ ST_FUNC void relocate_section(TCCState *s1, Section *s)
break;
case R_ARM_REL32:
*(int *)ptr += val - addr;
+ break;
case R_ARM_BASE_PREL:
*(int *)ptr += s1->got->sh_addr - addr;
break;