History log of /external/ltrace/ltrace-elf.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
2bfea358ea6730980fb6fbbd896bbbf4e58238ee 11-Nov-2013 Petr Machata <pmachata@redhat.com> Add error message if ltelf_init fails to open ELF
/external/ltrace/ltrace-elf.c
4f2f66e6abc7fedf3a5d04fab7cc00e5f82b37cf 05-Nov-2013 Petr Machata <pmachata@redhat.com> Move load_dynamic_entry from PPC backend to ltrace-elf.c/.h
/external/ltrace/ltrace-elf.c
97d13666cd84589135ba593fa43a800d098026d0 05-Nov-2013 Petr Machata <pmachata@redhat.com> Add elf_add_plt_entry as a separate entry point

- That calls into OS and ARCH callbacks as required and has the same
interface. This also adds os_elf_add_plt_entry.

- arch_elf_add_func_entry was added as well for symmetry.
/external/ltrace/ltrace-elf.c
0ed5399f5cbb2b505a95bcac634c0ad5d7bbd6b8 04-Nov-2013 Petr Machata <pmachata@redhat.com> Properly publish read_relplt interface, rename it to elf_read_relocs
/external/ltrace/ltrace-elf.c
673ff510953b65b844a58478aa434120f457c014 25-Oct-2013 Petr Machata <pmachata@redhat.com> Keep PLT relocations in a vector

- That means we have to copy them out of ELF ahead of time instead of
referencing them from inside ELF on demand. But this way we can keep
one grand vector of all PLT-like relocations. On PPC, this makes
a difference: some PLT-like relocations (R_PPC64_JMP_IREL in
particular) are stored in .rela.dyn, not .rela.plt.
/external/ltrace/ltrace-elf.c
a186b0e5c469156b9af66e88dca12d208418195c 15-Oct-2013 Petr Machata <pmachata@redhat.com> Add backend call os_elf_add_func_entry

- This is callback for handling per-OS symbol types. It is modeled
after arch_elf_add_plt_entry and is called each time we need to add
a symbol. The backend will do its stuff for the special symbols and
return PLT_DEFAULT for those where the core will do good enough
work.

- With this change, we pass through all symbol types, and the
callback, if present, should then filter out those that we don't
care for.
/external/ltrace/ltrace-elf.c
b420a226cd2fc5d6028adcaf236c512a1f1fb437 15-Oct-2013 Petr Machata <pmachata@redhat.com> Add support for tracing of IRELATIVE PLT entries

- Because the IRELATIVE entries have no associated symbol name, we
need to allow arch_elf_add_plt_entry to override the name. This is
done by that callback returning PLT_OK and returning the new symbol
via libsym-chain return argument. Filtering is postponed until we
have that symbol, and the filter is applied to the whole returned
chain.

- Add linux_elf_add_plt_entry_irelative to support proper naming of
IRELATIVE PLT entries. This needs to be called from arch backend,
as the numbers of IRELATIVE relocations differ per-architecture.
/external/ltrace/ltrace-elf.c
7a29f9e7a2bd5849886519eb82e9c043d24c6a40 14-Oct-2013 Petr Machata <pmachata@redhat.com> Add elf_each_symbol
/external/ltrace/ltrace-elf.c
6dff4d22b958fdd41d08554c777ce4edc3604d83 15-Oct-2013 Petr Machata <pmachata@redhat.com> Fix rel->rela conversion

- Rel relocations have the addend stored inline in ELF data, it's not
zero.
/external/ltrace/ltrace-elf.c
552d75e2a226782cc9ecf966e6e343af8f51031f 14-Oct-2013 Petr Machata <pmachata@redhat.com> Sanitize interface of arch_get_sym_info/elf_get_sym_info

- <0 for errors, ==0 for OK, 1 for skip. Errors are now propagated
and can be handled as necessary without cancelling tracing.

- Clarify the comment at arch_get_sym_info.
/external/ltrace/ltrace-elf.c
1187af0639449c3c6da03d827f93d2c2181a06f5 14-Oct-2013 Petr Machata <pmachata@redhat.com> Rename several arguments in ltrace-elf.c for consistency

- In struct ltelf, we call the corresponding argument foo_count.
Rename these arguments from size to count for consistency.
/external/ltrace/ltrace-elf.c
2f140bfae6d45ef119ad14252c0d99c30a91d3a6 11-Oct-2013 Petr Machata <pmachata@redhat.com> Commentary fixes
/external/ltrace/ltrace-elf.c
7287166e8fd5949ffcf8eb1f3d378b5ea538915e 11-Oct-2013 Petr Machata <pmachata@redhat.com> arch_library_init and arch_library_clone should be able to signal failure

- This then trickles to library_init, which needs to return int
- Callers of library_init were updated to unroll their transactions
upon failure
- PPC and ARM backends were updated to match the updated interface
/external/ltrace/ltrace-elf.c
5c37171a18bddfbc716d4f3da8b008a844eea4f7 05-Feb-2013 Petr Machata <pmachata@redhat.com> Add elf_can_read_next
/external/ltrace/ltrace-elf.c
184779e4e8a42f2e9e7f3cee4bf4eb31e8c84ee4 05-Feb-2013 Petr Machata <pmachata@redhat.com> Add elf_read_{,next_}uleb128
/external/ltrace/ltrace-elf.c
439ab5bfac8588e52c77e22c96fb397787512d0e 05-Feb-2013 Petr Machata <pmachata@redhat.com> Add elf_read_next_u*

For stream-like reading of ELF data.
/external/ltrace/ltrace-elf.c
3c636fb789a29cac0c8f7f0982fb17afeee489dc 05-Feb-2013 Petr Machata <pmachata@redhat.com> Add elf_read_u8
/external/ltrace/ltrace-elf.c
99b19eb1bb736d7066026894aa69e70de8a03094 05-Feb-2013 Petr Machata <pmachata@redhat.com> elf_get_section_* should return 0 if section wasn't found

Otherwise it won't be possible to differentiate between an error and
not-found condition. It seems some callers (MIPS, PPC backends) already
count on that behavior anyway.
/external/ltrace/ltrace-elf.c
aeb549016d8f536ca007ff0943f9583389dff121 09-Jan-2013 Petr Machata <pmachata@redhat.com> Section flags need to be initialized in failing branches as well
/external/ltrace/ltrace-elf.c
02ecb499445a441cd1ceec4cfb00fab59ce0b23b 09-Jan-2013 Petr Machata <pmachata@redhat.com> Fix error message in read_symbol_table
/external/ltrace/ltrace-elf.c
f0d248aab596acd802668990793413180bb21f79 09-Jan-2013 Petr Machata <pmachata@redhat.com> Plug a leak in error path of ltelf_read_main_binary
/external/ltrace/ltrace-elf.c
8c3674c86688a79a8689772c3d0c84d6e7aaa118 08-Jan-2013 Petr Machata <pmachata@redhat.com> Fix conditions in elf_read_u{16,32,64}

- The calling convention of need_data is 0 on success, <0 on failure.
The condition seems to have it all mixed, using both a ! and a
comparison.
/external/ltrace/ltrace-elf.c
aafb00b7d7751049b99cac3953b5021e4f474ac4 08-Jan-2013 Petr Machata <pmachata@redhat.com> Don't add 1 to potentially NULL pointer comming from rindex
/external/ltrace/ltrace-elf.c
ade3b9798fbc62becbe1b4854f7a2d106498167a 17-Dec-2012 Petr Machata <pmachata@redhat.com> Make enum plt_status enumerators uppercase
/external/ltrace/ltrace-elf.c
929bd57ca202fd2f2e8485ebf65d683e664f67b5 17-Dec-2012 Petr Machata <pmachata@redhat.com> struct Process becomes struct process

This is for consistency with other structures, and ultimately with
Linux coding style. The typedef ("Process") was dropped as well for
this reason.

This opportunity was used to fix coding style around the impacted
lines.
/external/ltrace/ltrace-elf.c
513258cf3063bcdfbd4a7aeb3c9fe3b8484ccdf5 08-Dec-2012 Petr Machata <pmachata@redhat.com> rindex is defined in strings.h
/external/ltrace/ltrace-elf.c
0965420dfd1f4167609c4b3bbee5dc0277423897 05-Dec-2012 Petr Machata <pmachata@redhat.com> Don't mangle static symbol names internally

Instead, write the @soname bit separately. I'm not sure why this was done
like that in the first place. I may have cut'n'pasted this from RHEL
patches for dlopen support, where these sorts of hacks were necessary.
/external/ltrace/ltrace-elf.c
6db61f509eb7537ca64873b0c8c1955e2293db9f 31-Oct-2012 Petr Machata <pmachata@redhat.com> Publish default_elf_add_plt_entry
/external/ltrace/ltrace-elf.c
1c79025768a4403e016cc59d7f41b266e868c9e6 30-Oct-2012 Petr Machata <pmachata@redhat.com> Fix cross-tracing PIE binaries
/external/ltrace/ltrace-elf.c
ef0c74de9320c86ab1f08e5f9c15b031ed36d01f 27-Oct-2012 Petr Machata <pmachata@redhat.com> Fix memory handling of pid2name result

This plugs a leak.
/external/ltrace/ltrace-elf.c
588850f2d73fa03d5c4e59b82acb9c4eb1aaf1c0 26-Oct-2012 Petr Machata <pmachata@redhat.com> Publish do_close_elf; call it on the ELF used to check arch support

This plugs a leak.
/external/ltrace/ltrace-elf.c
b024ca33e3734592a67e41414c2dc02978218501 18-Oct-2012 Petr Machata <pmachata@redhat.com> Fix compilation on i386
/external/ltrace/ltrace-elf.c
da69ed0785ff0a9790f8edadb73fe21013aa118b 18-Oct-2012 Petr Machata <pmachata@redhat.com> Support tracing PIE executables
/external/ltrace/ltrace-elf.c
35b5be786822d87f694dab8b267f9c6df8bfb278 09-Oct-2012 Edgar E. Iglesias <edgar@axis.com> Export elf_get_sym_info

Export the base implementation of arch_get_sym_info as
elf_get_sym_info() for backends to use if needed.

Signed-off-by: Edgar E. Iglesias <edgar@axis.com>
/external/ltrace/ltrace-elf.c
10bd7a99d384f34c9c510828b722f29a8dc02393 28-Sep-2012 Petr Machata <pmachata@redhat.com> Merge new symbols properly with the symbols already in the library
/external/ltrace/ltrace-elf.c
e80caced59a9f0cdd7b70a5ad3b0e4103a477f2b 28-Sep-2012 Petr Machata <pmachata@redhat.com> If -l is requested, keep latent PLT entries

That is, if a PLT entry doesn't match plt_filter, keep it around as latent
in case a library implementing this name is mapped in.
/external/ltrace/ltrace-elf.c
013ef5b78915cd24324fe28e68ae38de9249cb4e 28-Sep-2012 Petr Machata <pmachata@redhat.com> When loading a library, load also a list of exported names, if requested
/external/ltrace/ltrace-elf.c
0fa790473a035a432cb795eace4fe7ae6fd742b8 27-Sep-2012 Petr Machata <pmachata@redhat.com> Append default PLT entry to the symbols returned by arch_elf_add_plt_entry

This fixes the case that arch_elf_add_plt_entry both returns plt_default
and passes back a list of symbols to insert for this PLT entry.
/external/ltrace/ltrace-elf.c
8bda1ee2e92a3c211c01041f183b4e2bf2ebf9d2 26-Sep-2012 Petr Machata <pmachata@redhat.com> Mark default_elf_add_plt_entry static

If a backend wishes to use this, it should simply return plt_default.
Otherwise it should return plt_ok and a list of symbols to add.
/external/ltrace/ltrace-elf.c
b5920d12ceb3dec3d359d8b2972fd22a30c72a66 27-Sep-2012 Edgar E. Iglesias <edgar@axis.com> Break out the symbol info gathering into a backend call

No functional change. Will be used by the MIPS backend.

Signed-off-by: Edgar E. Iglesias <edgar@axis.com>
/external/ltrace/ltrace-elf.c
d57c9f8a8515781d687ce57eadc371038cd01526 03-Sep-2012 Petr Machata <pmachata@redhat.com> Remove remnants of PLT_REINITIALISATION_BP

This was only ever used for PowerPC, which doesn't need it anymore.
/external/ltrace/ltrace-elf.c
4d4e1b853db0c97b7c7f023bc301e3c3eee58ce4 30-May-2012 Petr Machata <pmachata@redhat.com> Track elf class in struct Process

Technically only s390 needs this at the moment, but it seems general enough
that it should be alongside the e_machine flag. Eventually it is desirable
to replace both fields with either a backend-provided ABI enum, or with
an ABI object that would implement the interesting back end calls.
/external/ltrace/ltrace-elf.c
bac2da505ee174b7fb984b975c5938f88f0dbab2 29-May-2012 Petr Machata <pmachata@redhat.com> Move target_address_t to arch.h, rename to arch_addr_t

Note that the placement under arch.h is currently conceptual only. Since
no backend defines ARCH_HAVE_ADDRESS_TYPES, it's actually in sysdep.h in
all cases.
/external/ltrace/ltrace-elf.c
ddd96a3fbc7c54146d1d831810fc9e29c9bc3c76 17-May-2012 Petr Machata <pmachata@redhat.com> Merge i386 and x86_64 back ends into a general x86

The reason being that x86_64 needs to handle i386 anyway, and keeping the
two together might reduce code duplicity.
/external/ltrace/ltrace-elf.c
ba1664b062414481d0f37d06bb01a19874c8d481 28-Apr-2012 Petr Machata <pmachata@redhat.com> Fix compilation
/external/ltrace/ltrace-elf.c
642626096a694c6af279d25d2b1b2fba5b10ddfb 07-Jan-2012 Petr Machata <pmachata@redhat.com> Add backend.h for backend interfaces
/external/ltrace/ltrace-elf.c
9d878c9d7600d313a2b2c53201569db790ec2c61 04-Aug-2012 Andrey Zonov <zont@FreeBSD.org> Hide linux specific headers
/external/ltrace/ltrace-elf.c
6c1c0bb3494f787a5cf544e4d62375ec81af8d99 18-May-2012 Petr Machata <pmachata@redhat.com> Don't consider STN_UNDEF symbols for breakpoints

This fixes filters.exp on s390x.
/external/ltrace/ltrace-elf.c
a82d32209f276e10dd1f437b38b4b6e5de32b980 01-May-2012 Petr Machata <pmachata@redhat.com> Fix 32-bit builds
/external/ltrace/ltrace-elf.c
b1492dfaca6882fa0798b549e0557c7dec6b7e9c 30-Apr-2012 Petr Machata <pmachata@redhat.com> Split arch_translate_address into this and arch_translate_address_dyn

The former is called when ltelf is available. The latter in dynamic context
when ltelf is not necessary anymore (or if the data is necessary, it will
have been copied out to struct library).
/external/ltrace/ltrace-elf.c
5b3e26acd50d74e8b7c007f8b5dfb1a825ef9aff 30-Apr-2012 Petr Machata <pmachata@redhat.com> Add elf_get_section_named

Document elf_get_section_* in ChangeLog
/external/ltrace/ltrace-elf.c
3a01cd7a2fcf200cedd0770e137a28764f679c3c 30-Apr-2012 Petr Machata <pmachata@redhat.com> Offset in elf_read_u{16,32,64} should be 64-bit even when ltrace is 32-bit
/external/ltrace/ltrace-elf.c
2bbeac4df26c6ecb7793fb2e764195cba88471fa 30-Apr-2012 Petr Machata <pmachata@redhat.com> Ignore version string in symbol name
/external/ltrace/ltrace-elf.c
cc0e1e4b83d69441cc5f61ea87eda5458ee9fae3 25-Apr-2012 Petr Machata <pmachata@redhat.com> Replace some uses of error with fprintf

error is not standard so it has no business being used in generic code.
The linux-gnu back end is useful for android, and that doesn't have that
interface either.
/external/ltrace/ltrace-elf.c
8eb0d9349614219cec5c3bb164f1376d83988525 17-Apr-2012 Petr Machata <pmachata@redhat.com> Clarify code
/external/ltrace/ltrace-elf.c
e0615ab04b1bd376aae61c62d77fa6bda219f326 17-Apr-2012 Petr Machata <pmachata@redhat.com> The interface arch_elf_init now takes library as one argument
/external/ltrace/ltrace-elf.c
e71661a0ef442c38dd3f6dd3b876fd57990d63ed 17-Apr-2012 Petr Machata <pmachata@redhat.com> Drop PPC-specific leftover form ltrace-elf.c
/external/ltrace/ltrace-elf.c
ea8eb9a606096fd072abe104b4239f67883ad39a 17-Apr-2012 Petr Machata <pmachata@redhat.com> Add casts where we convert from wide integer to narrow pointer
/external/ltrace/ltrace-elf.c
e8d9076a97f6617868466a99bd18e11e3f6389ac 15-Apr-2012 Petr Machata <pmachata@redhat.com> library_symbol_init may fail
/external/ltrace/ltrace-elf.c
218c5ff26841f5bbd188c42ccbd67422a7a20556 15-Apr-2012 Petr Machata <pmachata@redhat.com> Nits
/external/ltrace/ltrace-elf.c
f13afd562dfbf9aa563177bfbbd1d9fc8e3cf2a3 14-Apr-2012 Petr Machata <pmachata@redhat.com> Actually use the cloned pathname in ltelf_read_library
/external/ltrace/ltrace-elf.c
40cc53b8a944aabfd42e64bf71815252652d7f77 07-Apr-2012 Petr Machata <pmachata@redhat.com> Don't translate symbols that don't point to OPD but to .text
/external/ltrace/ltrace-elf.c
18c801c3f29081d9de517815df89bc1bbf8e2188 07-Apr-2012 Petr Machata <pmachata@redhat.com> Drop the rest of LS_TOPLT_POINT support

If any other architecture needs it, we'll add it back in some form. But
now that we have callbacks on breakpoints, it might be possible to do it
differently, without explicit support.
/external/ltrace/ltrace-elf.c
074f68fb8f57f93de3d94552a855b296b7a25906 07-Apr-2012 Petr Machata <pmachata@redhat.com> Read from passed-in symbol table, not from .symtab
/external/ltrace/ltrace-elf.c
3840f68c3d212d17444efaf1c8557f420622fd13 06-Apr-2012 Petr Machata <pmachata@redhat.com> Don't annotate symbol name with @soname for main binary
/external/ltrace/ltrace-elf.c
8b00d5bb6a0925ece06aad0d9df0a85e8dbd7b57 06-Apr-2012 Petr Machata <pmachata@redhat.com> Drop leftover fprintf's

- convert some to debug or error calls
/external/ltrace/ltrace-elf.c
d5e85569fa3cd1705eca0bd9a4ab79cf908e5faa 05-Apr-2012 Petr Machata <pmachata@redhat.com> Support one artificial and one symbolic breakpoint at the same address

- by simply adding the symbol to the pre-existing artificial breakpoint
which should be symbol-less itself
/external/ltrace/ltrace-elf.c
157cc4d6ee93f35e3aa65edcf57f369ae4e4677c 04-Apr-2012 Petr Machata <pmachata@redhat.com> Handle symbol aliases
/external/ltrace/ltrace-elf.c
4de6b6b5ca9f7b3bb930663c43a8bf0f322e2bed 04-Apr-2012 Petr Machata <pmachata@redhat.com> Don't trace _start until we support more breakpoints per address
/external/ltrace/ltrace-elf.c
fc6ff18285b81c7c3f248be3667e8c74c2910cd8 04-Apr-2012 Petr Machata <pmachata@redhat.com> Change the way we initialize pathname and soname in ltrace-elf

- in particular, don't initialize pathname if it was already initialized,
and use that to name MAIN by the path name given on the command line,
not /proc/pid/exe
/external/ltrace/ltrace-elf.c
da3edbf059fe6c6d010b47ac50876783b4ed49ce 04-Apr-2012 Petr Machata <pmachata@redhat.com> Elementary support for -x

- this is applied across libraries. Syntax for the -x option is the same
as for -e
- this fails on symbol aliases. E.g. there are several symbols named like
strlen in libc: strlen, __GI_strlen, and perhaps others. This needs to
be taken into account, and symbol aliases shouldn't be enabled if
they were added under a different name already
/external/ltrace/ltrace-elf.c
b5f80ac8982c40f79915ce1e1cb9bf8650ac5fe7 04-Apr-2012 Petr Machata <pmachata@redhat.com> Don't create PLT symbols that don't match filtering criteria

- instead of creating them, keeping them around, and then just not enabling
breakpoints for them
/external/ltrace/ltrace-elf.c
af334ebfc46c4bd1c0efe60d6a33e14d1f3e62d1 03-Apr-2012 Petr Machata <pmachata@redhat.com> Duplicate library pathname
/external/ltrace/ltrace-elf.c
49275b03bec251bc4a0927fce2fe6d4efdac9a8f 03-Apr-2012 Petr Machata <pmachata@redhat.com> Fix blunders related to bias computations

- bias is already applied in lte.entry_addr
/external/ltrace/ltrace-elf.c
73afcb51da31c8bedcb26e2664537c84a7a3322a 03-Apr-2012 Petr Machata <pmachata@redhat.com> Fix memory errors in ltelf_read_library
/external/ltrace/ltrace-elf.c
0b55b5852b9fe2ed6cceada004db303fe6efe6ce 02-Apr-2012 Petr Machata <pmachata@redhat.com> Implement @MAIN, @/path/name -e selectors, make former default for now

- the default might become "*" in future, but keep things more or less
the same as they always were for now
/external/ltrace/ltrace-elf.c
52dbfb161efeab85bddc880966db2f7af9b9cf9a 29-Mar-2012 Petr Machata <pmachata@redhat.com> Shuffle breakpoint functions around
/external/ltrace/ltrace-elf.c
c67a6e62bc7e95f7f181a51c5b314ef10a6e231e 28-Mar-2012 Petr Machata <pmachata@redhat.com> Add missing implementations of default callback
/external/ltrace/ltrace-elf.c
5e463e029c5b6bb4eb5176ab62ee97d5399524fe 20-Feb-2012 Petr Machata <pmachata@redhat.com> If there is no soname, take filename instead
/external/ltrace/ltrace-elf.c
6d8ccb236ccb4e31c8f2fb1c8b556fb7b055a418 27-Mar-2012 Petr Machata <pmachata@redhat.com> Don't fail when reading from NODATA sections
/external/ltrace/ltrace-elf.c
1be2291ffdf3a20b0a1702f5705f82617fb91ef6 27-Mar-2012 Petr Machata <pmachata@redhat.com> Rename one argument for consistency

- it's called "ndx" in the backend
/external/ltrace/ltrace-elf.c
bb790604dcaa546737417bf7df8587b3096fa6a5 25-Mar-2012 Petr Machata <pmachata@redhat.com> Don't pass LT_TOPLT_EXEC addresses through OPD
/external/ltrace/ltrace-elf.c
4d9a91c5c677d6a6b2db21f00385bce5167373c4 24-Mar-2012 Petr Machata <pmachata@redhat.com> Add arch_elf_destroy
/external/ltrace/ltrace-elf.c
e6523e69b0230fef8dddbf628e0511a004203eb8 24-Mar-2012 Petr Machata <pmachata@redhat.com> Don't require target library as part of symbol init
/external/ltrace/ltrace-elf.c
644d669f96c0fe261fe938cecda41938e804c7d9 24-Mar-2012 Petr Machata <pmachata@redhat.com> Drop recently introduced arch_elf_dynamic_tag
/external/ltrace/ltrace-elf.c
ffd5aab0bddbbb7c650c2f5c12a48e0298f82516 24-Mar-2012 Petr Machata <pmachata@redhat.com> New ELF interface, elf_get_section_type
/external/ltrace/ltrace-elf.c
be04d6b478ecc51902f34672e4c3c1516d502c23 24-Mar-2012 Petr Machata <pmachata@redhat.com> Drop library_symbol.is_weak
/external/ltrace/ltrace-elf.c
b120fdfda45e49d082ab2aa5caadf030f50cb4ed 21-Mar-2012 Petr Machata <pmachata@redhat.com> Change interface of ltelf_read_library

- base->bias, pass proc
/external/ltrace/ltrace-elf.c
b88fd6e8e3b03e4341dae540378bc7740ec2d2e5 21-Mar-2012 Petr Machata <pmachata@redhat.com> Add arch_translate_address decl

- and drop opd2addr, which this function supersedes
/external/ltrace/ltrace-elf.c
e67635d6dcecb0f44448a5329d69fd0de74ebaba 21-Mar-2012 Petr Machata <pmachata@redhat.com> Move arch-specific bits from ltrace-elf.c to PPC and MIPS back ends
/external/ltrace/ltrace-elf.c
11639dad90d32ebf6d4eabe219a7b62e870d6205 02-Mar-2012 Petr Machata <pmachata@redhat.com> Fix bias computation
/external/ltrace/ltrace-elf.c
29add4fdf852b10ddd22cac0d1390f6d01577bc2 18-Feb-2012 Petr Machata <pmachata@redhat.com> Support bias, display library name on breakpoint

- syscall support very hacky right now
/external/ltrace/ltrace-elf.c
2b46cfc1127d390eddd9593fe5ce5399c1f68130 18-Feb-2012 Petr Machata <pmachata@redhat.com> The first crude version of tracing across libraries

- the patch will be sliced later
/external/ltrace/ltrace-elf.c
a7db59c355cef464073496221ad27519a48466f9 10-Feb-2012 Petr Machata <pmachata@redhat.com> New interface library_symbol_init
/external/ltrace/ltrace-elf.c
366c2f46d844f040458df9b7e35fc3b8527ed2d3 09-Feb-2012 Petr Machata <pmachata@redhat.com> Move process-related functions and structures to proc.h
/external/ltrace/ltrace-elf.c
990655a91b8e15836415799a44cf33a486e8e684 07-Feb-2012 Petr Machata <pmachata@redhat.com> For entry point computation, take OPD into account
/external/ltrace/ltrace-elf.c
02648a119092bb5b64918063521237f257283c72 07-Feb-2012 Petr Machata <pmachata@redhat.com> Drop most of start-up magic and use startup callback instead
/external/ltrace/ltrace-elf.c
e84fa00bdabf20f57d1d02d159aa3fcab4e549fe 07-Feb-2012 Petr Machata <pmachata@redhat.com> read_elf takes extra argument for entry point
/external/ltrace/ltrace-elf.c
144a938a5d83d7d335a54b2a76e3423605f0f562 07-Feb-2012 Petr Machata <pmachata@redhat.com> Rename a misnomer ELF_HASH_TAKES_SIGNED_CHAR

- char * is not a signed char
/external/ltrace/ltrace-elf.c
9120e5f4dbfef8f0354df0876ca0e3af3c6ac179 27-Sep-2011 Petr Machata <pmachata@redhat.com> Fix memory error in destroy_library_symbol_chain
/external/ltrace/ltrace-elf.c
534e00fcdb63af352414f5bf180ec392157b1a2b 27-Sep-2011 Petr Machata <pmachata@redhat.com> Clone breakpoint dictionary as well as library symbols

- ... and do neither if it's not a leader thread. It that case we take all
this from the leader thread.
/external/ltrace/ltrace-elf.c
02bd9eca0b439b6950ab72ba64b67181e5bf0fbd 21-Sep-2011 Petr Machata <pmachata@redhat.com> Check whether ABI is supported before we execute the binary

- this is fallout of the reorganization of open_program/execute_program.
I still think it makes better sense this wey, even though we need to
do the additional checking step now.
/external/ltrace/ltrace-elf.c
993f412c60e168e67e9b64fe5a300a2868c8d71d 15-Sep-2011 Petr Machata <pmachata@redhat.com> Fix reporting of failures in read_elf
/external/ltrace/ltrace-elf.c
1974dbccbf10a2dd8e06724d2fb4eb61fd91076a 19-Aug-2011 Petr Machata <pmachata@redhat.com> Fix serious race in attach to many-threaded process

- the gist is that tasks continue running while we attach, so more tasks
come into existence, or the ones that we didn't attach to yet disappear,
etc.
- besides, we really can't enable breakpoints before we are done attaching,
otherwise the still-running tasks risk running into them and dying of
SIGTRAP.
/external/ltrace/ltrace-elf.c
9c9c605614763666ada12ec3181e143850ff0fe6 08-Aug-2011 Petr Machata <pmachata@redhat.com> Fix exec of stripped binary
/external/ltrace/ltrace-elf.c
df8f1ace6a13202bbbeffb0b4c000fe54f4afb95 20-May-2011 Petr Machata <pmachata@redhat.com> Fix wrong memory initialization
/external/ltrace/ltrace-elf.c
3ba522fed3d34f476090da9349be96e15e0652cb 15-Dec-2010 Zachary T Welch <zwelch@codesourcery.com> Fix build for x86_64

Some ELF-related variables differ depending on the native host, so
this patch uses conditional compilation tricks to ensure everything
works out on both 32- and 64-bit hosts.

Signed-off-by: Zachary T Welch <zwelch@codesourcery.com>
/external/ltrace/ltrace-elf.c
0a43b323c0e6a653613fb66360dc65480a02ea09 09-Dec-2010 Zachary T Welch <zwelch@codesourcery.com> Allow building against libelf and elfutils

Adds configure-time check to test the function signature of elf_hash
function, which may be provided by the libelf or elfutils packages.
In the former, the 'name' argument must be an unsigned char pointer.
In the later, the same argument must be a signed char pointer.
The check sets the ELF_HASH_TAKES_SIGNED_CHAR symbol in config.h,
and this is used at the existing call site to pass the proper type.

Signed-off-by: Zachary T Welch <zwelch@codesourcery.com>
/external/ltrace/ltrace-elf.c
ba6aca21bd9e0e66dac17b1828cf6b6e7377b983 09-Dec-2010 Zachary T Welch <zwelch@codesourcery.com> Fix building with --enable-debug

Numerous warnings had snuck into the build, preventing ltrace from
building with --enable-debug (which uses -Wall, -Werror, and more).
This patch fixes the problems, mostly caused by -Wsign-compare.

Signed-off-by: Zachary T Welch <zwelch@codesourcery.com>
/external/ltrace/ltrace-elf.c
bfb26c745705a839f1ef5fc45e1b32135b9bc3e7 07-Dec-2010 Zachary T Welch <zwelch@codesourcery.com> Fix formatting specifiers for printing GElf_Addr

The use of GElf_Addr types was causing warnings when printed with %lx
format specifiers. This patch fixes the problem by using the portable
<inttypes.h> header and PRIx64 macro.

In a few places, added missing alternate form specifier ('#') to ensure
0x prefix is printed for the addresses in question.

Signed-off-by: Zachary T Welch <zwelch@codesourcery.com>
/external/ltrace/ltrace-elf.c
f0bd98b3e6753d8609a3054a61f2df6f9cdac10a 09-Nov-2010 Joe Damato <ice799@gmail.com> Add support for tracing functions in libraries loaded at runtime (via libdl).
/external/ltrace/ltrace-elf.c
7a2bdf8e5bf49d2fbb700981efd1d0a8728340ed 09-Nov-2010 Joe Damato <ice799@gmail.com> Make some functions and datastructures global. Definitely a hack.
/external/ltrace/ltrace-elf.c
e2a8f57a3c16050e12290de2a8b6015d4252c3d5 09-Nov-2010 Joe Damato <ice799@gmail.com> Extend the -x option.

Searches for the specified symbol in the loaded libraries. This will only search
the dynamic symbol table (dynsym), but can probably be extended to also search
the symbol table, if one exists.
/external/ltrace/ltrace-elf.c
3268c5aa2704162d3b4a8904d84b1a77807c1557 09-Nov-2010 Joe Damato <ice799@gmail.com> Adjust in_load_libraries to have an out parameter for a discovered symbol.
/external/ltrace/ltrace-elf.c
87f4f58320226cd20d317f488c7e6a92a3efa2dd 09-Nov-2010 Joe Damato <ice799@gmail.com> Store the address and size of the ELF object's DYNAMIC section
/external/ltrace/ltrace-elf.c
83284b9514ed05f3d36575c469a2672dfdb8b634 01-Nov-2010 Petr Machata <pmachata@redhat.com> Remove leftover debug output
/external/ltrace/ltrace-elf.c
fe1c171b8988a4e9a882b11291faf9d3fa09e944 27-Oct-2010 Petr Machata <pmachata@redhat.com> Fix tracing on PPC32 systems with glink
/external/ltrace/ltrace-elf.c
747c73d5b7d66d312a1b1a293e67f9ddf2f17d93 03-Feb-2010 Marc Kleine-Budde <mkl@pengutronix.de> rename elf.{c,h} into ltrace-elf.{c,h}

This patch renames these files to avoid a conflict with the header files
of the "libelfg0-dev" package. This avoids the "-iquote" magic.

Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
/external/ltrace/ltrace-elf.c