public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Re: [binutils-gdb] Add --enable-linker-version option to bfd linker to add an entry in the .comment section.
       [not found] <20230315142802.0DB5A385841C@sourceware.org>
@ 2023-10-16 19:45 ` Andreas Schwab
  2023-10-17  9:20   ` Nick Clifton
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Schwab @ 2023-10-16 19:45 UTC (permalink / raw)
  To: Nick Clifton; +Cc: binutils, Nick Clifton

On Mär 15 2023, Nick Clifton via Binutils-cvs wrote:

> +Inserts a string containing the version of the linker at the current
> +point.  Note - by default this directive is disabled and will do
> +nothing.  It only becomes active if the
> +@option{--enable-linker-version} command line option is used.

That does not say what it describes.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [binutils-gdb] Add --enable-linker-version option to bfd linker to add an entry in the .comment section.
  2023-10-16 19:45 ` [binutils-gdb] Add --enable-linker-version option to bfd linker to add an entry in the .comment section Andreas Schwab
@ 2023-10-17  9:20   ` Nick Clifton
  2023-10-17  9:28     ` Andreas Schwab
  0 siblings, 1 reply; 4+ messages in thread
From: Nick Clifton @ 2023-10-17  9:20 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: binutils, Nick Clifton

Hi Andreas,

>> +Inserts a string containing the version of the linker at the current
>> +point.  Note - by default this directive is disabled and will do
>> +nothing.  It only becomes active if the
>> +@option{--enable-linker-version} command line option is used.
> 
> That does not say what it describes.

Do you mean that it does not document the format of the string that
is inserted by the LINKER_VERSION script command ?

Would this addition be sufficient for you ?

   "The inserted string is the same as would be shown on the
    first line of the output from linker if it were to be run
    with the --version option specified"

Cheers
   Nick



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [binutils-gdb] Add --enable-linker-version option to bfd linker to add an entry in the .comment section.
  2023-10-17  9:20   ` Nick Clifton
@ 2023-10-17  9:28     ` Andreas Schwab
  2023-10-17  9:45       ` Nick Clifton
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Schwab @ 2023-10-17  9:28 UTC (permalink / raw)
  To: Nick Clifton; +Cc: binutils, Nick Clifton

On Okt 17 2023, Nick Clifton wrote:

> Hi Andreas,
>
>>> +Inserts a string containing the version of the linker at the current
>>> +point.  Note - by default this directive is disabled and will do
>>> +nothing.  It only becomes active if the
>>> +@option{--enable-linker-version} command line option is used.
>> That does not say what it describes.
>
> Do you mean that it does not document the format of the string that
> is inserted by the LINKER_VERSION script command ?

It does not mention LINKER_VERSION at all, so that the paragraph does
not make any sense.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
"And now for something completely different."

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [binutils-gdb] Add --enable-linker-version option to bfd linker to add an entry in the .comment section.
  2023-10-17  9:28     ` Andreas Schwab
@ 2023-10-17  9:45       ` Nick Clifton
  0 siblings, 0 replies; 4+ messages in thread
From: Nick Clifton @ 2023-10-17  9:45 UTC (permalink / raw)
  To: Andreas Schwab; +Cc: binutils, Nick Clifton

Hi Andreas,

>>>> +Inserts a string containing the version of the linker at the current
>>>> +point.  Note - by default this directive is disabled and will do

>>> That does not say what it describes.
>>
>> Do you mean that it does not document the format of the string that
>> is inserted by the LINKER_VERSION script command ?
> 
> It does not mention LINKER_VERSION at all, so that the paragraph does
> not make any sense.

Ah, now I understand.  I was confused because I thought that the @kindex
and @cindex directives before that paragraph would actually add text to
the ouput.

I am applying the patch below to fix this.

Cheers
   Nick

diff --git a/ld/ld.texi b/ld/ld.texi
index 2663f07e9ae..600c9d62806 100644
--- a/ld/ld.texi
+++ b/ld/ld.texi
@@ -5516,10 +5516,10 @@ expression.

  @kindex LINKER_VERSION
  @cindex LINKER_VERSION
-Inserts a string containing the version of the linker at the current
-point.  Note - by default this directive is disabled and will do
-nothing.  It only becomes active if the
-@option{--enable-linker-version} command line option is used.
+The @code{LINKER_VERSION} command inserts a string containing the
+version of the linker at the current point.  Note - by default this
+directive is disabled and will do nothing.  It only becomes active if
+the @option{--enable-linker-version} command line option is used.

  Built-in linker scripts for ELF based targets already include this
  directive in their @samp{.comment} section.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-10-17  9:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20230315142802.0DB5A385841C@sourceware.org>
2023-10-16 19:45 ` [binutils-gdb] Add --enable-linker-version option to bfd linker to add an entry in the .comment section Andreas Schwab
2023-10-17  9:20   ` Nick Clifton
2023-10-17  9:28     ` Andreas Schwab
2023-10-17  9:45       ` Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).