This patch solves https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239669.
And I found imgact_elf.c refers to ELF note values, it seems same values of my patch.
I think static values should be defined in the header file.
Details
- Reviewers
emaste
Diff Detail
- Lint
Lint Skipped - Unit
Tests Skipped
Event Timeline
I referred to following links to pick up the definitions.
https://github.com/lattera/glibc/blob/master/elf/elf.h
http://www.jp.netbsd.org/docs/kernel/elf-notes.html
sys/sys/elf_common.h | ||
---|---|---|
818–823 | I say yes about following definitions. ELF_NOTE_OS_LINUX ELF_NOTE_OS_GNU ELF_NOTE_OS_SOLARIS2 ELF_NOTE_OS_FREEBSD. And say No about ELF_NOTE_OS_NETBSD. It's my creation. I refered to NetBSD's sys/sys/exec_elf.h. /* GNU-specific OS/version value stuff */ #define ELF_NOTE_ABI_OS_LINUX 0 #define ELF_NOTE_ABI_OS_HURD 1 #define ELF_NOTE_ABI_OS_SOLARIS 2 #define ELF_NOTE_ABI_OS_KFREEBSD 3 #define ELF_NOTE_ABI_OS_KNETBSD 4 I don't have specific reason to keep compatibility to GNU for these definitions. But we have already followed GNU's definition for ELF note names. It will make our elf_common.h consitent by keeping compatibility to GNU. |
This review is obsoleted. Now valgrind in ports works fine.
Please close this review.
I can't see close menu or button in the web UI.