summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-03-22 18:32:07 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-03-22 18:32:07 (GMT)
commit222c14bbc67f8b15a41f3890ee11eff289c083bb (patch)
tree267555844176f5bbb5d3edee24779532506c7975
parentcd956221a807e4c1961e17602d5ca641b93a937a (diff)
Assigned the "sub_" prefix to subroutines and "loc_" to code labels, as expected.
-rw-r--r--ChangeLog6
-rw-r--r--src/arch/post.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 94c99d6..f3c4e88 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
17-03-22 Cyrille Bagard <nocbos@gmail.com>
+ * src/arch/post.c:
+ Assign the "sub_" prefix to subroutines and "loc_" to code labels,
+ as expected.
+
+17-03-22 Cyrille Bagard <nocbos@gmail.com>
+
* src/arch/target.c:
Ensure all string symbols referenced by instructions get a label.
diff --git a/src/arch/post.c b/src/arch/post.c
index babe6a9..9973dd3 100644
--- a/src/arch/post.c
+++ b/src/arch/post.c
@@ -84,11 +84,11 @@ void post_process_target_resolution(GArchInstruction *instr, GArchProcessor *pro
switch (type)
{
case STP_ROUTINE:
- snprintf(name, sizeof(name), "loc_%s", loc + 2);
+ snprintf(name, sizeof(name), "sub_%s", loc + 2);
break;
case STP_CODE_LABEL:
- snprintf(name, sizeof(name), "sub_%s", loc + 2);
+ snprintf(name, sizeof(name), "loc_%s", loc + 2);
break;
default: