Trim down executable sizes

This commit is contained in:
Justine Tunney 2021-02-11 08:37:18 -08:00
parent ec69413f83
commit bfa8581537
19 changed files with 1176 additions and 131 deletions

View file

@ -301,13 +301,14 @@ static void printelfrelocations(void) {
}
int main(int argc, char *argv[]) {
int fd;
showcrashreports();
if (argc != 2) {
fprintf(stderr, "usage: %s FILE\n", argv[0]);
return 1;
}
path = argv[1];
int64_t fd = open(path, O_RDONLY);
fd = open(path, O_RDONLY);
if (fd == -1) {
if (errno == ENOENT) {
fprintf(stderr, "error: %`s not found\n", path);