4 * Makefile.am (all_SUBDIRS): Add libdwfl.
5 * configure.ac: Write libdwfl/Makefile.
7 +2005-05-31 Roland McGrath <roland@redhat.com>
9 + * configure.ac (WEXTRA): Check for -Wextra and set this substitution.
11 + * configure.ac: Check for struct stat st_?tim members.
12 + * src/strip.c (process_file): Use st_?time if st_?tim are not there.
14 + * configure.ac: Check for futimes function.
15 + * src/strip.c (handle_elf) [! HAVE_FUTIMES]: Use utimes instead.
16 + (handle_ar) [! HAVE_FUTIMES]: Likewise.
18 2005-05-19 Roland McGrath <roland@redhat.com>
20 * configure.ac [AH_BOTTOM] (INTDECL, _INTDECL): New macros.
21 --- elfutils/config/Makefile.in
22 +++ elfutils/config/Makefile.in
23 @@ -113,6 +113,7 @@ SHELL = @SHELL@
31 --- elfutils/configure
32 +++ elfutils/configure
33 @@ -276,7 +276,7 @@ PACKAGE_STRING='Red Hat elfutils 0.115'
34 PACKAGE_BUGREPORT='http://bugzilla.redhat.com/bugzilla/'
36 ac_unique_file="libelf/libelf.h"
37 -ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MODVERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT LOCALEDIR DATADIRNAME NATIVE_LD_TRUE NATIVE_LD_FALSE base_cpu MUDFLAP_TRUE MUDFLAP_FALSE GPROF_TRUE GPROF_FALSE GCOV_TRUE GCOV_FALSE BUILD_STATIC_TRUE BUILD_STATIC_FALSE LIBEBL_SUBDIR USE_NLS MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE LIBOBJS LTLIBOBJS'
38 +ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MODVERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE RANLIB ac_ct_RANLIB YACC LEX LEXLIB LEX_OUTPUT_ROOT WEXTRA LOCALEDIR DATADIRNAME NATIVE_LD_TRUE NATIVE_LD_FALSE base_cpu MUDFLAP_TRUE MUDFLAP_FALSE GPROF_TRUE GPROF_FALSE GCOV_TRUE GCOV_FALSE BUILD_STATIC_TRUE BUILD_STATIC_FALSE LIBEBL_SUBDIR USE_NLS MKINSTALLDIRS MSGFMT GMSGFMT XGETTEXT MSGMERGE LIBOBJS LTLIBOBJS'
41 # Initialize some variables set by options.
42 @@ -3384,6 +3384,58 @@ echo "$as_me: error: gcc with C99 suppor
46 +echo "$as_me:$LINENO: checking for -Wextra option to $CC" >&5
47 +echo $ECHO_N "checking for -Wextra option to $CC... $ECHO_C" >&6
48 +if test "${ac_cv_cc_wextra+set}" = set; then
49 + echo $ECHO_N "(cached) $ECHO_C" >&6
51 + old_CFLAGS="$CFLAGS"
52 +CFLAGS="$CFLAGS -Wextra"
53 +cat >conftest.$ac_ext <<_ACEOF
56 +rm -f conftest.$ac_objext
57 +if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
58 + (eval $ac_compile) 2>conftest.er1
60 + grep -v '^ *+' conftest.er1 >conftest.err
62 + cat conftest.err >&5
63 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
64 + (exit $ac_status); } &&
65 + { ac_try='test -z "$ac_c_werror_flag"
66 + || test ! -s conftest.err'
67 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
70 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
71 + (exit $ac_status); }; } &&
72 + { ac_try='test -s conftest.$ac_objext'
73 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
76 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
77 + (exit $ac_status); }; }; then
80 + echo "$as_me: failed program was:" >&5
81 +sed 's/^/| /' conftest.$ac_ext >&5
85 +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
88 +echo "$as_me:$LINENO: result: $ac_cv_cc_wextra" >&5
89 +echo "${ECHO_T}$ac_cv_cc_wextra" >&6
91 +if test "x$ac_cv_cc_wextra" = xyes; then
100 cat >>confdefs.h <<_ACEOF
101 @@ -4925,6 +4977,7 @@ s,@YACC@,$YACC,;t t
103 s,@LEXLIB@,$LEXLIB,;t t
104 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
105 +s,@WEXTRA@,$WEXTRA,;t t
106 s,@LOCALEDIR@,$LOCALEDIR,;t t
107 s,@DATADIRNAME@,$DATADIRNAME,;t t
108 s,@NATIVE_LD_TRUE@,$NATIVE_LD_TRUE,;t t
109 --- elfutils/configure.ac
110 +++ elfutils/configure.ac
111 @@ -69,6 +69,15 @@ CFLAGS="$old_CFLAGS"])
112 AS_IF([test "x$ac_cv_c99" != xyes],
113 AC_MSG_ERROR([gcc with C99 support required]))
115 +AC_CACHE_CHECK([for -Wextra option to $CC], ac_cv_cc_wextra, [dnl
116 +old_CFLAGS="$CFLAGS"
117 +CFLAGS="$CFLAGS -Wextra"
118 +AC_COMPILE_IFELSE([void foo (void) { }],
119 + ac_cv_cc_wextra=yes, ac_cv_cc_wextra=no)
120 +CFLAGS="$old_CFLAGS"])
122 +AS_IF([test "x$ac_cv_cc_wextra" = xyes], [WEXTRA=-Wextra], [WEXTRA=-W])
126 AC_DEFINE_UNQUOTED(LOCALEDIR, "$LOCALEDIR")
127 --- elfutils/lib/ChangeLog
128 +++ elfutils/lib/ChangeLog
130 * Makefile.am (libeu_a_SOURCES): Add it.
131 * system.h: Declare crc32_file.
133 +2005-02-07 Roland McGrath <roland@redhat.com>
135 + * Makefile.am (WEXTRA): New variable, substituted by configure.
136 + (AM_CFLAGS): Use it in place of -Wextra.
138 2005-04-30 Ulrich Drepper <drepper@redhat.com>
140 * Makefile.am: Use -ffunction-sections for xmalloc.c.
141 --- elfutils/lib/Makefile.am
142 +++ elfutils/lib/Makefile.am
144 ## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
146 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H
149 AM_CFLAGS = -fmudflap
153 -AM_CFLAGS += -fpic -Wall -Wshadow -Werror -Wunused -Wextra $($(*F)_CFLAGS)
154 +AM_CFLAGS += -fpic -Wall -Wshadow -Werror -Wunused $(WEXTRA) $($(*F)_CFLAGS)
155 INCLUDES = -I$(srcdir)/../libelf -I..
157 noinst_LIBRARIES = libeu.a
158 --- elfutils/lib/Makefile.in
159 +++ elfutils/lib/Makefile.in
160 @@ -135,6 +135,7 @@ SHELL = @SHELL@
165 XGETTEXT = @XGETTEXT@
167 ac_ct_CC = @ac_ct_CC@
168 @@ -177,9 +178,9 @@ sharedstatedir = @sharedstatedir@
169 sysconfdir = @sysconfdir@
170 target_alias = @target_alias@
171 @MUDFLAP_FALSE@AM_CFLAGS = -fpic -Wall -Wshadow -Werror -Wunused \
172 -@MUDFLAP_FALSE@ -Wextra $($(*F)_CFLAGS)
173 +@MUDFLAP_FALSE@ $(WEXTRA) $($(*F)_CFLAGS)
174 @MUDFLAP_TRUE@AM_CFLAGS = -fmudflap -fpic -Wall -Wshadow -Werror \
175 -@MUDFLAP_TRUE@ -Wunused -Wextra $($(*F)_CFLAGS)
176 +@MUDFLAP_TRUE@ -Wunused $(WEXTRA) $($(*F)_CFLAGS)
177 INCLUDES = -I$(srcdir)/../libelf -I..
178 noinst_LIBRARIES = libeu.a
179 libeu_a_SOURCES = xstrdup.c xstrndup.c xmalloc.c next_prime.c \
180 --- elfutils/libasm/ChangeLog
181 +++ elfutils/libasm/ChangeLog
183 * asm_error.c: Add new error ASM_E_IOERROR.
184 * libasmP.h: Add ASM_E_IOERROR definition.
186 +2005-05-31 Roland McGrath <roland@redhat.com>
188 + * Makefile.am (WEXTRA): New variable, substituted by configure.
189 + (AM_CFLAGS): Use it in place of -Wextra.
191 2005-02-15 Ulrich Drepper <drepper@redhat.com>
193 * Makefile.am (AM_CFLAGS): Add -Wunused -Wextra -Wformat=2.
194 --- elfutils/libasm/Makefile.am
195 +++ elfutils/libasm/Makefile.am
197 ## 3001 King Ranch Road, Ukiah, CA 95482.
199 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H
202 AM_CFLAGS = -fmudflap
206 -AM_CFLAGS += -std=gnu99 -Wall -Wshadow -Werror -Wunused -Wextra -Wformat=2
207 +AM_CFLAGS += -std=gnu99 -Wall -Wshadow -Werror -Wunused $(WEXTRA) -Wformat=2
208 INCLUDES = -I. -I$(srcdir) -I.. -I$(top_srcdir)/libelf -I$(top_srcdir)/libebl \
210 GCC_INCLUDE = -I$(shell $(CC) -print-file-name=include)
211 --- elfutils/libasm/Makefile.in
212 +++ elfutils/libasm/Makefile.in
213 @@ -167,6 +167,7 @@ SHELL = @SHELL@
218 XGETTEXT = @XGETTEXT@
220 ac_ct_CC = @ac_ct_CC@
221 @@ -209,9 +210,9 @@ sharedstatedir = @sharedstatedir@
222 sysconfdir = @sysconfdir@
223 target_alias = @target_alias@
224 @MUDFLAP_FALSE@AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Werror -Wunused \
225 -@MUDFLAP_FALSE@ -Wextra -Wformat=2
226 +@MUDFLAP_FALSE@ $(WEXTRA) -Wformat=2
227 @MUDFLAP_TRUE@AM_CFLAGS = -fmudflap -std=gnu99 -Wall -Wshadow -Werror \
228 -@MUDFLAP_TRUE@ -Wunused -Wextra -Wformat=2
229 +@MUDFLAP_TRUE@ -Wunused $(WEXTRA) -Wformat=2
230 INCLUDES = -I. -I$(srcdir) -I.. -I$(top_srcdir)/libelf -I$(top_srcdir)/libebl \
233 --- elfutils/libcpu/ChangeLog
234 +++ elfutils/libcpu/ChangeLog
236 +2005-04-04 Roland McGrath <roland@redhat.com>
238 + * Makefile.am (WEXTRA): New variable, substituted by configure.
239 + (AM_CFLAGS): Use it instead of -Wextra.
241 2005-02-15 Ulrich Drepper <drepper@redhat.com>
243 * Makefile (AM_CFLAGS): Add -Wunused -Wextra -Wformat=2.
244 --- elfutils/libcpu/Makefile.am
245 +++ elfutils/libcpu/Makefile.am
247 ## 3001 King Ranch Road, Ukiah, CA 95482.
249 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H
250 -AM_CFLAGS = -Wall -Wshadow -Werror -Wextra -Wformat=2 -Wunused
252 +AM_CFLAGS = -Wall -Wshadow -Werror $(WEXTRA) -Wformat=2 -Wunused
253 INCLUDES = -I$(srcdir)
255 noinst_LIBRARIES = libcpu_i386.a
256 --- elfutils/libcpu/Makefile.in
257 +++ elfutils/libcpu/Makefile.in
258 @@ -130,6 +130,7 @@ SHELL = @SHELL@
263 XGETTEXT = @XGETTEXT@
265 ac_ct_CC = @ac_ct_CC@
266 @@ -171,7 +172,7 @@ sbindir = @sbindir@
267 sharedstatedir = @sharedstatedir@
268 sysconfdir = @sysconfdir@
269 target_alias = @target_alias@
270 -AM_CFLAGS = -Wall -Wshadow -Werror -Wextra -Wformat=2 -Wunused
271 +AM_CFLAGS = -Wall -Wshadow -Werror $(WEXTRA) -Wformat=2 -Wunused
272 INCLUDES = -I$(srcdir)
273 noinst_LIBRARIES = libcpu_i386.a
274 libcpu_i386_a_SOURCES = i386_dis.c
275 --- elfutils/libdw/ChangeLog
276 +++ elfutils/libdw/ChangeLog
279 2005-05-31 Roland McGrath <roland@redhat.com>
281 + * Makefile.am (WEXTRA): New variable, substituted by configure.
282 + (AM_CFLAGS): Use it in place of -Wextra.
284 +2005-05-31 Roland McGrath <roland@redhat.com>
286 * dwarf_formref_die.c (dwarf_formref_die): Add CU header offset to
289 --- elfutils/libdw/Makefile.am
290 +++ elfutils/libdw/Makefile.am
292 ## 3001 King Ranch Road, Ukiah, CA 95482.
294 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DIS_LIBDW
297 AM_CFLAGS = -fmudflap
301 -AM_CFLAGS += -Wall -Werror -Wshadow -Wunused -Wformat=2 -Wextra -std=gnu99
302 +AM_CFLAGS += -Wall -Werror -Wshadow -Wunused -Wformat=2 $(WEXTRA) -std=gnu99
303 INCLUDES = -I. -I$(srcdir) -I$(srcdir)/../libelf -I.. -I$(srcdir)/../lib
306 --- elfutils/libdw/Makefile.in
307 +++ elfutils/libdw/Makefile.in
308 @@ -207,6 +207,7 @@ SHELL = @SHELL@
313 XGETTEXT = @XGETTEXT@
315 ac_ct_CC = @ac_ct_CC@
316 @@ -249,9 +250,9 @@ sharedstatedir = @sharedstatedir@
317 sysconfdir = @sysconfdir@
318 target_alias = @target_alias@
319 @MUDFLAP_FALSE@AM_CFLAGS = -Wall -Werror -Wshadow -Wunused -Wformat=2 \
320 -@MUDFLAP_FALSE@ -Wextra -std=gnu99
321 +@MUDFLAP_FALSE@ $(WEXTRA) -std=gnu99
322 @MUDFLAP_TRUE@AM_CFLAGS = -fmudflap -Wall -Werror -Wshadow -Wunused \
323 -@MUDFLAP_TRUE@ -Wformat=2 -Wextra -std=gnu99
324 +@MUDFLAP_TRUE@ -Wformat=2 $(WEXTRA) -std=gnu99
325 INCLUDES = -I. -I$(srcdir) -I$(srcdir)/../libelf -I.. -I$(srcdir)/../lib
326 COMPILE.os = $(filter-out -fprofile-arcs, $(filter-out -ftest-coverage, \
328 --- elfutils/libdwfl/ChangeLog
329 +++ elfutils/libdwfl/ChangeLog
332 2005-07-21 Roland McGrath <roland@redhat.com>
334 + * Makefile.am (WEXTRA): New variable, substituted by configure.
335 + (AM_CFLAGS): Use it in place of -Wextra.
337 +2005-07-21 Roland McGrath <roland@redhat.com>
339 * Makefile.am (noinst_HEADERS): Add loc2c.c.
341 * test2.c (main): Check sscanf result to quiet warning.
342 --- elfutils/libdwfl/Makefile.am
343 +++ elfutils/libdwfl/Makefile.am
345 ## 3001 King Ranch Road, Ukiah, CA 95482.
347 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H
350 AM_CFLAGS = -fmudflap
354 -AM_CFLAGS += -Wall -Werror -Wshadow -Wunused -Wformat=2 -Wextra -std=gnu99
355 +AM_CFLAGS += -Wall -Werror -Wshadow -Wunused -Wformat=2 $(WEXTRA) -std=gnu99
356 INCLUDES = -I. -I$(srcdir) -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
357 -I$(srcdir)/../libdw -I.. -I$(srcdir)/../lib
359 --- elfutils/libdwfl/Makefile.in
360 +++ elfutils/libdwfl/Makefile.in
361 @@ -163,6 +163,7 @@ SHELL = @SHELL@
366 XGETTEXT = @XGETTEXT@
368 ac_ct_CC = @ac_ct_CC@
369 @@ -205,9 +206,9 @@ sharedstatedir = @sharedstatedir@
370 sysconfdir = @sysconfdir@
371 target_alias = @target_alias@
372 @MUDFLAP_FALSE@AM_CFLAGS = -Wall -Werror -Wshadow -Wunused -Wformat=2 \
373 -@MUDFLAP_FALSE@ -Wextra -std=gnu99
374 +@MUDFLAP_FALSE@ $(WEXTRA) -std=gnu99
375 @MUDFLAP_TRUE@AM_CFLAGS = -fmudflap -Wall -Werror -Wshadow -Wunused \
376 -@MUDFLAP_TRUE@ -Wformat=2 -Wextra -std=gnu99
377 +@MUDFLAP_TRUE@ -Wformat=2 $(WEXTRA) -std=gnu99
378 INCLUDES = -I. -I$(srcdir) -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
379 -I$(srcdir)/../libdw -I.. -I$(srcdir)/../lib
381 --- elfutils/libebl/ChangeLog
382 +++ elfutils/libebl/ChangeLog
384 * Makefile.am (libebl_*_so_SOURCES): Set to $(*_SRCS) so dependency
385 tracking works right.
387 +2005-05-31 Roland McGrath <roland@redhat.com>
389 + * Makefile.am (WEXTRA): New variable, substituted by configure.
390 + (AM_CFLAGS): Use it in place of -Wextra.
392 2005-05-21 Ulrich Drepper <drepper@redhat.com>
394 * libebl_x86_64.map: Add x86_64_core_note.
395 --- elfutils/libebl/Makefile.am
396 +++ elfutils/libebl/Makefile.am
398 ## 3001 King Ranch Road, Ukiah, CA 95482.
400 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DOBJDIR=\"$(shell pwd)\"
403 AM_CFLAGS = -fmudflap
407 -AM_CFLAGS += -fpic -Wall -Wshadow -Werror -Wunused -Wextra -Wformat=2 \
408 +AM_CFLAGS += -fpic -Wall -Wshadow -Werror -Wunused $(WEXTRA) -Wformat=2 \
411 INCLUDES = -I$(srcdir) -I$(top_srcdir)/libelf -I$(top_srcdir)/lib -I..
412 --- elfutils/libebl/Makefile.in
413 +++ elfutils/libebl/Makefile.in
414 @@ -258,6 +258,7 @@ SHELL = @SHELL@
419 XGETTEXT = @XGETTEXT@
421 ac_ct_CC = @ac_ct_CC@
422 @@ -300,9 +301,9 @@ sharedstatedir = @sharedstatedir@
423 sysconfdir = @sysconfdir@
424 target_alias = @target_alias@
425 @MUDFLAP_FALSE@AM_CFLAGS = -fpic -Wall -Wshadow -Werror -Wunused \
426 -@MUDFLAP_FALSE@ -Wextra -Wformat=2 -std=gnu99
427 +@MUDFLAP_FALSE@ $(WEXTRA) -Wformat=2 -std=gnu99
428 @MUDFLAP_TRUE@AM_CFLAGS = -fmudflap -fpic -Wall -Wshadow -Werror \
429 -@MUDFLAP_TRUE@ -Wunused -Wextra -Wformat=2 -std=gnu99
430 +@MUDFLAP_TRUE@ -Wunused $(WEXTRA) -Wformat=2 -std=gnu99
431 INCLUDES = -I$(srcdir) -I$(top_srcdir)/libelf -I$(top_srcdir)/lib -I..
432 lib_LIBRARIES = libebl.a
433 modules = i386 sh x86_64 ia64 alpha arm sparc ppc ppc64
434 --- elfutils/libelf/ChangeLog
435 +++ elfutils/libelf/ChangeLog
437 If section content hasn't been read yet, do it before looking for the
438 block size. If no section data present, infer size of section header.
440 +2005-05-31 Roland McGrath <roland@redhat.com>
442 + * Makefile.am (WEXTRA): New variable, substituted by configure.
443 + (AM_CFLAGS): Use it in place of -Wextra.
445 2005-05-11 Ulrich Drepper <drepper@redhat.com>
447 * elf.h: Update again.
448 --- elfutils/libelf/common.h
449 +++ elfutils/libelf/common.h
450 @@ -122,7 +122,7 @@ libelf_release_all (Elf *elf)
451 (Var) = (sizeof (Var) == 1 \
452 ? (unsigned char) (Var) \
453 : (sizeof (Var) == 2 \
455 + ? (unsigned short int) bswap_16 (Var) \
456 : (sizeof (Var) == 4 \
459 @@ -131,7 +131,7 @@ libelf_release_all (Elf *elf)
460 (Dst) = (sizeof (Var) == 1 \
461 ? (unsigned char) (Var) \
462 : (sizeof (Var) == 2 \
464 + ? (unsigned short int) bswap_16 (Var) \
465 : (sizeof (Var) == 4 \
468 --- elfutils/libelf/Makefile.am
469 +++ elfutils/libelf/Makefile.am
471 ## Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
473 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H
476 AM_CFLAGS = -fmudflap
478 @@ -24,7 +25,10 @@ endif
482 -AM_CFLAGS += -Wall -Wshadow -Werror -Wunused -Wextra -Wformat=2 -std=gnu99 \
486 +AM_CFLAGS += -Wall -Wshadow -Werror -Wunused $(WEXTRA) -Wformat=2 -std=gnu99 \
488 INCLUDES = -I$(srcdir) -I$(top_srcdir)/lib -I..
489 GCC_INCLUDE = -I$(shell $(CC) -print-file-name=include)
490 --- elfutils/libelf/Makefile.in
491 +++ elfutils/libelf/Makefile.in
492 @@ -40,7 +40,7 @@ PRE_UNINSTALL = :
494 build_triplet = @build@
495 host_triplet = @host@
496 -@BUILD_STATIC_TRUE@am__append_1 = -fpic
497 +@BUILD_STATIC_TRUE@am__append_1 = -fpic -fpic
498 @MUDFLAP_FALSE@noinst_PROGRAMS = $(am__EXEEXT_1)
499 @MUDFLAP_TRUE@am_libelf_pic_a_OBJECTS =
501 @@ -210,6 +210,7 @@ SHELL = @SHELL@
506 XGETTEXT = @XGETTEXT@
508 ac_ct_CC = @ac_ct_CC@
509 @@ -252,10 +253,10 @@ sharedstatedir = @sharedstatedir@
510 sysconfdir = @sysconfdir@
511 target_alias = @target_alias@
512 @MUDFLAP_FALSE@AM_CFLAGS = $(am__append_1) -Wall -Wshadow -Werror \
513 -@MUDFLAP_FALSE@ -Wunused -Wextra -Wformat=2 -std=gnu99 \
514 +@MUDFLAP_FALSE@ -Wunused $(WEXTRA) -Wformat=2 -std=gnu99 \
515 @MUDFLAP_FALSE@ $($(*F)_CFLAGS)
516 @MUDFLAP_TRUE@AM_CFLAGS = -fmudflap $(am__append_1) -Wall -Wshadow \
517 -@MUDFLAP_TRUE@ -Werror -Wunused -Wextra -Wformat=2 -std=gnu99 \
518 +@MUDFLAP_TRUE@ -Werror -Wunused $(WEXTRA) -Wformat=2 -std=gnu99 \
519 @MUDFLAP_TRUE@ $($(*F)_CFLAGS)
520 INCLUDES = -I$(srcdir) -I$(top_srcdir)/lib -I..
521 GCC_INCLUDE = -I$(shell $(CC) -print-file-name=include)
522 --- elfutils/m4/Makefile.in
523 +++ elfutils/m4/Makefile.in
524 @@ -111,6 +111,7 @@ SHELL = @SHELL@
529 XGETTEXT = @XGETTEXT@
531 ac_ct_CC = @ac_ct_CC@
532 --- elfutils/Makefile.in
533 +++ elfutils/Makefile.in
534 @@ -135,6 +135,7 @@ SHELL = @SHELL@
539 XGETTEXT = @XGETTEXT@
541 ac_ct_CC = @ac_ct_CC@
542 --- elfutils/src/ChangeLog
543 +++ elfutils/src/ChangeLog
545 * readelf.c (print_debug_loc_section): Fix indentation for larger
548 +2005-05-31 Roland McGrath <roland@redhat.com>
550 + * Makefile.am (WEXTRA): New variable, substituted by configure.
551 + (AM_CFLAGS): Use it in place of -Wextra.
553 2005-05-30 Roland McGrath <roland@redhat.com>
555 * readelf.c (print_debug_line_section): Print section offset of each
556 --- elfutils/src/findtextrel.c
557 +++ elfutils/src/findtextrel.c
558 @@ -476,7 +476,11 @@ ptrcompare (const void *p1, const void *
562 -check_rel (size_t nsegments, struct segments segments[nsegments],
563 +check_rel (size_t nsegments, struct segments segments[
568 GElf_Addr addr, Elf *elf, Elf_Scn *symscn, Dwarf *dw,
569 const char *fname, bool more_than_one, void **knownsrcs)
571 --- elfutils/src/Makefile.am
572 +++ elfutils/src/Makefile.am
575 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H $(YYDEBUG) \
576 -DSRCDIR=\"$(shell cd $(srcdir);pwd)\" -DOBJDIR=\"$(shell pwd)\"
579 AM_CFLAGS = -fmudflap
581 @@ -21,7 +22,7 @@ AM_CFLAGS =
583 AM_CFLAGS += -Wall -Wshadow -std=gnu99 $(native_ld_cflags) \
584 $(if $($(*F)_no_Werror),,-Werror) \
585 - $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
586 + $(if $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) \
587 $(if $($(*F)_no_Wformat),,-Wformat=2)
589 INCLUDES = -I$(srcdir) -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
590 --- elfutils/src/Makefile.in
591 +++ elfutils/src/Makefile.in
592 @@ -221,6 +221,7 @@ SHELL = @SHELL@
597 XGETTEXT = @XGETTEXT@
599 ac_ct_CC = @ac_ct_CC@
600 @@ -265,12 +266,12 @@ target_alias = @target_alias@
601 @MUDFLAP_FALSE@AM_CFLAGS = -Wall -Wshadow -std=gnu99 \
602 @MUDFLAP_FALSE@ $(native_ld_cflags) $(if \
603 @MUDFLAP_FALSE@ $($(*F)_no_Werror),,-Werror) $(if \
604 -@MUDFLAP_FALSE@ $($(*F)_no_Wunused),,-Wunused -Wextra) $(if \
605 +@MUDFLAP_FALSE@ $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) $(if \
606 @MUDFLAP_FALSE@ $($(*F)_no_Wformat),,-Wformat=2)
607 @MUDFLAP_TRUE@AM_CFLAGS = -fmudflap -Wall -Wshadow -std=gnu99 \
608 @MUDFLAP_TRUE@ $(native_ld_cflags) $(if \
609 @MUDFLAP_TRUE@ $($(*F)_no_Werror),,-Werror) $(if \
610 -@MUDFLAP_TRUE@ $($(*F)_no_Wunused),,-Wunused -Wextra) $(if \
611 +@MUDFLAP_TRUE@ $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) $(if \
612 @MUDFLAP_TRUE@ $($(*F)_no_Wformat),,-Wformat=2)
613 INCLUDES = -I$(srcdir) -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
614 -I$(srcdir)/../libdw -I$(srcdir)/../libdwfl \
615 --- elfutils/src/strip.c
616 +++ elfutils/src/strip.c
622 +# define FUTIMES(fd, fname, tvp) futimes (fd, tvp)
624 +# define FUTIMES(fd, fname, tvp) utimes (fname, tvp)
628 /* Name and version of program. */
629 static void print_version (FILE *stream, struct argp_state *state);
630 @@ -288,8 +294,18 @@ process_file (const char *fname)
632 /* If we have to preserve the timestamp, we need it in the
633 format utimes() understands. */
634 +#ifdef HAVE_STRUCT_STAT_ST_ATIM
635 TIMESPEC_TO_TIMEVAL (&tv[0], &pre_st.st_atim);
637 + tv[0].tv_sec = pre_st.st_atime;
640 +#ifdef HAVE_STRUCT_STAT_ST_MTIM
641 TIMESPEC_TO_TIMEVAL (&tv[1], &pre_st.st_mtim);
643 + tv[1].tv_sec = pre_st.st_atime;
649 @@ -1679,7 +1695,7 @@ handle_elf (int fd, Elf *elf, const char
650 /* If requested, preserve the timestamp. */
653 - if (futimes (fd, tvp) != 0)
654 + if (FUTIMES (fd, output_fname, tvp) != 0)
656 error (0, errno, gettext ("\
657 cannot set access and modification date of '%s'"),
658 @@ -1736,7 +1752,7 @@ handle_ar (int fd, Elf *elf, const char
662 - if (unlikely (futimes (fd, tvp) != 0))
663 + if (unlikely (FUTIMES (fd, fname, tvp) != 0))
665 error (0, errno, gettext ("\
666 cannot set access and modification date of '%s'"), fname);
667 --- elfutils/tests/ChangeLog
668 +++ elfutils/tests/ChangeLog
670 * Makefile.am (TESTS): Add run-elflint-test.sh.
671 (EXTRA_DIST): Add run-elflint-test.sh and testfile18.bz2.
673 +2005-05-31 Roland McGrath <roland@redhat.com>
675 + * Makefile.am (WEXTRA): New variable, substituted by configure.
676 + (AM_CFLAGS): Use it in place of -Wextra.
678 2005-05-24 Ulrich Drepper <drepper@redhat.com>
680 * get-files.c (main): Use correct format specifier.
681 --- elfutils/tests/Makefile.am
682 +++ elfutils/tests/Makefile.am
684 ## 3001 King Ranch Road, Ukiah, CA 95482.
686 DEFS = -DHAVE_CONFIG_H -D_GNU_SOURCE
689 -AM_CFLAGS = -Wall -Werror -Wextra -std=gnu99 -fmudflap\
690 +AM_CFLAGS = -Wall -Werror $(WEXTRA) -std=gnu99 -fmudflap\
691 $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2)
692 AM_LDFLAGS = -Wl,-rpath,\$$ORIGIN/../libebl
694 -AM_CFLAGS = -Wall -Werror -Wextra -std=gnu99 \
695 +AM_CFLAGS = -Wall -Werror $(WEXTRA) -std=gnu99 \
696 $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2)
697 AM_LDFLAGS = -Wl,-rpath,\$$ORIGIN/../libasm:\$$ORIGIN/../libdw:\$$ORIGIN/../libebl:\$$ORIGIN/../libelf
699 --- elfutils/tests/Makefile.in
700 +++ elfutils/tests/Makefile.in
701 @@ -287,6 +287,7 @@ SHELL = @SHELL@
706 XGETTEXT = @XGETTEXT@
708 ac_ct_CC = @ac_ct_CC@
709 @@ -328,10 +329,10 @@ sbindir = @sbindir@
710 sharedstatedir = @sharedstatedir@
711 sysconfdir = @sysconfdir@
712 target_alias = @target_alias@
713 -@MUDFLAP_FALSE@AM_CFLAGS = -Wall -Werror -Wextra -std=gnu99 \
714 +@MUDFLAP_FALSE@AM_CFLAGS = -Wall -Werror $(WEXTRA) -std=gnu99 \
715 @MUDFLAP_FALSE@ $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2)
717 -@MUDFLAP_TRUE@AM_CFLAGS = -Wall -Werror -Wextra -std=gnu99 -fmudflap\
718 +@MUDFLAP_TRUE@AM_CFLAGS = -Wall -Werror $(WEXTRA) -std=gnu99 -fmudflap\
719 @MUDFLAP_TRUE@ $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2)
721 @MUDFLAP_FALSE@AM_LDFLAGS = -Wl,-rpath,\$$ORIGIN/../libasm:\$$ORIGIN/../libdw:\$$ORIGIN/../libebl:\$$ORIGIN/../libelf