Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F170890241
D29352.id86082.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D29352.id86082.diff
View Options
Index: contrib/elftoolchain/libelf/_libelf_config.h
===================================================================
--- contrib/elftoolchain/libelf/_libelf_config.h
+++ contrib/elftoolchain/libelf/_libelf_config.h
@@ -26,25 +26,11 @@
* $Id: _libelf_config.h 3764 2019-06-28 21:44:46Z emaste $
*/
-#if defined(__APPLE__) || defined(__DragonFly__)
-
-#if defined(__amd64__)
-#define LIBELF_ARCH EM_X86_64
-#define LIBELF_BYTEORDER ELFDATA2LSB
-#define LIBELF_CLASS ELFCLASS64
-#elif defined(__i386__)
-#define LIBELF_ARCH EM_386
-#define LIBELF_BYTEORDER ELFDATA2LSB
-#define LIBELF_CLASS ELFCLASS32
-#endif
-
-#endif /* __DragonFly__ */
-
-#ifdef __FreeBSD__
+#if defined(__APPLE__) || defined(__DragonFly__) || defined(__FreeBSD__)
/*
* Define LIBELF_{ARCH,BYTEORDER,CLASS} based on the machine architecture.
- * See also: <machine/elf.h>.
+ * See also: <machine/elf.h> on FreeBSD.
*/
#if defined(__amd64__)
@@ -126,9 +112,9 @@
#define LIBELF_CLASS ELFCLASS64
#else
-#error Unknown FreeBSD architecture.
+#error Unknown architecture.
#endif
-#endif /* __FreeBSD__ */
+#endif /* defined(__APPLE__) || defined(__DragonFly__) || defined(__FreeBSD__) */
/*
* Definitions for Minix3.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Sep 8, 8:39 AM (14 h, 16 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38508390
Default Alt Text
D29352.id86082.diff (1 KB)
Attached To
Mode
D29352: elftoolchain: Support building on Arm-based Macs
Attached
Detach File
Event Timeline
Log In to Comment