# Install the GNU General Public License
mkdir -p ${INSTALL_ROOT}/usr/share/doc
diff --git a/usr/sbin/sorcery b/usr/sbin/sorcery
index 1365a35..595de69 100755
--- a/usr/sbin/sorcery
+++ b/usr/sbin/sorcery
@@ -756,6 +756,7 @@ optimization_menu(){
local STRIP_HELP="Remove all symbol table and relocation (debugging)
information (LDFLAGS=-s)"
local TINY_HELP="Optimize to smaller generated code, conflicts with
'speedy' (CFLAGS=$SMALL)"
local AS_NEEDED_HELP="Only emit DT_NEEDED entries for directly used
libraries (LDFLAGS=-Wl,--as-needed)"
+ local NOSEPCODE_HELP="Disable separation between code and data
(LDFLAGS=-Wl,-znoseparate-code)"
unset CFLAGS CXXFLAGS LDFLAGS CPPFLAGS
- unset FAST PRELINK RISKY SMALL SPEEDY STRIP TINY AS_NEEDED
+ unset FAST PRELINK RISKY SMALL SPEEDY STRIP TINY AS_NEEDED NOSEPCODE
# if user specified --no-opts then use only the args from the command line
# otherwise do the normal stuff
@@ -667,6 +667,11 @@ optimize() {
AS_NEEDED="on"
;;
+ nosepcode)
+ LDFLAGS+=' -Wl,-znoseparate-code'
+ NOSEPCODE="on"
+ ;;
+
esac
done
# use echo to crunch all the whitespace out for broken configure scripts
[SM-Commit] GIT changes to master sorcery by Ismael Luceno (f16254798e271535699be137583316abf35a81d7),
Ismael Luceno, 08/19/2019