summaryrefslogtreecommitdiffstats
path: root/lib/libelf
Commit message (Collapse)AuthorAgeFilesLines
* Relax the strict type check because gcc as distributed doesn't createjb2008-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.
* Change the alignment of the NOTE to match what gcc does.jb2008-05-231-1/+1
|
* Add the case for SHT_AMD64_UNWIND.jb2008-05-231-0/+2
|
* Fix some "in in" typos in comments.brueffer2008-03-261-1/+1
| | | | | | | PR: 121490 Submitted by: Anatoly Borodin <anatoly.borodin@gmail.com> Approved by: rwatson (mentor), jkoshy MFC after: 3 days
* Ensure that the section header table is written out in an orderjkoshy2008-03-191-3/+2
| | | | | | | consistent with the section indices returned to the application by elf_ndxscn(). Submitted by: kaiw
* Clarify that the ELF library only sets the sh_entsize field of ajkoshy2008-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
* - Fix an off-by-one bug in _libelf_insert_section(). [1]jkoshy2008-03-031-5/+11
| | | | | | - Update (c) years. Submitted by: kaiw [1]
* Translate the r_info field of ELF relocation records when convertingjkoshy2008-03-022-4/+23
| | | | | | between 64 and 32 bit variants. Submitted by: kaiw
* Document the return type for gelf_fsize(3).jkoshy2008-02-041-1/+2
| | | | Submitted by: kaiw
* - Allow source descriptors with no data to be used as arguments to thejkoshy2007-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]
* Sections of type SHT_GNU_versym use ELF type ELF_T_HALF. Update manualjkoshy2007-11-232-1/+2
| | | | | | | page and code to match. Submitted by: jb MFC After: 1 day
* Consistently use the word 'flag' to refer to ELF_F_* constants.jkoshy2007-10-225-19/+19
| | | | MFC after: 1 day
* Remove references to the 'e_phnum' field of the ELF header. Instead,jkoshy2007-10-212-14/+9
| | | | | | point the reader to the elf_getphnum() function. MFC after: 1 day
* Refer the reader to the elf_update(3) manual page for more informationjkoshy2007-10-211-2/+5
| | | | | | on application control of ELF object layout. MFC after: 1 day
* Do not generate unneeded initializers.jkoshy2007-09-091-5/+4
| | | | Approved by: re (bmah)
* Fix a bug that prevented applications from laying out ELF objectsjkoshy2007-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)
* Cross-reference the correct manual page.jkoshy2007-07-282-2/+2
| | | | Approved by: re (bmah)
* Use C comments since we now preprocess these files with CPP.deischen2007-04-291-7/+7
|
* Describe the contents of the "ar_name" and "ar_rawname" fields ofjkoshy2007-03-271-6/+6
| | | | Elf_Arhdr structures better.
* Bug fixes to ar(1) archive handling:jkoshy2007-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>
* Document the return type of elf_rand(3) correctly.jkoshy2007-03-261-1/+1
|
* Correct a typo.jkoshy2007-03-191-3/+3
| | | | Submitted by: Kai Wang <kaiw27 at gmail dot com>
* Add GELF_* accessor macros.jkoshy2007-03-081-0/+16
| | | | Prodded by: Sam Arun Raj <samarunraj at gmail dot com>
* Fix a typo.jkoshy2007-03-031-2/+2
| | | | Submitted by: Kai Wang <kaiw27 at gmail dot com>
* Fix a bug with the release of section's raw data. Both release loopsdumbbell2007-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.
* Document the additional error returns possible when handling ELF objectsjkoshy2006-12-255-5/+25
| | | | that require extended numbering.
* Keep shadow copies of the `e_shnum', `e_phnum' and `e_shstrndx'jkoshy2006-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]
* Use strncpy() instead of strlcpy() when copying members ofjkoshy2006-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.
* Correct a logic error.jkoshy2006-12-241-8/+15
|
* Use <osreldate.h> rather than the OS version reported by the kerneljkoshy2006-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
* Use the correct value of __FreeBSD_version.jkoshy2006-12-182-10/+9
|
* Fix a typo.jkoshy2006-12-161-1/+1
|
* Name the functions documented by this manual page correctly.jkoshy2006-12-131-2/+2
|
* Document the ELF types supported by libelf.jkoshy2006-12-111-1/+93
| | | | | Document the relationship between section types (SHT_*) and the types known to the libelf.
* Make the generated message from `elf_errmsg(-1)' a little more readable.jkoshy2006-12-091-1/+1
|
* - style: use `=' instead of `+=' for initial assignments.ru2006-11-241-4/+2
| | | | | - don't add generated sources' objects to OBJS explicitly; GENSRCS is part of SRCS so they were already in OBJS.
* Fix minor formatting issues:ru2006-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.
* - Replace the use of DPSRCS with something more appropriate. DPSRCSjkoshy2006-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
* MFP4: Add an implementation of the ELF(3) and GELF(3) API set.jkoshy2006-11-11101-0/+14194
Bump __FreeBSD_version. Reviewed by: jb
OpenPOWER on IntegriCloud