[Git][cmucl/cmucl][master] Minor tweak to put use the right EI_OSABI value
Raymond Toy
gitlab at common-lisp.net
Fri Jan 15 21:59:38 UTC 2021
Raymond Toy pushed to branch master at cmucl / cmucl
Commits:
ef9fc1bc by Raymond Toy at 2021-01-15T13:59:13-08:00
Minor tweak to put use the right EI_OSABI value
Previously, the EI_OSABI value was either ELFOSAB_SOLARIS for solaris
or ELFOSABI_FREEBSD for everything else. Let's update this to include
NetBSD and Linux. Unlikely we'll ever support other things like
HP-UX, AIX, IRIX, Tru64, etc.
The value currently doesn't seem matter, but it seems nice to get it
right.
- - - - -
1 changed file:
- src/lisp/elf.c
Changes:
=====================================
src/lisp/elf.c
=====================================
@@ -132,8 +132,15 @@ write_elf_header(int fd)
eh.e_ident[EI_VERSION] = EV_CURRENT;
#ifdef SOLARIS
eh.e_ident[EI_OSABI] = ELFOSABI_SOLARIS;
-#else
+#elif defined(__FREEBSD__)
eh.e_ident[EI_OSABI] = ELFOSABI_FREEBSD;
+#elif defined(__NetBSD__)
+ eh.e_ident[EI_OSABI] = ELFOSABI_NETBSD;
+#elif defined(__linux__)
+ eh.e_ident[EI_OSABI] = ELFOSABI_LINUX;
+#else
+ /* Default to NONE */
+ eh.e_ident[EI_OSABI] = ELFOSABI_NONE;
#endif
#ifdef SOLARIS
View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/ef9fc1bced6dbad3b63213dc849741cfbb758916
--
View it on GitLab: https://gitlab.common-lisp.net/cmucl/cmucl/-/commit/ef9fc1bced6dbad3b63213dc849741cfbb758916
You're receiving this email because of your account on gitlab.common-lisp.net.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/cmucl-cvs/attachments/20210115/ca134d60/attachment.html>
More information about the cmucl-cvs
mailing list