aboutsummaryrefslogtreecommitdiff
path: root/lib/libelf
Commit message (Collapse)AuthorAgeFilesLines
* MFC: r202159Christian Brueffer2010-01-151-1/+0
| | | | | | | Remove useless .TE groff macro. Notes: svn path=/stable/7/; revision=202417
* MFC: r189721: don't need to set symbol, default value OKDavid E. O'Brien2009-03-231-1/+1
| | | | Notes: svn path=/stable/7/; revision=190343
* MFCJohn Birrell2008-08-278-21/+46
| | | | | | | | | | DTrace support. Note that this defaults the 'make buildkernel' to build with CTF data so that the release kernel and modules are DTrace-able. Notes: svn path=/stable/7/; revision=182231
* MFC r1.3: "Document the return type for gelf_fsize(3)."Joseph Koshy2008-02-101-2/+3
| | | | Notes: svn path=/stable/7/; revision=176147
* MFC [r1.3 libelf_data.c, r1.5 elf.3]:Joseph Koshy2008-02-102-1/+2
| | | | | | | | "Sections of type SHT_GNU_versym use ELF type ELF_T_HALF. Update manual page and code to match." Notes: svn path=/stable/7/; revision=176146
* Do not generate unneeded initializers.Joseph Koshy2007-09-091-5/+4
| | | | | | | Approved by: re (bmah) Notes: svn path=/head/; revision=172099
* Fix a bug that prevented applications from laying out ELF objectsJoseph Koshy2007-09-082-19/+51
| | | | | | | | | | | | | | | | with section header tables residing in between other sections. Introduce additional checks for overlaps between section data and the section header table when the application is performing section layout. Document additional error returns. Reported by: Kai Wang <kaiw27 at gmail dot com> Approved by: re (rwatson) Notes: svn path=/head/; revision=172088
* Cross-reference the correct manual page.Joseph Koshy2007-07-282-2/+2
| | | | | | | Approved by: re (bmah) Notes: svn path=/head/; revision=171641
* Use C comments since we now preprocess these files with CPP.Daniel Eischen2007-04-291-7/+7
| | | | Notes: svn path=/head/; revision=169092
* Describe the contents of the "ar_name" and "ar_rawname" fields ofJoseph Koshy2007-03-271-6/+6
| | | | | | | Elf_Arhdr structures better. Notes: svn path=/head/; revision=167932
* Bug fixes to ar(1) archive handling:Joseph Koshy2007-03-271-12/+30
| | | | | | | | | | | | - Correctly retrieve the initial (special) members of an archive after an archive descriptor is rewound using elf_rand(SARMAG). - Do not strip trailing white space from the 'raw' names retrieved using elf_getarhdr(). Reported by: "Hyo geol, Lee" <hyogeollee at gmail dot com> Notes: svn path=/head/; revision=167930
* Document the return type of elf_rand(3) correctly.Joseph Koshy2007-03-261-1/+1
| | | | Notes: svn path=/head/; revision=167901
* Correct a typo.Joseph Koshy2007-03-191-3/+3
| | | | | | | Submitted by: Kai Wang <kaiw27 at gmail dot com> Notes: svn path=/head/; revision=167687
* Add GELF_* accessor macros.Joseph Koshy2007-03-081-0/+16
| | | | | | | Prodded by: Sam Arun Raj <samarunraj at gmail dot com> Notes: svn path=/head/; revision=167315
* Fix a typo.Joseph Koshy2007-03-031-2/+2
| | | | | | | Submitted by: Kai Wang <kaiw27 at gmail dot com> Notes: svn path=/head/; revision=167183
* Fix a bug with the release of section's raw data. Both release loopsJean-Sébastien Pédron2007-02-211-1/+1
| | | | | | | | | were using translated data linked list, leading to a memory leak. Jkoshy's testsuite was used to check for non-regression. Notes: svn path=/head/; revision=166863
* Document the additional error returns possible when handling ELF objectsJoseph Koshy2006-12-255-5/+25
| | | | | | | that require extended numbering. Notes: svn path=/head/; revision=165536
* Keep shadow copies of the `e_shnum', `e_phnum' and `e_shstrndx'Joseph Koshy2006-12-2513-219/+432
| | | | | | | | | | | | | | | | | | members of the ELF Executable Header inside the library-private `struct _Elf' descriptor and only update the underlying Elf{32,64}_Ehdr structure on an elf_update(3) call. These fields of the Ehdr structure are technically `out of bounds' for an application program per the ELF(3) API, but we've seen applications that initialize a new Ehdr structure using memcpy(), messing up the library's invariants. [1] Implement elf_getphnum() and handle ELF objects with more than 64K program header table entries. Reported by: jb [1] Notes: svn path=/head/; revision=165535
* Use strncpy() instead of strlcpy() when copying members ofJoseph Koshy2006-12-251-8/+11
| | | | | | | | a `struct ar_hdr'. These members do not use NUL-termination while strlcpy() expects its source buffer to be NUL-terminated. Notes: svn path=/head/; revision=165534
* Correct a logic error.Joseph Koshy2006-12-241-8/+15
| | | | Notes: svn path=/head/; revision=165523
* Use <osreldate.h> rather than the OS version reported by the kernelJoseph Koshy2006-12-189-67/+74
| | | | | | | | | | | | | | | to determine which Elf Types are to be handled. Change the M4 templates to wrap an `#if __FreeBSD_version >= NNN'/`#endif' pair around the generated code for each ELF data type, where `NNN' is the OS version where the ELF type was added to the source tree. This change allows cross-builds of old sources on newer FreeBSD systems to work correctly. Problem reported by: ru Notes: svn path=/head/; revision=165317
* Use the correct value of __FreeBSD_version.Joseph Koshy2006-12-182-10/+9
| | | | Notes: svn path=/head/; revision=165316
* Fix a typo.Joseph Koshy2006-12-161-1/+1
| | | | Notes: svn path=/head/; revision=165283
* Name the functions documented by this manual page correctly.Joseph Koshy2006-12-131-2/+2
| | | | Notes: svn path=/head/; revision=165178
* Document the ELF types supported by libelf.Joseph Koshy2006-12-111-1/+93
| | | | | | | | Document the relationship between section types (SHT_*) and the types known to the libelf. Notes: svn path=/head/; revision=165093
* Make the generated message from `elf_errmsg(-1)' a little more readable.Joseph Koshy2006-12-091-1/+1
| | | | Notes: svn path=/head/; revision=165032
* - style: use `=' instead of `+=' for initial assignments.Ruslan Ermilov2006-11-241-4/+2
| | | | | | | | - don't add generated sources' objects to OBJS explicitly; GENSRCS is part of SRCS so they were already in OBJS. Notes: svn path=/head/; revision=164577
* Fix minor formatting issues:Ruslan Ermilov2006-11-1342-78/+79
| | | | | | | | | | - make document title match filename; - remove hard sentence breaks, whitespace at EOL, and double whitespace; - sort SEE ALSO xrefs, adding missing section numbers; - fix a misspelled macro name. Notes: svn path=/head/; revision=164253
* - Replace the use of DPSRCS with something more appropriate. DPSRCSJoseph Koshy2006-11-121-5/+6
| | | | | | | | | | | is for when you need something in ".depend", but not compiled in. - Style fixes: Spell ${.OBJDIR} as ".". - Neaten a comment. Submitted by: ru Notes: svn path=/head/; revision=164225
* MFP4: Add an implementation of the ELF(3) and GELF(3) API set.Joseph Koshy2006-11-11101-0/+14194
Bump __FreeBSD_version. Reviewed by: jb Notes: svn path=/head/; revision=164190