aboutsummaryrefslogtreecommitdiff
path: root/lib/libelf
Commit message (Collapse)AuthorAgeFilesLines
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-162-2/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* libelf: Link gelf_getchdr.3 to the buildMark Johnston2021-11-291-0/+2
| | | | | MFC after: 1 week Sponsored by: The FreeBSD Foundation
* libelf: add compression header supportEd Maste2020-10-231-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Update Makefile.depend filesSimon J. Gerraty2019-12-111-1/+0
| | | | | | | | | | | | | 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
* pkgbase: Put a lot of binaries and lib in FreeBSD-runtimeEmmanuel Vadot2019-09-051-1/+1
| | | | | | | | | | | | 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
* Allow bootstrapping elftoolchain on MacOS and LinuxAlex Richardson2019-07-011-0/+7
| | | | | | | | | | | 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
* Update to ELF Tool Chain r3668Ed Maste2019-01-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Add gelf_mips64el.c to the list of files to include in libelf.John Baldwin2018-09-051-0/+1
| | | | | | | | | | | Missed in r338478. Pointy hat to: jhb Approved by: re (rgrimes) MFC after: 1 month Notes: svn path=/head/; revision=338485
* DIRDEPS_BUILD: Update dependencies.Bryan Drewery2017-10-311-1/+0
| | | | | | | Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=325188
* Use SRCTOP-relative paths to other directories instead of .CURDIR-relative onesEnji Cooper2017-01-201-1/+1
| | | | | | | | | | This simplifies pathing in make/displayed output MFC after: 3 weeks Sponsored by: Dell EMC Isilon Notes: svn path=/head/; revision=312510
* elftoolchain: Use ${SRCTOP} for the top of the FreeBSD treeEd Maste2016-04-211-3/+3
| | | | | | | | | | | 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
* Replace ${CURDIR}/../.. with ${CURDIR:H:H} in elftoolchainEd Maste2016-04-181-1/+1
| | | | | | | | | | 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
* MFHGlen Barber2016-03-021-9/+0
|\ | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=296318
| * DIRDEPS_BUILD: Regenerate without local dependencies.Bryan Drewery2016-02-241-9/+0
| | | | | | | | | | | | | | | | | | | | | | 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
* | First pass through library packaging.Glen Barber2016-02-041-0/+1
|/ | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295278
* Correct r291566 for defining SHLIBDIR.Bryan Drewery2015-12-011-1/+3
| | | | | | | | | | 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
* Move libelf.so.2 from /usr/lib to /lib to unbreak libkvm use after r291406Enji Cooper2015-12-011-0/+1
| | | | | | | | | | | | | | 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
* META MODE: Fix 'make bootstrap-tools'.Bryan Drewery2015-11-251-1/+1
| | | | | | | | | | | | | | | | | | 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
* META MODE: Don't create .meta files when symlinking sources into the obj ↵Bryan Drewery2015-11-251-2/+2
| | | | | | | | | | | | | | 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
* META MODE: Prefer INSTALL=tools/install.sh to lessen the need for xinstall.host.Bryan Drewery2015-11-251-1/+0
| | | | | | | | | | | 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
* Add META_MODE support.Simon J. Gerraty2015-06-131-0/+28
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * dirdeps.mk now sets DEP_RELDIRSimon J. Gerraty2015-06-081-2/+0
| | | | | | | | Notes: svn path=/projects/bmake/; revision=284172
| * Updated dependenciesSimon J. Gerraty2014-05-161-1/+1
| | | | | | | | Notes: svn path=/projects/bmake/; revision=266219
| * Updated dependenciesSimon J. Gerraty2014-05-101-0/+2
| | | | | | | | Notes: svn path=/projects/bmake/; revision=265802
| * Merge headSimon J. Gerraty2014-04-27109-15243/+21
| |\ | |/ |/| | | Notes: svn path=/projects/bmake/; revision=265006
| * Merge from headSimon J. Gerraty2013-09-051-1/+9
| |\ | | | | | | | | | Notes: svn path=/projects/bmake/; revision=255263
| * \ sync from headSimon J. Gerraty2013-04-123-130/+205
| |\ \ | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=249429
| * | | Updated dependenciesSimon J. Gerraty2013-03-111-0/+1
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=248169
| * | | Updated dependenciesSimon J. Gerraty2013-02-161-2/+0
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=246868
| * | | Updated/new Makefile.dependSimon J. Gerraty2012-11-081-0/+3
| | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242788
| * | | Sync from headSimon J. Gerraty2012-11-045-18/+31
| |\ \ \ | | | | | | | | | | | | | | | Notes: svn path=/projects/bmake/; revision=242545
| * | | | Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Marcel Moolenaar2012-08-221-0/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Requested by: Simon Gerraty <sjg@juniper.net> Notes: svn path=/projects/bmake/; revision=239572
* | | | | Bump SHLIB_MAJOR for libelf.Kai Wang2014-01-211-1/+1
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/elftoolchain/; revision=260994
* | | | | Reapply revisions r237528, r237531 and r238741 which make libelfKai Wang2014-01-211-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | | Remove INCSDIR variable which is only used in elftoolchain's own buildKai Wang2014-01-211-1/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | framework. Notes: svn path=/projects/elftoolchain/; revision=260990
* | | | | Set CFLAGS in just one line.Kai Wang2014-01-151-4/+1
| | | | | | | | | | | | | | | | | | | | Notes: svn path=/projects/elftoolchain/; revision=260699
* | | | | Removed source code for the old libelf and build the new libelf fromKai Wang2014-01-15109-15254/+23
| |_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | contrib/ instead. Notes: svn path=/projects/elftoolchain/; revision=260698
* | | | Add support to the ARM platform specific section types.Andrew Turner2013-08-311-1/+9
| |_|/ |/| | | | | | | | Notes: svn path=/head/; revision=255105
* | | Merge part of r1712 from elftoolchain, making it possible to resize ELFMark Johnston2013-02-241-127/+181
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | - Make sure to set an error code when trying to obtain a data descriptor forMark Johnston2013-02-192-3/+24
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | 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
* | Fix warnings found by -Wmising-variable-declarations.Ed Schouten2012-10-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Don't ever build files depending on the directory where they are placed in.Andrey A. Chernov2012-07-241-4/+2
| | | | | | | | | | | | | | | | | | | | 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
* | Add the sys directory we create to the list of items to clean.Andrew Turner2012-06-241-0/+1
| | | | | | | | Notes: svn path=/head/; revision=237531
* | Create a symlink to sys/elf32.h, sys/elf64.h, and sys/elf_common.h.Andrew Turner2012-06-241-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Remove repeated words.Joel Dahl2012-06-051-1/+1
| | | | | | | | Notes: svn path=/head/; revision=236626
* | mdoc: minor Bl improvements.Joel Dahl2012-06-022-15/+15
|/ | | | Notes: svn path=/head/; revision=236438
* General mdoc(7) and typo fixes.Glen Barber2012-05-114-4/+5
| | | | | | | | | PR: 167734 Submitted by: Nobuyuki Koganemaru (kogane!jp.freebsd.org) MFC after: 3 days Notes: svn path=/head/; revision=235286
* Remove trailing whitespace per mdoc lint warningEitan Adler2012-03-292-2/+2
| | | | | | | | | | Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days Notes: svn path=/head/; revision=233648
* Handle MIPS .reginfo section as ELF_T_BYTEOleksandr Tymoshenko2012-03-261-0/+2
| | | | Notes: svn path=/head/; revision=233524
* mdoc: sort prologue macros.Joel Dahl2012-03-263-3/+3
| | | | Notes: svn path=/head/; revision=233520