]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
Wire up -u option handling in ar.
authorRoland McGrath <roland@hack.frob.com>
Sat, 9 Jul 2011 10:20:16 +0000 (03:20 -0700)
committerRoland McGrath <roland@hack.frob.com>
Sat, 9 Jul 2011 10:20:16 +0000 (03:20 -0700)
src/ChangeLog
src/ar.c

index cb00bb04d5c257cd1c0b75858b37594bc02f6b69..1dd107961f4558e2e1129f6daff8df6f80aba2ac 100644 (file)
@@ -1,3 +1,7 @@
+2011-07-09  Roland McGrath  <roland@hack.frob.com>
+
+       * ar.c (parse_opt): Grok -u.
+
 2011-05-30  Mark Wielaard  <mjw@redhat.com>
 
        * strip.c (relocate): Make offset check overflow-proof.
@@ -5,7 +9,7 @@
 2011-05-23  Mark Wielaard  <mjw@redhat.com>
 
        * 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.
index 149d116dfca84d4d1300ddcd31d3669142e874fe..bfb324c714aedfac9f64dd6173d5a48ee4518be6 100644 (file)
--- 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 <drepper@redhat.com>, 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;