summaryrefslogtreecommitdiff
path: root/outbin.c
diff options
context:
space:
mode:
Diffstat (limited to 'outbin.c')
-rw-r--r--outbin.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/outbin.c b/outbin.c
index 362e4f84..da82abc5 100644
--- a/outbin.c
+++ b/outbin.c
@@ -241,6 +241,11 @@ static void bin_out (long segto, void *data, unsigned long type,
static void bin_deflabel (char *name, long segment, long offset,
int is_global) {
+ if (name[0] == '.' && name[1] == '.' && name[2] != '@') {
+ error (ERR_NONFATAL, "unrecognised special symbol `%s'", name);
+ return;
+ }
+
if (is_global == 2) {
error (ERR_NONFATAL, "binary output format does not support common"
" variables");