Article View: gnu.utils.bug
Article #1248filename '%' bug in gld from binutils release 2.0 (with fix)
From: Eric Freudenthal
Date: Mon, 04 Jan 1993 11:07
Date: Mon, 04 Jan 1993 11:07
20 lines
1379 bytes
1379 bytes
(observed on an rs/6000 running aix:) Gcc uses mktemp() to generate "random" names for temporary files; these names may contain '%'. These filenames are passed to gld as arguments. Unfortunately, gld does not recognise '%' as a valid filename character: from ldlex.l: CMDFILENAMECHAR [_a-zA-Z0-9\/\.\\_\+\$\:\[\]\\\,\=\&\!\<\>\-\~] CMDFILENAMECHAR1 [_a-zA-Z0-9\/\.\\_\+\$\:\[\]\\\,\=\&\!\<\>\~] I added % to these productions as follows: CMDFILENAMECHAR [_a-zA-Z0-9\/\.\\_\+\$\:\[\]\\\,\=\&\!\<\>\%\~\-] CMDFILENAMECHAR1 [_a-zA-Z0-9\/\.\\_\+\$\:\[\]\\\,\=\&\!\<\>\%\~] I did not add % to productions for FILENAMECHAR or FILENAMECHAR1 because I was concerned that it might make the parser unable to recognize some arithmetic expressions. However, this leaves the program with strange semantics: some filenames can be referenced from the command line but not the script language! Eric
Technical Details
Message-ID:
<9301042107.AA06211@lab.ultra.nyu.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!lab.ultra.nyu.edu!freudentShow Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!lab.ultra.nyu.edu!freudent From: freudent@lab.ultra.nyu.edu (Eric Freudenthal) Subject: filename '%' bug in gld from binutils release 2.0 (with fix) Message-ID: <9301042107.AA06211@lab.ultra.nyu.edu> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Mon, 4 Jan 1993 11:07:54 GMT Approved: bug-gnu-utils@prep.ai.mit.edu Lines: 21