summaryrefslogtreecommitdiffstats
path: root/lib/libelf
Commit message (Collapse)AuthorAgeFilesLines
* Bump SHLIB_MAJOR for libelf.kaiw2014-01-211-1/+1
|
* Reapply revisions r237528, r237531 and r238741 which make libelfkaiw2014-01-211-0/+13
| | | | | | | | properly include sys/ headers from the source tree instead of the host. These patches are also applied to libdwarf since libdwarf requires the same sys/ headers as libelf.
* Remove INCSDIR variable which is only used in elftoolchain's own buildkaiw2014-01-211-1/+0
| | | | framework.
* Set CFLAGS in just one line.kaiw2014-01-151-4/+1
|
* Removed source code for the old libelf and build the new libelf fromkaiw2014-01-15109-15254/+23
| | | | contrib/ instead.
* Add support to the ARM platform specific section types.andrew2013-08-311-1/+9
|
* Merge part of r1712 from elftoolchain, making it possible to resize ELFmarkj2013-02-241-127/+181
| | | | | | | | | | sections and indirectly change the layout of an ELF file when ELF_F_LAYOUT is not set. PR: bin/167103 Approved by: rstone (co-mentor) Obtained from: elftoolchain MFC after: 2 weeks
* - Make sure to set an error code when trying to obtain a data descriptor formarkj2013-02-192-3/+24
| | | | | | | | | | a section of type SHT_NULL. - Update the man page to reflect the fact that elf_getdata() and elf_rawdata() may return with an error of ELF_E_SECTION. PR: bin/175491 Approved by: emaste (co-mentor) MFC after: 1 week
* Fix warnings found by -Wmising-variable-declarations.ed2012-10-191-1/+1
| | | | | | | | | | | This self-written compiler warning, which is hopefully going to be committed into LLVM sources soon, warns about potentially missing `static' keywords, similar to -Wmissing-prototypes. - bin/pax: Move external declaration of chdname and s_mask into extern.h. - bin/setfacl: Move setfacl.c-specific stuff out of setfacl.h. - sbin/mount_fusefs: Remove char *progname; use getprogname(). - others: add `static' where possible.
* Don't ever build files depending on the directory where they are placed in.ache2012-07-241-4/+2
| | | | | | | It is obvious that its modification time will change with each such file builded. This bug cause whole libelf to rebuild itself each second make run (and relink that files on each first make run) in the loop.
* Add the sys directory we create to the list of items to clean.andrew2012-06-241-0/+1
|
* Create a symlink to sys/elf32.h, sys/elf64.h, and sys/elf_common.h.andrew2012-06-241-1/+15
| | | | | | | | | | | | | | | | When building libelf in the bootstrap stage this would include the tree versions of, for example, sys/_types.h. This would work as long as the tree's version of this file was close enough to the system's version of the file. If, however, there was a change in the tree such that the location of a typedef was moved this would cause problems. In this case the version of sys/_types.h in the tree no longer defines __wchar_t and expects it to to be defined in machine/_types.h, however we pick up machine/_types.h from the system and find it is not defined there. The solution is to restrict the parts of sys er include from the tree to those that are needed. This fixes the recent Tinderbox failure. Pointy Hat to: andrew
* Remove repeated words.joel2012-06-051-1/+1
|
* mdoc: minor Bl improvements.joel2012-06-022-15/+15
|
* General mdoc(7) and typo fixes.gjb2012-05-114-4/+5
| | | | | | PR: 167734 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org) MFC after: 3 days
* Remove trailing whitespace per mdoc lint warningeadler2012-03-292-2/+2
| | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days
* Handle MIPS .reginfo section as ELF_T_BYTEgonzo2012-03-261-0/+2
|
* mdoc: sort prologue macros.joel2012-03-263-3/+3
|
* Remove superfluous paragraph macro.joel2012-03-256-6/+0
|
* Add handler for MIPS.options sectiongonzo2012-03-231-0/+2
|
* - change "is is" to "is" or "it is"eadler2011-10-161-1/+1
| | | | | | | | - change "the the" to "the" Approved by: lstewart Approved by: sahil (mentor) MFC after: 3 days
* Document the behavior of `elf_getdata()` and `elf_rawdata()` withkaiw2011-05-071-4/+5
| | | | | | zero-sized ELF sections. Obtained from: elftoolchain
* For zero-sized sections, set the `d_buf` field of the `Elf_Data`kaiw2011-05-071-1/+2
| | | | | | descriptor returned by `elf_rawdata()` to NULL. Obtained from: elftoolchain
* Add the ability to search for all the inlined instances of a given function.obrien2011-05-072-1/+3
| | | | | Reviewed by: jb Obtained from: Juniper Networks
* Fix some duplicate-word typos in manpages.uqs2011-03-021-1/+1
| | | | | Submitted by: arundel MFC after: 1 week
* Remove duplicate "in".brucec2011-03-011-1/+1
| | | | | Suggested by: Rob Farmer <rfarmer at predatorlabs.net> MFC after: 3 days
* Revert some of r177626. "in in" is valid in certain sentences.brucec2011-02-281-1/+1
| | | | | PR: 121490 MFC after: 3 days
* Do not allocate buffer to hold data for zero-sized sections.kan2011-01-251-1/+3
|
* mdoc: drop redundant .Pp and .LP callsuqs2010-10-081-1/+0
| | | | They have no effect when coming in pairs, or before .Bl/.Bd
* libelf is overly strict about the type and alignment of Elf_Datakaiw2010-09-091-11/+6
| | | | | | | | | | | | | | objects inside one ELF section, which prevents the creation of a ELF section with mixed data types. For example, gcc LTO use libelf to create a .gnu_lto_XXX section that contains integers and a string table, which doesn't work with our libelf implementation. The changes made in this commit include: * Allow Elf_Data type to be different than section type. * Relax Elf_Data alignment check. * Align each Elf_Data by their own alignment instead of section alignment. MFC after: 1 month
* Don't link drti.o with libelf_pic.a. This means that all software withrpaulo2010-08-211-1/+0
| | | | | | | userland SDT probes must be linked with libelf explicitly. Requested by: kib Sponsored by: The FreeBSD Foundation
* Install a PIC libelf. This will be needed by the DTrace runtimerpaulo2010-08-211-0/+1
| | | | | | instrumentation object (dtri.o). Sponsored by: The FreeBSD Foundation
* Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki whilejoel2010-08-161-2/+2
| | | | | | translating these manual pages. Minor corrections by me. Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp>
* Add translation support for section type SHT_SUNW_dof.kaiw2010-08-111-0/+2
| | | | | Submitted by: rpaulo MFC after: 2 weeks
* Spelling fixes.joel2010-08-031-1/+1
|
* Protect GNUHASH translation functions with #ifdef; unbreak crosskaiw2010-07-281-0/+4
| | | | | | | toolchain build. Reported by: jchandra MFC after: 1 month
* * Remove a superfluous error description.kaiw2010-07-211-7/+5
| | | | | | | * Document an additional error that may be returned: `ELF_E_ARCHIVE`. Obtained from: elftoolchain MFC after: 1 month
* Add a cross-reference to `elf_rawfile(3)`.kaiw2010-07-211-2/+3
| | | | | Obtained from: elftoolchain MFC after: 1 month
* * Note that ar(1) archives may also be opened using `elf_memory(3)`.kaiw2010-07-212-6/+10
| | | | | | | | * Ignore the passed in value of the `fd` argument for ar(1) archives opened with elf_memory(3). Obtained from: elftoolchain MFC after: 1 month
* Remove a redundant word.kaiw2010-07-211-2/+2
| | | | | Obtained from: elftoolchain MFC after: 1 month
* Move helper functions `_libelf_ar_get_{name,number,string}()` andkaiw2010-07-214-212/+258
| | | | | | | | | `_libelf_ar_open()` to a new compilation unit "libelf_ar_util.c" to break the circular dependency between "elf_memory.o" and "libelf_ar.o". Obtained from: elftoolchain MFC after: 1 month
* Fix a memory leak.kaiw2010-07-211-2/+4
| | | | | Obtained from: elftoolchain MFC after: 1 month
* * Deprecate `elf_getshnum()`, `elf_getphnum()` and `elf_getshstrndx()` inkaiw2010-07-2112-26/+336
| | | | | | | | | | | | favour of `elf_getshdrnum()`, `elf_getphdrnum()` and `elf_getshdrstrndx()` respectively. * Add new manual pages for `elf_getshdrstrndx()`, `elf_getphdrnum()` and `elf_getshdrnum()`. * Add a deprecation warning for `elf_getshstrndx()`, `elf_getphnum()` and `elf_getshnum()`. Obtained from: elftoolchain MFC after: 1 month
* Avoid switching between "unsigned char" and "char" in the C codekaiw2010-07-211-22/+22
| | | | | | | generated from "libelf_convert.m4". Obtained from: elftoolchain MFC after: 1 month
* Add support for translating sections of type ELF_T_GNUHASH.kaiw2010-07-212-2/+208
| | | | | Obtained from: elftoolchain MFC after: 1 month
* - Document that the *fsize() functions return a size of 1 for Elfkaiw2010-07-214-12/+10
| | | | | | | | | | types that don't have a fixed size. - The *fsize() functions should return a size of 1, for variable length types. - Redefine symbol ELF_T_LAST to match the current end of the list. Obtained from: elftoolchain MFC after: 1 month
* Perform additional checks when translating between file and memorykaiw2010-07-217-65/+114
| | | | | | | | | | | | | | | | | | | representations of ELF types. The ELF(3) API allows applications to request a conversion that is `in-place', i.e., with source and destinations data buffers being the same. However, the file and memory sizes of ELF sections that have additional internal structure, such as those of type `Elf_Note', or `Elf_GNU_Hash_Header', can be determined only known after the type-specific headers that comprise the first few words in these sections are read and translated. Pass in the size of destination buffer to type translation routines in "libelf_convert.m4" and have these routines return an error code if the translated data would not fit inside the destination buffer. Obtained from: elftoolchain MFC after: 1 month
* Reduce verbosity.kaiw2010-07-211-2/+2
| | | | | Obtained from: elftoolchain MFC after: 1 month
* - Return zero for file sizes of ELF types that have a variable size.kaiw2010-07-211-6/+9
| | | | | | | - Neaten a few comments. Obtained from: elftoolchain MFC after: 1 month
* Note that the *_fsize() functions are only defined for ELF types thatkaiw2010-07-211-0/+7
| | | | | | | have a fixed size. Obtained from: elftoolchain MFC after: 1 month
OpenPOWER on IntegriCloud