Raymond Toy pushed to branch master at cmucl / cmucl
Commits:
-
ef9fc1bc
by Raymond Toy at 2021-01-15T13:59:13-08:00
1 changed file:
Changes:
... | ... | @@ -132,8 +132,15 @@ write_elf_header(int fd) |
132 | 132 |
eh.e_ident[EI_VERSION] = EV_CURRENT;
|
133 | 133 |
#ifdef SOLARIS
|
134 | 134 |
eh.e_ident[EI_OSABI] = ELFOSABI_SOLARIS;
|
135 |
-#else
|
|
135 |
+#elif defined(__FREEBSD__)
|
|
136 | 136 |
eh.e_ident[EI_OSABI] = ELFOSABI_FREEBSD;
|
137 |
+#elif defined(__NetBSD__)
|
|
138 |
+ eh.e_ident[EI_OSABI] = ELFOSABI_NETBSD;
|
|
139 |
+#elif defined(__linux__)
|
|
140 |
+ eh.e_ident[EI_OSABI] = ELFOSABI_LINUX;
|
|
141 |
+#else
|
|
142 |
+ /* Default to NONE */
|
|
143 |
+ eh.e_ident[EI_OSABI] = ELFOSABI_NONE;
|
|
137 | 144 |
#endif
|
138 | 145 |
|
139 | 146 |
#ifdef SOLARIS
|