aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlex.l
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1992-04-15 23:11:09 +0000
committerSteve Chamberlain <sac@cygnus>1992-04-15 23:11:09 +0000
commit2e38b71d27d48f7a1698560a71decb528422174c (patch)
treea0fdb76b896ab62af0655e78238a2c5585dc251b /ld/ldlex.l
parent3d2b83ea49dc76204b0b068a56d8c9c37075b0d5 (diff)
downloadgdb-2e38b71d27d48f7a1698560a71decb528422174c.zip
gdb-2e38b71d27d48f7a1698560a71decb528422174c.tar.gz
gdb-2e38b71d27d48f7a1698560a71decb528422174c.tar.bz2
Strange link script support
Diffstat (limited to 'ld/ldlex.l')
-rw-r--r--ld/ldlex.l11
1 files changed, 7 insertions, 4 deletions
diff --git a/ld/ldlex.l b/ld/ldlex.l
index c2eb5ea..f4ffc4c 100644
--- a/ld/ldlex.l
+++ b/ld/ldlex.l
@@ -65,7 +65,7 @@ unsigned int include_stack_ptr = 0;
%a 4000
%o 5000
FILENAMECHAR1 [_a-zA-Z\/\.\\]
-FILENAMECHAR [_a-zA-Z0-9\/\.\-\_\+\=\$\:\[\]\\]
+FILENAMECHAR [_a-zA-Z0-9\/\.\-\_\+\$\:\[\]\\]
FILENAME {FILENAMECHAR}+
WHITE [ \t\n]+
@@ -277,12 +277,15 @@ WHITE [ \t\n]+
<BOTH,SCRIPT>"org" { RTOKEN(ORIGIN);}
<BOTH,SCRIPT>"l" { RTOKEN( LENGTH);}
<BOTH,SCRIPT>"len" { RTOKEN( LENGTH);}
-
+<MRI>"\n" { ++ lineno; RTOKEN(NEWLINE); }
<MRI>^"*".* { /* Mri comment line */ }
-<MRI>\n { ++ lineno; }
+<MRI>"END" { RTOKEN(ENDWORD); }
<MRI>"CHIP" { RTOKEN(CHIP); }
<MRI>"LOAD" { RTOKEN(LOAD); }
-<MRI>"LIST".*\n { RTOKEN(LIST); /* LIST and ignore to end of line */ }
+<MRI>"ORDER" { RTOKEN(ORDER); }
+<MRI>"NAME" { RTOKEN(NAMEWORD); }
+<MRI>"FORMAT" { RTOKEN(FORMAT); }
+<MRI>"LIST".* { RTOKEN(LIST); /* LIST and ignore to end of line */ }
<MRI>"SECT" { RTOKEN(SECT); }
<MRI>"ABSOLUTE" { RTOKEN(ABSOLUTE); }