Commit Graph

301286 Commits

Author SHA1 Message Date
lukem a25022c648 tools: use NONLS= not MKNLS=no 2023-06-02 20:47:27 +00:00
riastradh 067c5136b3 ld.elf_so: Test dynamic-then-static abuse via ctor.
XXX pullup-10
2023-06-02 19:09:11 +00:00
riastradh f4e534dd53 ld.elf_so: Test another edge case of mismatched TLS models.
One library defines a symbol and _doesn't_ use it, so it has no
indication of whether the symbol is for static TLS or dynamic TLS,
and then two other libraries use it in different ways.

XXX pullup-10
2023-06-02 19:08:48 +00:00
riastradh 4dedd5fc26 ld.elf_so: tls_extern dynamic_defabuse_eager must xfail differently.
If a symbol has already been resolved as dynamic TLS, any library
that tries to use it as static TLS cannot be dlopened.

XXX pullup-10
2023-06-02 19:08:01 +00:00
rillig 3eeca426f5 indent: force each statement on a new line
Previously, '{} while (cond)' was kept on a single line, even though the
'while' was independent of the '{}'.
2023-06-02 15:07:46 +00:00
rillig 9e6f62d1d8 indent: remove newline between 'switch' and '{' 2023-06-02 14:34:14 +00:00
lukem e3f25515e3 etc.sparc64: fix syntax errors in MK32BITLIBS=yes
sparc64 snapshots with MK32BITLIBS=yes has been broken
because of make(1) and sh(1) syntax errors since
my change in revision 1.18 on 2002-12-03, when
snap_md_pre target was deprecated...
Move the rules to snap_md_post and fix the syntax errors.

The cross-build make snapshot snapbecause of the missing
$TOOLDIR/bin/sparc--netbsdelf-gcc due to the invocation
with SPARC32_ENV=MACHINE=sparc MACHINE_ARCH=sparc.
A separate issue to resolve.

(It seems MK32BITLIBS hasn't worked for 20+ years and
noone noticed! Do we need it?)
2023-06-02 14:32:04 +00:00
lukem b329684b89 bsd.own.mk: obsolete non-MK variants MANZ UNPRIVED UPDATE
Remove support for variables deprecated 20 years ago
by their MK* equivalents.
2023-06-02 14:30:23 +00:00
lukem bd4a734738 build.sh: fix MKUNPRIVED comment
I renamed UNPRIVED to MKUNPRIVED 20 years ago, and missed a comment.
2023-06-02 14:29:11 +00:00
lukem db689ccb2d etc.hp300, etc.sparc64: fix MKUPDATE handling
UPDATE was replaced with MKUPDATE 20 years ago,
but these directories were missed in the conversion.
2023-06-02 14:25:35 +00:00
rillig 6fc430af5c indent: improve heuristics of classifying '*' as pointer or operator 2023-06-02 14:21:55 +00:00
rillig ef25c88e9b indent: clean up
Only print the 'token' buffer in debug mode if it is interesting, group
the blocks in handling of '(' tokens by topic, remove obsolete comment
from test.
2023-06-02 13:59:33 +00:00
riastradh e0bd56e642 ld.elf_so: Add new files to debug/shl.mi.
XXX pullup-10
2023-06-02 12:08:26 +00:00
rillig a565c86f6c indent: fix formatting of declarations with preprocessing lines 2023-06-02 11:43:07 +00:00
rillig 7511320300 tests/indent: demonstrate bugs when formatting preprocessing lines 2023-06-02 11:26:21 +00:00
martin eba8370ebe Add recent ld.elf_so test helpers debug info 2023-06-02 11:09:39 +00:00
andvar cb40c69b16 follow the steps of Andrew Doran (ad) commit and fix more s/loose/lose/ typos.
also s/beyound/beyond/ and few others along the way, mainly in comments.
2023-06-02 08:51:46 +00:00
riastradh 98256cacf3 ld.elf_so: Separately test eager and lazy resolution of def tls ptr.
eager: before loading use library
lazy: after loading use library

XXX pullup-10
2023-06-01 23:47:24 +00:00
riastradh e04ffa379b ld.elf_so: Shorter test names.
No functional non-cosmetic change intended.

XXX pullup-10
2023-06-01 22:26:51 +00:00
riastradh 6b7ae3bea1 ld.elf_so: Test TLS abuse of static def, dynamic use and vice versa.
XXX pullup-10
2023-06-01 22:26:40 +00:00
riastradh bc9d9d1143 ld.elf_so: Factor out logic in TLS tests to make writing more easier.
No functional change intended.

XXX pullup-10
2023-06-01 22:24:52 +00:00
lukem 1ebcf5670b mk.conf(5): update to reality
- Document:
	MKAMDGPUFIRMWARE, MKARGON2, MKARZERO, MKBSDGREP,
	MKCOMPATMODULES, MKCOMPATTESTS, MKCOMPATX11, MKCXX,
	MKDEPINCLUDES, MKDTB, MKDTC, MKFIRMWARE, MKGROFF,
	MKGROFFHTMLDOC, MKLIBCSANITIZER, MKLIBCXX, MKLIBSTDCXX,
	MKLLVM, MKLLVMRT, MKMAKEMANDB, MKMANDOC, MKNSD,
	MKRADEONFIRMWARE, MKRELRO, MKSANITIZER, MKSLJIT,
	MKSTATICPIE, MKTEGRAFIRMWARE, MKTPM, MKUNBOUND,
	MKXORG_SERVER, NETBSD_OFFICIAL_RELEASE,
	USE_LIBCSANITIZER, USE_PIGZGZIP, USE_SANITIZER,
	USE_XZ_SETS, X11MOTIFPATH
- Document obsolete/deprecated:
	EXTSRCSRCDIR, MKBFD, MKCRYPTO, MKEXTSRC, MKKDEBUG,
	MKKERBEROS4, MKLLD, MKLLDB, MKMCLINKER, MKPERFUSE,
	MKTOOLSDEBUG, SHAREDSTRINGS, USE_COMBINE
- Fix defaults: MKLINT=no MKPICINSTALL=no USE_SKEY=no
- Expand upon defaults that are platform specific.
- Sort variable entries.
- If a NOxxx variable disables a variable, describe it.
- Layout of each variable: supported values, description,
  any other variables that change this variable, optional note,
  default value.
- Consistent double quotes around default strings (even paths).
- Consistent "will be" instead of "is" or "are".
- Sort order of internal macro definitions.
- Add NODEF and NOVAR macros.
- Oxford comma and semi-colons where appropriate.
- Fix mandoc -Tlint.
2023-06-01 21:58:05 +00:00
lukem b2387f1a6b bsd.own.mk: describe recent convention in comments 2023-06-01 21:54:17 +00:00
lukem 09ef972abc bsd.own.mk: MKPERFUSE isn't used anywhere
perfuse is built unconditionally, and MKPERFUSE
isn't tested anywhere.
2023-06-01 21:50:26 +00:00
lukem 70c6660252 bsd.own.mk: MKLLD, MKLLDB, MKMCLINKER are obsolete
MKLLD, MKLLDB, MKMCLINKER aren't used in the build,
so remove them.

These were obsoleted by joerg@ on 2019-11-11
with the update of LLVM to 10.0.0git (01f3a59).
2023-06-01 21:47:19 +00:00
rillig 73d0a5078e tests/make: force line-based diagnostics to be listed in the tests
This way, contradictions between the intended output and the actual
output are closer together and have a better chance of being spotted.
2023-06-01 20:56:35 +00:00
riastradh 05e97b5a42 ld.elf_so: Test extern dynamic TLS too.
XXX pullup-10
2023-06-01 20:50:18 +00:00
riastradh f4e155a450 ld.elf_so: Test variations on PR toolchain/50277.
XXX pullup-10
2023-06-01 20:48:30 +00:00
christos 7b2118de5f Add checks to EVP_CipherInit_ex() where they were missing and add a cheesy
define to get the RC4 cipher from the legacy provider, since the legacy
provider is not loaded by default now.
2023-06-01 20:40:18 +00:00
andvar 9719c27fea fix various typos in comments. 2023-06-01 20:15:16 +00:00
uwe 563f06395e mtree(8): a few markup fixes
Didn't touch the section that describes the spec file format.  We have
the format documented here, in mtree(8), and we also have the format
description in mtree(5) that comes from libarchive.
2023-06-01 13:04:47 +00:00
rillig a7d1ba3ffa make: add more details to debug logging of .for loops 2023-06-01 09:02:14 +00:00
riastradh 78e97c0a70 ld.elf_so: Make tls alloc debug messages more detailed and greppable.
XXX pullup-10
2023-06-01 08:20:10 +00:00
rillig d45705acd7 make: shorten function names, clean up comments
No functional change.
2023-06-01 07:44:10 +00:00
rillig 9458670356 tests/make: clean up comments, extend a few tests 2023-06-01 07:27:30 +00:00
rillig 72cb4673f3 make: error out on a .break directive with arguments 2023-06-01 06:25:34 +00:00
mrg cefbb2f39f add 2004's "@" definition. 2023-06-01 04:08:36 +00:00
gutteridge 6b947a974c 3RDPARTY: gcc-11.4 out 2023-06-01 01:09:51 +00:00
uwe 71118f0693 stat_flags(3): try to improve the descriptions
List all alternative forms recognized by string_to_flags(3).
Both "dump" and "nonodump" are the negative of "nodump".
string_to_flags does not recognize "snap".
Provide xrefs for flag descriptions where applicable.
2023-05-31 21:49:39 +00:00
wiz 6fd586299b doc: fix swappo 2023-05-31 21:02:50 +00:00
christos 21927c5e23 new OpenSSL 2023-05-31 20:59:15 +00:00
christos 63c35a6c57 fix the build 2023-05-31 20:57:31 +00:00
lukem ea42860061 bsd.own.mk: support ${MACHINE} defaults in MK* = yes
For MK* variables (in _MKVARS.yes), default to
MK*.${MACHINE} if MK*.${MACHINE_ARCH} isn't defined.

Equivalent to _MKVARS.no change by mrg@ in rev 1.1065 on 2018-06-16.
2023-05-31 20:47:35 +00:00
lukem 5d3629a706 bsd.own.mk: sort lists. whitespace fixes
Create _NOVARS for the list of NO* variables,
for consistency with _MKVARS.yes and _MKVARS.no

Format _NOVARS, _MKVARS.yes, and _MKVARS.no with
one entry per line, and sort the lists.
Simplifies review and adding new entries.
Per suggestion from riastradh@

Line up some variable assignments more consistently.
2023-05-31 20:45:02 +00:00
christos a53fe4a1e9 regen 2023-05-31 20:43:28 +00:00
uwe 52efc5a51d chflags(1): xref stat_flags(3) 2023-05-31 20:33:22 +00:00
ad d3ebc88635 Fix typo. 2023-05-31 20:00:50 +00:00
christos 64d14f900e new openssl man pages 2023-05-31 19:44:42 +00:00
christos cd340f292c regen 2023-05-31 19:35:31 +00:00
christos d6e24a893e merge conflicts between 3.0.8 and 3.0.9 2023-05-31 19:30:28 +00:00