platform/upstream/elfutils.git
18 years agoSpeed-up elf_begin when not using mmap.
Ulrich Drepper [Sun, 28 Aug 2005 02:46:32 +0000 (02:46 +0000)]
Speed-up elf_begin when not using mmap.

18 years agoRemove file test leaves behind.
Ulrich Drepper [Wed, 24 Aug 2005 21:40:55 +0000 (21:40 +0000)]
Remove file test leaves behind.

18 years ago2005-08-24 Roland McGrath <roland@redhat.com>
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.

18 years agomudlfap binaries should find the libebl modules.
Ulrich Drepper [Wed, 24 Aug 2005 20:55:31 +0000 (20:55 +0000)]
mudlfap binaries should find the libebl modules.

18 years agoOne more elflint version symbol test.
Ulrich Drepper [Wed, 24 Aug 2005 19:50:14 +0000 (19:50 +0000)]
One more elflint version symbol test.

18 years agoFix building with mudflap.
Ulrich Drepper [Wed, 24 Aug 2005 19:47:57 +0000 (19:47 +0000)]
Fix building with mudflap.

18 years agoNew libdwfl items
Roland McGrath [Wed, 24 Aug 2005 18:53:53 +0000 (18:53 +0000)]
New libdwfl items

18 years agoRemove private files
Roland McGrath [Wed, 24 Aug 2005 18:41:09 +0000 (18:41 +0000)]
Remove private files

18 years ago2005-08-23 Roland McGrath <roland@redhat.com>
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.

18 years ago2005-08-22 Roland McGrath <roland@redhat.com>
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.

18 years agoItems for new dwarf_func_* functions.
Roland McGrath [Thu, 18 Aug 2005 23:41:56 +0000 (23:41 +0000)]
Items for new dwarf_func_* functions.

18 years agolibdw/
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.

18 years ago2005-08-18 Roland McGrath <roland@redhat.com>
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.

18 years agoFix run-elflint-self test for static builds (mudflap or gprof).
Ulrich Drepper [Tue, 16 Aug 2005 05:12:01 +0000 (05:12 +0000)]
Fix run-elflint-self test for static builds (mudflap or gprof).

18 years agoRelax elflint a bit more.
Ulrich Drepper [Tue, 16 Aug 2005 04:23:02 +0000 (04:23 +0000)]
Relax elflint a bit more.

18 years agoCorrect build programs caused by commit from devel tree.
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.

18 years agoType in makefile change.
Ulrich Drepper [Mon, 15 Aug 2005 21:47:33 +0000 (21:47 +0000)]
Type in makefile change.

18 years agoImplement ranlib. This required one little extension to libelf.
Ulrich Drepper [Mon, 15 Aug 2005 21:36:27 +0000 (21:36 +0000)]
Implement ranlib.  This required one little extension to libelf.

18 years agoAdd missing files
Roland McGrath [Mon, 15 Aug 2005 09:53:48 +0000 (09:53 +0000)]
Add missing files

18 years agolibdw/
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.

18 years ago2005-08-14 Roland McGrath <roland@redhat.com>
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.

18 years agomerge of 0bc367fba741939c3256bd69de909e6c23067adf
Ulrich Drepper [Sat, 13 Aug 2005 22:35:15 +0000 (22:35 +0000)]
merge of 0bc367fba741939c3256bd69de909e6c23067adf
     and bc359776b21dfd2c5106da8610683718e2dd2875

18 years ago2005-08-13 Roland McGrath <roland@redhat.com>
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.

18 years ago2005-08-13 Roland McGrath <roland@redhat.com>
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.

18 years agoOptimize memory handling. Copy pread if possible. Handle EINTR.
Ulrich Drepper [Sat, 13 Aug 2005 22:29:47 +0000 (22:29 +0000)]
Optimize memory handling.  Copy pread if possible.  Handle EINTR.

18 years agoFix elf_begin for 64-bit and optimize a bit.
Ulrich Drepper [Sat, 13 Aug 2005 22:05:02 +0000 (22:05 +0000)]
Fix elf_begin for 64-bit and optimize a bit.

18 years agoMinor cleanups of last changes to elflint and libebl to support
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.

18 years agoconfig/
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 $.

18 years agoAdd missing files.
Roland McGrath [Sat, 13 Aug 2005 08:49:44 +0000 (08:49 +0000)]
Add missing files.

18 years agolibelf/
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.

18 years agolibebl/
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_.

18 years agolibebl/
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.

18 years agomerge of 0bdc7517571447282c23ea28a69147eabf574048
Roland McGrath [Thu, 11 Aug 2005 07:03:55 +0000 (07:03 +0000)]
merge of 0bdc7517571447282c23ea28a69147eabf574048
     and b0183df71043735ade5c882809fed6c7ca571b2a

18 years ago2005-08-10 Roland McGrath <roland@redhat.com>
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.

18 years agoUpdate DW_LNS_set_epilogue_begin uses to correct misspelling.
Roland McGrath [Wed, 10 Aug 2005 08:10:07 +0000 (08:10 +0000)]
Update DW_LNS_set_epilogue_begin uses to correct misspelling.

18 years agoChange addr2line to use dwfl_* functions.
Ulrich Drepper [Thu, 11 Aug 2005 05:12:05 +0000 (05:12 +0000)]
Change addr2line to use dwfl_* functions.

Minor strip cleanups.

18 years agoMinimal cleanup in strip.
Ulrich Drepper [Thu, 11 Aug 2005 04:41:58 +0000 (04:41 +0000)]
Minimal cleanup in strip.

18 years agoCorrect fallout of renaming of DW_LNS_set_epilog_begin.
Ulrich Drepper [Thu, 11 Aug 2005 04:37:52 +0000 (04:37 +0000)]
Correct fallout of renaming of DW_LNS_set_epilog_begin.

18 years ago2005-08-09 Roland McGrath <roland@redhat.com>
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.

18 years agolibdw/
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.

18 years ago2005-08-08 Roland McGrath <roland@redhat.com>
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.

18 years ago2005-08-07 Roland McGrath <roland@redhat.com>
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.

18 years ago2005-08-07 Roland McGrath <roland@redhat.com>
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".

18 years ago2005-08-07 Roland McGrath <roland@redhat.com>
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.

18 years agomerge of 647703d119f6504ae6e88716cebb7ac031005518
Ulrich Drepper [Sun, 7 Aug 2005 08:12:33 +0000 (08:12 +0000)]
merge of 647703d119f6504ae6e88716cebb7ac031005518
     and b4004520e8e502f5e04c70ec25adf09fb9331acb

18 years agoAdd support for a few missing DT_ and R_* values.
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.

18 years agoAdd omitted file.
Roland McGrath [Sun, 7 Aug 2005 07:22:06 +0000 (07:22 +0000)]
Add omitted file.

18 years agoRelax elflint a bit.
Ulrich Drepper [Sun, 7 Aug 2005 05:33:07 +0000 (05:33 +0000)]
Relax elflint a bit.
Run elflint on all programs and DSOs.

18 years agoImplement --enable-gprof option in configure script.
Ulrich Drepper [Sun, 7 Aug 2005 04:41:39 +0000 (04:41 +0000)]
Implement --enable-gprof option in configure script.

18 years agoFix xgettext call.
Ulrich Drepper [Sat, 6 Aug 2005 06:44:50 +0000 (06:44 +0000)]
Fix xgettext call.

18 years agoCHeck names in verdef auxiliary data exist.
Ulrich Drepper [Sat, 6 Aug 2005 03:53:18 +0000 (03:53 +0000)]
CHeck names in verdef auxiliary data exist.

18 years agoAvoid elf_strptr call.
Ulrich Drepper [Sat, 6 Aug 2005 03:49:53 +0000 (03:49 +0000)]
Avoid elf_strptr call.

18 years agoMany improvements in elflint, mostly symbol versioning related.
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.

18 years agoMove elf32_offscn etc in new version.
Ulrich Drepper [Thu, 4 Aug 2005 07:01:49 +0000 (07:01 +0000)]
Move elf32_offscn etc in new version.

More elflint tests.

18 years agoRemove unnecessary exports.
Ulrich Drepper [Wed, 3 Aug 2005 21:10:49 +0000 (21:10 +0000)]
Remove unnecessary exports.

18 years agoMove .mt-attrs file to top level.
Ulrich Drepper [Wed, 3 Aug 2005 05:19:11 +0000 (05:19 +0000)]
Move .mt-attrs file to top level.

18 years agoAdd beginning of objdump program.
Ulrich Drepper [Wed, 3 Aug 2005 02:24:12 +0000 (02:24 +0000)]
Add beginning of objdump program.

18 years agoAdd some patches from the disasm-branch branch.
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.

18 years agoAdd missing files.
Ulrich Drepper [Wed, 3 Aug 2005 00:54:16 +0000 (00:54 +0000)]
Add missing files.

18 years agoAdd several more elflint tests:
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.

18 years agoelflint cleanups.
Ulrich Drepper [Tue, 2 Aug 2005 16:07:42 +0000 (16:07 +0000)]
elflint cleanups.

Bump release number.

18 years ago2005-08-01 Roland McGrath <roland@redhat.com>
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.

18 years agomerge of e2a995c33fd064248b6f0ea6bac17108b3c258a9
Roland McGrath [Tue, 2 Aug 2005 00:58:33 +0000 (00:58 +0000)]
merge of e2a995c33fd064248b6f0ea6bac17108b3c258a9
     and f565e33ab1efbd438729f7ef059a5a943a5e1bd6

18 years agoRelax elfcmp to ignore section count and the position of the section
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.

18 years agomerge of 45733e3d7f980b93602da1a99115f2e2d9d30fd7
Roland McGrath [Fri, 29 Jul 2005 19:34:39 +0000 (19:34 +0000)]
merge of 45733e3d7f980b93602da1a99115f2e2d9d30fd7
     and 8e180b54dacc33ae2f5f5198a22cd4c63e0d1ea7

18 years agoAdd missing files.
Ulrich Drepper [Fri, 29 Jul 2005 19:32:17 +0000 (19:32 +0000)]
Add missing files.

18 years agoNuke loc2c prototype code, now moved to systemtap.
Roland McGrath [Fri, 29 Jul 2005 10:11:59 +0000 (10:11 +0000)]
Nuke loc2c prototype code, now moved to systemtap.

18 years agoAdd a few missing extern for function prototypes.
Ulrich Drepper [Thu, 28 Jul 2005 22:32:58 +0000 (22:32 +0000)]
Add a few missing extern for function prototypes.

18 years agoRelease formalities.
Ulrich Drepper [Thu, 28 Jul 2005 21:49:05 +0000 (21:49 +0000)]
Release formalities.

18 years agoNew release.
Ulrich Drepper [Thu, 28 Jul 2005 21:31:36 +0000 (21:31 +0000)]
New release.

18 years agoMerge all of libdwfl.a into libdw.a. libdwfl.a is not installed.
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.

18 years agoMention Roland.
Ulrich Drepper [Thu, 28 Jul 2005 19:49:26 +0000 (19:49 +0000)]
Mention Roland.

18 years agoMove misplaced ChangeLog entry.
Roland McGrath [Thu, 28 Jul 2005 09:15:47 +0000 (09:15 +0000)]
Move misplaced ChangeLog entry.

18 years agoMissed bit in last change.
Roland McGrath [Thu, 28 Jul 2005 09:12:43 +0000 (09:12 +0000)]
Missed bit in last change.

18 years agoelfutils.spec.in: Remove libdwfl.so from package.
Roland McGrath [Thu, 28 Jul 2005 09:05:31 +0000 (09:05 +0000)]
elfutils.spec.in: Remove libdwfl.so from package.

18 years agoMerge libdwfl contents into libdw.so
Roland McGrath [Thu, 28 Jul 2005 07:12:38 +0000 (07:12 +0000)]
Merge libdwfl contents into libdw.so

18 years agolibdwfl.h: Use "" for libdw.h #include.
Roland McGrath [Thu, 28 Jul 2005 07:08:01 +0000 (07:08 +0000)]
libdwfl.h: Use "" for libdw.h #include.

18 years agoelfcmp.c: Include <locale.h>.
Roland McGrath [Thu, 28 Jul 2005 07:03:04 +0000 (07:03 +0000)]
elfcmp.c: Include <locale.h>.

18 years agodisapproval of revision f77b4caa6afc865a5be602699e3139ac76ab2c22
Roland McGrath [Thu, 28 Jul 2005 06:20:53 +0000 (06:20 +0000)]
disapproval of revision f77b4caa6afc865a5be602699e3139ac76ab2c22

18 years agoRevert commit made on wrong branch.
Roland McGrath [Thu, 28 Jul 2005 01:02:55 +0000 (01:02 +0000)]
Revert commit made on wrong branch.

18 years ago2005-07-27 Roland McGrath <roland@redhat.com>
Roland McGrath [Thu, 28 Jul 2005 00:51:59 +0000 (00:51 +0000)]
2005-07-27  Roland McGrath  <roland@redhat.com>

* libdw.map: Define an empty base version and move all symbols to
version ELFUTILS_0.111; don't define ELFUTILS_1.0 at all yet.

18 years agolibdwfl.map: Add dwfl_getmodules.
Roland McGrath [Thu, 28 Jul 2005 00:44:29 +0000 (00:44 +0000)]
libdwfl.map: Add dwfl_getmodules.

18 years agoelfcmp.c: Print name and index of differing section.
Ulrich Drepper [Wed, 27 Jul 2005 10:13:23 +0000 (10:13 +0000)]
elfcmp.c: Print name and index of differing section.

18 years agoFile attributes.
Ulrich Drepper [Tue, 26 Jul 2005 06:32:21 +0000 (06:32 +0000)]
File attributes.

18 years agoAdjust for monotone.
Ulrich Drepper [Tue, 26 Jul 2005 05:00:05 +0000 (05:00 +0000)]
Adjust for monotone.