This is the mail archive of the gcc-patches@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]
Other format: [Raw text]

Re: [PATCH] Remove .jcr registry from the crtfiles


On Sat, Oct 01, 2016 at 10:46:53PM +0200, Florian Weimer wrote:
> * Jakub Jelinek:
> 
> > Now that GCJ is gone, I think we should remove the the tests for .jcr
> > sections from the crtfiles, which slows down (by a couple of instructions
> > and some relocations) every gcc compiled binary/library.
> 
> Why were they needed *in every DSO* in the first place?

They aren't strictly needed, I guess it would be possible to add additional
crt files for the various compilation modes (-fgnu-tm, in the past linking
with gcj driver, etc.) and do the registration only there.  But it is
actually implemented in the shared crt files, by looking at the section
sizes and testing weak undef function symbols.

> We still have _ITM_registerTMCloneTable, _ITM_deregisterTMCloneTable,
> and __gmon_start__ on amd64, which don't look terribly relevant for
> most users, either.

	Jakub


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