aboutsummaryrefslogtreecommitdiff
path: root/archival/ar.c
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-08-12 20:58:27 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-08-12 20:58:27 +0000
commit6ca409e0e4c198fe3081346eebbae3f068fe605a (patch)
tree060cb05d99220a1eda399194d1209c269f0e8cd8 /archival/ar.c
parent4185548984357df91311f30c8e43d95f33922576 (diff)
downloadbusybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.gz
busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.tar.bz2
busybox-w32-6ca409e0e4c198fe3081346eebbae3f068fe605a.zip
trylink: produce even more info about final link stage
trylink: explain how to modify link and drastically decrease amount of padding (unfortunately, needs hand editing ATM). *: add ALIGN1 / ALIGN2 to global strings and arrays of bytes and shorts size saving: 0.5k
Diffstat (limited to 'archival/ar.c')
-rw-r--r--archival/ar.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/archival/ar.c b/archival/ar.c
index e85ca5c6f..7b16c2b59 100644
--- a/archival/ar.c
+++ b/archival/ar.c
@@ -41,10 +41,11 @@ static void header_verbose_list_ar(const file_header_t *file_header)
41int ar_main(int argc, char **argv); 41int ar_main(int argc, char **argv);
42int ar_main(int argc, char **argv) 42int ar_main(int argc, char **argv)
43{ 43{
44 static const char msg_unsupported_err[] ALIGN1 =
45 "archive %s is not supported";
46
44 archive_handle_t *archive_handle; 47 archive_handle_t *archive_handle;
45 unsigned opt; 48 unsigned opt;
46 static const char msg_unsupported_err[] =
47 "Archive %s not supported. Install binutils 'ar'.";
48 char magic[8]; 49 char magic[8];
49 50
50 archive_handle = init_handle(); 51 archive_handle = init_handle();
@@ -88,7 +89,8 @@ int ar_main(int argc, char **argv)
88 } 89 }
89 archive_handle->offset += 7; 90 archive_handle->offset += 7;
90 91
91 while (get_header_ar(archive_handle) == EXIT_SUCCESS) /* repeat */; 92 while (get_header_ar(archive_handle) == EXIT_SUCCESS)
93 continue;
92 94
93 return EXIT_SUCCESS; 95 return EXIT_SUCCESS;
94} 96}