Summary: | mips binary has segments with different permissions in same page | ||
---|---|---|---|
Product: | Base System | Reporter: | Ed Maste <emaste> |
Component: | misc | Assignee: | freebsd-bugs (Nobody) <bugs> |
Status: | Closed Overcome By Events | ||
Severity: | Affects Only Me | CC: | brooks |
Priority: | --- | ||
Version: | CURRENT | ||
Hardware: | mips | ||
OS: | Any |
Description
Ed Maste
2016-01-08 00:47:07 UTC
A commit references this bug: Author: emaste Date: Fri Jan 8 00:56:42 UTC 2016 New revision: 293403 URL: https://svnweb.freebsd.org/changeset/base/293403 Log: Revert r293201, r293202 (rtld: populate DT_DEBUG iff DYNAMIC segment is writable) It turns out MIPS binaries may have other oddities that can trigger a fault at startup. PR: 206017 Reported by: ray Changes: head/libexec/rtld-elf/rtld.c head/libexec/rtld-elf/rtld.h It seems like fixing this wouldn't be too hard so long as we track the extent and permissions of the last mapping (I believe everyone relies on segments being sorted). I'd argue that this is a linker/linker-script bug as well. MIPS has now been removed from main, and does not seem worth worrying about in stable branches. |