This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Docs for --unresolved-symbols unclear?


Hi Volodya,

> the docs for --unresolved-symbols option of ld, say:
>
>    `ignore-all'
>           Do not report any unresolved symbols.  This is the default
>           when creating shared libraries or dynamic executables.
>

> I get only warning, and binary crashes at runtime. So, it seems that
> default  value of --unresolved-symbls is not "ignore-all".

> Is it so, and what's the real default value, or I'm missing
> something?

No - the default was changed in order to allow autoconf to work, but
the documentation was not updated to match this change.  I am going to
apply the patch below to fix the documentation.

Cheers
        Nick

ld/ChangeLog
2003-12-02  Nick Clifton  <nickc@redhat.com>

	* ld.texinfo (Options): --ignore-all is no longer the default
	behaviour for shared libraries and dynamic executables.

Index: ld/ld.texinfo
===================================================================
RCS file: /cvs/src/src/ld/ld.texinfo,v
retrieving revision 1.101
diff -c -3 -p -r1.101 ld.texinfo
*** ld/ld.texinfo	6 Nov 2003 11:58:58 -0000	1.101
--- ld/ld.texinfo	2 Dec 2003 15:26:23 -0000
*************** for which shared libraries are supported
*** 985,992 ****
  default on such platforms.  The different variants of this option are
  for compatibility with various systems.  You may use this option
  multiple times on the command line: it affects library searching for
! @option{-l} options which follow it.  This
! option also implies @option{--unresolved-symbols=ignore-all}.
  
  @kindex -Bgroup
  @item -Bgroup
--- 985,991 ----
  default on such platforms.  The different variants of this option are
  for compatibility with various systems.  You may use this option
  multiple times on the command line: it affects library searching for
! @option{-l} options which follow it.
  
  @kindex -Bgroup
  @item -Bgroup
*************** values for @samp{method}:
*** 1495,1506 ****
  
  @table @samp
  @item ignore-all
! Do not report any unresolved symbols.  This is the default when
! creating shared libraries or dynamic executables.
  
  @item report-all
! Report all unresolved symbols.  This is the default when creating
! static binaries.
  
  @item ignore-in-object-files
  Report unresolved symbols that are contained in shared libraries, but
--- 1494,1503 ----
  
  @table @samp
  @item ignore-all
! Do not report any unresolved symbols.
  
  @item report-all
! Report all unresolved symbols.  This is the default.
  
  @item ignore-in-object-files
  Report unresolved symbols that are contained in shared libraries, but
                


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]