[PATCH] D27578: Change the implementation of --dynamic-list to use linker script parsing

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 8 12:05:38 PST 2016


Peter Collingbourne via Phabricator <reviews at reviews.llvm.org> writes:

> pcc added a comment.
>
> In gc-sections-shared.s don't we need to keep bar to maintain function pointer identity? In fact, this is what both bfd and gold do on my machine.

Not sure I follow. The command line is only asking for foo to be in the
dynamic symbol list. We need bar2 because it is undefined, but why do we
need to export bar? Should the same happen with version scripts? If not,
why the difference?

Cheers,
Rafael


More information about the llvm-commits mailing list