[PATCH,PE] Allow .DEF file parser to handle 'foreign' language symbols.
Dave Korn
dave.korn.cygwin@googlemail.com
Wed May 27 18:41:00 GMT 2009
Dave Korn wrote:
> Unless anyone objects, I intend to apply the attached patch within the next
> 24 hours or so, subject to some further testing on a number of targets
> (including Cygwin, MinGW and CeGCC).
Passed everywhere.
> ld/ChangeLog
>
> * deffilep.y (%union): Add new string-type semantic value 'digits'.
> (%token): Remove NUMBER as token, add DIGITS.
> (%type): Add NUMBER as type. Add new id types anylang_id, opt_id.
> (ALIGNCOMM): Parse an anylang_id instead of a plain ID.
> (anylang_id): New production.
> (opt_digits): Likewise.
> (opt_id): Likewise.
> (NUMBER): Likewise.
> (def_lex): Return strings of digits in raw string form as DIGITS
> token, instead of converting to numeric integer type.
>
> ld/testsuite/ChangeLog
>
> * ld-pe/non-c-lang-syms.c: New dump test source file.
> * ld-pe/non-c-lang-syms.d: New dump test pattern file.
> * ld-pe/pe.exp: Run new "foreign symbol" test.
And applied.
cheers,
DaveK
More information about the Binutils
mailing list