summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* Build clang libraries by default with -fno-exceptions and withrpaulo2010-07-224-0/+14
| | | | | | | | | -fno-rtti. The clang libaries that really use exceptions and virtual functions can enable LLVM_REQUIRES_EH and LLVM_REQUIRES_RTTI respectively. This saves space on the resulting binaries and follows what's being done upstream. Submitted by: Dimitry Andric <dimitry at andric.com>
* Verify return value of the sigset manipulation functionskib2010-07-221-22/+14
| | | | | | | | to catch invalid signal numbers [1]. Use consistent style of not assigning the return value to a local variable. Reported by: Garrett Cooper <yanegomi gmail com> [1] MFC after: 1 week
* * 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
* Changes for supporting GNU Hash sections.kaiw2010-07-213-2/+14
| | | | | Obtained from: elftoolchain MFC after: 1 month
* Add a new ELF type denoting GNU style hash tables.kaiw2010-07-211-0/+1
| | | | | Obtained from: elftoolchain MFC after: 1 month
* Allow an application that updates only the ELF Ehdr to work.kaiw2010-07-213-7/+8
| | | | | Obtained from: elftoolchain MFC after: 1 month
* Use <unistd.h> to declare the prototype for ftruncate().kaiw2010-07-211-0/+1
| | | | | Obtained from: elftoolchain MFC after: 1 month
* Bug fix: permit the creation of zero-sized sections.kaiw2010-07-211-5/+7
| | | | | Obtained from: elftoolchain MFC after: 1 month
* Improve compatibility with other implementations of the ELF(3) API:kaiw2010-07-211-2/+2
| | | | | | | | when an output file has no program headers, set the 'e_phentsize' field of the ELF executable header to zero. Obtained from: elftoolchain MFC after: 1 month
* Bug fix: when updating headers using the gelf_update_*() functions,kaiw2010-07-213-6/+6
| | | | | | | | the appropriate `dirty' bit needs to be set for both the Elf32 and Elf64 case. Obtained from: elftoolchain MFC after: 1 month
* - Correctly handle sections of type SHT_NOBITS. For these sections:kaiw2010-07-212-19/+52
| | | | | | | | | | | | - elf_getdata() and elf_rawdata() should return an "Elf_Data" structure that has its "d_buf" member set to NULL and "d_size" member set to the nominal 'size' of the section. [1] - Update the manual page for these functions. - Fix a memory leak in an error handling path inside elf_getdata(). - Use _libelf_allocate_data() in elf_newdata() for consistency. Obtained from: elftoolchain MFC after: 1 month
* Also link getutxent.3 to utmpx.3.ed2010-07-211-1/+1
| | | | If you run `man utmpx', you expect to get some info on it.
* Remove a superfluous comment.kaiw2010-07-211-1/+0
| | | | | Obtained from: elftoolchain MFC after: 1 month
*-. Upgrade our Clang in base to r108428.ed2010-07-2055-408/+973
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | This commit merges the latest LLVM sources from the vendor space. It also updates the build glue to match the new sources. Clang's version number is changed to match LLVM's, which means /usr/include/clang/2.0 has been renamed to /usr/include/clang/2.8. Obtained from: projects/clangbsd
| | * Update clang to r108428.rdivacky2010-07-1550-390/+1298
| | |
| | * Update clang to r108243.rdivacky2010-07-13249-12097/+30710
| | |
| | * Update clang to r104832.rdivacky2010-05-27170-5423/+11411
| | |
| | * Update clang to r103052.rdivacky2010-05-0415-55/+179
| | |
| | * Update clang to r103004.rdivacky2010-05-04186-9130/+18136
| | |
| | * Update clang to r100520.rdivacky2010-04-0632-251/+442
| | |
| | * Update clang to r100285.rdivacky2010-04-0315-212/+289
| | |
| | * Update clang to r100181.rdivacky2010-04-02163-5603/+7485
| | |
| | * Update clang to r99115.rdivacky2010-03-2186-1471/+2755
| | |
| | * Update clang to r98631.rdivacky2010-03-1695-2740/+4099
| | |
| | * Update clang to r98164.rdivacky2010-03-1065-1026/+1704
| | |
| | * Update clang to r97873.rdivacky2010-03-0641-120/+861
| | |
| | * Update clang to 97654.rdivacky2010-03-03126-3006/+8580
| | |
| | * Update clang to r96341.rdivacky2010-02-16226-7512/+16999
| | |
| | * Update clang to r94309.rdivacky2010-01-23106-3808/+3755
| | |
| | * Update clang to r93512.rdivacky2010-01-15134-4175/+9544
| | |
| | * Updaet clang to 92395.rdivacky2010-01-01128-5149/+7725
| | |
| | * Update clang to 91430.rdivacky2009-12-15164-5509/+12940
| | |
| | * Update clang to r90226.rdivacky2009-12-01194-6394/+10578
| | |
| | * Update clang to r89337.rdivacky2009-11-1940-777/+1777
| | |
| | * Update clang to r89205.rdivacky2009-11-18173-5596/+13844
| | |
| | * Update clang to r86140.rdivacky2009-11-0538-708/+838
| | |
| | * Update clang to r86025.rdivacky2009-11-04117-4005/+7108
| | |
OpenPOWER on IntegriCloud