aboutsummaryrefslogtreecommitdiff
path: root/lib/libelf
Commit message (Collapse)AuthorAgeFilesLines
* Remove useless .TE groff macro.Christian Brueffer2010-01-121-1/+0
| | | | | | | | Submitted by: Joerg Sonnenberger MFC after: 3 days Notes: svn path=/head/; revision=202159
* Build lib/ with WARNS=6 by default.Ed Schouten2010-01-021-2/+0
| | | | | | | | | | | | Similar to libexec/, do the same with lib/. Make WARNS=6 the norm and lower it when needed. I'm setting WARNS?=0 for secure/. It seems secure/ includes the Makefile.inc provided by lib/. I'm not going to touch that directory. Most of the code there is contributed anyway. Notes: svn path=/head/; revision=201381
* Don't need to set symbol, default value is OK.David E. O'Brien2009-03-121-1/+1
| | | | Notes: svn path=/head/; revision=189721
* Add a README.Joseph Koshy2009-01-051-0/+12
| | | | Notes: svn path=/head/; revision=186758
* Relax the strict type check because gcc as distributed doesn't createJohn Birrell2008-05-231-1/+1
| | | | | | | | debug strtabs with type SHT_STRTAB. Although we could change FreeBSD's gcc, we really need to play nicely with gcc as distributed by the FSF. Notes: svn path=/head/; revision=179241
* Change the alignment of the NOTE to match what gcc does.John Birrell2008-05-231-1/+1
| | | | Notes: svn path=/head/; revision=179240
* Add the case for SHT_AMD64_UNWIND.John Birrell2008-05-231-0/+2
| | | | Notes: svn path=/head/; revision=179239
* Fix some "in in" typos in comments.Christian Brueffer2008-03-261-1/+1
| | | | | | | | | | PR: 121490 Submitted by: Anatoly Borodin <anatoly.borodin@gmail.com> Approved by: rwatson (mentor), jkoshy MFC after: 3 days Notes: svn path=/head/; revision=177626
* Ensure that the section header table is written out in an orderJoseph Koshy2008-03-191-3/+2
| | | | | | | | | | consistent with the section indices returned to the application by elf_ndxscn(). Submitted by: kaiw Notes: svn path=/head/; revision=177367
* Clarify that the ELF library only sets the sh_entsize field of aJoseph Koshy2008-03-191-4/+4
| | | | | | | | | | | | section header entry if the application is not taking charge of ELF object layout. Update (c) years, and bump the manual page's date. Submitted by: kaiw Notes: svn path=/head/; revision=177366
* - Fix an off-by-one bug in _libelf_insert_section(). [1]Joseph Koshy2008-03-031-5/+11
| | | | | | | | | - Update (c) years. Submitted by: kaiw [1] Notes: svn path=/head/; revision=176758
* Translate the r_info field of ELF relocation records when convertingJoseph Koshy2008-03-022-4/+23
| | | | | | | | | between 64 and 32 bit variants. Submitted by: kaiw Notes: svn path=/head/; revision=176727
* Document the return type for gelf_fsize(3).Joseph Koshy2008-02-041-1/+2
| | | | | | | Submitted by: kaiw Notes: svn path=/head/; revision=175973
* - Allow source descriptors with no data to be used as arguments to theJoseph Koshy2007-11-262-12/+5
| | | | | | | | | | | | elf{32,64}_xlateto[fm]() translation functions. This change makes our libelf compatible with other ELF(3) implementations. [1] - Update manual page to reflect this change. - Style fixes: wrap a long line. Submitted by: jb [1] Notes: svn path=/head/; revision=173924
* Sections of type SHT_GNU_versym use ELF type ELF_T_HALF. Update manualJoseph Koshy2007-11-232-1/+2
| | | | | | | | | | page and code to match. Submitted by: jb MFC After: 1 day Notes: svn path=/head/; revision=173869
* Consistently use the word 'flag' to refer to ELF_F_* constants.Joseph Koshy2007-10-225-19/+19
| | | | | | | MFC after: 1 day Notes: svn path=/head/; revision=172861
* Remove references to the 'e_phnum' field of the ELF header. Instead,Joseph Koshy2007-10-212-14/+9
| | | | | | | | | point the reader to the elf_getphnum() function. MFC after: 1 day Notes: svn path=/head/; revision=172848
* Refer the reader to the elf_update(3) manual page for more informationJoseph Koshy2007-10-211-2/+5
| | | | | | | | | on application control of ELF object layout. MFC after: 1 day Notes: svn path=/head/; revision=172846
* 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-13/+31
| | | | | | | | | | | | - 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