This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Does gold support deadcode elimination on relocatable files
>>> Just wondering if the current gold support deadcode elimination with
>>> -r option. If not, any plan on that?
>>
>> There is work underway to do deadcode elimination, but not during a
>> relocatable link.
>
> Do we have any plan for that? If not, I would like to take a look.
Not that I'm aware of. You'll probably want to wait until the patch to
implement it for regular links is submitted, though. It looks like it
won't be too long.
Are you planning on just eliminating unreachable local symbols, or
will you provide some way to identify a subset of globals to be
exported from the resulting output file?
-cary