.
D 2017-11-17T08:29:19.086
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment Description\r\n\sThis\spatch\swill\scorrect\sthe\ssequence\sof\s-pie\sand\s-shared\soptions.\r\n\sWhen\sused\stogether,\s-pie\sshould\sbe\sprovided\sto\sthe\slinker\sbefore\r\n\s-shared.\sIf\s-pie\sis\sprovided\safter\s-shared,\sthe\slinker\sthrows\san\r\n\serror\sshown\sbelow\sas\sexample.\r\n\r\n-------------------------------------------------------------------------\r\n/host/powerpc-buildroot-linux-gnu/sysroot/usr/lib/Scrt1.o:(.data+0x4):\r\n\sundefined\sreference\sto\s`main'\r\ncollect2:\serror:\sld\sreturned\s1\sexit\sstatus\r\nmake[2]:\s***\s[libtcl9.0.so]\sError\s1\r\n-------------------------------------------------------------------------\r\n\r\nSigned-off-by:\sJay\sShah\s<[email protected]>\r\nSigned-off-by:\sMatt\sWeber\s<[email protected]>\r\n---\r\n\sunix/tcl.m4\s|\s2\s+-\r\n\s1\sfile\schanged,\s1\sinsertion(+),\s1\sdeletion(-)\r\n\r\ndiff\s--git\sa/unix/tcl.m4\sb/unix/tcl.m4\r\nindex\s9aa3eb2..4d8182e\s100644\r\n---\sa/unix/tcl.m4\r\n+++\sb/unix/tcl.m4\r\n@@\s-1394,7\s+1394,7\s@@\sAC_DEFUN([SC_CONFIG_CFLAGS],\s[\r\n\s\s\s\s\s\s\s\s\s\s\s\s#\sget\srid\sof\sthe\swarnings.\r\n\s\s\s\s\s\s\s\s\s\s\s\s#CFLAGS_OPTIMIZE="${CFLAGS_OPTIMIZE}\s-D__NO_STRING_INLINES\s-D__NO_MATH_INLINES"\r\n\r\n-\s\s\s\s\s\s\s\s\s\s\sSHLIB_LD='${CC}\s-shared\s${CFLAGS}\s${LDFLAGS}'\r\n+\s\s\s\s\s\s\s\s\s\s\sSHLIB_LD='${CC}\s${CFLAGS}\s${LDFLAGS}\s-shared'\r\n\s\s\s\s\s\s\s\s\s\s\s\sDL_OBJS="tclLoadDl.o"\r\n\s\s\s\s\s\s\s\s\s\s\s\sDL_LIBS="-ldl"\r\n\s\s\s\s\s\s\s\s\s\s\s\sLDFLAGS="$LDFLAGS\s-Wl,--export-dynamic"
J foundin 8.6
J is_private 0
J login jan.nijtmans
J priority 5\sMedium
J resolution None
J severity Minor
J status Open
J submitter jan.nijtmans
J subsystem 53.\sConfiguration\sand\sBuild\sTools
J title patch\sto\scorrect\slinker\sflag\ssequence
J type Bug
K 4f51e1c5dcf75de22f5907f7b66361e4bcab02e2
U jan.nijtmans
Z 405ebd2bf2a9dab91532c34371e689f4