diff options
author | Camil Staps | 2016-11-08 13:48:16 +0000 |
---|---|---|
committer | Camil Staps | 2016-11-08 13:48:16 +0000 |
commit | 59e92720421df1262dd642968beafe5b11cc6b77 (patch) | |
tree | 1e5bf5d6057e8a6f440ef9e44e3d5ff79561a7cc | |
parent | Indirect jsr is always with a register, hence +7 (not +9) (diff) |
Storing a label as a .long needs +1 for thumb mode
-rw-r--r-- | cgthumb2was.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cgthumb2was.c b/cgthumb2was.c index b6963b4..e4a03af 100644 --- a/cgthumb2was.c +++ b/cgthumb2was.c @@ -138,7 +138,7 @@ void w_as_long_in_data_section (int n) void w_as_label_in_data_section (char *label_name) { w_as_to_data_section (); - fprintf (assembly_file,"\t.long\t%s\n",label_name); + fprintf (assembly_file,"\t.long\t%s+1\n",label_name); } static void w_as_label_in_code_section (char *label_name) |