History log of /external/elfutils/libelf/libelfP.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
519c13c9c7fc591609eed405a3e952707c60ec7e 30-Dec-2015 Mark Wielaard <mjw@redhat.com> libelf: Make elf_strptr index correctly into compressed section data.

elf_strptr indexes into the section data. This is defined as index into
the uncompressed data of the section. If the section is compressed make
sure the uncompressed data is available, but don't really decompress the
section header (elf_getdata will still return compressed data).

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libelf/libelfP.h
272018bba1f253bae00b5ba280ad0e0f18c04006 19-Dec-2015 Mark Wielaard <mjw@redhat.com> libelf: Add elf_compress and elf_compress_gnu.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libelf/libelfP.h
5ddb50af4a488fdec358570502cbe058acb8ae93 20-Nov-2015 Mark Wielaard <mjw@redhat.com> libelf: Add elf32_getchdr, elf64_getchdr and gelf_getchdr.

Elf_Data of a compressed section has type ELF_T_CHDR. This type can be
xlated to the file or memory representation. This will make sure the Chdr
is in the correct endianess. The compressed data following the Chdr isn't
translated.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libelf/libelfP.h
3425454a10d307fae891fb667cf7969e945cde79 09-Oct-2015 Josh Stone <jistone@redhat.com> Trust AC_SYS_LARGEFILE to provide large file support

AC_SYS_LARGEFILE defines _FILE_OFFSET_BITS in config.h if needed for
LFS, and this automatically maps things like open to open64. But quite
a few places used explicit 64-bit names, which won't work on platforms
like FreeBSD where off_t is always 64-bit and there are no foo64 names.
It's better to just trust that AC_SYS_LARGEFILE is doing it correctly.

But we can verify this too, as some file could easily forget to include
config.h. The new tests/run-lfs-symbols.sh checks all build targets
against lfs-symbols (taken from lintian) to make sure everything was
implicitly mapped to 64-bit variants when _FILE_OFFSET_BITS is set.

Signed-off-by: Josh Stone <jistone@redhat.com>
/external/elfutils/libelf/libelfP.h
6c9f1ec5c5d5570ccd6979794b7cf5b4e3833809 18-Feb-2015 Mark Wielaard <mjw@redhat.com> libelf: Make __libelf_set_data_list_rdlock an internal_function.

__libelf_set_data_list_rdlock from elf_getdata.c is marked as an
internal_function in the implementation, but not in libelfP.h when it
is declared. Add internal_function to the declaration. This broke
the i686 build.

Reported-by: Alexander Cherepanov <ch3root@openwall.com>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libelf/libelfP.h
b543cdd95a0f9dfc33c862585f108a7a19728a10 20-Jan-2015 Mark Wielaard <mjw@redhat.com> libelf: Fix elf_newdata when raw ELF file/image data is available.

When ELF data for a section has been read by elf_rawdata, data_read
and rawdata_base are set, but data_list_rear will not be set until the
data will be converted (by elf_getdata). elf_newdata would overwrite
the existing data in that case. Both elf_getdata and elf_update rely
on the fact that when data_list_rear is set they don't have to look
at the raw data anymore. So make sure we update the data list properly
before adding any new data and raw data is available in elf_newdata.

Add newdata test that calls elf_newdata before and after elf_rawdata
and elf_getdata and checks the new size and contents of the section.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libelf/libelfP.h
cc62e378c292daaded19f1fe03681d63b7437ea0 31-Dec-2014 Mark Wielaard <mjw@redhat.com> libelf: gelf_getphdr should check phdr index is valid.

elf_getphdrnum does checks the phdrnum makes sense. But gelf_getphdr
checked the given index against the "raw" e_phnum or internal
__elf_getphdrnum_rdlock result without checking. Extract the checking
code into a new internal __elf_getphdrnum_chk_rdlock function and
use that.

Found by afl-fuzz.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libelf/libelfP.h
a9039623c272f458a53f09009c2a0e1d6e60491d 17-Jan-2014 Jakub Jelinek <jakub@redhat.com> robustify: libelf gelf define INVALID_NDX macro.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libelf/libelfP.h
de2ed97f33139af5c7a0811e4ec66fc896a13cf2 05-Jun-2012 Mark Wielaard <mjw@redhat.com> Update name, license and contributor policy.

* Change name from "Red Hat elfutils" to "elfutils".
* Update license of standalone tools and test from GPLv2 to GPLv3+.
* Change license of libraries from GPLv2+exception to GPLv2/LGPLv3+.
* Add Developer Certificate of Origin based contributor policy.

top-level:

- COPYING: Upgraded from GPLv2 to GPLv3.
- CONTRIBUTING, COPYING-GPLv2, COPYING-LGPLv3: New files.
- NEWS: Added note about new contribution and license policy.
- Makefile.am: Updated to GPLv3, added new files to EXTRA_DIST.
- configure.ac: Update to GPLv3, changed AC_INIT name to 'elfutils'.

backends, lib, libasm, libcpu, libdw, libdwfl, libebl, libelf:

- All files updated to GPLv2/LGPLv3+. Except some very small files
(<5 lines) which didn't have any headers at all before, the linker
.maps files and the libcpu/defs files which only contain data and
libelf/elf.h which comes from glibc and is under LGPLv2+.

config:

- elfutils.spec.in: Add new License: headers and new %doc files.
- Update all license headers to GPLv2/LGPLv3+ for files used by libs.

src, tests:

- All files updated to GPLv3+. Except for the test bz2 data files, the
linker maps and script files and some very small files (<5 lines)
that don't have any headers.

Signed-off-by: Richard Fontana <rfontana@redhat.com>
Signed-off-by: Mark Wielaard <mjw@redhat.com>
/external/elfutils/libelf/libelfP.h
ed52618203ac78179e3a0cf36db5bdca8958da1d 15-Apr-2011 Marek Polacek <mpolacek@redhat.com> Fix doubled words.
/external/elfutils/libelf/libelfP.h
6fd3cd104adf4107aa64e1c1e84028b4ea0b3296 08-Jan-2010 Roland McGrath <roland@redhat.com> Add elf_getphdrnum, support >65536 phdrs.
/external/elfutils/libelf/libelfP.h
9dedfccc66ca19a72b936e6a2e6e27fb4a65be60 08-Jul-2009 Roland McGrath <roland@redhat.com> Reorder Elf struct members for optimal packing.
/external/elfutils/libelf/libelfP.h
f189493154d0041deced00e6a99cc5426dc9d260 14-Jun-2009 Ulrich Drepper <drepper@redhat.com> Add aliases for elf_getshnum and elf_getshstrndx.

Sun in their implementation messed up the semantics of these functions.
To get back to source code compatibility they asked for a solution.
We simply add aliases for the two affected functions, named
elf_getshdrnum and elf_getshdrstrndx. The semantics remains the
same. Users of the old interfaces receive a warning for now. In
future we might make it impossible to link programs which request
the old interfaces (binary compatibility will of course be maintained).
/external/elfutils/libelf/libelfP.h
43aafe6459ff27b755958037aa1469463d973a19 11-Jan-2009 Ulrich Drepper <drepper@redhat.com> We only have one translation domain, elfutils. Change use in libelf.
/external/elfutils/libelf/libelfP.h
02f66452635df3d01f7e57845c3362ab828e3d89 04-Dec-2008 Ulrich Drepper <drepper@redhat.com> propagate from branch 'com.redhat.elfutils.roland.pending.libelf-threads' (head fc97c9c202b5d7d7699a3b1d5c53007a2ef37bb1)
to branch 'com.redhat.elfutils' (head 67cccb9bfffc1a7fe3d8d355a2d9b6d0e489ff81)
/external/elfutils/libelf/libelfP.h
9cf28e4f899f97ecdc983a0af8e2be62f3d69058 30-Sep-2008 Roland McGrath <roland@redhat.com> libdwfl/
2008-09-29 Roland McGrath <roland@redhat.com>

* segment.c (insert): Must realloc DWFL->lookup_module here too.
(dwfl_report_segment): Clear DWFL->lookup_module before insert calls.
/external/elfutils/libelf/libelfP.h
b4d6f0f8064f2b706ea9035ef0393d8299671390 26-Aug-2008 Roland McGrath <roland@redhat.com> Fix up bogon and missing log entries from .pmachata.threads branch.
/external/elfutils/libelf/libelfP.h
f729d77881262094d365d33ac51063e25a02e357 16-Aug-2008 Ulrich Drepper <drepper@redhat.com> Fix build problem after merge of pmachata.threads branch when compiled without
thread support.
/external/elfutils/libelf/libelfP.h
d56e232fb8f8cd97a336ed612c89145ec121f785 16-Aug-2008 Ulrich Drepper <drepper@redhat.com> propagate from branch 'com.redhat.elfutils.pmachata.threads' (head 8bd3bc10eb015c96f7bafcc6a22c973620b57dd8)
to branch 'com.redhat.elfutils' (head c5a11b6b3329382f1b5ffd0020f0d93c64176f20)
/external/elfutils/libelf/libelfP.h
3cbdd387c752999255aea91600b5cfdefbeac7d0 02-Jan-2008 Ulrich Drepper <drepper@redhat.com> propagate from branch 'com.redhat.elfutils.disasm' (head d15b4eb794e81e477f9896fe82a74cb5ecf4514c)
to branch 'com.redhat.elfutils' (head eaacbf01f8cc89d043ec6eca9b5e35cb5c4cde06)
/external/elfutils/libelf/libelfP.h
59ea7f33f781e6e3f8c9d81d457e5d99eee8f1ce 04-Oct-2007 Roland McGrath <roland@redhat.com> src/
2007-10-04 Roland McGrath <roland@redhat.com>

* readelf.c (print_archive_index): New variable.
(options, parse_opt): Accept -c/--archive-index to set it.
(dump_archive_index): New function.
(process_file): Take new arg WILL_PRINT_ARCHIVE_INDEX.
Call dump_archive_index on archives if set.
(main): Update caller.
(any_control_option): Give it file scope, moved out of ...
(parse_opt): ... here.

tests/
2007-10-04 Roland McGrath <roland@redhat.com>

* run-readelf-test4.sh: New file.
* Makefile.am (TESTS, EXTRA_DIST): Add it.
/external/elfutils/libelf/libelfP.h
c76f0b05676f6207affbfd85e75063db3b6eeccf 27-Sep-2007 Roland McGrath <roland@redhat.com> 2007-09-27 Roland McGrath <roland@redhat.com>

* alpha_retval.c: Use dwarf_attr_integrate and dwarf_hasattr_integrate.
* i386_retval.c: Likewise.
* ia64_retval.c: Likewise.
* ppc64_retval.c: Likewise.
* ppc_retval.c: Likewise.
* s390_retval.c: Likewise.
* sparc_retval.c: Likewise.
* x86_64_retval.c: Likewise.
/external/elfutils/libelf/libelfP.h
c07fbb3ff74a8c7b4916ff8155060a35f4b08aaa 30-Mar-2007 Ulrich Drepper <drepper@redhat.com> propagate from branch 'com.redhat.elfutils.roland.pending' (head b584b7056d679db0fc272b47667047d07737ca55)
to branch 'com.redhat.elfutils' (head 5f150a0b2f07e8c60913d4e6ad833ef026ccd26e)
/external/elfutils/libelf/libelfP.h
697f4db2f34c054a2f93b45dbdbbaec82e34a409 10-Jun-2006 Ulrich Drepper <drepper@redhat.com> merge of 2043b4a4bc8f0359b8c216306758ab5900533fde
and fde883376d5d9573d47686c91400d14495518411
/external/elfutils/libelf/libelfP.h
a688a732b671263838c2cd056ab5dbb71be91468 10-Jun-2006 Ulrich Drepper <drepper@redhat.com> * i386_ld.c (elf_i386_finalize_plt): Don't change symbol table entries
for PLT entries if there is no local definition.

* ld.c (parse_option): Handle -z ignore like --as-needed and
-z record like --no-as-needed.
* ld.h (struct ld_state): Remove ignore_unused_dsos field.
* ldgeneric.c (new_generated_scn): Always compute ndt_needed by
looping over DSOs. When deciding about adding DT_NEEDED entries
use ->as_needed instead of ignore_unused_dsos.
/external/elfutils/libelf/libelfP.h
bdb29c0b5613ecda012edfd291765f17da3939da 04-Jun-2006 Ulrich Drepper <drepper@redhat.com> merge of 74ebb3c081458a7d19c744b155c767262efc47cb
and cb87c403367a928f441c3dab11f1ed989884a7f7
/external/elfutils/libelf/libelfP.h
8c56fe3b2c753234beb6f58a81c8b96f008226ef 31-May-2006 Ulrich Drepper <drepper@redhat.com> Handle as-needed options.
/external/elfutils/libelf/libelfP.h
3d4241d16fd31160aa84c3be83e5fafa12e6d968 28-May-2006 Ulrich Drepper <drepper@redhat.com> No need for non-gcc support.
/external/elfutils/libelf/libelfP.h
1e9ef50681e20ef14c2ba38aef37a71ff148be08 05-Apr-2006 Ulrich Drepper <drepper@redhat.com> Fix FSF address. No exception for libdwarf.
/external/elfutils/libelf/libelfP.h
361df7da6dfecd817b27e62b91752ac316d7cdd4 04-Apr-2006 Ulrich Drepper <drepper@redhat.com> propagate from branch 'com.redhat.elfutils.roland.pending' (head 4f8fc821345feef58624f0aa5b470d4827577d8c)
to branch 'com.redhat.elfutils' (head 76e26cb54695fd3b21ee8fb5be3036bd68200633)
/external/elfutils/libelf/libelfP.h
41de488a0ad6679e816dbab960351e5f62ab8ead 03-Aug-2005 Ulrich Drepper <drepper@redhat.com> Add several more elflint tests:
- check whether dynamic section matches PT_DYNAMIC program header entry
- make sure text relocation flag is used correctly

libelf needed one extension for this.
/external/elfutils/libelf/libelfP.h
b08d5a8fb42f4586d756068065186b5af7e48dad 26-Jul-2005 Ulrich Drepper <drepper@redhat.com> Adjust for monotone.
/external/elfutils/libelf/libelfP.h