bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/21086] static linking with --dynamic-list adds dynamic section a


From: ma.jiang at zte dot com.cn
Subject: [Bug ld/21086] static linking with --dynamic-list adds dynamic section and interpreter
Date: Wed, 12 Apr 2017 02:25:06 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=21086

--- Comment #5 from ma.jiang at zte dot com.cn ---
Hi guys,
  I encoutered this bug when trying to compile a static-linked perf. In my
option, there were two serious problem here. 
  First of all, ld should never create a broken executable silently. If
"-static" is conflicted with any other option, ld should abort and print
information about the conflict.
  Secondly, "--dynamic-list" should be documented more clearly and directly. 

"Specify the name of a dynamic list file to the linker.  This is typically used
when creating shared libraries to specify a list of global symbols whose
references shouldn't be bound to the definition within the shared library, or
creating dynamically linked executables to specify a list of symbols which
should be added to the symbol table in the executable."
  This paragraph(listed above) in man pages is too obscure to tell users what
the option really mean. I thinks we should clearly describe what the option
do(and some symbol into dynamic symbol table?) first, and then tell users what
are the typical scenarios.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]