* argp-std.c [_MUDFLAP] (__libdwfl_argp_mudflap_options): New function,
magic initializer to set -heur-stack-bound option.
+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.
{
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