> Richard Sandiford wrote the original section anchors implementation, > so he would be a good person to comment about the interaction between > aliases and section anchors.
Thanks! Richard, does this patch seem sane? AIX gcc now builds for me, so I will test it on x86_64-linux it and commit if it passes to unbreak bootstraps. I think I should incrementally make symtab to believe that all functions/vars in named sections (and perhaps all COMDAT variables with -fdata-sections and COMDAT functions with -ffunction-sections, too) can be removed at linktime and thus disable the creation of the local aliases. This will result with worse code with -fdata-sections but will make it possible to garbage collect tose sections Honza > > Thanks, David