aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/lorder
Commit message (Collapse)AuthorAgeFilesLines
* tests/lorder_test: Update test case description from copy/pasteLi-Wen Hsu2025-12-171-1/+1
| | | | | MFC after: 3 days Sponsored by: The FreeBSD Foundation
* tests/lorder_test: Add require.progs for nm and ccSiva Mahadevan2025-12-172-0/+6
| | | | | | Signed-off-by: Siva Mahadevan <me@svmhdvn.name> Sponsored by: The FreeBSD Foundation Pull Request: https://github.com/freebsd/freebsd-src/pull/1858
* packages: rename elftoolchain to toolchain, add more thingsLexi Winter2025-05-281-0/+1
| | | | | | | | | | | | | | Rename the existing "elftoolchain" package to "toolchain", and move everything which is gated by MK_TOOLCHAIN (e.g. lex, yacc, ...) to the toolchain package. This means we have one package called "toolchain" which contains all the development-related utilities which are not compilers or already part of some other package (e.g., llvm). Reviewed by: des, emaste Approved by: des (mentor) Differential Revision: https://reviews.freebsd.org/D50286
* Update Makefile.depend filesSimon J. Gerraty2024-10-141-0/+10
| | | | | | | After building packages we have a number of new and updated Makefile.depend files Reviewed by: stevek
* lorder: Tweak invalid file test.Dag-Erling Smørgrav2024-02-291-1/+1
| | | | | | | | | | | Different implementations of `nm` have different ways of telling you that your file is not a valid object or library, but they all seem to have “not recognized” as a common substring. MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D44154
* lorder: Don't rely on legacy syntax.Dag-Erling Smørgrav2024-02-291-1/+1
| | | | | | | MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D44155
* lorder: Undeprecate.Dag-Erling Smørgrav2024-02-281-11/+4
| | | | | | | | | | | | While lorder is not required by our current toolchain (or any toolchain we've used in the past decade or two), it still occasionally shows up in build systems of third party software, including The Open Group's UNIX conformance test suite, and the maintenance cost is negligible. MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: imp, allanjude, emaste Differential Revision: https://reviews.freebsd.org/D44135
* lorder: Add unit tests.Dag-Erling Smørgrav2024-02-283-0/+119
| | | | | | | MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D44134
* lorder: Clean up and improve robustness.Dag-Erling Smørgrav2024-02-282-45/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Properly parse (no) command-line options. * Ensure that errors go to stderr and result in a non-zero exit. * Drop the special-case code for a single argument, as it will produce the wrong outcome if the file does not exist or is corrupted. * Don't print anything until after we've collected all the data. * Always create all temporary files before setting the trap. This ensures that the trap can safely fire at any moment, regardless of any previous definition of `T`. * Use a temporary file rather than a pipe between `nm` and `sed` to ensure proper termination if `nm` fails due to a missing or invalid input. * The check for self-referential entries was conditional on testing our argument list against a regex looking for archives. This was a needless and unreliable optimization; make the check unconditional. * Document that lorder will not work properly if any of its inputs have spaces in their name. MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D44133
* usr.bin: Remove ancient SCCS tags.Warner Losh2023-11-273-7/+0
| | | | | | | | Remove ancient SCCS tags from the tree, automated scripting, with two minor fixup to keep things compiling. All the common forms in the tree were removed with a perl script. Sponsored by: Netflix
* Remove $FreeBSD$: one-line nroff patternWarner Losh2023-08-161-1/+0
| | | | Remove /^\.\\"\s*\$FreeBSD\$$\n/
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-163-3/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* lorder: add deprecation noticeEd Maste2023-03-211-1/+6
| | | | | | | | | | lorder has not been used by the base system since 0e1e341b486c and hasn't really been necessary for a very long time. PR: 259254 [exp-run] Reviewed by: arichardson (earlier) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D30080
* lorder: add note that it is no longer requiredEd Maste2021-12-201-1/+8
| | | | | | | | | | | | | | | | | | | | | Use of lorder(1) is not required by contemporary linkers. The GNU coreutils manual[1] has a good description of the use of lorder and tsort: This whole procedure has been obsolete since about 1980, because Unix archives now contain a symbol table (traditionally built by ranlib, now generally built by ar itself), and the Unix linker uses the symbol table to effectively make multiple passes over an archive file. See 0e1e341b486c for some more details. [1] https://www.gnu.org/software/coreutils/manual/html_node/tsort-background.html PR: 259254 [exp-run] MFC after: 2 weeks Sponsored by: The FreeBSD Foundation
* lorder: process read-only data symbolsEd Maste2021-10-181-3/+3
| | | | | | | | | | Previously they were skipped. lorder(1) serves no functional purpose today but we might as well address this longstanding bug while it is still in the tree. PR: 133860 MFC after: 1 week Submitted by: John Hein
* General further adoption of SPDX licensing ID tags.Pedro F. Giffuni2017-11-201-0/+2
| | | | | | | | | | | | | | | | | Mainly focus on files that use BSD 3-Clause license. The Software Package Data Exchange (SPDX) group provides a specification to make it easier for automated tools to detect and summarize well known opensource licenses. We are gradually adopting the specification, noting that the tags are considered only advisory and do not, in any way, superceed or replace the license texts. Special thanks to Wind River for providing access to "The Duke of Highlander" tool: an older (2014) run over FreeBSD tree was useful as a starting point. Notes: svn path=/head/; revision=326025
* Renumber copyright clause 4Warner Losh2017-02-282-2/+2
| | | | | | | | | | | | Renumber cluase 4 to 3, per what everybody else did when BSD granted them permission to remove clause 3. My insistance on keeping the same numbering for legal reasons is too pedantic, so give up on that point. Submitted by: Jan Schaumann <jschauma@stevens.edu> Pull Request: https://github.com/freebsd/freebsd/pull/96 Notes: svn path=/head/; revision=314436
* lorder: produce locale-independent symbol orderingEd Maste2016-07-071-0/+1
| | | | | | | | | | | Found by the Debian reproducible builds effort -- Debian bug 830259. Reported by: Reiner Herrmann <reiner@reiner-h.de> Approved by: re (gjb) Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=302398
* Introduce a new make variable: NMFLAGS.Rui Paulo2015-08-142-2/+5
| | | | | | | | | | As the name indicates, these are flags to pass to nm(1). The newer binutils have a plugin mechanism so, to build something with LLVM's LTO, we need to pass flags to nm(1). This commit also extends lorder(1) to pass NMFLAGS to nm(1). Notes: svn path=/head/; revision=286791
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+11
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 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-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+14
|/ | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* Remove the advertising clause from UCB copyrighted files in usr.bin. ThisJoel Dahl2010-12-112-8/+0
| | | | | | | | | | | | is in accordance with the information provided at ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change Also add $FreeBSD$ to a few files to keep svn happy. Discussed with: imp, rwatson Notes: svn path=/head/; revision=216370
* Document the NM environment variable.Ruslan Ermilov2006-10-251-1/+9
| | | | Notes: svn path=/head/; revision=163682
* Markup fixes.Ruslan Ermilov2006-09-291-3/+3
| | | | Notes: svn path=/head/; revision=162792
* ru@ recently changed lorder to support library archives. DocumentWarner Losh2006-04-271-1/+9
| | | | | | | this new feature prominently. Bump date while I'm here. Notes: svn path=/head/; revision=158077
* Oops, revert last commit (the manpage is still built in objdir).Ruslan Ermilov2005-09-281-1/+0
| | | | Notes: svn path=/head/; revision=150671
* Add NO_OBJ.Ruslan Ermilov2005-09-281-0/+1
| | | | Notes: svn path=/head/; revision=150669
* Fix loder(1) to work with libraries. This can be useful toRuslan Ermilov2005-07-151-5/+14
| | | | | | | | sort long DPADD lists automatically. While here, recognize `W' as the global symbol. This has been tested since 2004. Notes: svn path=/head/; revision=148060
* Deal with double whitespace.Ruslan Ermilov2004-07-031-1/+1
| | | | Notes: svn path=/head/; revision=131507
* Give the -o option before any filename operands when invoking the sortTim J. Robbins2003-06-011-2/+2
| | | | | | | | | utility. 1003.1-2001 does not allow sort to accept the -o option after the operands (Base Definitions, 12.2 Utility Syntax Guidelines, Guideline 9). Notes: svn path=/head/; revision=115647
* Make it work with POSIX sort (POS arg)Andrey A. Chernov2002-09-241-2/+2
| | | | | | | All old sorts understand -k too. Notes: svn path=/head/; revision=103902
* Use `The .Nm utility'Philippe Charnier2002-04-201-2/+3
| | | | Notes: svn path=/head/; revision=95124
* beforeinstall -> SCRIPTS.Ruslan Ermilov2001-04-071-4/+1
| | | | Notes: svn path=/head/; revision=75286
* MAN[1-9] -> MAN.Ruslan Ermilov2001-03-271-1/+2
| | | | Notes: svn path=/head/; revision=74848
* Pick up the environment variable ${NM} if it exists and use that to listDoug Rabson2001-03-061-1/+2
| | | | | | | | symbols. This allows lorder to be used more easily in a cross-build environment. Notes: svn path=/head/; revision=73882
* Use different filenames.Tim Vanderhoek2000-05-171-2/+4
| | | | | | | Submitted by: bin/16927, Mike Heffner Notes: svn path=/head/; revision=60671
* $Id$ -> $FreeBSD$Peter Wemm1999-08-281-1/+1
| | | | Notes: svn path=/head/; revision=50477
* Add $Id$, to make it simpler for members of the translation teams toNik Clayton1999-07-121-0/+1
| | | | | | | | | | | | | | | | | | | | track. The $Id$ line is normally at the bottom of the main comment block in the man page, separated from the rest of the manpage by an empty comment, like so; .\" $Id$ .\" If the immediately preceding comment is a @(#) format ID marker than the the $Id$ will line up underneath it with no intervening blank lines. Otherwise, an additional blank line is inserted. Approved by: bde Notes: svn path=/head/; revision=48792
* Removed explict PATH which tended to cause the *wrong* path to be usedJohn Birrell1998-08-151-12/+5
| | | | | | | | | | more often than not. Also included Doug Rabson's changes to make this script better handle the two varieties of nm output we now have. Notes: svn path=/head/; revision=38322
* Typo.Philippe Charnier1997-07-231-6/+6
| | | | Notes: svn path=/head/; revision=27624
* typo.Poul-Henning Kamp1996-06-101-1/+1
| | | | | | | Submitted by: "Philippe Charnier" <charnier@lirmm.fr> Notes: svn path=/head/; revision=16280
* Change `install' to `${INSTALL}' as usual.Bruce Evans1995-07-251-2/+2
| | | | | | | Remove the extra slash in ${DESTDIR}/${BINDIR}. Notes: svn path=/head/; revision=9700
* lorder(1) manual page not properly installed due to makefile usurpingPaul Traina1994-10-271-1/+1
| | | | | | | install rule. Notes: svn path=/head/; revision=3937
* More merry makefile munging for man page compatability.Garrett Wollman1994-08-051-1/+1
| | | | Notes: svn path=/head/; revision=1866
* Cleanup so that make install can run, many install: maninstall changedRodney W. Grimes1994-05-301-2/+1
| | | | | | | to just install:, sperious targets and CLEANFILES removed. Notes: svn path=/head/; revision=1637
* Remove unneeded targets for manual page. Remove unneeded cleanfiles.Rodney W. Grimes1994-05-291-7/+0
| | | | Notes: svn path=/head/; revision=1627
* BSD 4.4 Lite Usr.bin SourcesRodney W. Grimes1994-05-273-0/+179
Notes: svn path=/cvs2svn/branches/CHRISTOS/; revision=1590