This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: using templates in shared library


> Is there any reason why _in principle_ the linker couldn't do what I
> want?

I suppose it could. In order to do drop a linkonce section, it would
need to determine that all weak symbols are already provided
elsewhere. This is not how linkonce currently works: the linker drops
a linkonce section if there is a duplicate of the entire section (i.e
a section with the same name). When dropping a section, it doesn't care
what symbols it looses.

Regards,
Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]