aboutsummaryrefslogtreecommitdiff
path: root/ld/ldlex.l
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1993-12-01 17:22:03 +0000
committerIan Lance Taylor <ian@airs.com>1993-12-01 17:22:03 +0000
commitf651733a12b1e147ba33a32fdbe5e9ad299a38a0 (patch)
treecffe74d154adefe8ba537ce82945eb8bd1488998 /ld/ldlex.l
parent777ad64d69839022ebf7b5988aa6de888fa6915b (diff)
downloadgdb-f651733a12b1e147ba33a32fdbe5e9ad299a38a0.zip
gdb-f651733a12b1e147ba33a32fdbe5e9ad299a38a0.tar.gz
gdb-f651733a12b1e147ba33a32fdbe5e9ad299a38a0.tar.bz2
* ldgram.y (OPTION_call_shared, OPTION_non_shared): New tokens.
(command_line_option): Accept and ignore them (for now). * ldlex.l (<COMMAND>): Handle -non_shared and -call_shared.
Diffstat (limited to 'ld/ldlex.l')
-rw-r--r--ld/ldlex.l10
1 files changed, 7 insertions, 3 deletions
diff --git a/ld/ldlex.l b/ld/ldlex.l
index 29445c7..19ded41 100644
--- a/ld/ldlex.l
+++ b/ld/ldlex.l
@@ -212,9 +212,11 @@ NOCFILENAMECHAR [_a-zA-Z0-9\/\.\-\_\+\$\:\[\]\\\~]
yylval.name = buystring (yytext+4);
return OPTION_YP;
}
+<COMMAND>"-non_shared" { return OPTION_non_shared; }
+<COMMAND>"-call_shared" { return OPTION_call_shared; }
<MRI,EXPRESSION>"$"([0-9A-Fa-f])+ {
- yylval.integer = strtoul(yytext+1, 0,16);
+ yylval.integer = bfd_scan_vma (yytext+1, 0,16);
return INT;
}
@@ -234,11 +236,13 @@ NOCFILENAMECHAR [_a-zA-Z0-9\/\.\-\_\+\$\:\[\]\\\~]
default:
base = 10;
}
- yylval.integer = strtoul(yytext+1, 0, base);
+ yylval.integer = bfd_scan_vma (yytext+1, 0,
+ base);
return INT;
}
<SCRIPT,DEFSYMEXP,MRI,BOTH,EXPRESSION>"$"?"0x"?([0-9A-Fa-f])+(M|K|m|k)? {
- yylval.integer = strtoul(yytext,0,hex_mode);
+ yylval.integer = bfd_scan_vma (yytext, 0,
+ hex_mode);
if (yytext[yyleng-1]=='M'
|| yytext[yyleng-1] == 'm') {
yylval.integer *= 1024*1024;