public inbox for libc-ports@sourceware.org
 help / color / mirror / Atom feed
* [PATCH roland/arm-mcount] ARM: Disable compat mcount code when unneeded.
@ 2013-08-27 17:30 Roland McGrath
  2013-08-29 12:22 ` Joseph S. Myers
  0 siblings, 1 reply; 7+ messages in thread
From: Roland McGrath @ 2013-08-27 17:30 UTC (permalink / raw)
  To: libc-ports

The obsolete _mcount entry point is not needed in a shared library not
supporting any old ABIs.  This change also makes it unavailable for static
linking altogether.  We have never supported linking old object files with
new libraries, so that should not be a problem for existing configurations.


Thanks,
Roland


ports/ChangeLog.arm
2013-08-27  Roland McGrath  <roland@hack.frob.com>

	* sysdeps/arm/arm-mcount.S: #include <shlib-compat.h>.
	(_mcount, mcount):
	Protect under [SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_19)].

--- a/ports/sysdeps/arm/arm-mcount.S
+++ b/ports/sysdeps/arm/arm-mcount.S
@@ -65,6 +65,10 @@ ENTRY(__gnu_mcount_nc)
 END(__gnu_mcount_nc)
 
 
+#include <shlib-compat.h>
+
+#if SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_19)
+
 /* Provide old mcount for backwards compatibility.  This requires
    code be compiled with APCS frame pointers.  */
 
@@ -102,3 +106,5 @@ END(_mcount)
    but some old asm code might assume it's `mcount'.  */
 #undef mcount
 weak_alias (_mcount, mcount)
+
+#endif

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-01-10 22:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-27 17:30 [PATCH roland/arm-mcount] ARM: Disable compat mcount code when unneeded Roland McGrath
2013-08-29 12:22 ` Joseph S. Myers
2013-08-29 23:27   ` Roland McGrath
2013-08-29 23:45     ` Joseph S. Myers
2014-01-10 21:34       ` Roland McGrath
2014-01-10 21:54         ` Joseph S. Myers
2014-01-10 22:06           ` Roland McGrath

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).