bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/16693] "exclude-libs" drops symbols that are exported through


From: hjl.tools at gmail dot com
Subject: [Bug gold/16693] "exclude-libs" drops symbols that are exported through "dynamic-list" or "export-dynamic-symbol"
Date: Wed, 12 Mar 2014 15:39:07 +0000

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

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Viatcheslav Ostapenko from comment #2)
> Created attachment 7465 [details]
> Test
> 
> Attached test miniproject.
> 
> In resulting test.so dynamic_list_exported_from_static_lib() should be
> exported by dynamic list, but is missing from exports.
> 

--dynamic-list isn't used to control which symbols are exported or
not.  From ld manual:

'--dynamic-list=DYNAMIC-LIST-FILE'
     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 option is only
     meaningful on ELF platforms which support shared libraries.

If you remove/change --dynamic-list, you will get the same set of
symbols in dynamic symbol table.  Please tell us exactly what you
want to see in test.so.

-- 
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]