summaryrefslogtreecommitdiff
path: root/src/ar.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@myware66.akkadia.org>2009-01-17 11:47:10 -0800
committerUlrich Drepper <drepper@myware66.akkadia.org>2009-01-17 11:47:10 -0800
commitfdc93e12a77866cafd1aae4463d89cef2c01d9b1 (patch)
tree96164f699e204dbc733f3810f7e534fa7265bc8e /src/ar.c
parent3a52c7a528e41cc28e69e68ef817f0b2d7f130e5 (diff)
downloadelfutils-fdc93e12a77866cafd1aae4463d89cef2c01d9b1.tar.gz
Move argp_program_version_hook and argp_program_bug_address variables
in all programs into the .rodata section.
Diffstat (limited to 'src/ar.c')
-rw-r--r--src/ar.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ar.c b/src/ar.c
index 961db241..a7a12329 100644
--- a/src/ar.c
+++ b/src/ar.c
@@ -55,7 +55,8 @@
/* Name and version of program. */
static void print_version (FILE *stream, struct argp_state *state);
-void (*argp_program_version_hook) (FILE *, struct argp_state *) = print_version;
+ARGP_PROGRAM_VERSION_HOOK_DEF = print_version;
+
/* Prototypes for local functions. */
static int do_oper_extract (int oper, const char *arfname, char **argv,
int argc, long int instance);
@@ -66,7 +67,7 @@ static int do_oper_insert (int oper, const char *arfname, char **argv,
/* Bug report address. */
-const char *argp_program_bug_address = PACKAGE_BUGREPORT;
+ARGP_PROGRAM_BUG_ADDRESS_DEF = PACKAGE_BUGREPORT;
/* Definitions of arguments for argp functions. */