diff options
author | jkoshy <jkoshy@FreeBSD.org> | 2006-12-25 02:22:22 +0000 |
---|---|---|
committer | jkoshy <jkoshy@FreeBSD.org> | 2006-12-25 02:22:22 +0000 |
commit | 26d8253ac6532abcb8d1c8d57743998f5368173b (patch) | |
tree | 1f1c4db9c6b866adf56e5cc3eccd23baaa57af28 /lib/libelf/Makefile | |
parent | 44313eba34c379a180dc73dcd02ab9c415941db3 (diff) | |
download | FreeBSD-src-26d8253ac6532abcb8d1c8d57743998f5368173b.zip FreeBSD-src-26d8253ac6532abcb8d1c8d57743998f5368173b.tar.gz |
Keep shadow copies of the `e_shnum', `e_phnum' and `e_shstrndx'
members of the ELF Executable Header inside the library-private
`struct _Elf' descriptor and only update the underlying Elf{32,64}_Ehdr
structure on an elf_update(3) call. These fields of the Ehdr
structure are technically `out of bounds' for an application program
per the ELF(3) API, but we've seen applications that initialize
a new Ehdr structure using memcpy(), messing up the library's
invariants. [1]
Implement elf_getphnum() and handle ELF objects with more than
64K program header table entries.
Reported by: jb [1]
Diffstat (limited to 'lib/libelf/Makefile')
-rw-r--r-- | lib/libelf/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libelf/Makefile b/lib/libelf/Makefile index ae1ad42..0af640c 100644 --- a/lib/libelf/Makefile +++ b/lib/libelf/Makefile @@ -18,6 +18,7 @@ SRCS= elf_begin.c \ elf_next.c \ elf_rand.c \ elf_rawfile.c \ + elf_phnum.c \ elf_shnum.c \ elf_shstrndx.c \ elf_scn.c \ @@ -46,6 +47,7 @@ SRCS= elf_begin.c \ libelf_checksum.c \ libelf_data.c \ libelf_ehdr.c \ + libelf_extended.c \ libelf_phdr.c \ libelf_shdr.c \ libelf_xlate.c \ @@ -72,6 +74,7 @@ MAN= elf.3 \ elf_getdata.3 \ elf_getident.3 \ elf_getscn.3 \ + elf_getphnum.3 \ elf_getshnum.3 \ elf_getshstrndx.3 \ elf_hash.3 \ |