Date: Tue, 01 Mar 2016 23:50:45 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 207631] rtld requires the first PT_LOAD segment to be .text and is incompatible with output produced by lld Message-ID: <bug-207631-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D207631 Bug ID: 207631 Summary: rtld requires the first PT_LOAD segment to be .text and is incompatible with output produced by lld Product: Base System Version: 11.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: freebsd-bugs@FreeBSD.org Reporter: emaste@freebsd.org The first PT_LOAD segment is traditionally mapped with R+X permission and contains the .text section. rtld assumes this is the case and the temporari= ly maps this segment RWX while applying non-plt relocations. The LLVM linker lld currently puts .rodata in the first PT_LOAD with only R permission and .text in the second PT_LOAD with RX. rtld then segfaults while trying to apply relocations to .text which has not been updated with write permission. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-207631-8>