summaryrefslogtreecommitdiff
path: root/lib/libelf
AgeCommit message (Collapse)Author
2024-07-15Remove residual blank line at start of MakefileWarner Losh
This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
2023-08-16Remove $FreeBSD$: one-line sh patternWarner Losh
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
2021-11-29libelf: Link gelf_getchdr.3 to the buildMark Johnston
MFC after: 1 week Sponsored by: The FreeBSD Foundation
2020-10-23libelf: add compression header supportEd Maste
GNU and Oracle libelf implementations added support for section compression, intended to reduce the size of DWARF debug info (which might be an order of magnitude larger than the code). There are two compressed ELF section formats: 1. Old GNU - sections are renmaed to start with 'z'. Section contains a magic number, uncompressed size, and compressed data. 2. Oracle and New GNU - compressed sections use the SHF_COMPRESSED flag. The compression header contains the compression type, uncompressed size, and uncompressed alignment. The second style is preferred and this change implements only that one. Submitted by: Tiger Gao <tig@FreeBSDFoundation.org> Reviewed by: markj MFC after: 2 weeks Relnotes: Yes Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D24566 Notes: svn path=/head/; revision=366977
2019-12-11Update Makefile.depend filesSimon J. Gerraty
Update a bunch of Makefile.depend files as a result of adding Makefile.depend.options files Reviewed by: bdrewery MFC after: 1 week Sponsored by: Juniper Networks Differential Revision: https://reviews.freebsd.org/D22494 Notes: svn path=/head/; revision=355617
2019-09-05pkgbase: Put a lot of binaries and lib in FreeBSD-runtimeEmmanuel Vadot
All of them are needed to be able to boot to single user and be able to repair a existing FreeBSD installation so put them directly into FreeBSD-runtime. Reviewed by: bapt, gjb Differential Revision: https://reviews.freebsd.org/D21503 Notes: svn path=/head/; revision=351855
2019-07-01Allow bootstrapping elftoolchain on MacOS and LinuxAlex Richardson
This is required in order to build on non-FreeBSD systems without setting all the XAR/XSTRINGS/etc. variables Reviewed By: emaste Differential Revision: https://reviews.freebsd.org/D16771 Notes: svn path=/head/; revision=349577
2019-01-10Update to ELF Tool Chain r3668Ed Maste
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. Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=342918
2018-09-05Add gelf_mips64el.c to the list of files to include in libelf.John Baldwin
Missed in r338478. Pointy hat to: jhb Approved by: re (rgrimes) MFC after: 1 month Notes: svn path=/head/; revision=338485
2017-10-31DIRDEPS_BUILD: Update dependencies.Bryan Drewery
Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
2017-01-20Use SRCTOP-relative paths to other directories instead of .CURDIR-relative onesEnji Cooper
This simplifies pathing in make/displayed output MFC after: 3 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=312510
2016-04-21elftoolchain: Use ${SRCTOP} for the top of the FreeBSD treeEd Maste
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 Notes: svn path=/head/; revision=298401
2016-04-18Replace ${CURDIR}/../.. with ${CURDIR:H:H} in elftoolchainEd Maste
This produces a nicer path in debug info and build logs. MFC after: 1 week Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=298204
2016-03-02MFHGlen Barber
Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=296318
2016-02-24DIRDEPS_BUILD: Regenerate without local dependencies.Bryan Drewery
These are no longer needed after the recent 'beforebuild: depend' changes and hooking DIRDEPS_BUILD into a subset of FAST_DEPEND which supports skipping 'make depend'. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=295989
2016-02-04First pass through library packaging.Glen Barber
Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295278
2015-12-01Correct r291566 for defining SHLIBDIR.Bryan Drewery
This must happen before including bsd.own.mk which sets the default to /usr/lib. X-MFC-With: r291566 Reported by: Max N. Boyarov Notes: svn path=/head/; revision=291593
2015-12-01Move libelf.so.2 from /usr/lib to /lib to unbreak libkvm use after r291406Enji Cooper
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 Notes: svn path=/head/; revision=291566
2015-11-25META MODE: Fix 'make bootstrap-tools'.Bryan Drewery
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 Notes: svn path=/head/; revision=291321
2015-11-25META MODE: Don't create .meta files when symlinking sources into the obj ↵Bryan Drewery
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 Notes: svn path=/head/; revision=291320
2015-11-25META MODE: Prefer INSTALL=tools/install.sh to lessen the need for xinstall.host.Bryan Drewery
This both avoids some dependencies on xinstall.host and allows bootstrapping on older releases to work due to lack of at least 'install -l' support. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=291307
2015-06-13Add META_MODE support.Simon J. Gerraty
Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree. Still need to add real targets under targets/ to build packages. Differential Revision: D2796 Reviewed by: brooks imp Notes: svn path=/head/; revision=284345
2015-06-08dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=284172
2014-05-16Updated dependenciesSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=266219
2014-05-10Updated dependenciesSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=265802
2014-04-27Merge headSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=265006
2014-01-21Bump SHLIB_MAJOR for libelf.Kai Wang
Notes: svn path=/projects/elftoolchain/; revision=260994
2014-01-21Reapply revisions r237528, r237531 and r238741 which make libelfKai Wang
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. Notes: svn path=/projects/elftoolchain/; revision=260991
2014-01-21Remove INCSDIR variable which is only used in elftoolchain's own buildKai Wang
framework. Notes: svn path=/projects/elftoolchain/; revision=260990
2014-01-15Set CFLAGS in just one line.Kai Wang
Notes: svn path=/projects/elftoolchain/; revision=260699
2014-01-15Removed source code for the old libelf and build the new libelf fromKai Wang
contrib/ instead. Notes: svn path=/projects/elftoolchain/; revision=260698
2013-09-05Merge from headSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=255263
2013-08-31Add support to the ARM platform specific section types.Andrew Turner
Notes: svn path=/head/; revision=255105
2013-04-12sync from headSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=249429
2013-03-11Updated dependenciesSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=248169
2013-02-24Merge part of r1712 from elftoolchain, making it possible to resize ELFMark Johnston
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 Notes: svn path=/head/; revision=247221
2013-02-19- Make sure to set an error code when trying to obtain a data descriptor forMark Johnston
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 Notes: svn path=/head/; revision=246978
2013-02-16Updated dependenciesSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=246868
2012-11-08Updated/new Makefile.dependSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=242788
2012-11-04Sync from headSimon J. Gerraty
Notes: svn path=/projects/bmake/; revision=242545
2012-10-19Fix warnings found by -Wmising-variable-declarations.Ed Schouten
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. Notes: svn path=/head/; revision=241720
2012-08-22Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar
Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
2012-07-24Don't ever build files depending on the directory where they are placed in.Andrey A. Chernov
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. Notes: svn path=/head/; revision=238741
2012-06-24Add the sys directory we create to the list of items to clean.Andrew Turner
Notes: svn path=/head/; revision=237531
2012-06-24Create a symlink to sys/elf32.h, sys/elf64.h, and sys/elf_common.h.Andrew Turner
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 Notes: svn path=/head/; revision=237528
2012-06-05Remove repeated words.Joel Dahl
Notes: svn path=/head/; revision=236626
2012-06-02mdoc: minor Bl improvements.Joel Dahl
Notes: svn path=/head/; revision=236438
2012-05-11General mdoc(7) and typo fixes.Glen Barber
PR: 167734 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org) MFC after: 3 days Notes: svn path=/head/; revision=235286
2012-03-29Remove trailing whitespace per mdoc lint warningEitan Adler
Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days Notes: svn path=/head/; revision=233648
2012-03-26Handle MIPS .reginfo section as ELF_T_BYTEOleksandr Tymoshenko
Notes: svn path=/head/; revision=233524