freebsd-skq/libexec
andrew c8580db746 MFC r287369:
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-08 12:00:13 +00:00
..
atf MFC r273929: 2014-12-21 08:30:18 +00:00
atrun MFC 284709: 2015-06-30 19:53:26 +00:00
bootpd MFC r264400,r265836: 2014-12-31 23:25:37 +00:00
comsat MFC: r262136 2014-02-24 08:21:49 +00:00
fingerd MFC: r262136 2014-02-24 08:21:49 +00:00
ftpd MFC: r262136 2014-02-24 08:21:49 +00:00
getty MFC r282245: 2015-05-06 09:38:44 +00:00
hyperv MFC r271493,271688-271689,271696,271854,272139-272143: 2014-09-30 17:54:57 +00:00
mail.local Since clang 3.2 now has an option to suppress warnings about implicitly 2013-02-16 20:17:31 +00:00
mknetid MFC: r262136 2014-02-24 08:21:49 +00:00
pppoed In libexec/pppoed/pppoed.c, use the correct printf length modifier for a 2011-12-16 16:07:39 +00:00
rbootd MFC: r262136 2014-02-24 08:21:49 +00:00
revnetgroup MFC: r262136 2014-02-24 08:21:49 +00:00
rlogind MFC: r262136 2014-02-24 08:21:49 +00:00
rpc.rquotad The NFS quota-reporting RPC uses 32-bit sized fields. We approximate 2010-04-25 00:05:51 +00:00
rpc.rstatd MFC: r262136 2014-02-24 08:21:49 +00:00
rpc.rusersd MFC: r262136 2014-02-24 08:21:49 +00:00
rpc.rwalld MFC: r262136 2014-02-24 08:21:49 +00:00
rpc.sprayd Make WARNS=6 the default for libexec/. 2010-01-02 09:50:19 +00:00
rshd MFC: r262136 2014-02-24 08:21:49 +00:00
rtld-aout More -Wmissing-variable-declarations fixes. 2012-10-19 14:49:42 +00:00
rtld-elf MFC r287369: 2015-09-08 12:00:13 +00:00
save-entropy MFC r268979: 2014-07-29 06:00:16 +00:00
smrsh Since clang 3.2 now has an option to suppress warnings about implicitly 2013-02-16 20:17:31 +00:00
talkd MFC: r262136 2014-02-24 08:21:49 +00:00
tcpd Make WARNS=6 the default for libexec/. 2010-01-02 09:50:19 +00:00
telnetd MFC r274364: 2014-12-05 12:23:29 +00:00
tests Plug the ATF tests into the build. 2013-12-28 23:08:58 +00:00
tftp-proxy Make WARNS=6 the default for libexec/. 2010-01-02 09:50:19 +00:00
tftpd MFC: r262136 2014-02-24 08:21:49 +00:00
ulog-helper MFC r264400,r265836: 2014-12-31 23:25:37 +00:00
ypxfr Consistently set RPCGEN_CPP when running rpcgen, so the C preprocessor 2012-02-07 09:27:07 +00:00
Makefile MFC r278192: 2015-03-01 22:03:52 +00:00
Makefile.inc Make WARNS=6 the default for libexec/. 2010-01-02 09:50:19 +00:00