<feed xmlns='http://www.w3.org/2005/Atom'>
<title>src/lib/csu, branch main</title>
<subtitle>FreeBSD source tree</subtitle>
<id>https://cgit-dev.freebsd.org/src/atom?h=main</id>
<link rel='self' href='https://cgit-dev.freebsd.org/src/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/'/>
<updated>2026-01-13T15:19:04Z</updated>
<entry>
<title>csu: Remove unused constant</title>
<updated>2026-01-13T15:19:04Z</updated>
<author>
<name>John Baldwin</name>
<email>jhb@FreeBSD.org</email>
</author>
<published>2026-01-13T15:19:04Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=113dc9ed98874d15f4f43287dcb6d0f59633b19b'/>
<id>urn:sha1:113dc9ed98874d15f4f43287dcb6d0f59633b19b</id>
<content type='text'>
This is no longer used after commit
99282790b7d01ec3c4072621d46a0d7302517ad4 moved ELF notes from C to
assembly.

Reviewed by:	kib
Fixes:		99282790b7d0 ("Remove the sed hack for ABI tag notes.")
Sponsored by:	AFRL, DARPA
Differential Revision:	https://reviews.freebsd.org/D54506
</content>
</entry>
<entry>
<title>csu/tests: Add tests to verify that errno == 0 upon program startup</title>
<updated>2025-06-24T01:24:04Z</updated>
<author>
<name>Mark Johnston</name>
<email>markj@FreeBSD.org</email>
</author>
<published>2025-06-23T23:54:30Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=b5c04c8f96f6b51edb767e37aba0ea13b172723a'/>
<id>urn:sha1:b5c04c8f96f6b51edb767e37aba0ea13b172723a</id>
<content type='text'>
Reviewed by:	kib, kevans
Differential Revision:	https://reviews.freebsd.org/D50998
</content>
</entry>
<entry>
<title>tests: move some files to the tests package</title>
<updated>2025-05-05T15:39:25Z</updated>
<author>
<name>Lexi Winter</name>
<email>ivy@FreeBSD.org</email>
</author>
<published>2025-05-05T15:22:51Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=e4cacb6623c457bba19e60d44a51aee7eae2e4d8'/>
<id>urn:sha1:e4cacb6623c457bba19e60d44a51aee7eae2e4d8</id>
<content type='text'>
some test support libraries had escaped confinement and were found
wandering around the utilities package:

	/usr/tests/lib/csu/dynamiclib/libh_csu.so
	/usr/tests/lib/libthr/dlopen/h_pthread_dlopen.so
	/usr/tests/lib/libthr/dlopen/h_pthread_dlopen.so.1
	/usr/tests/sys/vm/stack/libsoxstack.so

these aren't built using bsd.test.mk, so they don't get the default
PACKAGE=tests option; set this by hand in their Makefiles to put them
back where they belong.

Reviewed by:	manu, des, emaste
Approved by:	des (mentor)
Differential Revision:	https://reviews.freebsd.org/D50147
</content>
</entry>
<entry>
<title>csu: drop support for GCJ</title>
<updated>2025-04-18T18:59:19Z</updated>
<author>
<name>Brooks Davis</name>
<email>brooks@FreeBSD.org</email>
</author>
<published>2025-04-18T18:49:01Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=a60615d5be83ca050d4ddfbbb4411ca7a8a11486'/>
<id>urn:sha1:a60615d5be83ca050d4ddfbbb4411ca7a8a11486</id>
<content type='text'>
Remove .jcr sections and related infrastructure.  This has no impact on
existing binaries and the toolchain remains capability of linking them,
but would require different (or additional) csu files.

GCC removed GCJ from trunk in on September 30, 2016.  Our support came
in with D17587 for compatibility with old object files.  It was roughly
contemporaneous with GCC 6.5, the last release with GCJ support.  At
this point we don't even have a compiler port capable of producing GCJ
binaries so there is no need to carry this around any more.

For reference see:
    https://en.wikipedia.org/wiki/GNU_Compiler_for_Java#History

Reviewed by:	kib, emaste
Discussed with:	imp
Sponsored by:	SRI International
Differential Revision:	https://reviews.freebsd.org/D49882
</content>
</entry>
<entry>
<title>amd64 csu: microoptimize startup</title>
<updated>2025-03-04T04:24:59Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2025-03-02T23:54:24Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=cb991a228179639cc0568fdd5d4b4b07b6f47b5a'/>
<id>urn:sha1:cb991a228179639cc0568fdd5d4b4b07b6f47b5a</id>
<content type='text'>
Reorder operations to reduce moving the values among registers.
Use the LEA instruction to combine arithmetic with the moves.

Reviewed by:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D49206
</content>
</entry>
<entry>
<title>csu tests: Remove extra slash</title>
<updated>2025-02-04T14:15:12Z</updated>
<author>
<name>Jose Luis Duran</name>
<email>jlduran@FreeBSD.org</email>
</author>
<published>2025-02-04T14:15:12Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=841856570e7b623c4f1283939936ffa005d2fcf4'/>
<id>urn:sha1:841856570e7b623c4f1283939936ffa005d2fcf4</id>
<content type='text'>
Remove an extra slash that ends up in the metalog.  This double slash
can produce an invalid specification file if there are subdirectories
down the hierarchy when sorted.

For example, consider the following metalog excerpt:

    ./base/aaa type=dir
    ./base//aaa/bbb type=dir

If sorted, would turn out:

    ./base//aaa/bbb type=dir
    ./base/aaa type=dir

Apparently missing the ./base/aaa directory in the specification.

Luckily here are no subdirectories.

Reviewed by:	imp, emaste
Approved by:	emaste (mentor)
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D48778
</content>
</entry>
<entry>
<title>crtend: accurately check for the start of .ctors</title>
<updated>2025-01-28T22:59:20Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2025-01-27T20:38:27Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=21502f9a926c7e0c24ce230bb029fde4bf570a14'/>
<id>urn:sha1:21502f9a926c7e0c24ce230bb029fde4bf570a14</id>
<content type='text'>
For the hypothetic situation where crtbegin.o is not linked into the
binary, but crtend.o is, which results in the missing starting sentinel
in the ctors array, be careful to not iterate past the start of the
section.

Reviewed by:	andrew, dim
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D48700
</content>
</entry>
<entry>
<title>crtbegin: accurately check for the end of .dtors</title>
<updated>2025-01-28T22:59:20Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2025-01-27T19:21:20Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6ee34bca48a9e0867d46b24a78855e225d46ddda'/>
<id>urn:sha1:6ee34bca48a9e0867d46b24a78855e225d46ddda</id>
<content type='text'>
not relying only on the end section marker, but also checking for the
section size when iterating.

Reported by:	kargl
Analyzed by:	dim
Reviewed by:	andrew, dim
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
Differential revision:	https://reviews.freebsd.org/D48700
</content>
</entry>
<entry>
<title>csu: add the "Retain" flag to notes sections flag</title>
<updated>2025-01-24T13:36:41Z</updated>
<author>
<name>Konstantin Belousov</name>
<email>kib@FreeBSD.org</email>
</author>
<published>2025-01-24T11:32:53Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=6700e2d963ff0475cc5cd444e92ce40855643084'/>
<id>urn:sha1:6700e2d963ff0475cc5cd444e92ce40855643084</id>
<content type='text'>
It should make the notes immune against --gc-sections.

Reported and tested by:	bapt
Sponsored by:	The FreeBSD Foundation
MFC after:	1 week
</content>
</entry>
<entry>
<title>pkgbase: fix inclusion of tests in ssh, bsnmp, clibs-dev</title>
<updated>2024-12-23T22:03:30Z</updated>
<author>
<name>Isaac Freund</name>
<email>ifreund@freebsdfoundation.org</email>
</author>
<published>2024-12-23T21:54:29Z</published>
<link rel='alternate' type='text/html' href='https://cgit-dev.freebsd.org/src/commit/?id=3a56015a2f5d630910177fa79a522bb95511ccf7'/>
<id>urn:sha1:3a56015a2f5d630910177fa79a522bb95511ccf7</id>
<content type='text'>
Currently, files that belong in the tests package are included in the
ssh, bsnmp, and clibs-dev packages:

ssh.plist
24:@dir(root,wheel,0755,) /usr/tests/secure/libexec
25:@(root,wheel,0444,) /usr/tests/secure/libexec/Kyuafile

bsnmp.plist
82:@dir(root,wheel,0755,) /usr/tests/lib/libbsnmp
83:@(root,wheel,0444,) /usr/tests/lib/libbsnmp/Kyuafile
84:@(root,wheel,0555,) /usr/tests/lib/libbsnmp/bsnmpd_test

clibs-dev.plist
2518:@dir(root,wheel,0755,) /usr/tests/lib/csu
2519:@(root,wheel,0444,) /usr/tests/lib/csu/Kyuafile

This is caused by the PACKAGE=foo assignment in foo/Makefile.inc which
overrides the default PACKAGE?=tests in bsd.test.mk.

To fix this, instead use PACKAGE?=foo in foo/Makefile.inc and set
PACKAGE=tests in foo/tests/Makefile.

PR:		249144
Reviewed by:	bapt, emaste
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D47025
</content>
</entry>
</feed>
