summaryrefslogtreecommitdiff
path: root/outrdf.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2002-04-30 20:52:26 +0000
committerH. Peter Anvin <hpa@zytor.com>2002-04-30 20:52:26 +0000
commit6768eb71d8debde65562619c938b997aea1bd9f9 (patch)
tree93fc4f4a6d66891ace9494b737aa4b2c1bed37ef /outrdf.c
parentd7ed89eac9580f280fe0017b22c8e38ca75ed8e3 (diff)
downloadnasm-6768eb71d8debde65562619c938b997aea1bd9f9.tar.gz
nasm-6768eb71d8debde65562619c938b997aea1bd9f9.tar.bz2
nasm-6768eb71d8debde65562619c938b997aea1bd9f9.zip
NASM 0.95
Diffstat (limited to 'outrdf.c')
-rw-r--r--outrdf.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/outrdf.c b/outrdf.c
index 2a70db8..dd87775 100644
--- a/outrdf.c
+++ b/outrdf.c
@@ -91,7 +91,7 @@ typedef struct memorybuffer {
struct memorybuffer *next;
} memorybuffer;
-static memorybuffer * newmembuf(){
+static memorybuffer * newmembuf(void){
memorybuffer * t;
t = nasm_malloc(sizeof(memorybuffer));
@@ -269,6 +269,11 @@ static void rdf_deflabel(char *name, long segment, long offset, int is_global)
static int warned_common = 0;
#endif
+ if (name[0] == '.' && name[1] == '.' && name[2] != '@') {
+ error (ERR_NONFATAL, "unrecognised special symbol `%s'", name);
+ return;
+ }
+
if (is_global && segment > 4) {
#ifdef VERBOSE_WARNINGS
if (! warned_common) {