Go to file
Peter Jones 29ef465cd8 Add scncopy - like object copy but tries not to change section content
This adds scncopy, which is like objcopy with some differences:
- it doesn't try to update section contents, but does try to
  update program headers and such to correctly reflect the section
  contents.
- it doesn't necessarily try to create a binary eu-elflint will like.
  If you don't copy a required section, it won't make it for you.

TODO:
- Make it possible to copy sections to an already existant binary.
- Make phdrs only copy if they're needed, and/or modify old phdrs to
  point to new sections
- Make sure nothing is missing from fixup_dynamic()

Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2010-01-12 14:23:32 -02:00
cmake/modules cmake: Add comments explaining build_id and fedora/rh detection 2009-06-27 13:32:20 -03:00
lib [LICENSE]: Add COPYING file and add missing license info on some files 2007-12-17 14:15:42 -02:00
man-pages pahole: Allow list of class names to be passed to -C/--class_name 2009-06-18 14:58:51 -03:00
ostra [OSTRA]: Change ostra-cg license to GPLv2 2007-12-24 12:25:17 -02:00
rpm/SPECS New release: 1.8 2009-12-06 15:41:50 -02:00
CMakeLists.txt cmake: Avoid uneeded linking/unused libraries in some dwarves libraries and executables 2009-12-17 15:20:27 -02:00
COPYING [LICENSE]: Add COPYING file and add missing license info on some files 2007-12-17 14:15:42 -02:00
MANIFEST MANIFEST: Remove the .py extension for regtest 2009-11-07 16:59:20 -02:00
NEWS New release: 1.8 2009-12-06 15:41:50 -02:00
README [CMAKE]: Make the default install prefix be /usr/local 2007-04-19 18:01:47 -03:00
README.ctracer ctracer: update README.ctracer, f9 has the dwarves 2008-10-29 08:54:53 -02:00
codiff.c pahole: Introduce --classes_as_structs 2009-08-24 17:22:43 -03:00
config.h.cmake [DWARVES] Fixes a FIXME relating to a missing elf (libdw) symbol check. 2008-02-12 21:08:49 -02:00
ctf.h libctf: Use the same coding style as the dwarves 2008-09-25 16:01:26 -03:00
ctf_encoder.c ctf_encoder: Allow specifying a verbose level for cu__encode_ctf 2009-12-06 14:17:29 -02:00
ctf_encoder.h ctf_encoder: Allow specifying a verbose level for cu__encode_ctf 2009-12-06 14:17:29 -02:00
ctf_loader.c ctf_loader: Fix ptr diff printf specifier 2009-12-05 18:30:30 -02:00
ctfdwdiff ctfdwdiff: Don't ask for variables and inline expansions in pfunct 2009-03-31 19:21:46 -03:00
ctracer.c dwarves: Pass the cu to destructors to free memory on the obstack 2009-08-18 18:21:20 -03:00
dtagnames.c dtagnames: Stop using cu__for_each_tag 2009-04-01 11:01:16 -03:00
dutil.c dutil: Convert strlist to use rb_trees 2009-06-18 14:02:29 -03:00
dutil.h dutil: Convert strlist to use rb_trees 2009-06-18 14:02:29 -03:00
dwarf_loader.c dwarf_loader: Support more compact DW_AT_data_member_location form 2009-11-24 12:56:41 -02:00
dwarves.c dwarves: class_member__clone need to allocate from the obstack 2009-09-20 16:20:06 -03:00
dwarves.h dwarves: base_type->float_type holds only 12 possible values 2009-12-05 19:07:51 -02:00
dwarves_emit.c core: Stop using strings__ptr(strings, i) directly 2009-04-02 17:54:43 -03:00
dwarves_emit.h core: Stop using strings__ptr(strings, i) directly 2009-04-02 17:54:43 -03:00
dwarves_fprintf.c pahole: Introduce --hex to print offsets and sizes in hexadecimal 2009-10-20 13:59:12 -02:00
dwarves_reorganize.c dwarves_reorganize: Fix class__demote_bitfields, we need power of two bytes 2009-08-16 12:26:33 -03:00
dwarves_reorganize.h class_member: cache the byte size of the member 2009-03-17 14:31:18 -03:00
elf_symtab.c dutil: Allow returning the section index in elf_section_by_name 2009-04-03 11:53:05 -03:00
elf_symtab.h elf_symtab: Add elf_sym__section helper 2009-04-03 11:56:03 -03:00
elfcreator.c Add scncopy - like object copy but tries not to change section content 2010-01-12 14:23:32 -02:00
elfcreator.h Add scncopy - like object copy but tries not to change section content 2010-01-12 14:23:32 -02:00
gobuffer.c gobuffer: Fix buffer expansion algorithm 2009-04-25 12:13:14 -03:00
gobuffer.h gobuffer: Introduce gobuffer__copy 2009-03-31 15:54:53 -03:00
hash.h [DWARVES]: Use a hash table for the tags in a CU 2008-02-11 11:47:17 -02:00
libctf.c libctf: Replaces deprecated elf_getshstrndx with elf_getshdrstrndx 2009-12-29 11:36:47 -02:00
libctf.h ctf: Plug debug_fmt_ops->strings__ptr 2009-04-02 17:55:17 -03:00
list.h coding style: remove trailing whitespaces, etc 2009-03-14 13:50:36 -03:00
pahole.c ctf_encoder: Allow specifying a verbose level for cu__encode_ctf 2009-12-06 14:17:29 -02:00
pdwtags.c core: Stop using strings__ptr(strings, i) directly 2009-04-02 17:54:43 -03:00
pfunct.c dwarves: Allow avoiding loading addr information 2009-07-06 13:44:57 -03:00
pglobal.c all: Fix possible uninitialized variable uses 2009-05-04 15:50:06 -03:00
prefcnt.c dwarves: Make all the tags that have an IP to be derived from ip_tag 2009-06-04 17:30:06 -03:00
rbtree.c dwarves: Add an rbtree for the functions in a cu 2009-06-04 14:56:44 -03:00
rbtree.h dwarves: Add an rbtree for the functions in a cu 2009-06-04 14:56:44 -03:00
regtest dwarves: __tag__has_type_loop has to handle a NULL type (void) 2009-09-14 17:39:52 -03:00
scncopy.c Add scncopy - like object copy but tries not to change section content 2010-01-12 14:23:32 -02:00
strings.c strings: Fix stupid pointer deref 2009-05-04 15:40:44 -03:00
strings.h coding style: remove trailing whitespaces, etc 2009-03-14 13:50:36 -03:00
syscse.c core: Stop using strings__ptr(strings, i) directly 2009-04-02 17:54:43 -03:00

README

Build instructions:

1. install cmake
2. mkdir build
3. cd build
4. cmake -D__LIB=lib ..
5. make install

Default is to be installed on /usr/local, see rpm spec file for
installing on other places.

Known to work scenarios:

Mandriva Cooker:

cmake 2.4.5-1mdv2007.1
libelfutils1-devel 0.123-1mdv2007.1

Debian Unstable:

cmake 2.4.5-1
libdw-dev 0.123-2

Fedora Core 6:

cmake 2.4.5-2.fc6
elfutils-devel 0.126-1.fc6