This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Gas vs irregular files
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: Etienne Lorrain <etienne_lorrain at yahoo dot fr>
- Cc: Nick Clifton <nickc at redhat dot com>, binutils at sources dot redhat dot com
- Date: 05 Jan 2004 08:12:05 -0500
- Subject: Re: Gas vs irregular files
- References: <20040105121213.36495.qmail@web11802.mail.yahoo.com>
Etienne Lorrain <etienne_lorrain@yahoo.fr> writes:
> While reading the manual, I see that you cannot use "-" as a filename
> for standard input, so that you can pipe the output of another
> command (not only GAS/LD but for instance some software to read
> FLASH/EEPROM). That is another "non usual" behaviour which could be
> fixed if someone has the time for that.
You can pipe standard input to the assembler. That's how gcc works
when the -pipe option is used.
It would be difficult to make the linker or objdump read from standard
input. The only feasible way to do it would be to read standard input
into a temporary file (possibly in memory), and work from there.
Ian