Commit 9f92937b by John David Anglin

fptr.c (__canonicalize_funcptr_for_compare): Don't set least-significant bit in…

fptr.c (__canonicalize_funcptr_for_compare): Don't set least-significant bit in function pointer for fixup.

	* config/pa/fptr.c (__canonicalize_funcptr_for_compare): Don't set
	least-significant bit in function pointer for fixup.

From-SVN: r237574
parent 81d8cd9b
2016-06-18 John David Anglin <danglin@gcc.gnu.org>
* config/pa/fptr.c (__canonicalize_funcptr_for_compare): Don't set
least-significant bit in function pointer for fixup.
2016-06-05 Aaron Conole <aconole@redhat.com> 2016-06-05 Aaron Conole <aconole@redhat.com>
Nathan Sidwell <nathan@acm.org> Nathan Sidwell <nathan@acm.org>
......
...@@ -113,7 +113,7 @@ __canonicalize_funcptr_for_compare (fptr_t fptr) ...@@ -113,7 +113,7 @@ __canonicalize_funcptr_for_compare (fptr_t fptr)
/* Build a plabel for an indirect call to _dl_fixup. */ /* Build a plabel for an indirect call to _dl_fixup. */
fixup_plabel[0] = (unsigned int) iptr + 8; /* address of fixup */ fixup_plabel[0] = (unsigned int) iptr + 8; /* address of fixup */
fixup_plabel[1] = got[-1]; /* ltp for fixup */ fixup_plabel[1] = got[-1]; /* ltp for fixup */
fixup = (fixup_t) ((int) fixup_plabel | 3); fixup = (fixup_t) ((int) fixup_plabel | 2);
/* Call fixup to resolve the function address. got[1] contains the /* Call fixup to resolve the function address. got[1] contains the
link_map pointer and plabel[1] the relocation offset. */ link_map pointer and plabel[1] the relocation offset. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment