summaryrefslogtreecommitdiffstats
path: root/usr.bin/gcore/elfcore.c
Commit message (Collapse)AuthorAgeFilesLines
* Teach gcore about the pathname field of '/proc/*/map' so that it doesn'trwatson2004-07-121-3/+3
| | | | | | | spin when its parser gets confused by a lack of end-of-line. Submitted by: Dan Nelson <dan@dan.emsphone.com> PR: 68839
* Fix some WARNS:dwmalone2004-02-151-4/+3
| | | | | | 1) Remove some unused variables. 2) Mark some things aas static or __unused. 3) Cast to make sure we're comparing the same types.
* Add #include <sys/queue.h> for sparc64's benefit. The MD includes therepeter2002-09-131-0/+1
| | | | have less polution.
* Use a crowbar to move the a.out code out of gcore.c and into its ownpeter2002-09-131-1/+21
| | | | | | file so that we have a chance of using gcore on non-i386 platforms. Use linker sets to reduce the registration glue. Remove md-sparc.c, we do not have an a.out sparc32 port. aoutcore.c was repocopied from gcore.c.
* Include stdint.h to make this compile.iedowse2002-09-051-0/+1
| | | | Submitted by: Garance A Drosihn <drosih@rpi.edu>
* ANSIify function definitions.dwmalone2002-09-041-9/+10
| | | | | | | | | Add some constness to avoid some warnings. Remove use register keyword. Deal with missing/unneeded extern/prototypes. Some minor type changes/casts to avoid warnings. Reviewed by: md5
* Add FBSDID. Do not \n terminate err() strings. Spelling.charnier2002-03-261-5/+6
|
* Removed unused include of kernel-only file <sys/lock.h>.bde2001-10-131-1/+0
|
* Null terminate buffer.jlemon2001-06-071-1/+2
| | | | | | PR: 23150 Submitted by: Dan Nelson <dnelson@emsphone.com> MFC in: 1 week
* * include/elf.h has been repo copied to include/elf-hints.h, and it noobrien2001-05-021-1/+1
| | | | | | | | 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.
* Change our ELF binary branding to something more acceptable to the Binutilsobrien2000-04-181-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. *
* useracc() the prequel:phk1999-10-291-1/+0
| | | | | | | | | | | Merge the contents (less some trivial bordering the silly comments) of <vm/vm_prot.h> and <vm/vm_inherit.h> into <vm/vm.h>. This puts the #defines for the vm_inherit_t and vm_prot_t types next to their typedefs. This paves the road for the commit to follow shortly: change useracc() to use VM_PROT_{READ|WRITE} rather than B_{READ|WRITE} as argument.
* $Id$ -> $FreeBSD$peter1999-08-281-1/+1
|
* Make gcore work again. It was broken by a format change in thejdp1999-07-171-2/+2
| | | | | | | | | | procfs map file when object IDs were eliminated in the mega-commit that included procfs_map.c revision 1.19. The map file is a terrible hodge-podge. The fields that are used mainly for kernel debugging should be moved out of it into a separate file, so that the interface presented by the map file to applications can remain stable in the face of VM system changes.
* Fix errors detected by -Wformat.jdp1998-11-011-2/+3
|
* Make gcore work for ELF.jdp1998-10-191-0/+513
OpenPOWER on IntegriCloud