Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F161761493
D20413.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
579 B
Referenced Files
None
Subscribers
None
D20413.diff
View Options
Index: head/sys/kern/kern_ctf.c
===================================================================
--- head/sys/kern/kern_ctf.c
+++ head/sys/kern/kern_ctf.c
@@ -193,8 +193,12 @@
NOCRED, NULL, td)) != 0)
goto out;
- /* Check the CTF magic number. (XXX check for big endian!) */
+ /* Check the CTF magic number. */
+#ifdef __LITTLE_ENDIAN__
if (ctf_hdr[0] != 0xf1 || ctf_hdr[1] != 0xcf) {
+#else
+ if (ctf_hdr[0] != 0xcf || ctf_hdr[1] != 0xf1) {
+#endif
printf("%s(%d): module %s has invalid format\n",
__func__, __LINE__, lf->pathname);
error = EFTYPE;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jul 7, 3:08 PM (14 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34802686
Default Alt Text
D20413.diff (579 B)
Attached To
Mode
D20413: Fix link_elf_ctf_get() on big endian platforms
Attached
Detach File
Event Timeline
Log In to Comment