readelf: bump version to 0.1 and hoist its definition to the start of the file

This commit is contained in:
Mikael Pettersson
2013-07-17 16:12:42 +00:00
parent bf6570bdde
commit f8fd594c7f

View File

@@ -14,6 +14,8 @@
#include "pdp10-opcodes.h"
#include "pdp10-stdio.h"
#define VERSION "pdp10-tools readelf version 0.1, built " __DATE__ " " __TIME__ "\n"
struct options {
unsigned char file_header;
unsigned char segments;
@@ -1013,7 +1015,7 @@ int main(int argc, char **argv)
}
if (opt_version)
printf("pdp10-tools readelf version 0.0 " __DATE__ " " __TIME__ "\n");
printf(VERSION);
for (i = optind; i < argc; ++i) {
int status;