| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|
|
|
|
|
| |
PR: 167734
Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org)
MFC after: 3 days
|
|
|
|
|
|
|
| |
Disussed with: gavin
No objection from: doc
Approved by: joel
MFC after: 3 days
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
- change "the the" to "the"
Approved by: lstewart
Approved by: sahil (mentor)
MFC after: 3 days
|
|
|
|
|
|
| |
zero-sized ELF sections.
Obtained from: elftoolchain
|
|
|
|
|
|
| |
descriptor returned by `elf_rawdata()` to NULL.
Obtained from: elftoolchain
|
|
|
|
|
| |
Reviewed by: jb
Obtained from: Juniper Networks
|
|
|
|
|
| |
Submitted by: arundel
MFC after: 1 week
|
|
|
|
|
| |
Suggested by: Rob Farmer <rfarmer at predatorlabs.net>
MFC after: 3 days
|
|
|
|
|
| |
PR: 121490
MFC after: 3 days
|
| |
|
|
|
|
| |
They have no effect when coming in pairs, or before .Bl/.Bd
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
userland SDT probes must be linked with libelf explicitly.
Requested by: kib
Sponsored by: The FreeBSD Foundation
|
|
|
|
|
|
| |
instrumentation object (dtri.o).
Sponsored by: The FreeBSD Foundation
|
|
|
|
|
|
| |
translating these manual pages. Minor corrections by me.
Submitted by: Nobuyuki Koganemaru <n-kogane@syd.odn.ne.jp>
|
|
|
|
|
| |
Submitted by: rpaulo
MFC after: 2 weeks
|
| |
|
|
|
|
|
|
|
| |
toolchain build.
Reported by: jchandra
MFC after: 1 month
|
|
|
|
|
|
|
| |
* Document an additional error that may be returned: `ELF_E_ARCHIVE`.
Obtained from: elftoolchain
MFC after: 1 month
|
|
|
|
|
| |
Obtained from: elftoolchain
MFC after: 1 month
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
| |
Obtained from: elftoolchain
MFC after: 1 month
|
|
|
|
|
|
|
|
|
| |
`_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
|
|
|
|
|
| |
Obtained from: elftoolchain
MFC after: 1 month
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
generated from "libelf_convert.m4".
Obtained from: elftoolchain
MFC after: 1 month
|
|
|
|
|
| |
Obtained from: elftoolchain
MFC after: 1 month
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Obtained from: elftoolchain
MFC after: 1 month
|
|
|
|
|
|
|
| |
- Neaten a few comments.
Obtained from: elftoolchain
MFC after: 1 month
|
|
|
|
|
|
|
| |
have a fixed size.
Obtained from: elftoolchain
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
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
the appropriate `dirty' bit needs to be set for both the Elf32 and
Elf64 case.
Obtained from: elftoolchain
MFC after: 1 month
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
| |
Obtained from: elftoolchain
MFC after: 1 month
|