Does gold support deadcode elimination on relocatable files

Cary Coutant ccoutant@google.com
Thu Dec 18 01:47:00 GMT 2008


>>> 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



More information about the Binutils mailing list