From: Roland McGrath Date: Sat, 9 Jul 2011 10:20:16 +0000 (-0700) Subject: Wire up -u option handling in ar. X-Git-Tag: elfutils-0.153~34 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b0a0e0df3b021cdd911d24f48ae50c6d2fc863aa;p=thirdparty%2Felfutils.git Wire up -u option handling in ar. --- diff --git a/src/ChangeLog b/src/ChangeLog index cb00bb04d..1dd107961 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2011-07-09 Roland McGrath + + * ar.c (parse_opt): Grok -u. + 2011-05-30 Mark Wielaard * strip.c (relocate): Make offset check overflow-proof. @@ -5,7 +9,7 @@ 2011-05-23 Mark Wielaard * strip.c (relocate): Take new arguments is_rela to indicate - whether the relocation is from a SHT_REL or SHT_RELA section. + whether the relocation is from a SHT_REL or SHT_RELA section. Relocate against any debug section symbol, not just STT_SECTION symbols. For SHT_REL relocations, fetch addend from offset and add it to symbol value if not zero. diff --git a/src/ar.c b/src/ar.c index 149d116df..bfb324c71 100644 --- a/src/ar.c +++ b/src/ar.c @@ -1,5 +1,5 @@ /* Create, modify, and extract from archives. - Copyright (C) 2005-2010 Red Hat, Inc. + Copyright (C) 2005-2011 Red Hat, Inc. Written by Ulrich Drepper , 2005. Red Hat elfutils is free software; you can redistribute it and/or modify @@ -380,6 +380,10 @@ parse_opt (int key, char *arg __attribute__ ((unused)), allow_truncate_fname = true; break; + case 'u': + update_newer = true; + break; + case 'v': verbose = true; break;