| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Obtained from: elftoolchain
MFC after: 1 month
|
|
|
|
|
| |
Obtained from: elftoolchain
MFC after: 1 month
|
|
|
|
|
| |
Obtained from: elftoolchain
MFC after: 1 month
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Obtained from: elftoolchain
MFC after: 1 month
|
|
|
|
|
|
|
| |
consistent with the section indices returned to the application by
elf_ndxscn().
Submitted by: kaiw
|
|
|
|
|
|
| |
- Update (c) years.
Submitted by: kaiw [1]
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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]
|
|
Bump __FreeBSD_version.
Reviewed by: jb
|