aboutsummaryrefslogtreecommitdiff
path: root/libexec
Commit message (Collapse)AuthorAgeFilesLines
* Rather than using the #define for path names, indirect through a char *Warner Losh2015-10-313-9/+24
| | | | | | | variable that could change for different executable types detected. Notes: svn path=/head/; revision=290223
* Move all the paths into a new path.h to centralize them.Warner Losh2015-10-315-33/+67
| | | | Notes: svn path=/head/; revision=290222
* Add Makefile.dependBryan Drewery2015-10-272-0/+50
| | | | Notes: svn path=/head/; revision=290030
* Allow PT_NOTES segments to be located anywhere in the executableKonstantin Belousov2015-10-141-3/+21
| | | | | | | | | | | | | | | image. The dynamic linker still requires that program headers of the executable or dso are mapped by a PT_LOAD segment. Reviewed by: emaste, jhb Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D3871 Notes: svn path=/head/; revision=289324
* Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) andEnji Cooper2015-10-125-13/+4
| | | | | | | | | | | | | | | netbsd-tests.test.mk (r289151) - Eliminate explicit OBJTOP/SRCTOP setting - Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk - Remove unnecessary TESTSDIR setting - Use SRCTOP where possible for clarity MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Divison Notes: svn path=/head/; revision=289172
* Use existing CONFDIR instead of adding a new CONFIGDIRBaptiste Daroussin2015-10-111-1/+1
| | | | | | | Reported by: jbeich Notes: svn path=/head/; revision=289148
* Update Dragonfly Mail Agent to v0.10Baptiste Daroussin2015-10-101-1/+1
| | | | Notes: svn path=/head/; revision=289123
* Install bsd.confs.mkBaptiste Daroussin2015-10-101-1/+1
| | | | | | | Rename ETCDIR into CONFIGDIR to avoid conflicts with the ports tree Notes: svn path=/head/; revision=289114
* Rename the dma directory into dmagent to avoid collision on unclean ojectBaptiste Daroussin2015-10-094-1/+1
| | | | | | | directory where an old dma binary can remain Notes: svn path=/head/; revision=289094
* Add missing MakefileBaptiste Daroussin2015-10-091-0/+6
| | | | Notes: svn path=/head/; revision=289088
* Move all the dma(8) components into one single directoryBaptiste Daroussin2015-10-097-29/+96
| | | | | | | | | | Simplifying maintainance and options (only one place to deal with MK_DMAGENT) This also makes packaging base less intrusive by getting a single point where to add tags. Notes: svn path=/head/; revision=289087
* Remove some trailing space.Alexander Kabaev2015-10-091-5/+5
| | | | Notes: svn path=/head/; revision=289075
* Annotate arm userspace assembler sources stating their tolerance toKonstantin Belousov2015-09-291-0/+1
| | | | | | | | | | the non-executable stack. Reviewed by: andrew Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=288373
* META_MODE: Remove DEP_MACHINE from Makefile.depend files.Bryan Drewery2015-09-251-2/+0
| | | | | | | | | This has not been needed since r246865 in projects/bmake. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=288228
* META_MODE: Remove DEP_RELDIR from Makefile.depend files.Bryan Drewery2015-09-251-2/+0
| | | | | | | | | This has not been needed since r284171 in projects/bmake. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=288226
* META_MODE: No need to fix the link in this case.Bryan Drewery2015-09-181-1/+1
| | | | | | | | | | | | | | The exists(${DESTDIR}...) check runs with DESTDIR being blank. When the target runs it does have DESTDIR=${STAGE_OBJTOP} via bsd.sys.mk. This results in the first execution warning that the symlink is missing. The second run does run fine. However, this chflags is not needed at all for META_MODE/STAGING since we never had this path being a schg file while using META_MODE. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=287977
* Fix how we place each objects thread local data. The code used was basedAndrew Turner2015-09-012-4/+4
| | | | | | | | | | | | | | | | | | | | | | on the Variant II code, however arm64 uses Variant I. The former placed the thread pointer after the data, pointing at the thread control block, while the latter places these before said data. Because of this we need to use the size of the previous entry to calculate where to place the current entry. We also need to reserve 16 bytes at the start for the thread control block. This also fixes the value of TLS_TCB_SIZE to be correct. This is the size of two unsigned longs, i.e. 2 * 8 bytes. While here remove the bogus adjustment of the pointer in the R_AARCH64_TLS_TPREL64 case. It should be the offset of the data relative to the thread pointer, including the thread control block. Sponsored by: ABT Systems Ltd Notes: svn path=/head/; revision=287370
* Ensure we use calculate_first_tls_offset, even if the main program doesn'tAndrew Turner2015-09-011-1/+1
| | | | | | | | | | | | | | | | | | | | | 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 Notes: svn path=/head/; revision=287369
* Don't assign 'ptr' without using it.Xin LI2015-08-301-1/+0
| | | | | | | | Reported by: clang static analyzer MFC after: 2 weeks Notes: svn path=/head/; revision=287301
* Upgrade libxo to 0.4.5.Marcel Moolenaar2015-08-241-1/+1
| | | | | | | | | | Local changes incorporated by 0.4.5: r284340 Local changes retained: r276260, r282117 Obtained from: https://github.com/Juniper/libxo Notes: svn path=/head/; revision=287111
* Disable SSE in libthrEric van Gyzen2015-08-052-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Clang emits SSE instructions on amd64 in the common path of pthread_mutex_unlock. If the thread does not otherwise use SSE, this usage incurs a context-switch of the FPU/SSE state, which reduces the performance of multiple real-world applications by a non-trivial amount (3-5% in one application). Instead of this change, I experimented with eagerly switching the FPU state at context-switch time. This did not help. Most of the cost seems to be in the read/write of memory--as kib@ stated--and not in the #NM handling. I tested on machines with and without XSAVEOPT. One counter-argument to this change is that most applications already use SIMD, and the number of applications and amount of SIMD usage are only increasing. This is absolutely true. I agree that--in general and in principle--this change is in the wrong direction. However, there are applications that do not use enough SSE to offset the extra context-switch cost. SSE does not provide a clear benefit in the current libthr code with the current compiler, but it does provide a clear loss in some cases. Therefore, disabling SSE in libthr is a non-loss for most, and a gain for some. I refrained from disabling SSE in libc--as was suggested--because I can't make the above argument for libc. It provides a wide variety of code; each case should be analyzed separately. https://lists.freebsd.org/pipermail/freebsd-current/2015-March/055193.html Suggestions from: dim, jmg, rpaulo Approved by: kib (mentor) MFC after: 2 weeks Sponsored by: Dell Inc. Notes: svn path=/head/; revision=286317
* Staticfy and constify some variables and clean up the code a bit to make itMarcelo Araujo2015-07-283-9/+9
| | | | | | | | | | | more readable. No functional change. Differential Revision: D3166 Reviewed by: kib Sponsored by: gandi.net Notes: svn path=/head/; revision=285926
* Add on the addend when in the R_AARCH64_ABS64 and R_AARCH64_GLOB_DAT cases.Andrew Turner2015-07-051-1/+2
| | | | | | | | | This fixes at least sshd, and some of the boehm-gc tests. Sponsored by: ABT Systems Ltd Notes: svn path=/head/; revision=285159
* Let the nv.h and dnv.h includes be only in sys directory.Mariusz Zaborski2015-07-025-5/+8
| | | | | | | | | | Change consumers to include those files from sys. Add duplicated files to ObsoleteFiles. Approved by: pjd (mentor) Notes: svn path=/head/; revision=285063
* Save & restore the floating-pont argument registers before callingAndrew Turner2015-07-021-1/+11
| | | | | | | | | | | | | _rtld_bind. The compiler may generate code using these registers and not save them. Unfortunately, as we make use of libc, we are unable to disallow rtld from using floating-point register without also doing the same for the parts of libc we use, or by limiting what _rtld_bind is able to call. Obtained from: ABT Systems Ltd Sponsored by: The FReeBSD Foundation Notes: svn path=/head/; revision=285038
* Also save x8. It may be passed into a function as the indirect resultAndrew Turner2015-06-231-1/+3
| | | | | | | | | | | location pointer when the return value doesn't fit in a register, e.g. when returning a struct. Obtained from: ABT Systems Ltd Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=284725
* Call /etc/crontab the "system crontab", not "root's crontab". WhileWarren Block2015-06-221-11/+13
| | | | | | | | | | | here, fix some other wording issues PR: 201048 Submitted by: teksimian@gmail.com MFC after: 1 week Notes: svn path=/head/; revision=284709
* Add a workaround to correctly align the stack before calling into C code.Andrew Turner2015-06-221-3/+7
| | | | | | | | | | | | | | | | | When enough time has passed for users to update their userland the kernel fix will be applied. This will change the ABI to have x0 point to the args and sp be correctly aligned. It is expected this compatibility code can be removed when the kernel and qemu usermode emulation have both been updated for the new ABI. This fixes clang failures, and most likely other crashes. Obtained from: ABT Systems Ltd Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=284707
* new dependsSimon J. Gerraty2015-06-161-1/+0
| | | | Notes: svn path=/head/; revision=284481
* Needs libxoSimon J. Gerraty2015-06-141-0/+1
| | | | Notes: svn path=/head/; revision=284371
* Add META_MODE support.Simon J. Gerraty2015-06-1333-0/+690
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-0832-64/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Merge sync of headSimon J. Gerraty2015-05-2754-250/+940
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=283595
| * \ Merge from head@274682Simon J. Gerraty2014-11-1929-375/+382
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=274683
| * \ \ Merge head from 7/28Simon J. Gerraty2014-08-1938-1042/+699
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=270164
| * | | | Updated dependenciesSimon J. Gerraty2014-05-1629-29/+4
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * | | | Updated dependenciesSimon J. Gerraty2014-05-1027-0/+54
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * | | | Merge from headSimon J. Gerraty2014-05-089-7/+24
| |\ \ \ \ | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265720
| * \ \ \ \ Merge headSimon J. Gerraty2014-04-2891-789/+2072
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=265044
| * \ \ \ \ \ Merge head@256284Simon J. Gerraty2013-10-134-16/+39
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=256424
| * | | | | | | We do want objdirSimon J. Gerraty2013-10-131-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=256421
| * | | | | | | Updated dependenciesSimon J. Gerraty2013-10-132-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=256419
| * | | | | | | New dependenciesSimon J. Gerraty2013-10-131-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=256418
| * | | | | | | Merge from headSimon J. Gerraty2013-09-053-74/+81
| |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * \ \ \ \ \ \ \ sync from headSimon J. Gerraty2013-04-124-20/+6
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=249429
| * | | | | | | | | Updated dependenciesSimon J. Gerraty2013-03-1129-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | | | | | | | Updated dependenciesSimon J. Gerraty2013-02-1630-60/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | | | | | | | Sync with HEAD.David E. O'Brien2013-02-088-42/+41
| |\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246555
| * | | | | | | | | | Updated/new Makefile.dependSimon J. Gerraty2012-11-082-1/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242788
| * | | | | | | | | | Sync from headSimon J. Gerraty2012-11-0433-253/+710
| |\ \ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545