This is the mail archive of the
mailing list for the elfutils project.
Re: [patch] Fix for PIE with both -e and --core in use
- From: Mark Wielaard <mjw at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Wed, 28 Nov 2012 17:03:04 +0100
- Subject: Re: [patch] Fix for PIE with both -e and --core in use
On Wed, 2012-11-28 at 16:35 +0100, Jan Kratochvil wrote:
> Modifiable is struct argp_state:
> # static error_t
> # parse_opt (int key, char *arg, struct argp_state *state)
> But one can call parse_opt for arbitrary number of different struct argp_state
> structures in arbitrary order in arbitrary states of their execution (even if
> no threads are in use).
> Is there still a disagreement?
I don't like a new field in struct Dwfl_Module that is only used for
this single thing. So if we can store the state somewhere else that
would be nice.
I see what you are saying can happen theoretically, but have a little
trouble imagining when this would every happen. If you are just using
parse_argp for command line parsing I don't really see how that would
happen. Are you thinking of some server program that would reuse
dwfl_standard_argp () multiple times?