[PATCH] [Core] Do not reclaim absolute atoms in resolver

Rui Ueyama ruiu at google.com
Mon Feb 23 11:31:26 PST 2015


That we can "extend" the existing behavior of the GNU linker doesn't mean
that's a bug of the GNU linker. I don't even agree that it's a reasonable
extension, as --gc-sections means gc'ing sections and absolute symbols
don't belong to any section, but anyways, if you want to do something
different from the GNU linker, we need a really strong justification for
doing that. Making it compatible is the point of creating a compatible
driver.

On Mon, Feb 23, 2015 at 11:23 AM, Shankar Kalpathi Easwaran <
shankarke at gmail.com> wrote:

> nothing from 2.o was really needed in the final object. absolute symbols
> are specific to a file, its easy to enhance GC to collect them IMO. This is
> also needed by --defsym too, if there is not a reference to that symbol, ld
> doesnot generate one.
>
>
> http://reviews.llvm.org/D7823
>
> EMAIL PREFERENCES
>   http://reviews.llvm.org/settings/panel/emailpreferences/
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150223/8301c333/attachment.html>


More information about the llvm-commits mailing list