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]

[committed] Tighten runtime initialization check in __canonicalize_funcptr_for_compare on hppa-linux


The attached change fixes a startup issue of emacs24 on Debian hppa-linux.  The emacs24 build does some tricky
stuff to preinitialize values, so that standard static initialization check is skipped.  However, the global offset table has
moved in the final executable and emacs24 crashes.

The attached change changes the check to one against the runtime global offset table address.  If its location has changed,
new values to call fixup in the dynamic linker are computed.

The offset order to find the address of _dl_fixup is changed as the template is now everywhere.

Tested with no observed regressions on trunk.  Installed to trunk and 4.9.

Dave
--
John David Anglin	dave.anglin@bell.net


Attachment: fptr.c.d.txt
Description: Text document


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