[PATCH] Add ld.gold option "--dynamic-list-only"

Vyacheslav Ostapenko ostap73@gmail.com
Mon Mar 10 22:14:00 GMT 2014


  I'd like to propose additional option for ld linker that will limit
dynamic symbol exports to the specified by dynamic list file. All
other symbols will not be exported.
  This will allow fine grained control of exports for big projects
(chromium) which link statically several 3rd party libraries and do
not want export symbols from those 3rd party libraries.

  Attached patch implements this option for the gold linker.

  Can this be added to trunk?
  I'm also planning to implement this option for the bfd linker.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: gold_dynamic_list_only.patch
Type: text/x-patch
Size: 8745 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20140310/ec7fc8fb/attachment.bin>

More information about the Binutils mailing list