HOST_ELFCLASS is output to elfconfig.h, but it is not used in modpost.
Unified · Split
| @@ -39,12 +39,6 @@ main(int argc, char **argv) · 38 unmodified lines | ||
| 39 | 39 | exit(1); |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | − if (sizeof(unsigned long) == 4) { | |
| 43 | − printf("#define HOST_ELFCLASS ELFCLASS32\n"); | |
| 44 | − } else if (sizeof(unsigned long) == 8) { | |
| 45 | − printf("#define HOST_ELFCLASS ELFCLASS64\n"); | |
| 46 | − } | |
| 47 | − | |
| 48 | 42 | endian_test.s = 0x0102; |
| 49 | 43 | if (memcmp(endian_test.c, "\x01\x02", 2) == 0) |
| 50 | 44 | printf("#define HOST_ELFDATA ELFDATA2MSB\n"); |