Roland McGrath [Sun, 11 Sep 2005 08:49:19 +0000 (08:49 +0000)]
2005-09-09 Roland McGrath <roland@redhat.com>
* elf_update.c (write_file): Stat the file and fchmod it after update
if its mode had S_ISUID or S_ISGID bits set.
Ulrich Drepper [Sun, 4 Sep 2005 03:09:59 +0000 (03:09 +0000)]
Minor cleanups.
Ulrich Drepper [Sat, 3 Sep 2005 21:31:27 +0000 (21:31 +0000)]
Some more message unifications.
Ulrich Drepper [Sat, 3 Sep 2005 16:42:46 +0000 (16:42 +0000)]
Cleanup of messages.
Ulrich Drepper [Sat, 3 Sep 2005 07:23:52 +0000 (07:23 +0000)]
Cleanups and little optimization.
Ulrich Drepper [Sat, 3 Sep 2005 06:05:45 +0000 (06:05 +0000)]
Unify error message.
Ulrich Drepper [Fri, 2 Sep 2005 20:29:56 +0000 (20:29 +0000)]
Make sure all files created by the tests are removed.
Ulrich Drepper [Fri, 2 Sep 2005 20:01:37 +0000 (20:01 +0000)]
Don't use mmap when _MUDFLAP is defined.
Ulrich Drepper [Fri, 2 Sep 2005 19:51:21 +0000 (19:51 +0000)]
Correctly fix it.
Ulrich Drepper [Fri, 2 Sep 2005 19:50:17 +0000 (19:50 +0000)]
Fix little problem with handling multiple files in the same run.
Ulrich Drepper [Wed, 31 Aug 2005 15:14:26 +0000 (15:14 +0000)]
Use correct exit code in test shell scripts if test cannot be performed.
Ulrich Drepper [Tue, 30 Aug 2005 17:56:53 +0000 (17:56 +0000)]
coverage.sh would bomb if there is no .gcno file.
Ulrich Drepper [Tue, 30 Aug 2005 01:22:01 +0000 (01:22 +0000)]
Add coverage analysis of test suite.
Ulrich Drepper [Mon, 29 Aug 2005 16:27:10 +0000 (16:27 +0000)]
Roland McGrath [Sat, 27 Aug 2005 21:07:16 +0000 (21:07 +0000)]
2005-08-27 Roland McGrath <roland@redhat.com>
* addrscopes.c (handle_address): Apply bias to PC addresses.
Roland McGrath [Sat, 27 Aug 2005 10:37:20 +0000 (10:37 +0000)]
Items pending 0.115
Roland McGrath [Sat, 27 Aug 2005 10:33:26 +0000 (10:33 +0000)]
libdw/
2005-08-27 Roland McGrath <roland@redhat.com>
* dwarf_getscopes.c (dwarf_getscopes): Rewritten using
__libdw_visit_scopes.
* dwarf_getscopes_die.c: New file.
* Makefile.am (libdw_a_SOURCES): Add it.
* libdw.h: Declare dwarf_getscopes_die.
* libdw.map: Bump to 0.115 and add it.
* libdw_visit_scopes.c (__libdw_visit_scopes): Pass a struct
containing a DIE and its parent pointer, instead of just Dwarf_Die.
Take two functions for both preorder and postorder visitors.
* libdwP.h: Update decl.
(struct Dwarf_Die_Chain): New type.
* dwarf_func_inline.c: Update uses.
* dwarf_diename.c (dwarf_diename): Use dwarf_attr_integrate.
Add INTDEF.
* libdwP.h: Add INTDECL.
* dwarf_func_name.c (dwarf_func_name): Use dwarf_diename.
src/
2005-08-27 Roland McGrath <roland@redhat.com>
* addr2line.c (dwarf_diename_integrate): Function removed.
(print_dwarf_function): Use plain dwarf_diename.
tests/
2005-08-27 Roland McGrath <roland@redhat.com>
* run-funcscopes.sh: New file.
* testfile25.bz2: New data file.
* Makefile.am (TESTS, EXTRA_DIST): Add them.
2005-08-26 Roland McGrath <roland@redhat.com>
* addrscopes.c (dwarf_diename_integrate): Removed.
(print_vars, handle_address): Use plain dwarf_diename.
2005-08-25 Roland McGrath <roland@redhat.com>
* funcscopes.c: New file.
* Makefile.am (noinst_PROGRAMS): Add it.
(funcscopes_LDADD): New variable.
* run-addrscopes.sh: Add another case.
* testfile24.bz2: New data file.
* Makefile.am (EXTRA_DIST): Add it.
* addrscopes.c (handle_address): Take new argument IGNORE_INLINES,
pass it to dwarf_getscopes.
(main): Pass it, true when '=' follows an address.
Roland McGrath [Fri, 26 Aug 2005 05:55:04 +0000 (05:55 +0000)]
libdwfl/
2005-08-25 Roland McGrath <roland@redhat.com>
* cu.c (__libdwfl_nextcu): Return success when dwarf_nextcu hits end.
* dwfl_nextcu.c (dwfl_nextcu): Skip modules with no dwarf info.
Roland McGrath [Thu, 25 Aug 2005 01:49:53 +0000 (01:49 +0000)]
2005-08-24 Roland McGrath <roland@redhat.com>
* dwfl_lineinfo.c (dwfl_lineinfo): Add bias, don't subtract it.
Roland McGrath [Thu, 25 Aug 2005 01:49:35 +0000 (01:49 +0000)]
2005-08-24 Roland McGrath <roland@redhat.com>
* line2addr.c (print_address): Omit () for DSOs.
Ulrich Drepper [Mon, 29 Aug 2005 15:58:38 +0000 (15:58 +0000)]
About To-Do list.
Ulrich Drepper [Mon, 29 Aug 2005 06:25:06 +0000 (06:25 +0000)]
Fix more EINTR handling problems. Add jump prediction.
Ulrich Drepper [Sun, 28 Aug 2005 17:59:03 +0000 (17:59 +0000)]
Since we link statically when using gcov don't compile the .os files
with the options.
Ulrich Drepper [Sun, 28 Aug 2005 16:18:57 +0000 (16:18 +0000)]
Implement --enable-gconv option for configure.
Ulrich Drepper [Sun, 28 Aug 2005 15:27:18 +0000 (15:27 +0000)]
More complete changelog.
Ulrich Drepper [Sun, 28 Aug 2005 08:56:34 +0000 (08:56 +0000)]
Add missing ChangeLog update.
Ulrich Drepper [Sun, 28 Aug 2005 08:53:46 +0000 (08:53 +0000)]
Fix printing of location of string in strings.
Add test for strings.
spec file update.
Ulrich Drepper [Sun, 28 Aug 2005 08:30:08 +0000 (08:30 +0000)]
Add strings program.
Some more cleanups in libelf.
Ulrich Drepper [Sun, 28 Aug 2005 02:46:32 +0000 (02:46 +0000)]
Speed-up elf_begin when not using mmap.
Ulrich Drepper [Wed, 24 Aug 2005 21:40:55 +0000 (21:40 +0000)]
Remove file test leaves behind.
Roland McGrath [Wed, 24 Aug 2005 21:12:15 +0000 (21:12 +0000)]
2005-08-24 Roland McGrath <roland@redhat.com>
* argp-std.c [_MUDFLAP] (__libdwfl_argp_mudflap_options): New function,
magic initializer to set -heur-stack-bound option.
Ulrich Drepper [Wed, 24 Aug 2005 20:55:31 +0000 (20:55 +0000)]
mudlfap binaries should find the libebl modules.
Ulrich Drepper [Wed, 24 Aug 2005 19:50:14 +0000 (19:50 +0000)]
One more elflint version symbol test.
Ulrich Drepper [Wed, 24 Aug 2005 19:47:57 +0000 (19:47 +0000)]
Fix building with mudflap.
Roland McGrath [Wed, 24 Aug 2005 18:53:53 +0000 (18:53 +0000)]
New libdwfl items
Roland McGrath [Wed, 24 Aug 2005 18:41:09 +0000 (18:41 +0000)]
Remove private files
Roland McGrath [Tue, 23 Aug 2005 08:20:21 +0000 (08:20 +0000)]
2005-08-23 Roland McGrath <roland@redhat.com>
* dwarf_attr_integrate.c (dwarf_attr_integrate): Treat
DW_AT_specification the same as DW_AT_abstract_origin.
Roland McGrath [Tue, 23 Aug 2005 05:58:42 +0000 (05:58 +0000)]
2005-08-22 Roland McGrath <roland@redhat.com>
* dwfl_module_getdwarf.c (find_symtab): Use elf_getdata instead of
elf_rawdata for symbol-related sections.
Roland McGrath [Thu, 18 Aug 2005 23:41:56 +0000 (23:41 +0000)]
Items for new dwarf_func_* functions.
Roland McGrath [Thu, 18 Aug 2005 22:01:57 +0000 (22:01 +0000)]
libdw/
2005-08-18 Roland McGrath <roland@redhat.com>
* dwarf_getscopes.c (dwarf_getscopes): Include the CU itself as
outermost scope in the results.
tests/
2005-08-18 Roland McGrath <roland@redhat.com>
* run-addrscopes.sh: New file.
* testfile22.bz2: New data file.
* Makefile.am (TESTS, EXTRA_DIST): Add them.
Roland McGrath [Thu, 18 Aug 2005 20:57:04 +0000 (20:57 +0000)]
2005-08-18 Roland McGrath <roland@redhat.com>
* addrscopes.c: New file.
* Makefile.am (noinst_PROGRAMS): Add it.
(addrscopes_LDADD): New variable.
Ulrich Drepper [Tue, 16 Aug 2005 05:12:01 +0000 (05:12 +0000)]
Fix run-elflint-self test for static builds (mudflap or gprof).
Ulrich Drepper [Tue, 16 Aug 2005 04:23:02 +0000 (04:23 +0000)]
Relax elflint a bit more.
Ulrich Drepper [Mon, 15 Aug 2005 22:19:26 +0000 (22:19 +0000)]
Correct build programs caused by commit from devel tree.
elf_begin robustification.
Ulrich Drepper [Mon, 15 Aug 2005 21:47:33 +0000 (21:47 +0000)]
Type in makefile change.
Ulrich Drepper [Mon, 15 Aug 2005 21:36:27 +0000 (21:36 +0000)]
Implement ranlib. This required one little extension to libelf.
Roland McGrath [Mon, 15 Aug 2005 09:53:48 +0000 (09:53 +0000)]
Add missing files
Roland McGrath [Mon, 15 Aug 2005 09:53:04 +0000 (09:53 +0000)]
libdw/
2005-08-15 Roland McGrath <roland@redhat.com>
* dwarf_func_inline.c: New file.
* Makefile.am (libdw_a_SOURCES): Add it.
* libdw.h: Declare dwarf_func_inline, dwarf_func_inline_instances.
* libdw.map: Add them.
* dwarf_func_die.c: New file.
* Makefile.am (libdw_a_SOURCES): Add it.
* libdw.h: Declare dwarf_func_die.
* libdw.map: Add it. Bump version to ELFUTILS_0.114.
tests/
2005-08-15 Roland McGrath <roland@redhat.com>
* dwflmodtest.c (print_instance, print_inline): New functions.
(print_func): Call print_inline.
(options, parse_opt): Grok -i/--inlines.
Roland McGrath [Mon, 15 Aug 2005 08:01:25 +0000 (08:01 +0000)]
2005-08-14 Roland McGrath <roland@redhat.com>
* elflint.c (check_sections): Use ebl_section_type_name and allow any
sh_type it recognizes.
* elflint.c (check_sections): Print unknown flags in hex, don't
truncate high bits. Print section number and name for unknown type.
Ulrich Drepper [Sat, 13 Aug 2005 22:35:15 +0000 (22:35 +0000)]
Roland McGrath [Sat, 13 Aug 2005 20:56:52 +0000 (20:56 +0000)]
2005-08-13 Roland McGrath <roland@redhat.com>
* elflint.c (check_program_header): Use ebl_segment_type_name and
allow any p_type it recognizes. Include p_type value in error
message for unknown type.
Roland McGrath [Sat, 13 Aug 2005 20:56:07 +0000 (20:56 +0000)]
2005-08-13 Roland McGrath <roland@redhat.com>
* ia64_symbol.c (ia64_machine_flag_check): New function.
* libebl_ia64.h: Declare it.
* ia64_init.c (ia64_init): Use it.
Ulrich Drepper [Sat, 13 Aug 2005 22:29:47 +0000 (22:29 +0000)]
Optimize memory handling. Copy pread if possible. Handle EINTR.
Ulrich Drepper [Sat, 13 Aug 2005 22:05:02 +0000 (22:05 +0000)]
Fix elf_begin for 64-bit and optimize a bit.
Ulrich Drepper [Sat, 13 Aug 2005 17:50:47 +0000 (17:50 +0000)]
Minor cleanups of last changes to elflint and libebl to support
clean ppc/ppc64 handling.
Roland McGrath [Sat, 13 Aug 2005 09:19:34 +0000 (09:19 +0000)]
config/
2005-08-13 Roland McGrath <roland@redhat.com>
* Makefile.am ($(srcdir)/elfutils.spec.in): Add missing $.
Roland McGrath [Sat, 13 Aug 2005 08:49:44 +0000 (08:49 +0000)]
Add missing files.
Roland McGrath [Sat, 13 Aug 2005 03:37:49 +0000 (03:37 +0000)]
libelf/
2005-08-12 Roland McGrath <roland@redhat.com>
* elf32_offscn.c: Do not match empty sections at OFFSET unless
there are no nonempty sections at that offset.
Roland McGrath [Sat, 13 Aug 2005 03:26:06 +0000 (03:26 +0000)]
libebl/
2005-08-12 Roland McGrath <roland@redhat.com>
* ppc_symbol.c (find_dyn_got): New function, broken out of ...
(ppc_bss_plt_p): ... here. Call that.
(ppc_check_special_symbol): Use find_dyn_got to fetch value to check
against _GLOBAL_OFFSET_TABLE_.
Roland McGrath [Sat, 13 Aug 2005 01:59:10 +0000 (01:59 +0000)]
libebl/
2005-08-12 Roland McGrath <roland@redhat.com>
* libeblP.h (struct ebl): Add bss_plt_p hook.
* eblopenbackend.c (default_bss_plt_p): New function.
(fill_defaults): Use it.
* eblbsspltp.c: New file.
* Makefile.am (gen_SOURCES): Add it.
* libebl.h: Declare ebl_bss_plt_p.
* ppc_symbol.c (ppc_bss_plt_p): New function.
* libebl_ppc.h: Declare it.
* ppc_init.c (ppc_init): Use it.
* ppc64_symbol.c (ppc64_bss_plt_p): New function.
* libebl_ppc64.h: Declare it.
* ppc64_init.c (ppc64_init): Use it.
* ebl_check_special_symbol.c: New file.
* Makefile.am (gen_SOURCES): Add it.
* libebl.h: Declare ebl_check_special_symbol.
* libeblP.h (struct ebl): Add check_special_symbol hook.
* eblopenbackend.c (default_check_special_symbol): New function.
(fill_defaults): Use it.
* ppc_symbol.c (ppc_check_special_symbol): New function.
* libebl_ppc.h: Add prototype.
* ppc_init.c (ppc_init): Use it.
* ppc64_symbol.c (ppc64_check_special_symbol): New function.
* libebl_ppc64.h: Add prototype.
* ppc64_init.c (ppc64_init): Use it.
src/
2005-08-12 Roland McGrath <roland@redhat.com>
* elflint.c (check_symtab): Check that _GLOBAL_OFFSET_TABLE_ st_shndx
refers to the right section if it's not SHN_ABS.
Let ebl_check_special_symbol override _G_O_T_ value and size checks.
* elflint.c (check_sections): Don't complain about a non-NOBITS
section taking no segment space, if it's sh_size is 0.
* elflint.c (check_sections): Use ebl_bss_plt_p to see if .plt should
be PROGBITS or NOBITS.
* elflint.c (check_symtab): Use ebl_check_special_symbol to override
standard st_value and st_size checks.
Roland McGrath [Thu, 11 Aug 2005 07:03:55 +0000 (07:03 +0000)]
Roland McGrath [Wed, 10 Aug 2005 22:13:57 +0000 (22:13 +0000)]
2005-08-10 Roland McGrath <roland@redhat.com>
* relocate.c (__libdwfl_relocate): Take argument DEBUGFILE,
use it instead of MOD->debug.file.
* libdwflP.h: Update decl.
* dwfl_module_getdwarf.c (load_dw): Update caller.
Fixes bug #165598.
Roland McGrath [Wed, 10 Aug 2005 08:10:07 +0000 (08:10 +0000)]
Update DW_LNS_set_epilogue_begin uses to correct misspelling.
Ulrich Drepper [Thu, 11 Aug 2005 05:12:05 +0000 (05:12 +0000)]
Change addr2line to use dwfl_* functions.
Minor strip cleanups.
Ulrich Drepper [Thu, 11 Aug 2005 04:41:58 +0000 (04:41 +0000)]
Minimal cleanup in strip.
Ulrich Drepper [Thu, 11 Aug 2005 04:37:52 +0000 (04:37 +0000)]
Correct fallout of renaming of DW_LNS_set_epilog_begin.
Roland McGrath [Tue, 9 Aug 2005 10:36:01 +0000 (10:36 +0000)]
2005-08-09 Roland McGrath <roland@redhat.com>
* dwarf.h (DW_LNS_set_epilog_begin): Renamed DW_LNS_set_epilogue_begin.
Roland McGrath [Tue, 9 Aug 2005 10:31:08 +0000 (10:31 +0000)]
libdw/
2005-08-09 Roland McGrath <roland@redhat.com>
* dwarf_end.c: Add INTDEF.
* dwarf_error.c (dwarf_errmsg): Likewise.
* libdwP.h (dwarf_end, dwarf_errmsg): Add INTDECLs.
libdwfl/
2005-08-09 Roland McGrath <roland@redhat.com>
* libdwflP.h: Include ../libdw/libdwP.h for its INTDECLs.
* cu.c: Use INTUSE on dwarf_* calls.
* dwfl_error.c: Likewise.
* dwfl_module.c: Likewise.
* dwfl_module_getdwarf.c: Likewise.
* dwfl_module_getsrc_file.c: Likewise.
* lines.c: Likewise.
Roland McGrath [Tue, 9 Aug 2005 04:58:05 +0000 (04:58 +0000)]
2005-08-08 Roland McGrath <roland@redhat.com>
* strip.c (options, parse_opt): Grok -R .comment for compatibility
with binutils strip. Likewise -d, -S, as aliases for -g.
Likewise ignore -s/--strip-all.
Roland McGrath [Mon, 8 Aug 2005 03:49:35 +0000 (03:49 +0000)]
2005-08-07 Roland McGrath <roland@redhat.com>
* strip.c (process_file): Open read-only when using a different output
file.
Roland McGrath [Sun, 7 Aug 2005 21:42:56 +0000 (21:42 +0000)]
2005-08-07 Roland McGrath <roland@redhat.com>
* linux-kernel-modules.c (dwfl_linux_kernel_find_elf): When module
names contain '_' or '-', look for files named either "foo-bar.ko"
or "foo_bar.ko".
Roland McGrath [Sun, 7 Aug 2005 21:42:07 +0000 (21:42 +0000)]
2005-08-07 Roland McGrath <roland@redhat.com>
* dwflmodtest.c: Print function details only if -f flag is given.
Ulrich Drepper [Sun, 7 Aug 2005 08:12:33 +0000 (08:12 +0000)]
Ulrich Drepper [Sun, 7 Aug 2005 08:12:22 +0000 (08:12 +0000)]
Add support for a few missing DT_ and R_* values.
Import new elf.h.
Roland McGrath [Sun, 7 Aug 2005 07:22:06 +0000 (07:22 +0000)]
Add omitted file.
Ulrich Drepper [Sun, 7 Aug 2005 05:33:07 +0000 (05:33 +0000)]
Relax elflint a bit.
Run elflint on all programs and DSOs.
Ulrich Drepper [Sun, 7 Aug 2005 04:41:39 +0000 (04:41 +0000)]
Implement --enable-gprof option in configure script.
Ulrich Drepper [Sat, 6 Aug 2005 06:44:50 +0000 (06:44 +0000)]
Fix xgettext call.
Ulrich Drepper [Sat, 6 Aug 2005 03:53:18 +0000 (03:53 +0000)]
CHeck names in verdef auxiliary data exist.
Ulrich Drepper [Sat, 6 Aug 2005 03:49:53 +0000 (03:49 +0000)]
Avoid elf_strptr call.
Ulrich Drepper [Sat, 6 Aug 2005 01:37:23 +0000 (01:37 +0000)]
Many improvements in elflint, mostly symbol versioning related.
Cosmetic changes in readelf.
Ulrich Drepper [Thu, 4 Aug 2005 07:01:49 +0000 (07:01 +0000)]
Move elf32_offscn etc in new version.
More elflint tests.
Ulrich Drepper [Wed, 3 Aug 2005 21:10:49 +0000 (21:10 +0000)]
Remove unnecessary exports.
Ulrich Drepper [Wed, 3 Aug 2005 05:19:11 +0000 (05:19 +0000)]
Move .mt-attrs file to top level.
Ulrich Drepper [Wed, 3 Aug 2005 02:24:12 +0000 (02:24 +0000)]
Add beginning of objdump program.
Ulrich Drepper [Wed, 3 Aug 2005 02:05:39 +0000 (02:05 +0000)]
Add some patches from the disasm-branch branch.
The asm_begin interface changed.
In text mode output is really written to the file.
Ulrich Drepper [Wed, 3 Aug 2005 00:54:16 +0000 (00:54 +0000)]
Add missing files.
Ulrich Drepper [Wed, 3 Aug 2005 00:02:56 +0000 (00:02 +0000)]
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.
Ulrich Drepper [Tue, 2 Aug 2005 16:07:42 +0000 (16:07 +0000)]
elflint cleanups.
Bump release number.
Roland McGrath [Tue, 2 Aug 2005 01:24:01 +0000 (01:24 +0000)]
2005-08-01 Roland McGrath <roland@redhat.com>
* dwarf_getaranges.c (dwarf_getaranges): Check for bogus offset.
* dwarf_getabbrev.c (__libdw_getabbrev): Likewise.
Roland McGrath [Tue, 2 Aug 2005 00:58:33 +0000 (00:58 +0000)]
Ulrich Drepper [Mon, 1 Aug 2005 07:18:47 +0000 (07:18 +0000)]
Relax elfcmp to ignore section count and the position of the section
name string table position.
Roland McGrath [Fri, 29 Jul 2005 19:34:39 +0000 (19:34 +0000)]
Ulrich Drepper [Fri, 29 Jul 2005 19:32:17 +0000 (19:32 +0000)]
Add missing files.
Roland McGrath [Fri, 29 Jul 2005 10:11:59 +0000 (10:11 +0000)]
Nuke loc2c prototype code, now moved to systemtap.
Ulrich Drepper [Thu, 28 Jul 2005 22:32:58 +0000 (22:32 +0000)]
Add a few missing extern for function prototypes.
Ulrich Drepper [Thu, 28 Jul 2005 21:49:05 +0000 (21:49 +0000)]
Release formalities.
Ulrich Drepper [Thu, 28 Jul 2005 21:31:36 +0000 (21:31 +0000)]
New release.
Ulrich Drepper [Thu, 28 Jul 2005 21:29:22 +0000 (21:29 +0000)]
Merge all of libdwfl.a into libdw.a. libdwfl.a is not installed.
Fix building of libdwfl. libdwfl.a must not depend on libwu.a
since the latter is not available after installation. Add copies
of the crc32 files to libdwfl.
Ulrich Drepper [Thu, 28 Jul 2005 19:49:26 +0000 (19:49 +0000)]
Mention Roland.