[Bug 2200] RFE: Solaris should compile Xserver and X11 applications
with -xcheck=stkovf
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Mon Mar 7 13:54:53 PST 2005
Please do not reply to this email: if you want to comment on the bug, go to
the URL shown below and enter yourcomments there.
https://bugs.freedesktop.org/show_bug.cgi?id=2200
------- Additional Comments From alan.coopersmith at sun.com 2005-03-07 13:54 -------
To use the mapfiles mentioned, the flags would be:
-Wl,-M,/usr/lib/ld/map.noexstk -Wl,-M,/usr/lib/ld/map.noexdata
The Xorg sun.cf already sets the first flag on Solaris 9 and later - see the
NonExecStackLoadFlag setting. I've never gotten around to adding the second
for Solaris 10 - it would have to be x86 only since it will break the SPARC PLT
as noted in the comments in the file. (When building the binaries distributed
with Solaris we actually use custom mapfiles which contain the commands noted
in the above, plus those from the /usr/lib/ld/map.pagealign and on SPARC
the non-executable bss flag described in the comments in the map.noexdata.)
For autoconf use, the STSF configure.ac shows an example of one way to detect
and use these:
case "$target" in
*-*-solaris*)
AC_CHECK_FILE([/usr/lib/ld/map.noexstk],[LDFLAGS="${LDFLAGS}
-Wl,-M/usr/lib/ld/map.noexstk"])
AC_CHECK_FILE([/usr/lib/ld/map.pagealign],[LDFLAGS="${LDFLAGS}
-Wl,-M/usr/lib/ld/map.pagealign" ; SHAREDLIB_LDFLAGS="${SHAREDLIB_LDFLAGS}
-Wl,-M/usr/lib/ld/map.pagealign"])
;;
esac
--
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the xorg-bugzilla-noise
mailing list