|
Revision tags: release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0 |
|
| #
edfc6b83 |
| 22-Apr-2019 |
Enji Cooper <[email protected]> |
MFC r339473,r340075,r342918,r343592,r343593,r343614,r343665,r343669:
MFC a number of changes to elftoolchain/readelf(1). This brings the copy of elftoolchain more in line with the version in ^/head
MFC r339473,r340075,r342918,r343592,r343593,r343614,r343665,r343669:
MFC a number of changes to elftoolchain/readelf(1). This brings the copy of elftoolchain more in line with the version in ^/head and partially fixes the issue with `sys.kern.coredump_phnum_test.coredump_phnum` on ^/stable/12.
Tested with: make tinderbox
r339473 (by emaste):
libelf: also test for 64-bit ELF in _libelf_is_mips64el
Although _libelf_is_mips64el is only called in contexts where we've already checked that e_class is ELFCLASS64 but this may change in the future. Add a safety belt so that we don't access an invalid e_ehdr64 union member if it does.
r340075 (by emaste):
readelf: decode R_MIPS_HIGHER and R_MIPS_HIGHEST relocation types
r342918 (by emaste):
Update to ELF Tool Chain r3668
Highlights: - Make sure that only TLS sections are sorted into TLS segment. - Fixed multiple errors in "Section to Segment mapping". - Man page updates - ar improvements - elfcopy: avoid filter_reloc uninitialized variable for rela - elfcopy: avoid stripping relocations from static binaries - readelf: avoid printing directory in front of absolute path - readelf: add NT_FREEBSD_FEATURE_CTL FreeBSD note type - test improvements
NOTES:
Some of these changes originated in FreeBSD and simply reduce diffs between contrib and vendor.
ELF Tool Chain ar is not (currently) used in FreeBSD, and there are improvements in both FreeBSD and ELF Tool Chain ar that are not in the other.
r343592 (by emaste):
readelf: decode flag bits in DT_FLAGS/DT_FLAGS_1
Decode d_val when the tag is DT_FLAGS or DT_FLAGS_1 based on the information at:
https://docs.oracle.com/cd/E23824_01/html/819-0690/chapter6-42444.html
PR: 232983
r343593 (by emaste):
readelf: fix i386 build
Use %jx and (uintmax_t) cast.
PR: 232983 MFC with: r343592
r343614 (by emaste):
readelf: dump elf note data
Output format is compatible with GNU readelf's handling of unknown note types (modulo a GNU char signedness bug); future changes will add type- specific decoding.
Relnotes: Yes
r343665 (by emaste):
readelf: use table-based DT_FLAGS and DT_FLAGS_1 decoding
Fewer lines of code and more maintainable.
r343669 (by emaste):
readelf: decode FreeBSD note types
Decode NT_FREEBSD_ABI_TAG, NT_FREEBSD_ARCH_TAG, and NT_FREEBSD_FEATURE_CTL.
Relnotes: Yes
show more ...
|
|
Revision tags: release/12.0.0 |
|
| #
9f45c6c1 |
| 05-Sep-2018 |
John Baldwin <[email protected]> |
Add gelf_mips64el.c to the list of files to include in libelf.
Missed in r338478.
Pointy hat to: jhb Approved by: re (rgrimes) MFC after: 1 month
|
|
Revision tags: release/11.2.0, release/10.4.0, release/11.1.0 |
|
| #
b18d12ba |
| 20-Jan-2017 |
Enji Cooper <[email protected]> |
Use SRCTOP-relative paths to other directories instead of .CURDIR-relative ones
This simplifies pathing in make/displayed output
MFC after: 3 weeks Sponsored by: Dell EMC Isilon
|
|
Revision tags: release/11.0.1, release/11.0.0 |
|
| #
2821bdcc |
| 21-Apr-2016 |
Ed Maste <[email protected]> |
elftoolchain: Use ${SRCTOP} for the top of the FreeBSD tree
It's provided by sys.mk so there's no need to derive it from ${.CURDIR}.
Suggested by: ngie Sponsored by: The FreeBSD Foundation Differen
elftoolchain: Use ${SRCTOP} for the top of the FreeBSD tree
It's provided by sys.mk so there's no need to derive it from ${.CURDIR}.
Suggested by: ngie Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D5998
show more ...
|
| #
c0e5e7f3 |
| 18-Apr-2016 |
Ed Maste <[email protected]> |
Replace ${CURDIR}/../.. with ${CURDIR:H:H} in elftoolchain
This produces a nicer path in debug info and build logs.
MFC after: 1 week Sponsored by: The FreeBSD Foundation
|
|
Revision tags: release/10.3.0 |
|
| #
a70cba95 |
| 04-Feb-2016 |
Glen Barber <[email protected]> |
First pass through library packaging.
Sponsored by: The FreeBSD Foundation
|
| #
e5e23ecc |
| 01-Dec-2015 |
Bryan Drewery <[email protected]> |
Correct r291566 for defining SHLIBDIR.
This must happen before including bsd.own.mk which sets the default to /usr/lib.
X-MFC-With: r291566 Reported by: Max N. Boyarov
|
| #
5a536241 |
| 01-Dec-2015 |
Enji Cooper <[email protected]> |
Move libelf.so.2 from /usr/lib to /lib to unbreak libkvm use after r291406
Tested with the following commands as root: - yes | make delete-old - service ldconfig restart - netstat -nr
X-MFC with: r
Move libelf.so.2 from /usr/lib to /lib to unbreak libkvm use after r291406
Tested with the following commands as root: - yes | make delete-old - service ldconfig restart - netstat -nr
X-MFC with: r291406 Reviewed by: jhb, kib Sponsored by: EMC / Isilon Storage Division
show more ...
|
| #
4aa63711 |
| 25-Nov-2015 |
Bryan Drewery <[email protected]> |
META MODE: Fix 'make bootstrap-tools'.
The main problem was bitrot after elftoolchain being swapped in for the GNU toolchain.
This also reworks how the list of 'host allowed' libraries is determine
META MODE: Fix 'make bootstrap-tools'.
The main problem was bitrot after elftoolchain being swapped in for the GNU toolchain.
This also reworks how the list of 'host allowed' libraries is determined to only allow INTERNALLIBs, which is needed for libelftc to come in.
For usr.bin/readelf use the same hack, as libelf and libdward, to bring in the needed sys/ headers for host builds. This has not yet been a problem due to readelf not being built as a host tool in buildworld. This is possible in the meta build though when building the toolchain.
Sponsored by: EMC / Isilon Storage Division
show more ...
|
| #
b791fbe6 |
| 25-Nov-2015 |
Bryan Drewery <[email protected]> |
META MODE: Don't create .meta files when symlinking sources into the obj directory.
Tracking these leads to situations where meta mode will consider the file to be out of date if /bin/sh or /bin/ln
META MODE: Don't create .meta files when symlinking sources into the obj directory.
Tracking these leads to situations where meta mode will consider the file to be out of date if /bin/sh or /bin/ln are newer than the source file. There's no reason for meta mode to do this as make is already handling the rebuild dependency fine.
Sponsored by: EMC / Isilon Storage Division
show more ...
|
|
Revision tags: release/10.2.0, release/10.1.0, release/9.3.0 |
|
| #
88d795a0 |
| 21-Jan-2014 |
Kai Wang <[email protected]> |
Bump SHLIB_MAJOR for libelf.
|
| #
6eabfa96 |
| 21-Jan-2014 |
Kai Wang <[email protected]> |
Reapply revisions r237528, r237531 and r238741 which make libelf properly include sys/ headers from the source tree instead of the host.
These patches are also applied to libdwarf since libdwarf req
Reapply revisions r237528, r237531 and r238741 which make libelf 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.
show more ...
|
| #
a1abeb05 |
| 21-Jan-2014 |
Kai Wang <[email protected]> |
Remove INCSDIR variable which is only used in elftoolchain's own build framework.
|
|
Revision tags: release/10.0.0 |
|
| #
7c4a6907 |
| 15-Jan-2014 |
Kai Wang <[email protected]> |
Set CFLAGS in just one line.
|
| #
edbef29b |
| 15-Jan-2014 |
Kai Wang <[email protected]> |
Removed source code for the old libelf and build the new libelf from contrib/ instead.
|
|
Revision tags: release/9.2.0, release/8.4.0, release/9.1.0 |
|
| #
7066cac0 |
| 24-Jul-2012 |
Andrey A. Chernov <[email protected]> |
Don't ever build files depending on the directory where they are placed in. It is obvious that its modification time will change with each such file builded. This bug cause whole libelf to rebuild it
Don't ever build files depending on the directory where they are placed in. 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.
show more ...
|
| #
6b14dddf |
| 24-Jun-2012 |
Andrew Turner <[email protected]> |
Add the sys directory we create to the list of items to clean.
|
| #
ec280fdb |
| 24-Jun-2012 |
Andrew Turner <[email protected]> |
Create a symlink to sys/elf32.h, sys/elf64.h, and sys/elf_common.h.
When building libelf in the bootstrap stage this would include the tree versions of, for example, sys/_types.h. This would work as
Create a symlink to sys/elf32.h, sys/elf64.h, and sys/elf_common.h.
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
show more ...
|
|
Revision tags: release/8.3.0 |
|
| #
9b2a96cc |
| 07-May-2011 |
David E. O'Brien <[email protected]> |
Add the ability to search for all the inlined instances of a given function.
Reviewed by: jb Obtained from: Juniper Networks
|
|
Revision tags: release/7.4.0, release/8.2.0 |
|
| #
029a7373 |
| 21-Aug-2010 |
Rui Paulo <[email protected]> |
Don't link drti.o with libelf_pic.a. This means that all software with userland SDT probes must be linked with libelf explicitly.
Requested by: kib Sponsored by: The FreeBSD Foundation
|
| #
9329096b |
| 21-Aug-2010 |
Rui Paulo <[email protected]> |
Install a PIC libelf. This will be needed by the DTrace runtime instrumentation object (dtri.o).
Sponsored by: The FreeBSD Foundation
|
| #
d961c5b4 |
| 21-Jul-2010 |
Kai Wang <[email protected]> |
Move helper functions `_libelf_ar_get_{name,number,string}()` and `_libelf_ar_open()` to a new compilation unit "libelf_ar_util.c" to break the circular dependency between "elf_memory.o" and "libelf_
Move helper functions `_libelf_ar_get_{name,number,string}()` and `_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
show more ...
|
| #
86f5401b |
| 21-Jul-2010 |
Kai Wang <[email protected]> |
* Deprecate `elf_getshnum()`, `elf_getphnum()` and `elf_getshstrndx()` in favour of `elf_getshdrnum()`, `elf_getphdrnum()` and `elf_getshdrstrndx()` respectively. * Add new manual pages for `elf_
* Deprecate `elf_getshnum()`, `elf_getphnum()` and `elf_getshstrndx()` in 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
show more ...
|
|
Revision tags: release/8.1.0, release/7.3.0 |
|
| #
daaf5759 |
| 02-Jan-2010 |
Ed Schouten <[email protected]> |
Build lib/ with WARNS=6 by default.
Similar to libexec/, do the same with lib/. Make WARNS=6 the norm and lower it when needed.
I'm setting WARNS?=0 for secure/. It seems secure/ includes the Makef
Build lib/ with WARNS=6 by default.
Similar to libexec/, do the same with lib/. Make WARNS=6 the norm and lower it when needed.
I'm setting WARNS?=0 for secure/. It seems secure/ includes the Makefile.inc provided by lib/. I'm not going to touch that directory. Most of the code there is contributed anyway.
show more ...
|
|
Revision tags: release/8.0.0, release/7.2.0 |
|
| #
449c7072 |
| 12-Mar-2009 |
David E. O'Brien <[email protected]> |
Don't need to set symbol, default value is OK.
|