Cleanup after .disasm branch merge.
authorUlrich Drepper <drepper@redhat.com>
Wed, 2 Jan 2008 18:07:17 +0000 (18:07 +0000)
committerUlrich Drepper <drepper@redhat.com>
Wed, 2 Jan 2008 18:07:17 +0000 (18:07 +0000)
backends/Makefile.am
backends/x86_64_init.c
config/ChangeLog
config/elfutils.spec.in
libcpu/Makefile.am
tests/ChangeLog
tests/line2addr.c

index 28e55f6..ef21717 100644 (file)
@@ -72,7 +72,8 @@ am_libebl_sh_pic_a_OBJECTS = $(sh_SRCS:.c=.os)
 
 x86_64_SRCS = x86_64_init.c x86_64_symbol.c x86_64_corenote.c \
              x86_64_retval.c x86_64_regs.c i386_auxv.c
-cpu_x86_64 = ../libcpu/libcpu_x86_64.a
+# XXX Not yet
+# cpu_x86_64 = ../libcpu/libcpu_x86_64.a
 libebl_x86_64_pic_a_SOURCES = $(x86_64_SRCS)
 am_libebl_x86_64_pic_a_OBJECTS = $(x86_64_SRCS:.c=.os)
 
index c2d3de1..8524b77 100644 (file)
@@ -54,7 +54,8 @@ x86_64_init (elf, machine, eh, ehlen)
   HOOK (eh, return_value_location);
   HOOK (eh, register_info);
   HOOK (eh, auxv_info);
-  HOOK (eh, disasm);
+  // XXX Not yet.
+  // HOOK (eh, disasm);
 
   return MODVERSION;
 }
index e61bac2..9d75468 100644 (file)
@@ -1,3 +1,7 @@
+2008-01-02  Ulrich Drepper  <drepper@redhat.com>
+
+       * elfutils.spec.in: Changes for disasm branch merge.
+
 2007-08-08  Roland McGrath  <roland@redhat.com>
 
        * elfutils.spec.in (License): Canonicalize.
index 4f8f3cf..f48c398 100644 (file)
@@ -13,7 +13,8 @@ Requires: glibc >= 2.3.1-2
 # ExcludeArch: xxx
 
 BuildRoot: %{_tmppath}/%{name}-root
-BuildRequires: gcc >= 3.4
+BuildRequires: gcc >= 4.1.2-33
+BuildRequires: glibc >= 2.7
 BuildRequires: bison >= 1.875
 BuildRequires: flex >= 2.5.4a
 BuildRequires: bzip2
@@ -104,8 +105,6 @@ chmod +x ${RPM_BUILD_ROOT}%{_prefix}/%{_lib}/elfutils/lib*.so*
 { cd ${RPM_BUILD_ROOT}
   rm -f .%{_bindir}/eu-ld
   rm -f .%{_includedir}/elfutils/libasm.h
-  rm -f .%{_libdir}/libasm-%{version}.so
-  rm -f .%{_libdir}/libasm.so.*
   rm -f .%{_libdir}/libasm.so
   rm -f .%{_libdir}/libasm.a
 }
@@ -140,10 +139,11 @@ rm -rf ${RPM_BUILD_ROOT}
 %{_bindir}/eu-objdump
 %{_bindir}/eu-ar
 %{_bindir}/eu-unstrip
+%{_bindir}/eu-make-debug-archive
 #%{_bindir}/eu-ld
-#%{_libdir}/libasm-%{version}.so
+%{_libdir}/libasm-%{version}.so
 %{_libdir}/libdw-%{version}.so
-#%{_libdir}/libasm.so.*
+%{_libdir}/libasm.so.*
 %{_libdir}/libdw.so.*
 %dir %{_libdir}/elfutils
 %{_libdir}/elfutils/lib*.so
@@ -153,6 +153,7 @@ rm -rf ${RPM_BUILD_ROOT}
 %{_includedir}/dwarf.h
 %dir %{_includedir}/elfutils
 %{_includedir}/elfutils/elf-knowledge.h
+#%{_includedir}/elfutils/libasm.h
 %{_includedir}/elfutils/libebl.h
 %{_includedir}/elfutils/libdw.h
 %{_includedir}/elfutils/libdwfl.h
index c511408..a11f020 100644 (file)
@@ -30,8 +30,9 @@ AM_CFLAGS = -fmudflap
 else
 AM_CFLAGS =
 endif
-AM_CFLAGS += -Wall -Wshadow -Werror -Wunused -Wextra -std=gnu99 -fpic \
-            $($(*F)_CFLAGS)
+AM_CFLAGS += -Wall -Wshadow -Wunused -Wextra -std=gnu99 -fpic \
+            $($(*F)_CFLAGS) \
+            $(if $($(*F)_no_Werror),,-Werror)
 INCLUDES = -I$(srcdir) -I$(srcdir)/../lib -I$(srcdir)/../libelf \
           -I$(srcdir)/../libebl -I$(srcdir)/../libdw -I$(srcdir)/../libasm
 LEXCOMPILE = $(LEX) $(LFLAGS) $(AM_LFLAGS) -P$(<F:lex.l=)
@@ -65,6 +66,8 @@ i386.mnemonics x86_64.mnemonics: %.mnemonics: $(srcdir)/defs/%
        | sed '1,/^%%/d;/^#/d;/^[[:space:]]*$$/d;s/[^:]*:\([^[:space:]]*\).*/MNE(\1)/;s/{[^}]*}//g;/INVALID/d' \
        | sort -u > $@
 
+i386_lex_no_Werror = yes
+
 libeu = ../lib/libeu.a
 
 i386_lex_CFLAGS = -Wno-unused-label -Wno-unused-function -Wno-sign-compare
index 2c7ed91..c2a3d48 100644 (file)
@@ -1,5 +1,9 @@
 2008-01-01  Ulrich Drepper  <drepper@redhat.com>
 
+       * line2addr.c: Use %m modifier instead of %a to appease gcc.
+
+2008-01-01  Ulrich Drepper  <drepper@redhat.com>
+
        * testfile44.expect.bz2: New tests.
        * testfile44.expect.bz2: Adjust.
 
index 1180062..5630da3 100644 (file)
@@ -132,7 +132,7 @@ main (int argc, char *argv[])
     {
       struct args a = { .arg = argv[cnt] };
 
-      switch (sscanf (a.arg, "%a[^:]:%d", &a.file, &a.line))
+      switch (sscanf (a.arg, "%m[^:]:%d", &a.file, &a.line))
        {
        default:
        case 0: