[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: possible minor bug in ld
From: |
Smith, Ken (G.) |
Subject: |
RE: possible minor bug in ld |
Date: |
Thu, 4 Apr 2002 07:45:38 -0500 |
That worked. Althought I though the manual says that the two versions of the
command are the same. No?
Snipped from ld.txt "ld: the GNU linker":
For options whose names are multiple letters, either one dash or two
can precede the option name; for example, `--oformat' and `--oformat'
are equivalent. Arguments to multiple-letter options must either be
separated from the option name by an equals sign, or be given as
separate arguments immediately following the option that requires them.
For example, `--oformat srec' and `--oformat=srec' are equivalent.
Unique abbreviations of the names of multiple-letter options are
accepted.
In the above passage, I thought that
`--oformat' and `--oformat'
was a typo which should have read
`--oformat' and `-oformat'
Thanks for any further clarification.
> -----Original Message-----
> From: Alan Modra [mailto:address@hidden
> Sent: Wednesday, April 03, 2002 17:21
> To: Smith, Ken (G.)
> Cc: address@hidden
> Subject: Re: possible minor bug in ld
>
>
> On Wed, Apr 03, 2002 at 04:14:03PM -0500, Smith, Ken (G.) wrote:
> > h8300-hms-ld tiny.xcl -oformat=srec -o main.mot main.o
>
> Use two dashes with oformat. ie. --oformat=srec
>
> You told ld that the output file (ie. -o option) was named
> `format=srec', then changed your mind to use `main.mot'.
>
> --
> Alan Modra
> IBM OzLabs - Linux Technology Centre
>