This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] More aggressive --gc-sections
> No. Neither info->relocatable nor info->emitrelocations are necessarily
> set. You want to add info->shared to the following. Patch OK for
> mainline binutils with that change.
Ah! Ok, thanks for the clarification. And the approval.
When (if) the GCC part is accepted, do you want me to write C++ testcases for
this? I see that there are already some in ld-selective, but they are of
course run with -fno-exceptions -Wl,-static (I presume you noticed the 2
failures with GCC mainline because of the now dead -fvtable-gc). This would
allow to monitor the portability problems of the scheme.