]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
2005-08-24 Roland McGrath <roland@redhat.com>
authorRoland McGrath <roland@redhat.com>
Wed, 24 Aug 2005 21:12:15 +0000 (21:12 +0000)
committerRoland McGrath <roland@redhat.com>
Wed, 24 Aug 2005 21:12:15 +0000 (21:12 +0000)
* argp-std.c [_MUDFLAP] (__libdwfl_argp_mudflap_options): New function,
magic initializer to set -heur-stack-bound option.

libdwfl/ChangeLog
libdwfl/argp-std.c

index 2edaf6f91be81fca3173ce5c0c096fd7dd09ea00..139ab47b28d75b2a63bfbd4f05de5cce90214611 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-24  Roland McGrath  <roland@redhat.com>
+
+       * argp-std.c [_MUDFLAP] (__libdwfl_argp_mudflap_options): New function,
+       magic initializer to set -heur-stack-bound option.
+
 2005-08-22  Roland McGrath  <roland@redhat.com>
 
        * dwfl_validate_address.c: New file.
index 75f8b99f04dc96a68c8428f899f05400db4009b8..4a6e1607f0f1d259edff7c67ea7b519910f66bda 100644 (file)
@@ -196,3 +196,15 @@ dwfl_standard_argp (void)
 {
   return &libdwfl_argp;
 }
+
+#ifdef _MUDFLAP
+/* In the absence of a mudflap wrapper for argp_parse, or a libc compiled
+   with -fmudflap, we'll see spurious errors for using the struct argp_state
+   on argp_parse's stack.  */
+
+void __attribute__ ((constructor))
+__libdwfl_argp_mudflap_options (void)
+{
+  __mf_set_options ("-heur-stack-bound");
+}
+#endif