freebsd-skq/libexec
Andrew Turner 878165d2ef Ensure we use calculate_first_tls_offset, even if the main program doesn't
have TLS program header. This is needed on architectures with Variant I
tls, that is arm, arm64, mips, and powerpc. These place the thread control
block at the start of the buffer and, without this, this data may be
trashed.

This appears to not be an issue on mips or powerpc as they include a second
adjustment to move the thread local data, however this is on arm64 (with a
future change to fix placing this data), and should be on arm. I am unable
to trigger this on arm, even after changing the code to move the data
around to make it more likely to be hit. This is most likely because my
tests didn't use the variable in offset 0.

Reviewed by:	kib
MFC after:	1 week
Sponsored by:	ABT Systems Ltd
2015-09-01 15:43:56 +00:00
..
atf Add META_MODE support. 2015-06-13 19:20:56 +00:00
atrun Call /etc/crontab the "system crontab", not "root's crontab". While 2015-06-22 20:24:59 +00:00
bootpd Add META_MODE support. 2015-06-13 19:20:56 +00:00
casper Let the nv.h and dnv.h includes be only in sys directory. 2015-07-02 21:58:10 +00:00
comsat Add META_MODE support. 2015-06-13 19:20:56 +00:00
dma Convert to LIBADD 2014-11-25 21:18:18 +00:00
dma-mbox-create NO_MAN= has been deprecated in favor of MAN= for some time, go ahead 2014-04-13 05:21:56 +00:00
fingerd Add META_MODE support. 2015-06-13 19:20:56 +00:00
ftpd Upgrade libxo to 0.4.5. 2015-08-24 16:26:20 +00:00
getty Add META_MODE support. 2015-06-13 19:20:56 +00:00
hyperv Import HyperV Key-Value Pair (KVP) driver and daemon code by Microsoft, 2014-09-13 02:15:31 +00:00
mail.local Add META_MODE support. 2015-06-13 19:20:56 +00:00
mknetid Add META_MODE support. 2015-06-13 19:20:56 +00:00
pppoed Add META_MODE support. 2015-06-13 19:20:56 +00:00
rbootd Add META_MODE support. 2015-06-13 19:20:56 +00:00
revnetgroup Add META_MODE support. 2015-06-13 19:20:56 +00:00
rlogind Add META_MODE support. 2015-06-13 19:20:56 +00:00
rpc.rquotad Add META_MODE support. 2015-06-13 19:20:56 +00:00
rpc.rstatd Add META_MODE support. 2015-06-13 19:20:56 +00:00
rpc.rusersd Add META_MODE support. 2015-06-13 19:20:56 +00:00
rpc.rwalld Add META_MODE support. 2015-06-13 19:20:56 +00:00
rpc.sprayd Add META_MODE support. 2015-06-13 19:20:56 +00:00
rshd Add META_MODE support. 2015-06-13 19:20:56 +00:00
rtld-aout More -Wmissing-variable-declarations fixes. 2012-10-19 14:49:42 +00:00
rtld-elf Ensure we use calculate_first_tls_offset, even if the main program doesn't 2015-09-01 15:43:56 +00:00
save-entropy Add META_MODE support. 2015-06-13 19:20:56 +00:00
smrsh Add META_MODE support. 2015-06-13 19:20:56 +00:00
talkd Don't assign 'ptr' without using it. 2015-08-30 08:38:59 +00:00
tcpd Add META_MODE support. 2015-06-13 19:20:56 +00:00
telnetd Add META_MODE support. 2015-06-13 19:20:56 +00:00
tests Build and install the atf tests. 2013-11-08 14:33:41 +00:00
tftp-proxy Add META_MODE support. 2015-06-13 19:20:56 +00:00
tftpd Add META_MODE support. 2015-06-13 19:20:56 +00:00
ulog-helper Add META_MODE support. 2015-06-13 19:20:56 +00:00
ypxfr Staticfy and constify some variables and clean up the code a bit to make it 2015-07-28 02:32:40 +00:00
Makefile Add the following options to enable/disable several features in the base system 2015-02-04 10:19:32 +00:00
Makefile.amd64 HYPERV isn't available on all architectures, but just on by default 2014-10-16 00:33:06 +00:00
Makefile.i386 HYPERV isn't available on all architectures, but just on by default 2014-10-16 00:33:06 +00:00
Makefile.inc Make WARNS=6 the default for libexec/. 2010-01-02 09:50:19 +00:00
Makefile.pc98 Add an "empty" Makefile.pc98 because it doesn't need/want HYPERV. It 2014-10-16 14:08:59 +00:00