summaryrefslogtreecommitdiffstats
path: root/usr.bin/brandelf/brandelf.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix typo in the BSD copyright: s/withough/without/schweikh2002-06-021-1/+1
| | | | | Spotted and suggested by: des MFC after: 3 weeks
* Style improvements recommended by Bruce as a follow up to somedwmalone2001-12-101-1/+0
| | | | | | | | of the recent WARNS commits. The idea is: 1) FreeBSD id tags should follow vendor tags. 2) Vendor tags should not be compiled (though copyrights probably should). 3) There should be no blank line between including cdefs and __FBSDIF.
* Style fixes.markm2001-12-031-9/+8
| | | | | | | Use __FBSDID(). Be consistent WRT ANSI use. OK'ed by: obrien
* Quiet compiler warnings by making `WARNS 2' clean.obrien2001-06-221-5/+6
| | | | | | | | Submitted by: Mike Barcroft <mike@q9media.com> Set maintainer to myself. This needs to stay in sync with what Buntils does, and it would be best to pass functionality changes thru me to make sure future plans are taken into account.
* Fix $FreeBSD$ style.obrien2001-05-021-2/+5
|
* * include/elf.h has been repo copied to include/elf-hints.h, and it noobrien2001-05-021-1/+2
| | | | | | | | 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.
* Fix typo: compatability -> compatibility.asmodai2001-02-061-2/+2
| | | | Compatability is not an existing english word.
* fix fd leak by close(fd) at end of loop.imp2000-07-021-0/+1
|
* The SVR4 module calls itself ELFOSABI_SOLARIS, and who am I to disagreegreen2000-07-011-2/+3
| | | | | | if it runs my Solaris binaries? Add the missing "Solaris" type here so that binaries may be branded with it rather than the seemingly- defunct ELFOSABI_SVR4.
* Change our ELF binary branding to something more acceptable to the Binutilsobrien2000-04-181-33/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | maintainers. After we established our branding method of writing upto 8 characters of the OS name into the ELF header in the padding; the Binutils maintainers and/or SCO (as USL) decided that instead the ELF header should grow two new fields -- EI_OSABI and EI_ABIVERSION. Each of these are an 8-bit unsigned integer. SCO has assigned official values for the EI_OSABI field. In addition to this, the Binutils maintainers and NetBSD decided that a better ELF branding method was to include ABI information in a ".note" ELF section. With this set of changes, we will now create ELF binaries branded using both "official" methods. Due to the complexity of adding a section to a binary, binaries branded with ``brandelf'' will only brand using the EI_OSABI method. Also due to the complexity of pulling a section out of an ELF file vs. poking around in the ELF header, our image activator only looks at the EI_OSABI header field. Note that a new kernel can still properly load old binaries except for Linux static binaries branded in our old method. * * For a short period of time, ``ld'' will also brand ELF binaries * using our old method. This is so people can still use kernel.old * with a new world. This support will be removed before 5.0-RELEASE, * and may not last anywhere upto the actual release. My expiration * time for this is about 6mo. *
* Make brandelf explain itself a little better on error.wes2000-01-041-11/+42
| | | | | | | | Also, at Boris' suggestion, add -l option to list known ELF types. PR: bin/15285 Reviewed by: bp
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Added "SVR4" as an acceptable brandnewton1999-01-301-2/+2
|
* Add a forgotten 'static'.eivind1998-04-211-2/+2
|
* Make brandelf test for known brands, and introduce a '-f' option toeivind1998-04-211-7/+32
| | | | | | bypass the testing. Partially submitted by: Brian Feldman <green@feldman.dyn.ml.org>
* Open the file r/o if looking only. Make the error message more useful.joerg1997-08-231-3/+3
| | | | | PR: bin/3283 Submitted by: Martin Kammerhofer <dada@freepass.tu-graz.ac.at>
* Use err(3). Typo fix in usage string.charnier1997-06-231-15/+13
|
* Fill out the ELF header files to make them more or less complete.jdp1997-05-211-10/+10
| | | | | Fix a macro name that was misspelled both in brandelf.c and imgact_elf.h.
* compare return value from getopt against -1 rather than EOF, per the finalimp1997-03-291-2/+2
| | | | posix standard on the topic.
* Revert $FreeBSD$ to $Id$peter1997-02-221-1/+1
|
* Add a manpage for brandelf(1). Minor stylistic fixes, and a bufferjoerg1997-02-091-6/+15
| | | | | | overrun fix, too. Submitted by: John-Mark Gurney <jmg@nike.efn.org>
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-141-1/+1
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Utility to "brand" ELF binaries.sos1996-10-161-0/+113
Man page to come... For now use: <brandelf -t Linux linuxbin> to brand, and just <brandelf> to verify branding on a ELF file. FreeBSD native is set with <brandelf -t FreeBSD freebsdbin>.
OpenPOWER on IntegriCloud