diff options
author | Ian Lance Taylor <ian@airs.com> | 1993-12-01 17:22:03 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1993-12-01 17:22:03 +0000 |
commit | f651733a12b1e147ba33a32fdbe5e9ad299a38a0 (patch) | |
tree | cffe74d154adefe8ba537ce82945eb8bd1488998 /ld/ldlex.l | |
parent | 777ad64d69839022ebf7b5988aa6de888fa6915b (diff) | |
download | gdb-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.l | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -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; |