summaryrefslogtreecommitdiffstats
path: root/usr.sbin/crunch/crunchide
Commit message (Collapse)AuthorAgeFilesLines
* crunchide(1): Put e_shnum into a local variable.pfg2013-02-031-10/+13
| | | | | | | This simplifies the code a bit. Submitted by: Cristoph Mallon MFC after: 2 weeks
* crunchide(1): support non-custom elf object layoutpfg2013-02-031-60/+157
| | | | | | | | | | | | | | | The crunchide utility presumes the last 3 chunks of an ELF object layout are section headers, symbol table, and then string table. However, this is not specified in the ELF standards, and linkers may generate different layouts when doing partial linking (-r). This change is required to build FreeBSD with mclinker or the gold linker. PR: bin/174011 Submitted by: Pete Chou Reviewed by: Cristoph Mallon MFC after: 2 weeks
* crunch: Sync some NetBSD changespfg2013-02-031-0/+2
| | | | | | | Fix a couple of free's in previous commit. Obtained from: NetBSD MFC after: 1 week
* crunch: Sync some NetBSD changes.pfg2013-02-021-8/+8
| | | | | | | | | | | | | | | | | crunchide: Apr 11, 2009: fix some -Wsign-compare issues. Sep 20, 1999: Free the right thing. crunchgen: Apr 14, 2009: Fix some WARNS=4 issues (-Wshadow -Wcast-qual) Oct 30, 2004: Add (unsigned char) cast to ctype functions Feb 5, 2001: fix nested extern. examples: Aug 30, 2007: NetBSD 36867 - trsp references are deprecated Obtained from: NetBSD MFC after: 1 week
* Some amount of style(9)obrien2012-06-271-12/+17
| | | | -- function definitions, header ordering, and $FreeBSD$.
* Remove variables which are initialized but never used thereafter reported by ↵eadler2012-06-191-2/+1
| | | | | | | gcc46 warning Approved by: cperciva MFC After: 3 days
* Fix crunchide on MIPS with other than the O32 ABI.jmallett2012-03-131-1/+2
|
* It turns out that TARGET_CPUARCH doesn't buy us much here, if anything, butimp2010-09-131-11/+2
| | | | | | | | | costs us another copy of the transform. Revert it. # Maybe makefile.inc1 should set TARGET_CPUARCH for the cross-tools, but # it doesn't now. That would solve problems in other places too. Submitted by: jmallet@
* Use TARGET_CPUARCH instead of TARGET_ARCH here. Define TARGET_CPUARCHimp2010-09-131-2/+11
| | | | | based on TARGET_ARCH. Use TARGET_ARCH still for a powerpc64 test. Futureproof for coming mipsel/mipseb and arm/armeb rename.
* Fix crunchide to work on sparc64 and perhaps other 64 bit platforms.adrian2010-08-121-1/+6
| | | | | | | | | I used the wrong type when setting st_name in the symbol table entry struct. It's an Elf64_Word which is defined as an unsigned 32 bit int on both 32 and 64 bit platforms. To make things sensible, define some new macros to use as "word" macros and use those, rather than simply using the explicit 32 bit macros.
* Port over changes to the crunch symbol hiding method from NetBSD.adrian2010-08-101-134/+88
| | | | | | | | | | | | The older symbol hiding method breaks for MIPS. This implements symbol hiding through renaming to a symbol name which is highly unlikely to clash. The NetBSD code didn't use byte-swapping macros for endian-awareness; so it didn't work when cross-compiling a MIPS world on i386/amd64. This patch includes those (as best as I could figure what they should be) and has been tested to generate valid MIPS crunch binaries both cross- and native- compiled.
* Teach crunchide(1) about PPC ELF64.nwhitehorn2010-07-102-1/+5
|
* Introduce crunchide to the ELF e_machine MIPS values.obrien2008-09-031-0/+8
|
* Cleanup of userland __P usekevlo2007-11-071-1/+1
|
* Use sizeof() for calculating the buffer size instead of hard-coded values.kevlo2007-03-061-1/+1
|
* Remove alpha left-overs.ru2006-08-221-1/+1
|
* Make our ELF64 type definitions match standards. In particular thismarcel2005-12-181-4/+4
| | | | | | | | | | | | | means: o Remove Elf64_Quarter, o Redefine Elf64_Half to be 16-bit, o Redefine Elf64_Word to be 32-bit, o Add Elf64_Xword and Elf64_Sxword for 64-bit entities, o Use Elf_Size in MI code to abstract the difference between Elf32_Word and Elf64_Word. o Add Elf_Ssize as the signed counterpart of Elf_Size. MFC after: 2 weeks
* Mechanically kill hard sentence breaks.ru2004-07-021-4/+10
|
* Adjust the system endian and a.out headers to be more MI and cross-buildingobrien2004-06-221-0/+1
| | | | | | friendly. Use the systems headers rather than local versions. Reviewed by: ru
* Tell crunchide to deal with arm elf binaries as well.cognet2004-06-061-0/+4
| | | | Rescue can now be built for arm.
* Include <netinet/in.h> for ntoh*() and hton*() prototypes.stefanf2004-05-241-0/+1
| | | | Approved by: das (mentor)
* Fix a bug that caused i386 to produce broken binaries for big-endianru2003-08-081-16/+16
| | | | | 64-bit platforms. (size_t is 32bit on i386, but Elf_Shdr.sh_size is 64bit on SPARC64.)
* Teach crunchide(1) about PowerPC ELF.obrien2003-07-221-0/+4
| | | | | PR: 54526 Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
* Add AMD64 support.peter2003-06-032-1/+5
|
* Back out the totally unapproved backout of my commits.obrien2003-03-292-58/+1
|
* Complete the endianness support -- sparc64 can now do i386.ru2003-03-131-16/+10
| | | | | Tested on: sparc64 -> i386, i386 -> sparc64 Debugged by: elfdump(1)
* Part 1/3 of unbreaking cross releases:ru2003-01-292-1/+58
| | | | | | | | | Back out the removal of custom version of endian.h system header. On recent systems, it just falls back to <sys/endian.h>. But on older systems like 5.0-DP1 or 4-STABLE, this private version may be necessary, as crunchide(1) is a cross-tool for "make release". Spotted by: kris, markm
* Use <sys/endian.h> rather than a private verison.obrien2002-12-302-60/+2
| | | | Tested on: sparc64, Athlon[32]
* Bootstrapping aid for 4.0-RELEASE.ru2002-11-131-0/+6
|
* Put author name under .An/Aq.charnier2002-10-161-1/+2
|
* Get all the fruit from makefile.ru2002-05-253-30/+13
|
* Removed dead code.ru2002-05-241-8/+0
|
* Handle endianness. This completes cross-support for sparc64.ru2002-05-242-40/+112
|
* Added support for ia64 and sparc64.ru2002-05-212-0/+10
|
* Make crunchide(1) a cross-tool; needed for cross-arch "make release".ru2002-04-305-7/+17
| | | | Note that a.out is only supported for the non-cross i386 case.
* Usage style sweep: spell "usage" with a small 'u'.des2002-04-221-1/+1
| | | | | Also change one case of blatant __progname abuse (several more remain) This commit does not touch anything in src/{contrib,crypto,gnu}/.
* Use `The .Nm utility'charnier2002-04-201-6/+9
|
* ia64 support. Hide a.out support solely under i386. While alpha neverpeter2001-10-232-1/+8
| | | | | was released in a.out form, it does define the a.out data structures. The ia64 port does not.
* Perform a major cleanup of the usr.sbin Makefiles.obrien2001-07-201-1/+1
| | | | | These are not perfectly in agreement with each other style-wise, but they are orders of orders of magnitude more consistent style-wise than before.
* Remove whitespace at EOL.dd2001-07-151-6/+6
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-101-1/+1
|
* * include/elf.h has been repo copied to include/elf-hints.h, and it noobrien2001-05-021-3/+5
| | | | | | | | longer includes machine/elf.h. * consumers of elf.h now use the minimalist elf header possible. This change is motivated by Binutils 2.11.0 and too much clashing over our base elf headers and the Binutils elf headers.
* mdoc(7) police: use the new features of the Nm macro.ru2000-11-201-1/+1
|
* Avoid use of direct troff requests in mdoc(7) manual pages.ru2000-11-101-3/+2
|
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Add $Id$, to make it simpler for members of the translation teams tonik1999-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
* Temporary use different stubs for the ECOFF case; I'm trying to get thisjkh1998-10-021-1/+1
| | | | to build on the alpha, first off.
* Update the man page to match the rest of crunchide.jhay1998-09-161-4/+18
|
* Teach crunch about an elf/a.out world.jkh1998-09-146-140/+795
| | | | Submitted by: jhay
* .Sh AUTHOR -> .Sh AUTHORS. Use .An/.Aq.charnier1998-03-231-3/+3
|
OpenPOWER on IntegriCloud