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.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to