1 --- elfutils/backends/ChangeLog
2 +++ elfutils/backends/ChangeLog
4 * sparc_init.c: Likewise.
5 * x86_64_init.c: Likewise.
7 +2005-11-22 Roland McGrath <roland@redhat.com>
9 + * Makefile.am (LD_AS_NEEDED): New variable, substituted by configure.
10 + (libebl_%.so rule): Use it in place of -Wl,--as-needed.
12 2005-11-19 Roland McGrath <roland@redhat.com>
14 * ppc64_reloc.def: REL30 -> ADDR30.
16 * Makefile.am (uninstall): Don't try to remove $(pkgincludedir).
17 (CLEANFILES): Add libebl_$(m).so.
19 + * Makefile.am (WEXTRA): New variable, substituted by configure.
20 + (AM_CFLAGS): Use it in place of -Wextra.
22 * ppc_reloc.def: Update bits per Alan Modra <amodra@bigpond.net.au>.
23 * ppc64_reloc.def: Likewise.
25 --- elfutils/backends/Makefile.am
26 +++ elfutils/backends/Makefile.am
28 ## <http://www.openinventionnetwork.com>.
30 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DOBJDIR=\"$(shell pwd)\"
32 +LD_AS_NEEDED = @LD_AS_NEEDED@
38 -AM_CFLAGS += -fpic -Wall -Wshadow -Werror -Wunused -Wextra -Wformat=2 \
39 +AM_CFLAGS += -fpic -Wall -Wshadow -Werror -Wunused $(WEXTRA) -Wformat=2 \
41 INCLUDES = -I$(srcdir) -I$(top_srcdir)/libebl \
42 -I$(top_srcdir)/libelf -I$(top_srcdir)/libdw \
43 @@ -62,7 +64,7 @@ textrel_check = if readelf -d $@ | fgrep
44 libebl_%.so: libebl_%_pic.a libebl_%.map $(libelf) $(libdw)
45 $(LINK) -shared -o $@ -Wl,--whole-archive,$<,--no-whole-archive \
46 -Wl,--version-script,$(word 2,$^) \
47 - -Wl,-z,defs -Wl,--as-needed $(libelf) $(libdw) $(libmudflap)
48 + -Wl,-z,defs $(LD_AS_NEEDED) $(libelf) $(libdw) $(libmudflap)
51 libebl_%.map: Makefile
52 --- elfutils/backends/Makefile.in
53 +++ elfutils/backends/Makefile.in
54 @@ -147,6 +147,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
55 INSTALL_SCRIPT = @INSTALL_SCRIPT@
56 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
58 +LD_AS_NEEDED = @LD_AS_NEEDED@
61 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
62 @@ -176,6 +177,7 @@ SHELL = @SHELL@
68 XGETTEXT_015 = @XGETTEXT_015@
70 @@ -231,9 +233,9 @@ target_alias = @target_alias@
71 top_builddir = @top_builddir@
72 top_srcdir = @top_srcdir@
73 @MUDFLAP_FALSE@AM_CFLAGS = -fpic -Wall -Wshadow -Werror -Wunused \
74 -@MUDFLAP_FALSE@ -Wextra -Wformat=2 -std=gnu99
75 +@MUDFLAP_FALSE@ $(WEXTRA) -Wformat=2 -std=gnu99
76 @MUDFLAP_TRUE@AM_CFLAGS = -fmudflap -fpic -Wall -Wshadow -Werror \
77 -@MUDFLAP_TRUE@ -Wunused -Wextra -Wformat=2 -std=gnu99
78 +@MUDFLAP_TRUE@ -Wunused $(WEXTRA) -Wformat=2 -std=gnu99
79 INCLUDES = -I$(srcdir) -I$(top_srcdir)/libebl \
80 -I$(top_srcdir)/libelf -I$(top_srcdir)/libdw \
81 -I$(top_srcdir)/lib -I..
82 @@ -605,7 +607,7 @@ uninstall-am:
83 libebl_%.so: libebl_%_pic.a libebl_%.map $(libelf) $(libdw)
84 $(LINK) -shared -o $@ -Wl,--whole-archive,$<,--no-whole-archive \
85 -Wl,--version-script,$(word 2,$^) \
86 - -Wl,-z,defs -Wl,--as-needed $(libelf) $(libdw) $(libmudflap)
87 + -Wl,-z,defs $(LD_AS_NEEDED) $(libelf) $(libdw) $(libmudflap)
90 libebl_%.map: Makefile
91 --- elfutils/ChangeLog
92 +++ elfutils/ChangeLog
94 * configure.ac: Add dummy automake conditional to get dependencies
95 for non-generic linker right. See src/Makefile.am.
97 +2005-11-22 Roland McGrath <roland@redhat.com>
99 + * configure.ac: Check for --as-needed linker option.
101 2005-11-18 Roland McGrath <roland@redhat.com>
103 * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): New variable.
105 * Makefile.am (all_SUBDIRS): Add libdwfl.
106 * configure.ac: Write libdwfl/Makefile.
108 +2005-05-31 Roland McGrath <roland@redhat.com>
110 + * configure.ac (WEXTRA): Check for -Wextra and set this substitution.
112 + * configure.ac: Check for struct stat st_?tim members.
113 + * src/strip.c (process_file): Use st_?time if st_?tim are not there.
115 + * configure.ac: Check for futimes function.
116 + * src/strip.c (handle_elf) [! HAVE_FUTIMES]: Use utimes instead.
117 + (handle_ar) [! HAVE_FUTIMES]: Likewise.
119 2005-05-19 Roland McGrath <roland@redhat.com>
121 * configure.ac [AH_BOTTOM] (INTDECL, _INTDECL): New macros.
122 --- elfutils/config/Makefile.in
123 +++ elfutils/config/Makefile.in
124 @@ -71,6 +71,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
125 INSTALL_SCRIPT = @INSTALL_SCRIPT@
126 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
128 +LD_AS_NEEDED = @LD_AS_NEEDED@
131 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
132 @@ -100,6 +101,7 @@ SHELL = @SHELL@
137 XGETTEXT = @XGETTEXT@
138 XGETTEXT_015 = @XGETTEXT_015@
140 --- elfutils/configure
141 +++ elfutils/configure
142 @@ -674,6 +674,8 @@ YFLAGS
151 @@ -3874,6 +3876,88 @@ echo "$as_me: error: gcc with C99 suppor
155 +{ echo "$as_me:$LINENO: checking for -Wextra option to $CC" >&5
156 +echo $ECHO_N "checking for -Wextra option to $CC... $ECHO_C" >&6; }
157 +if test "${ac_cv_cc_wextra+set}" = set; then
158 + echo $ECHO_N "(cached) $ECHO_C" >&6
160 + old_CFLAGS="$CFLAGS"
161 +CFLAGS="$CFLAGS -Wextra"
162 +cat >conftest.$ac_ext <<_ACEOF
165 +rm -f conftest.$ac_objext
166 +if { (ac_try="$ac_compile"
168 + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
169 + *) ac_try_echo=$ac_try;;
171 +eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
172 + (eval "$ac_compile") 2>conftest.er1
174 + grep -v '^ *+' conftest.er1 >conftest.err
176 + cat conftest.err >&5
177 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
178 + (exit $ac_status); } && {
179 + test -z "$ac_c_werror_flag" ||
180 + test ! -s conftest.err
181 + } && test -s conftest.$ac_objext; then
182 + ac_cv_cc_wextra=yes
184 + echo "$as_me: failed program was:" >&5
185 +sed 's/^/| /' conftest.$ac_ext >&5
190 +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
191 +CFLAGS="$old_CFLAGS"
193 +{ echo "$as_me:$LINENO: result: $ac_cv_cc_wextra" >&5
194 +echo "${ECHO_T}$ac_cv_cc_wextra" >&6; }
196 +if test "x$ac_cv_cc_wextra" = xyes; then
203 +{ echo "$as_me:$LINENO: checking for --as-needed linker option" >&5
204 +echo $ECHO_N "checking for --as-needed linker option... $ECHO_C" >&6; }
205 +if test "${ac_cv_as_needed+set}" = set; then
206 + echo $ECHO_N "(cached) $ECHO_C" >&6
208 + cat > conftest.c <<EOF
209 +int main (void) { return 0; }
211 +if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
212 + -fPIC -shared -o conftest.so conftest.c
213 + -Wl,--as-needed 1>&5'
214 + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
215 + (eval $ac_try) 2>&5
217 + echo "$as_me:$LINENO: \$? = $ac_status" >&5
218 + (exit $ac_status); }; }
220 + ac_cv_as_needed=yes
226 +{ echo "$as_me:$LINENO: result: $ac_cv_as_needed" >&5
227 +echo "${ECHO_T}$ac_cv_as_needed" >&6; }
228 +if test "x$ac_cv_as_needed" = xyes; then
229 + LD_AS_NEEDED=-Wl,--as-needed
239 cat >>confdefs.h <<_ACEOF
240 @@ -5608,10 +5692,10 @@ YFLAGS!$YFLAGS$ac_delim
242 LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim
243 LEXLIB!$LEXLIB$ac_delim
244 +WEXTRA!$WEXTRA$ac_delim
245 +LD_AS_NEEDED!$LD_AS_NEEDED$ac_delim
246 LOCALEDIR!$LOCALEDIR$ac_delim
247 DATADIRNAME!$DATADIRNAME$ac_delim
248 -NATIVE_LD_TRUE!$NATIVE_LD_TRUE$ac_delim
249 -NATIVE_LD_FALSE!$NATIVE_LD_FALSE$ac_delim
252 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
253 @@ -5653,6 +5737,8 @@ _ACEOF
255 for ac_last_try in false false false false false :; do
256 cat >conf$$subs.sed <<_ACEOF
257 +NATIVE_LD_TRUE!$NATIVE_LD_TRUE$ac_delim
258 +NATIVE_LD_FALSE!$NATIVE_LD_FALSE$ac_delim
259 base_cpu!$base_cpu$ac_delim
260 NEVER_TRUE!$NEVER_TRUE$ac_delim
261 NEVER_FALSE!$NEVER_FALSE$ac_delim
262 @@ -5683,7 +5769,7 @@ LIBOBJS!$LIBOBJS$ac_delim
263 LTLIBOBJS!$LTLIBOBJS$ac_delim
266 - if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 28; then
267 + if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 30; then
269 elif $ac_last_try; then
270 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
271 --- elfutils/configure.ac
272 +++ elfutils/configure.ac
273 @@ -71,6 +71,34 @@ CFLAGS="$old_CFLAGS"])
274 AS_IF([test "x$ac_cv_c99" != xyes],
275 AC_MSG_ERROR([gcc with C99 support required]))
277 +AC_CACHE_CHECK([for -Wextra option to $CC], ac_cv_cc_wextra, [dnl
278 +old_CFLAGS="$CFLAGS"
279 +CFLAGS="$CFLAGS -Wextra"
280 +AC_COMPILE_IFELSE([void foo (void) { }],
281 + ac_cv_cc_wextra=yes, ac_cv_cc_wextra=no)
282 +CFLAGS="$old_CFLAGS"])
284 +AS_IF([test "x$ac_cv_cc_wextra" = xyes], [WEXTRA=-Wextra], [WEXTRA=-W])
286 +AC_CACHE_CHECK([for --as-needed linker option],
287 + ac_cv_as_needed, [dnl
288 +cat > conftest.c <<EOF
289 +int main (void) { return 0; }
291 +if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS
292 + -fPIC -shared -o conftest.so conftest.c
293 + -Wl,--as-needed 1>&AS_MESSAGE_LOG_FD])
295 + ac_cv_as_needed=yes
300 +AS_IF([test "x$ac_cv_as_needed" = xyes],
301 + [LD_AS_NEEDED=-Wl,--as-needed], [LD_AS_NEEDED=])
302 +AC_SUBST(LD_AS_NEEDED)
307 AC_DEFINE_UNQUOTED(LOCALEDIR, "$LOCALEDIR")
308 --- elfutils/lib/ChangeLog
309 +++ elfutils/lib/ChangeLog
311 * Makefile.am (libeu_a_SOURCES): Add it.
312 * system.h: Declare crc32_file.
314 +2005-02-07 Roland McGrath <roland@redhat.com>
316 + * Makefile.am (WEXTRA): New variable, substituted by configure.
317 + (AM_CFLAGS): Use it in place of -Wextra.
319 2005-04-30 Ulrich Drepper <drepper@redhat.com>
321 * Makefile.am: Use -ffunction-sections for xmalloc.c.
322 --- elfutils/lib/Makefile.am
323 +++ elfutils/lib/Makefile.am
325 ## <http://www.openinventionnetwork.com>.
327 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H
330 AM_CFLAGS = -fmudflap
334 -AM_CFLAGS += -fpic -Wall -Wshadow -Werror -Wunused -Wextra $($(*F)_CFLAGS)
335 +AM_CFLAGS += -fpic -Wall -Wshadow -Werror -Wunused $(WEXTRA) $($(*F)_CFLAGS)
336 INCLUDES = -I$(srcdir)/../libelf -I..
338 noinst_LIBRARIES = libeu.a
339 --- elfutils/lib/Makefile.in
340 +++ elfutils/lib/Makefile.in
341 @@ -91,6 +91,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
342 INSTALL_SCRIPT = @INSTALL_SCRIPT@
343 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
345 +LD_AS_NEEDED = @LD_AS_NEEDED@
348 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
349 @@ -120,6 +121,7 @@ SHELL = @SHELL@
354 XGETTEXT = @XGETTEXT@
355 XGETTEXT_015 = @XGETTEXT_015@
357 @@ -175,9 +177,9 @@ target_alias = @target_alias@
358 top_builddir = @top_builddir@
359 top_srcdir = @top_srcdir@
360 @MUDFLAP_FALSE@AM_CFLAGS = -fpic -Wall -Wshadow -Werror -Wunused \
361 -@MUDFLAP_FALSE@ -Wextra $($(*F)_CFLAGS)
362 +@MUDFLAP_FALSE@ $(WEXTRA) $($(*F)_CFLAGS)
363 @MUDFLAP_TRUE@AM_CFLAGS = -fmudflap -fpic -Wall -Wshadow -Werror \
364 -@MUDFLAP_TRUE@ -Wunused -Wextra $($(*F)_CFLAGS)
365 +@MUDFLAP_TRUE@ -Wunused $(WEXTRA) $($(*F)_CFLAGS)
366 INCLUDES = -I$(srcdir)/../libelf -I..
367 noinst_LIBRARIES = libeu.a
368 libeu_a_SOURCES = xstrndup.c xmalloc.c next_prime.c \
369 --- elfutils/libasm/ChangeLog
370 +++ elfutils/libasm/ChangeLog
372 * asm_error.c: Add new error ASM_E_IOERROR.
373 * libasmP.h: Add ASM_E_IOERROR definition.
375 +2005-05-31 Roland McGrath <roland@redhat.com>
377 + * Makefile.am (WEXTRA): New variable, substituted by configure.
378 + (AM_CFLAGS): Use it in place of -Wextra.
380 2005-02-15 Ulrich Drepper <drepper@redhat.com>
382 * Makefile.am (AM_CFLAGS): Add -Wunused -Wextra -Wformat=2.
383 --- elfutils/libasm/Makefile.am
384 +++ elfutils/libasm/Makefile.am
386 ## <http://www.openinventionnetwork.com>.
388 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H
391 AM_CFLAGS = -fmudflap
395 -AM_CFLAGS += -std=gnu99 -Wall -Wshadow -Werror -Wunused -Wextra -Wformat=2
396 +AM_CFLAGS += -std=gnu99 -Wall -Wshadow -Werror -Wunused $(WEXTRA) -Wformat=2
397 INCLUDES = -I. -I$(srcdir) -I.. \
398 -I$(top_srcdir)/libelf -I$(top_srcdir)/libebl -I$(top_srcdir)/libdw\
400 --- elfutils/libasm/Makefile.in
401 +++ elfutils/libasm/Makefile.in
402 @@ -124,6 +124,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
403 INSTALL_SCRIPT = @INSTALL_SCRIPT@
404 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
406 +LD_AS_NEEDED = @LD_AS_NEEDED@
409 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
410 @@ -153,6 +154,7 @@ SHELL = @SHELL@
415 XGETTEXT = @XGETTEXT@
416 XGETTEXT_015 = @XGETTEXT_015@
418 @@ -208,9 +210,9 @@ target_alias = @target_alias@
419 top_builddir = @top_builddir@
420 top_srcdir = @top_srcdir@
421 @MUDFLAP_FALSE@AM_CFLAGS = -std=gnu99 -Wall -Wshadow -Werror -Wunused \
422 -@MUDFLAP_FALSE@ -Wextra -Wformat=2
423 +@MUDFLAP_FALSE@ $(WEXTRA) -Wformat=2
424 @MUDFLAP_TRUE@AM_CFLAGS = -fmudflap -std=gnu99 -Wall -Wshadow -Werror \
425 -@MUDFLAP_TRUE@ -Wunused -Wextra -Wformat=2
426 +@MUDFLAP_TRUE@ -Wunused $(WEXTRA) -Wformat=2
427 INCLUDES = -I. -I$(srcdir) -I.. \
428 -I$(top_srcdir)/libelf -I$(top_srcdir)/libebl -I$(top_srcdir)/libdw\
430 --- elfutils/libcpu/ChangeLog
431 +++ elfutils/libcpu/ChangeLog
433 +2005-04-04 Roland McGrath <roland@redhat.com>
435 + * Makefile.am (WEXTRA): New variable, substituted by configure.
436 + (AM_CFLAGS): Use it instead of -Wextra.
438 2005-02-15 Ulrich Drepper <drepper@redhat.com>
440 * Makefile (AM_CFLAGS): Add -Wunused -Wextra -Wformat=2.
441 --- elfutils/libcpu/Makefile.am
442 +++ elfutils/libcpu/Makefile.am
444 ## <http://www.openinventionnetwork.com>.
446 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H
447 -AM_CFLAGS = -Wall -Wshadow -Werror -Wextra -Wformat=2 -Wunused
449 +AM_CFLAGS = -Wall -Wshadow -Werror $(WEXTRA) -Wformat=2 -Wunused
450 INCLUDES = -I$(srcdir)
452 noinst_LIBRARIES = libcpu_i386.a
453 --- elfutils/libcpu/Makefile.in
454 +++ elfutils/libcpu/Makefile.in
455 @@ -87,6 +87,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
456 INSTALL_SCRIPT = @INSTALL_SCRIPT@
457 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
459 +LD_AS_NEEDED = @LD_AS_NEEDED@
462 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
463 @@ -116,6 +117,7 @@ SHELL = @SHELL@
468 XGETTEXT = @XGETTEXT@
469 XGETTEXT_015 = @XGETTEXT_015@
471 @@ -170,7 +172,7 @@ sysconfdir = @sysconfdir@
472 target_alias = @target_alias@
473 top_builddir = @top_builddir@
474 top_srcdir = @top_srcdir@
475 -AM_CFLAGS = -Wall -Wshadow -Werror -Wextra -Wformat=2 -Wunused
476 +AM_CFLAGS = -Wall -Wshadow -Werror $(WEXTRA) -Wformat=2 -Wunused
477 INCLUDES = -I$(srcdir)
478 noinst_LIBRARIES = libcpu_i386.a
479 libcpu_i386_a_SOURCES = i386_dis.c
480 --- elfutils/libdw/ChangeLog
481 +++ elfutils/libdw/ChangeLog
484 2005-05-31 Roland McGrath <roland@redhat.com>
486 + * Makefile.am (WEXTRA): New variable, substituted by configure.
487 + (AM_CFLAGS): Use it in place of -Wextra.
489 +2005-05-31 Roland McGrath <roland@redhat.com>
491 * dwarf_formref_die.c (dwarf_formref_die): Add CU header offset to
494 --- elfutils/libdw/Makefile.am
495 +++ elfutils/libdw/Makefile.am
497 ## <http://www.openinventionnetwork.com>.
499 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DIS_LIBDW
502 AM_CFLAGS = -fmudflap
504 @@ -33,7 +34,7 @@ endif
508 -AM_CFLAGS += -Wall -Werror -Wshadow -Wunused -Wformat=2 -Wextra -std=gnu99
509 +AM_CFLAGS += -Wall -Werror -Wshadow -Wunused -Wformat=2 $(WEXTRA) -std=gnu99
510 INCLUDES = -I. -I$(srcdir) -I$(srcdir)/../libelf -I.. -I$(srcdir)/../lib
513 --- elfutils/libdw/Makefile.in
514 +++ elfutils/libdw/Makefile.in
515 @@ -163,6 +163,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
516 INSTALL_SCRIPT = @INSTALL_SCRIPT@
517 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
519 +LD_AS_NEEDED = @LD_AS_NEEDED@
522 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
523 @@ -192,6 +193,7 @@ SHELL = @SHELL@
528 XGETTEXT = @XGETTEXT@
529 XGETTEXT_015 = @XGETTEXT_015@
531 @@ -247,9 +249,10 @@ target_alias = @target_alias@
532 top_builddir = @top_builddir@
533 top_srcdir = @top_srcdir@
534 @MUDFLAP_FALSE@AM_CFLAGS = $(am__append_1) -Wall -Werror -Wshadow \
535 -@MUDFLAP_FALSE@ -Wunused -Wformat=2 -Wextra -std=gnu99
536 +@MUDFLAP_FALSE@ -Wunused -Wformat=2 $(WEXTRA) -std=gnu99
537 @MUDFLAP_TRUE@AM_CFLAGS = -fmudflap $(am__append_1) -Wall -Werror \
538 -@MUDFLAP_TRUE@ -Wshadow -Wunused -Wformat=2 -Wextra -std=gnu99
539 +@MUDFLAP_TRUE@ -Wshadow -Wunused -Wformat=2 $(WEXTRA) \
540 +@MUDFLAP_TRUE@ -std=gnu99
541 INCLUDES = -I. -I$(srcdir) -I$(srcdir)/../libelf -I.. -I$(srcdir)/../lib
542 COMPILE.os = $(filter-out -fprofile-arcs, $(filter-out -ftest-coverage, \
544 --- elfutils/libdwfl/ChangeLog
545 +++ elfutils/libdwfl/ChangeLog
548 2005-07-21 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-07-21 Roland McGrath <roland@redhat.com>
555 * Makefile.am (noinst_HEADERS): Add loc2c.c.
557 * test2.c (main): Check sscanf result to quiet warning.
558 --- elfutils/libdwfl/Makefile.am
559 +++ elfutils/libdwfl/Makefile.am
561 ## <http://www.openinventionnetwork.com>.
563 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H
566 AM_CFLAGS = -fmudflap
570 -AM_CFLAGS += -Wall -Werror -Wshadow -Wunused -Wformat=2 -Wextra -std=gnu99
571 +AM_CFLAGS += -Wall -Werror -Wshadow -Wunused -Wformat=2 $(WEXTRA) -std=gnu99
572 INCLUDES = -I. -I$(srcdir) -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
573 -I$(srcdir)/../libdw -I.. -I$(srcdir)/../lib
575 --- elfutils/libdwfl/Makefile.in
576 +++ elfutils/libdwfl/Makefile.in
577 @@ -124,6 +124,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
578 INSTALL_SCRIPT = @INSTALL_SCRIPT@
579 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
581 +LD_AS_NEEDED = @LD_AS_NEEDED@
584 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
585 @@ -153,6 +154,7 @@ SHELL = @SHELL@
590 XGETTEXT = @XGETTEXT@
591 XGETTEXT_015 = @XGETTEXT_015@
593 @@ -208,9 +210,9 @@ target_alias = @target_alias@
594 top_builddir = @top_builddir@
595 top_srcdir = @top_srcdir@
596 @MUDFLAP_FALSE@AM_CFLAGS = -Wall -Werror -Wshadow -Wunused -Wformat=2 \
597 -@MUDFLAP_FALSE@ -Wextra -std=gnu99
598 +@MUDFLAP_FALSE@ $(WEXTRA) -std=gnu99
599 @MUDFLAP_TRUE@AM_CFLAGS = -fmudflap -Wall -Werror -Wshadow -Wunused \
600 -@MUDFLAP_TRUE@ -Wformat=2 -Wextra -std=gnu99
601 +@MUDFLAP_TRUE@ -Wformat=2 $(WEXTRA) -std=gnu99
602 INCLUDES = -I. -I$(srcdir) -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
603 -I$(srcdir)/../libdw -I.. -I$(srcdir)/../lib
605 --- elfutils/libebl/ChangeLog
606 +++ elfutils/libebl/ChangeLog
608 * Makefile.am (libebl_*_so_SOURCES): Set to $(*_SRCS) so dependency
609 tracking works right.
611 +2005-05-31 Roland McGrath <roland@redhat.com>
613 + * Makefile.am (WEXTRA): New variable, substituted by configure.
614 + (AM_CFLAGS): Use it in place of -Wextra.
616 2005-05-21 Ulrich Drepper <drepper@redhat.com>
618 * libebl_x86_64.map: Add x86_64_core_note.
619 --- elfutils/libebl/Makefile.am
620 +++ elfutils/libebl/Makefile.am
622 ## <http://www.openinventionnetwork.com>.
624 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DOBJDIR=\"$(shell pwd)\"
627 AM_CFLAGS = -fmudflap
631 -AM_CFLAGS += -fpic -Wall -Wshadow -Werror -Wunused -Wextra -Wformat=2 \
632 +AM_CFLAGS += -fpic -Wall -Wshadow -Werror -Wunused $(WEXTRA) -Wformat=2 \
635 INCLUDES = -I$(srcdir) -I$(top_srcdir)/libelf -I$(top_srcdir)/libdw \
636 --- elfutils/libebl/Makefile.in
637 +++ elfutils/libebl/Makefile.in
638 @@ -120,6 +120,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
639 INSTALL_SCRIPT = @INSTALL_SCRIPT@
640 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
642 +LD_AS_NEEDED = @LD_AS_NEEDED@
645 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
646 @@ -149,6 +150,7 @@ SHELL = @SHELL@
651 XGETTEXT = @XGETTEXT@
652 XGETTEXT_015 = @XGETTEXT_015@
654 @@ -204,9 +206,9 @@ target_alias = @target_alias@
655 top_builddir = @top_builddir@
656 top_srcdir = @top_srcdir@
657 @MUDFLAP_FALSE@AM_CFLAGS = -fpic -Wall -Wshadow -Werror -Wunused \
658 -@MUDFLAP_FALSE@ -Wextra -Wformat=2 -std=gnu99
659 +@MUDFLAP_FALSE@ $(WEXTRA) -Wformat=2 -std=gnu99
660 @MUDFLAP_TRUE@AM_CFLAGS = -fmudflap -fpic -Wall -Wshadow -Werror \
661 -@MUDFLAP_TRUE@ -Wunused -Wextra -Wformat=2 -std=gnu99
662 +@MUDFLAP_TRUE@ -Wunused $(WEXTRA) -Wformat=2 -std=gnu99
663 INCLUDES = -I$(srcdir) -I$(top_srcdir)/libelf -I$(top_srcdir)/libdw \
664 -I$(top_srcdir)/lib -I..
666 --- elfutils/libelf/ChangeLog
667 +++ elfutils/libelf/ChangeLog
669 If section content hasn't been read yet, do it before looking for the
670 block size. If no section data present, infer size of section header.
672 +2005-05-31 Roland McGrath <roland@redhat.com>
674 + * Makefile.am (WEXTRA): New variable, substituted by configure.
675 + (AM_CFLAGS): Use it in place of -Wextra.
677 2005-05-11 Ulrich Drepper <drepper@redhat.com>
679 * elf.h: Update again.
680 --- elfutils/libelf/common.h
681 +++ elfutils/libelf/common.h
682 @@ -155,7 +155,7 @@ libelf_release_all (Elf *elf)
683 (Var) = (sizeof (Var) == 1 \
684 ? (unsigned char) (Var) \
685 : (sizeof (Var) == 2 \
687 + ? (unsigned short int) bswap_16 (Var) \
688 : (sizeof (Var) == 4 \
691 @@ -164,7 +164,7 @@ libelf_release_all (Elf *elf)
692 (Dst) = (sizeof (Var) == 1 \
693 ? (unsigned char) (Var) \
694 : (sizeof (Var) == 2 \
696 + ? (unsigned short int) bswap_16 (Var) \
697 : (sizeof (Var) == 4 \
700 --- elfutils/libelf/Makefile.am
701 +++ elfutils/libelf/Makefile.am
703 ## <http://www.openinventionnetwork.com>.
705 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H
708 AM_CFLAGS = -fmudflap
710 @@ -33,7 +34,10 @@ endif
714 -AM_CFLAGS += -Wall -Wshadow -Werror -Wunused -Wextra -Wformat=2 -std=gnu99 \
718 +AM_CFLAGS += -Wall -Wshadow -Werror -Wunused $(WEXTRA) -Wformat=2 -std=gnu99 \
720 INCLUDES = -I$(srcdir) -I$(top_srcdir)/lib -I..
721 GCC_INCLUDE = -I$(shell $(CC) -print-file-name=include)
722 --- elfutils/libelf/Makefile.in
723 +++ elfutils/libelf/Makefile.in
724 @@ -34,7 +34,7 @@ PRE_UNINSTALL = :
726 build_triplet = @build@
727 host_triplet = @host@
728 -@BUILD_STATIC_TRUE@am__append_1 = -fpic
729 +@BUILD_STATIC_TRUE@am__append_1 = -fpic -fpic
730 @MUDFLAP_FALSE@noinst_PROGRAMS = $(am__EXEEXT_1)
731 @MUDFLAP_TRUE@am_libelf_pic_a_OBJECTS =
733 @@ -167,6 +167,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
734 INSTALL_SCRIPT = @INSTALL_SCRIPT@
735 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
737 +LD_AS_NEEDED = @LD_AS_NEEDED@
740 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
741 @@ -196,6 +197,7 @@ SHELL = @SHELL@
746 XGETTEXT = @XGETTEXT@
747 XGETTEXT_015 = @XGETTEXT_015@
749 @@ -251,10 +253,10 @@ target_alias = @target_alias@
750 top_builddir = @top_builddir@
751 top_srcdir = @top_srcdir@
752 @MUDFLAP_FALSE@AM_CFLAGS = $(am__append_1) -Wall -Wshadow -Werror \
753 -@MUDFLAP_FALSE@ -Wunused -Wextra -Wformat=2 -std=gnu99 \
754 +@MUDFLAP_FALSE@ -Wunused $(WEXTRA) -Wformat=2 -std=gnu99 \
755 @MUDFLAP_FALSE@ $($(*F)_CFLAGS)
756 @MUDFLAP_TRUE@AM_CFLAGS = -fmudflap $(am__append_1) -Wall -Wshadow \
757 -@MUDFLAP_TRUE@ -Werror -Wunused -Wextra -Wformat=2 -std=gnu99 \
758 +@MUDFLAP_TRUE@ -Werror -Wunused $(WEXTRA) -Wformat=2 -std=gnu99 \
759 @MUDFLAP_TRUE@ $($(*F)_CFLAGS)
760 INCLUDES = -I$(srcdir) -I$(top_srcdir)/lib -I..
761 GCC_INCLUDE = -I$(shell $(CC) -print-file-name=include)
762 --- elfutils/m4/Makefile.in
763 +++ elfutils/m4/Makefile.in
764 @@ -70,6 +70,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
765 INSTALL_SCRIPT = @INSTALL_SCRIPT@
766 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
768 +LD_AS_NEEDED = @LD_AS_NEEDED@
771 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
772 @@ -99,6 +100,7 @@ SHELL = @SHELL@
777 XGETTEXT = @XGETTEXT@
778 XGETTEXT_015 = @XGETTEXT_015@
780 --- elfutils/Makefile.in
781 +++ elfutils/Makefile.in
782 @@ -97,6 +97,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
783 INSTALL_SCRIPT = @INSTALL_SCRIPT@
784 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
786 +LD_AS_NEEDED = @LD_AS_NEEDED@
789 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
790 @@ -126,6 +127,7 @@ SHELL = @SHELL@
795 XGETTEXT = @XGETTEXT@
796 XGETTEXT_015 = @XGETTEXT_015@
798 --- elfutils/src/ChangeLog
799 +++ elfutils/src/ChangeLog
801 * elflint.c (valid_e_machine): Add EM_ALPHA.
802 Reported by Christian Aichinger <Greek0@gmx.net>.
804 + * strings.c (map_file): Define POSIX_MADV_SEQUENTIAL to
805 + MADV_SEQUENTIAL if undefined. Don't call posix_madvise
806 + if neither is defined.
808 2006-08-08 Ulrich Drepper <drepper@redhat.com>
810 * elflint.c (check_dynamic): Don't require DT_HASH for DT_SYMTAB.
812 * Makefile.am: Add hacks to create dependency files for non-generic
815 +2006-04-05 Roland McGrath <roland@redhat.com>
817 + * strings.c (MAP_POPULATE): Define to 0 if undefined.
819 2006-06-12 Ulrich Drepper <drepper@redhat.com>
821 * ldgeneric.c (ld_generic_generate_sections): Don't create .interp
823 * readelf.c (print_debug_loc_section): Fix indentation for larger
826 +2005-05-31 Roland McGrath <roland@redhat.com>
828 + * Makefile.am (WEXTRA): New variable, substituted by configure.
829 + (AM_CFLAGS): Use it in place of -Wextra.
831 2005-05-30 Roland McGrath <roland@redhat.com>
833 * readelf.c (print_debug_line_section): Print section offset of each
834 --- elfutils/src/findtextrel.c
835 +++ elfutils/src/findtextrel.c
836 @@ -488,7 +488,11 @@ ptrcompare (const void *p1, const void *
840 -check_rel (size_t nsegments, struct segments segments[nsegments],
841 +check_rel (size_t nsegments, struct segments segments[
846 GElf_Addr addr, Elf *elf, Elf_Scn *symscn, Dwarf *dw,
847 const char *fname, bool more_than_one, void **knownsrcs)
849 --- elfutils/src/Makefile.am
850 +++ elfutils/src/Makefile.am
853 DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H $(YYDEBUG) \
854 -DSRCDIR=\"$(shell cd $(srcdir);pwd)\" -DOBJDIR=\"$(shell pwd)\"
857 AM_CFLAGS = -fmudflap
859 @@ -33,7 +34,7 @@ AM_CFLAGS =
861 AM_CFLAGS += -Wall -Wshadow -std=gnu99 $(native_ld_cflags) \
862 $(if $($(*F)_no_Werror),,-Werror) \
863 - $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \
864 + $(if $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) \
865 $(if $($(*F)_no_Wformat),,-Wformat=2) $(CFLAGS_$(*F))
867 INCLUDES = -I$(srcdir) -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
868 --- elfutils/src/Makefile.in
869 +++ elfutils/src/Makefile.in
870 @@ -197,6 +197,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
871 INSTALL_SCRIPT = @INSTALL_SCRIPT@
872 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
874 +LD_AS_NEEDED = @LD_AS_NEEDED@
877 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
878 @@ -226,6 +227,7 @@ SHELL = @SHELL@
883 XGETTEXT = @XGETTEXT@
884 XGETTEXT_015 = @XGETTEXT_015@
886 @@ -283,13 +285,13 @@ top_srcdir = @top_srcdir@
887 @MUDFLAP_FALSE@AM_CFLAGS = -Wall -Wshadow -std=gnu99 \
888 @MUDFLAP_FALSE@ $(native_ld_cflags) $(if \
889 @MUDFLAP_FALSE@ $($(*F)_no_Werror),,-Werror) $(if \
890 -@MUDFLAP_FALSE@ $($(*F)_no_Wunused),,-Wunused -Wextra) $(if \
891 +@MUDFLAP_FALSE@ $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) $(if \
892 @MUDFLAP_FALSE@ $($(*F)_no_Wformat),,-Wformat=2) \
893 @MUDFLAP_FALSE@ $(CFLAGS_$(*F))
894 @MUDFLAP_TRUE@AM_CFLAGS = -fmudflap -Wall -Wshadow -std=gnu99 \
895 @MUDFLAP_TRUE@ $(native_ld_cflags) $(if \
896 @MUDFLAP_TRUE@ $($(*F)_no_Werror),,-Werror) $(if \
897 -@MUDFLAP_TRUE@ $($(*F)_no_Wunused),,-Wunused -Wextra) $(if \
898 +@MUDFLAP_TRUE@ $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) $(if \
899 @MUDFLAP_TRUE@ $($(*F)_no_Wformat),,-Wformat=2) $(CFLAGS_$(*F))
900 INCLUDES = -I$(srcdir) -I$(srcdir)/../libelf -I$(srcdir)/../libebl \
901 -I$(srcdir)/../libdw -I$(srcdir)/../libdwfl \
902 --- elfutils/src/strings.c
903 +++ elfutils/src/strings.c
908 +#ifndef MAP_POPULATE
909 +# define MAP_POPULATE 0
913 /* Prototypes of local functions. */
914 static int read_fd (int fd, const char *fname, off64_t fdlen);
915 @@ -491,8 +495,13 @@ map_file (int fd, off64_t start_off, off
917 if (mem != MAP_FAILED)
919 +#if !defined POSIX_MADV_SEQUENTIAL && defined MADV_SEQUENTIAL
920 +# define POSIX_MADV_SEQUENTIAL MADV_SEQUENTIAL
922 +#ifdef POSIX_MADV_SEQUENTIAL
923 /* We will go through the mapping sequentially. */
924 (void) posix_madvise (mem, map_size, POSIX_MADV_SEQUENTIAL);
928 if (errno != EINVAL && errno != ENOMEM)
929 --- elfutils/src/strip.c
930 +++ elfutils/src/strip.c
936 +# define FUTIMES(fd, fname, tvp) futimes (fd, tvp)
938 +# define FUTIMES(fd, fname, tvp) utimes (fname, tvp)
942 /* Name and version of program. */
943 static void print_version (FILE *stream, struct argp_state *state);
944 @@ -300,8 +306,18 @@ process_file (const char *fname)
946 /* If we have to preserve the timestamp, we need it in the
947 format utimes() understands. */
948 +#ifdef HAVE_STRUCT_STAT_ST_ATIM
949 TIMESPEC_TO_TIMEVAL (&tv[0], &pre_st.st_atim);
951 + tv[0].tv_sec = pre_st.st_atime;
954 +#ifdef HAVE_STRUCT_STAT_ST_MTIM
955 TIMESPEC_TO_TIMEVAL (&tv[1], &pre_st.st_mtim);
957 + tv[1].tv_sec = pre_st.st_atime;
963 @@ -1702,7 +1718,7 @@ handle_elf (int fd, Elf *elf, const char
964 /* If requested, preserve the timestamp. */
967 - if (futimes (fd, tvp) != 0)
968 + if (FUTIMES (fd, output_fname, tvp) != 0)
970 error (0, errno, gettext ("\
971 cannot set access and modification date of '%s'"),
972 @@ -1759,7 +1775,7 @@ handle_ar (int fd, Elf *elf, const char
976 - if (unlikely (futimes (fd, tvp) != 0))
977 + if (unlikely (FUTIMES (fd, fname, tvp) != 0))
979 error (0, errno, gettext ("\
980 cannot set access and modification date of '%s'"), fname);
981 --- elfutils/tests/ChangeLog
982 +++ elfutils/tests/ChangeLog
984 * Makefile.am (TESTS): Add run-elflint-test.sh.
985 (EXTRA_DIST): Add run-elflint-test.sh and testfile18.bz2.
987 +2005-05-31 Roland McGrath <roland@redhat.com>
989 + * Makefile.am (WEXTRA): New variable, substituted by configure.
990 + (AM_CFLAGS): Use it in place of -Wextra.
992 2005-05-24 Ulrich Drepper <drepper@redhat.com>
994 * get-files.c (main): Use correct format specifier.
995 --- elfutils/tests/Makefile.am
996 +++ elfutils/tests/Makefile.am
998 ## <http://www.openinventionnetwork.com>.
1000 DEFS = -DHAVE_CONFIG_H -D_GNU_SOURCE
1003 -AM_CFLAGS = -Wall -Werror -Wextra -std=gnu99 -fmudflap\
1004 +AM_CFLAGS = -Wall -Werror $(WEXTRA) -std=gnu99 -fmudflap\
1005 $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2)
1006 BUILD_RPATH = \$$ORIGIN/../backends
1008 -AM_CFLAGS = -Wall -Werror -Wextra -std=gnu99 \
1009 +AM_CFLAGS = -Wall -Werror $(WEXTRA) -std=gnu99 \
1010 $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2)
1011 BUILT_RPATH = \$$ORIGIN/../libasm:\$$ORIGIN/../libdw:\$$ORIGIN/../backends:\$$ORIGIN/../libelf
1013 --- elfutils/tests/Makefile.in
1014 +++ elfutils/tests/Makefile.in
1015 @@ -315,6 +315,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
1016 INSTALL_SCRIPT = @INSTALL_SCRIPT@
1017 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
1019 +LD_AS_NEEDED = @LD_AS_NEEDED@
1022 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
1023 @@ -344,6 +345,7 @@ SHELL = @SHELL@
1028 XGETTEXT = @XGETTEXT@
1029 XGETTEXT_015 = @XGETTEXT_015@
1031 @@ -398,10 +400,10 @@ sysconfdir = @sysconfdir@
1032 target_alias = @target_alias@
1033 top_builddir = @top_builddir@
1034 top_srcdir = @top_srcdir@
1035 -@MUDFLAP_FALSE@AM_CFLAGS = -Wall -Werror -Wextra -std=gnu99 \
1036 +@MUDFLAP_FALSE@AM_CFLAGS = -Wall -Werror $(WEXTRA) -std=gnu99 \
1037 @MUDFLAP_FALSE@ $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2)
1039 -@MUDFLAP_TRUE@AM_CFLAGS = -Wall -Werror -Wextra -std=gnu99 -fmudflap\
1040 +@MUDFLAP_TRUE@AM_CFLAGS = -Wall -Werror $(WEXTRA) -std=gnu99 -fmudflap\
1041 @MUDFLAP_TRUE@ $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2)
1043 @MUDFLAP_TRUE@BUILD_RPATH = \$$ORIGIN/../backends