source: packages/libs/elfutils/patches/001-elfutils-portability.patch @ 27499

Last change on this file since 27499 was 27499, checked in by florian, 5 years ago

[package] elfutils: package libelf and libdw, update to 0.152

File size: 38.1 KB
  • backends/ChangeLog

    a b  
    111111        * ppc_attrs.c (ppc_check_object_attribute): Handle tag 
    112112        GNU_Power_ABI_Struct_Return. 
    113113 
     1142009-01-23  Roland McGrath  <roland@redhat.com> 
     115 
     116        * Makefile.am (libebl_%.so): Use $(LD_AS_NEEDED). 
     117 
    1141182008-10-04  Ulrich Drepper  <drepper@redhat.com> 
    115119 
    116120        * i386_reloc.def: Fix entries for TLS_GOTDESC, TLS_DESC_CALL, and 
     
    438442        * sparc_init.c: Likewise. 
    439443        * x86_64_init.c: Likewise. 
    440444 
     4452005-11-22  Roland McGrath  <roland@redhat.com> 
     446 
     447        * Makefile.am (LD_AS_NEEDED): New variable, substituted by configure. 
     448        (libebl_%.so rule): Use it in place of -Wl,--as-needed. 
     449 
    4414502005-11-19  Roland McGrath  <roland@redhat.com> 
    442451 
    443452        * ppc64_reloc.def: REL30 -> ADDR30. 
     
    460469        * Makefile.am (uninstall): Don't try to remove $(pkgincludedir). 
    461470        (CLEANFILES): Add libebl_$(m).so. 
    462471 
     472        * Makefile.am (WEXTRA): New variable, substituted by configure. 
     473        (AM_CFLAGS): Use it in place of -Wextra. 
     474 
    463475        * ppc_reloc.def: Update bits per Alan Modra <amodra@bigpond.net.au>. 
    464476        * ppc64_reloc.def: Likewise. 
    465477 
  • backends/Makefile.am

    a b libebl_%.so libebl_%.map: libebl_%_pic.a 
    103103        $(LINK) -shared -o $(@:.map=.so) \ 
    104104                -Wl,--whole-archive $< $(cpu_$*) -Wl,--no-whole-archive \ 
    105105                -Wl,--version-script,$(@:.so=.map) \ 
    106                 -Wl,-z,defs -Wl,--as-needed $(libelf) $(libdw) $(libmudflap) 
     106                -Wl,-z,defs $(LD_AS_NEEDED) $(libelf) $(libdw) $(libmudflap) 
    107107        $(textrel_check) 
    108108 
    109109libebl_i386.so: $(cpu_i386) 
  • backends/Makefile.in

    a b INSTALL_PROGRAM = @INSTALL_PROGRAM@ 
    165165INSTALL_SCRIPT = @INSTALL_SCRIPT@ 
    166166INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 
    167167LDFLAGS = @LDFLAGS@ 
     168LD_AS_NEEDED = @LD_AS_NEEDED@ 
    168169LEX = @LEX@ 
    169170LEXLIB = @LEXLIB@ 
    170171LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ 
    SHELL = @SHELL@ 
    194195STRIP = @STRIP@ 
    195196USE_NLS = @USE_NLS@ 
    196197VERSION = @VERSION@ 
     198WEXTRA = @WEXTRA@ 
    197199XGETTEXT = @XGETTEXT@ 
    198200XGETTEXT_015 = @XGETTEXT_015@ 
    199201XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ 
    INCLUDES = -I. -I$(srcdir) -I$(top_srcdi 
    257259        -I$(top_srcdir)/libelf -I$(top_srcdir)/libdw 
    258260AM_CFLAGS = -std=gnu99 -Wall -Wshadow $(if \ 
    259261        $($(*F)_no_Werror),,-Werror) $(if \ 
    260         $($(*F)_no_Wunused),,-Wunused -Wextra) $(if \ 
     262        $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) $(if \ 
    261263        $($(*F)_no_Wformat),-Wno-format,-Wformat=2) $($(*F)_CFLAGS) \ 
    262264        $(am__append_1) 
    263265@MUDFLAP_FALSE@libmudflap =  
    libebl_%.so libebl_%.map: libebl_%_pic.a 
    698700        $(LINK) -shared -o $(@:.map=.so) \ 
    699701                -Wl,--whole-archive $< $(cpu_$*) -Wl,--no-whole-archive \ 
    700702                -Wl,--version-script,$(@:.so=.map) \ 
    701                 -Wl,-z,defs -Wl,--as-needed $(libelf) $(libdw) $(libmudflap) 
     703                -Wl,-z,defs $(LD_AS_NEEDED) $(libelf) $(libdw) $(libmudflap) 
    702704        $(textrel_check) 
    703705 
    704706libebl_i386.so: $(cpu_i386) 
  • ChangeLog

    a b  
    1313 
    1414        * configure.ac (LOCALEDIR, DATADIRNAME): Removed. 
    1515 
     162009-11-22  Roland McGrath  <roland@redhat.com> 
     17 
     18        * configure.ac: Use sed and expr instead of modern bash extensions. 
     19 
    16202009-09-21  Ulrich Drepper  <drepper@redhat.com> 
    1721 
    1822        * configure.ac: Update for more modern autoconf. 
     
    2125 
    2226        * configure.ac (zip_LIBS): Check for liblzma too. 
    2327 
     282009-08-17  Roland McGrath  <roland@redhat.com> 
     29 
     30        * configure.ac: Check for -fgnu89-inline; add it to WEXTRA if it works. 
     31 
    24322009-04-19  Roland McGrath  <roland@redhat.com> 
    2533 
    2634        * configure.ac (eu_version): Round down here, not in version.h macros. 
     
    3240 
    33412009-01-23  Roland McGrath  <roland@redhat.com> 
    3442 
     43        * configure.ac: Check for __builtin_popcount. 
     44 
    3545        * configure.ac (zlib check): Check for gzdirect, need zlib >= 1.2.2.3. 
    3646 
    3747        * configure.ac (__thread check): Use AC_LINK_IFELSE, in case of 
     
    112122        * configure.ac: Add dummy automake conditional to get dependencies 
    113123        for non-generic linker right.  See src/Makefile.am. 
    114124 
     1252005-11-22  Roland McGrath  <roland@redhat.com> 
     126 
     127        * configure.ac: Check for --as-needed linker option. 
     128 
    1151292005-11-18  Roland McGrath  <roland@redhat.com> 
    116130 
    117131        * Makefile.am (DISTCHECK_CONFIGURE_FLAGS): New variable. 
     
    159173        * Makefile.am (all_SUBDIRS): Add libdwfl. 
    160174        * configure.ac: Write libdwfl/Makefile. 
    161175 
     1762005-05-31  Roland McGrath  <roland@redhat.com> 
     177 
     178        * configure.ac (WEXTRA): Check for -Wextra and set this substitution. 
     179 
     180        * configure.ac: Check for struct stat st_?tim members. 
     181        * src/strip.c (process_file): Use st_?time if st_?tim are not there. 
     182 
     183        * configure.ac: Check for futimes function. 
     184        * src/strip.c (handle_elf) [! HAVE_FUTIMES]: Use utimes instead. 
     185        (handle_ar) [! HAVE_FUTIMES]: Likewise. 
     186 
    1621872005-05-19  Roland McGrath  <roland@redhat.com> 
    163188 
    164189        * configure.ac [AH_BOTTOM] (INTDECL, _INTDECL): New macros. 
  • config/eu.am

    a b  
    2525## <http://www.openinventionnetwork.com>. 
    2626## 
    2727 
     28WEXTRA = @WEXTRA@ 
     29LD_AS_NEEDED = @LD_AS_NEEDED@ 
     30 
    2831DEFS = -D_GNU_SOURCE -DHAVE_CONFIG_H -DLOCALEDIR='"${localedir}"' 
    2932INCLUDES = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. 
    3033AM_CFLAGS = -std=gnu99 -Wall -Wshadow \ 
    3134            $(if $($(*F)_no_Werror),,-Werror) \ 
    32             $(if $($(*F)_no_Wunused),,-Wunused -Wextra) \ 
     35            $(if $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) \ 
    3336            $(if $($(*F)_no_Wformat),-Wno-format,-Wformat=2) \ 
    3437            $($(*F)_CFLAGS) 
    3538 
  • config/Makefile.in

    a b INSTALL_PROGRAM = @INSTALL_PROGRAM@ 
    7676INSTALL_SCRIPT = @INSTALL_SCRIPT@ 
    7777INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 
    7878LDFLAGS = @LDFLAGS@ 
     79LD_AS_NEEDED = @LD_AS_NEEDED@ 
    7980LEX = @LEX@ 
    8081LEXLIB = @LEXLIB@ 
    8182LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ 
    SHELL = @SHELL@ 
    105106STRIP = @STRIP@ 
    106107USE_NLS = @USE_NLS@ 
    107108VERSION = @VERSION@ 
     109WEXTRA = @WEXTRA@ 
    108110XGETTEXT = @XGETTEXT@ 
    109111XGETTEXT_015 = @XGETTEXT_015@ 
    110112XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ 
  • config.h.in

    a b  
    11/* config.h.in.  Generated from configure.ac by autoheader.  */ 
    22 
     3/* Have __builtin_popcount. */ 
     4#undef HAVE_BUILTIN_POPCOUNT 
     5 
    36/* $libdir subdirectory containing libebl modules. */ 
    47#undef LIBEBL_SUBDIR 
    58 
     
    5558/* Define for large files, on AIX-style hosts. */ 
    5659#undef _LARGE_FILES 
    5760 
     61/* Stubbed out if missing compiler support. */ 
     62#undef __thread 
     63 
    5864#include <eu-config.h> 
  • configure

    a b NEVER_TRUE 
    602602base_cpu 
    603603NATIVE_LD_FALSE 
    604604NATIVE_LD_TRUE 
     605LD_AS_NEEDED 
     606WEXTRA 
    605607LEXLIB 
    606608LEX_OUTPUT_ROOT 
    607609LEX 
    if test "x$ac_cv_c99" != xyes; then : 
    38563858  as_fn_error $? "gcc with C99 support required" "$LINENO" 5 
    38573859fi 
    38583860 
     3861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Wextra option to $CC" >&5 
     3862$as_echo_n "checking for -Wextra option to $CC... " >&6; } 
     3863if test "${ac_cv_cc_wextra+set}" = set; then : 
     3864  $as_echo_n "(cached) " >&6 
     3865else 
     3866  old_CFLAGS="$CFLAGS" 
     3867CFLAGS="$CFLAGS -Wextra" 
     3868cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     3869/* end confdefs.h.  */ 
     3870void foo (void) { } 
     3871_ACEOF 
     3872if ac_fn_c_try_compile "$LINENO"; then : 
     3873  ac_cv_cc_wextra=yes 
     3874else 
     3875  ac_cv_cc_wextra=no 
     3876fi 
     3877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     3878CFLAGS="$old_CFLAGS" 
     3879fi 
     3880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_wextra" >&5 
     3881$as_echo "$ac_cv_cc_wextra" >&6; } 
     3882 
     3883if test "x$ac_cv_cc_wextra" = xyes; then : 
     3884  WEXTRA=-Wextra 
     3885else 
     3886  WEXTRA=-W 
     3887fi 
     3888 
     3889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -fgnu89-inline option to $CC" >&5 
     3890$as_echo_n "checking for -fgnu89-inline option to $CC... " >&6; } 
     3891if test "${ac_cv_cc_gnu89_inline+set}" = set; then : 
     3892  $as_echo_n "(cached) " >&6 
     3893else 
     3894  old_CFLAGS="$CFLAGS" 
     3895CFLAGS="$CFLAGS -fgnu89-inline -Werror" 
     3896cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     3897/* end confdefs.h.  */ 
     3898 
     3899void foo (void) 
     3900{ 
     3901  inline void bar (void) {} 
     3902  bar (); 
     3903} 
     3904extern inline void baz (void) {} 
     3905 
     3906_ACEOF 
     3907if ac_fn_c_try_compile "$LINENO"; then : 
     3908  ac_cv_cc_gnu89_inline=yes 
     3909else 
     3910  ac_cv_cc_gnu89_inline=no 
     3911fi 
     3912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     3913CFLAGS="$old_CFLAGS" 
     3914fi 
     3915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cc_gnu89_inline" >&5 
     3916$as_echo "$ac_cv_cc_gnu89_inline" >&6; } 
     3917if test "x$ac_cv_cc_gnu89_inline" = xyes; then : 
     3918  WEXTRA="${WEXTRA:+$WEXTRA }-fgnu89-inline" 
     3919fi 
     3920 
     3921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --as-needed linker option" >&5 
     3922$as_echo_n "checking for --as-needed linker option... " >&6; } 
     3923if test "${ac_cv_as_needed+set}" = set; then : 
     3924  $as_echo_n "(cached) " >&6 
     3925else 
     3926  cat > conftest.c <<EOF 
     3927int main (void) { return 0; } 
     3928EOF 
     3929if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS 
     3930                            -fPIC -shared -o conftest.so conftest.c 
     3931                            -Wl,--as-needed 1>&5' 
     3932  { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 
     3933  (eval $ac_try) 2>&5 
     3934  ac_status=$? 
     3935  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 
     3936  test $ac_status = 0; }; } 
     3937then 
     3938  ac_cv_as_needed=yes 
     3939else 
     3940  ac_cv_as_needed=no 
     3941fi 
     3942rm -f conftest* 
     3943fi 
     3944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_as_needed" >&5 
     3945$as_echo "$ac_cv_as_needed" >&6; } 
     3946if test "x$ac_cv_as_needed" = xyes; then : 
     3947  LD_AS_NEEDED=-Wl,--as-needed 
     3948else 
     3949  LD_AS_NEEDED= 
     3950fi 
     3951 
     3952 
     3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __builtin_popcount" >&5 
     3954$as_echo_n "checking for __builtin_popcount... " >&6; } 
     3955if test "${ac_cv_popcount+set}" = set; then : 
     3956  $as_echo_n "(cached) " >&6 
     3957else 
     3958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
     3959/* end confdefs.h.  */ 
     3960 
     3961int 
     3962main () 
     3963{ 
     3964exit (__builtin_popcount (127)); 
     3965  ; 
     3966  return 0; 
     3967} 
     3968_ACEOF 
     3969if ac_fn_c_try_link "$LINENO"; then : 
     3970  ac_cv_popcount=yes 
     3971else 
     3972  ac_cv_popcount=no 
     3973fi 
     3974rm -f core conftest.err conftest.$ac_objext \ 
     3975    conftest$ac_exeext conftest.$ac_ext 
     3976fi 
     3977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_popcount" >&5 
     3978$as_echo "$ac_cv_popcount" >&6; } 
     3979if test "x$ac_cv_popcount" = xyes; then : 
     3980 
     3981$as_echo "#define HAVE_BUILTIN_POPCOUNT 1" >>confdefs.h 
     3982 
     3983fi 
     3984 
    38593985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread support" >&5 
    38603986$as_echo_n "checking for __thread support... " >&6; } 
    38613987if test "${ac_cv_tls+set}" = set; then : 
    fi 
    38924018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5 
    38934019$as_echo "$ac_cv_tls" >&6; } 
    38944020if test "x$ac_cv_tls" != xyes; then : 
    3895   as_fn_error $? "__thread support required" "$LINENO" 5 
     4021  if test "$use_locks" = yes; then : 
     4022    as_fn_error "--enable-thread-safety requires __thread support" "$LINENO" 5 
     4023  else 
     4024    as_echo "#define __thread /* empty: no multi-thread support */" >>confdefs.h 
     4025  fi 
    38964026fi 
    38974027 
    38984028# Check whether --enable-largefile was given. 
    ac_config_files="$ac_config_files versio 
    48785008 
    48795009# 1.234<whatever> -> 1234<whatever> 
    48805010case "$PACKAGE_VERSION" in 
    4881 [0-9].*) eu_version="${PACKAGE_VERSION/./}" ;; 
     5011[0-9].*) eu_version=`echo "$PACKAGE_VERSION" | sed 's@\.@@'` ;; 
    48825012*)         as_fn_error $? "confused by version number '$PACKAGE_VERSION'" "$LINENO" 5 ;; 
    48835013esac 
    48845014case "$eu_version" in 
    case "$eu_version" in 
    49075037esac 
    49085038 
    49095039# Round up to the next release API (x.y) version. 
    4910 eu_version=$[($eu_version + 999) / 1000] 
     5040eu_version=`expr \( $eu_version + 999 \) / 1000` 
    49115041 
    49125042cat >confcache <<\_ACEOF 
    49135043# This file is a shell script that caches the results of configure 
  • configure.ac

    a b CFLAGS="$old_CFLAGS"]) 
    7070AS_IF([test "x$ac_cv_c99" != xyes], 
    7171      AC_MSG_ERROR([gcc with C99 support required])) 
    7272 
     73AC_CACHE_CHECK([for -Wextra option to $CC], ac_cv_cc_wextra, [dnl 
     74old_CFLAGS="$CFLAGS" 
     75CFLAGS="$CFLAGS -Wextra" 
     76AC_COMPILE_IFELSE([void foo (void) { }], 
     77                  ac_cv_cc_wextra=yes, ac_cv_cc_wextra=no) 
     78CFLAGS="$old_CFLAGS"]) 
     79AC_SUBST(WEXTRA) 
     80AS_IF([test "x$ac_cv_cc_wextra" = xyes], [WEXTRA=-Wextra], [WEXTRA=-W]) 
     81 
     82AC_CACHE_CHECK([for -fgnu89-inline option to $CC], ac_cv_cc_gnu89_inline, [dnl 
     83old_CFLAGS="$CFLAGS" 
     84CFLAGS="$CFLAGS -fgnu89-inline -Werror" 
     85AC_COMPILE_IFELSE([ 
     86void foo (void) 
     87{ 
     88  inline void bar (void) {} 
     89  bar (); 
     90} 
     91extern inline void baz (void) {} 
     92], ac_cv_cc_gnu89_inline=yes, ac_cv_cc_gnu89_inline=no) 
     93CFLAGS="$old_CFLAGS"]) 
     94AS_IF([test "x$ac_cv_cc_gnu89_inline" = xyes], 
     95      [WEXTRA="${WEXTRA:+$WEXTRA }-fgnu89-inline"]) 
     96 
     97AC_CACHE_CHECK([for --as-needed linker option], 
     98               ac_cv_as_needed, [dnl 
     99cat > conftest.c <<EOF 
     100int main (void) { return 0; } 
     101EOF 
     102if AC_TRY_COMMAND([${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS 
     103                            -fPIC -shared -o conftest.so conftest.c 
     104                            -Wl,--as-needed 1>&AS_MESSAGE_LOG_FD]) 
     105then 
     106  ac_cv_as_needed=yes 
     107else 
     108  ac_cv_as_needed=no 
     109fi 
     110rm -f conftest*]) 
     111AS_IF([test "x$ac_cv_as_needed" = xyes], 
     112      [LD_AS_NEEDED=-Wl,--as-needed], [LD_AS_NEEDED=]) 
     113AC_SUBST(LD_AS_NEEDED) 
     114 
     115AC_CACHE_CHECK([for __builtin_popcount], ac_cv_popcount, [dnl 
     116AC_LINK_IFELSE([AC_LANG_PROGRAM([], [[exit (__builtin_popcount (127));]])], 
     117               ac_cv_popcount=yes, ac_cv_popcount=no)]) 
     118AS_IF([test "x$ac_cv_popcount" = xyes], 
     119      [AC_DEFINE([HAVE_BUILTIN_POPCOUNT], [1], [Have __builtin_popcount.])]) 
     120 
    73121AC_CACHE_CHECK([for __thread support], ac_cv_tls, [dnl 
    74122# Use the same flags that we use for our DSOs, so the test is representative. 
    75123# Some old compiler/linker/libc combinations fail some ways and not others. 
    static __thread int a; int foo (int b) { 
    85133CFLAGS="$save_CFLAGS" 
    86134LDFLAGS="$save_LDFLAGS"]) 
    87135AS_IF([test "x$ac_cv_tls" != xyes], 
    88       AC_MSG_ERROR([__thread support required])) 
     136      [AS_IF([test "$use_locks" = yes], 
     137             [AC_MSG_ERROR([--enable-thread-safety requires __thread support])], 
     138             [AC_DEFINE([__thread], [/* empty: no multi-thread support */], 
     139                        [Stubbed out if missing compiler support.])])]) 
    89140 
    90141dnl This test must come as early as possible after the compiler configuration 
    91142dnl tests, because the choice of the file model can (in principle) affect 
    AC_SUBST([eu_version]) 
    248299 
    249300# 1.234<whatever> -> 1234<whatever> 
    250301case "$PACKAGE_VERSION" in 
    251 [[0-9]].*) eu_version="${PACKAGE_VERSION/./}" ;; 
     302[[0-9]].*) eu_version=`echo "$PACKAGE_VERSION" | sed 's@\.@@'` ;; 
    252303*)         AC_MSG_ERROR([confused by version number '$PACKAGE_VERSION']) ;; 
    253304esac 
    254305case "$eu_version" in 
    case "$eu_version" in 
    277328esac 
    278329 
    279330# Round up to the next release API (x.y) version. 
    280 [eu_version=$[($eu_version + 999) / 1000]] 
     331eu_version=`expr \( $eu_version + 999 \) / 1000` 
    281332 
    282333AC_OUTPUT 
  • lib/ChangeLog

    a b  
    1414 
    15152009-01-23  Roland McGrath  <roland@redhat.com> 
    1616 
     17        * eu-config.h [! HAVE_BUILTIN_POPCOUNT] 
     18        (__builtin_popcount): New inline function. 
     19 
    1720        * eu-config.h: Add multiple inclusion protection. 
    1821 
    19222009-01-17  Ulrich Drepper  <drepper@redhat.com> 
     
    7073        * Makefile.am (libeu_a_SOURCES): Add it. 
    7174        * system.h: Declare crc32_file. 
    7275 
     762005-02-07  Roland McGrath  <roland@redhat.com> 
     77 
     78        * Makefile.am (WEXTRA): New variable, substituted by configure. 
     79        (AM_CFLAGS): Use it in place of -Wextra. 
     80 
    73812005-04-30  Ulrich Drepper  <drepper@redhat.com> 
    7482 
    7583        * Makefile.am: Use -ffunction-sections for xmalloc.c. 
  • lib/eu-config.h

    a b asm (".section predict_data, \"aw\"; .pr 
    182182/* This macro is used by the tests conditionalize for standalone building.  */ 
    183183#define ELFUTILS_HEADER(name) <lib##name.h> 
    184184 
     185#ifndef HAVE_BUILTIN_POPCOUNT 
     186# define __builtin_popcount hakmem_popcount 
     187static inline unsigned int __attribute__ ((unused)) 
     188hakmem_popcount (unsigned int x) 
     189{ 
     190  /* HAKMEM 169 */ 
     191  unsigned int n = x - ((x >> 1) & 033333333333) - ((x >> 2) & 011111111111); 
     192  return ((n + (n >> 3)) & 030707070707) % 63; 
     193} 
     194#endif  /* HAVE_BUILTIN_POPCOUNT */ 
     195 
    185196 
    186197#ifdef SHARED 
    187198# define OLD_VERSION(name, version) \ 
  • lib/Makefile.in

    a b INSTALL_PROGRAM = @INSTALL_PROGRAM@ 
    9999INSTALL_SCRIPT = @INSTALL_SCRIPT@ 
    100100INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 
    101101LDFLAGS = @LDFLAGS@ 
     102LD_AS_NEEDED = @LD_AS_NEEDED@ 
    102103LEX = @LEX@ 
    103104LEXLIB = @LEXLIB@ 
    104105LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ 
    SHELL = @SHELL@ 
    128129STRIP = @STRIP@ 
    129130USE_NLS = @USE_NLS@ 
    130131VERSION = @VERSION@ 
     132WEXTRA = @WEXTRA@ 
    131133XGETTEXT = @XGETTEXT@ 
    132134XGETTEXT_015 = @XGETTEXT_015@ 
    133135XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ 
    INCLUDES = -I. -I$(srcdir) -I$(top_srcdi 
    190192        -I$(srcdir)/../libelf 
    191193AM_CFLAGS = -std=gnu99 -Wall -Wshadow $(if \ 
    192194        $($(*F)_no_Werror),,-Werror) $(if \ 
    193         $($(*F)_no_Wunused),,-Wunused -Wextra) $(if \ 
     195        $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) $(if \ 
    194196        $($(*F)_no_Wformat),-Wno-format,-Wformat=2) $($(*F)_CFLAGS) \ 
    195197        $(am__append_1) -fpic 
    196198@MUDFLAP_FALSE@libmudflap =  
  • libasm/ChangeLog

    a b  
    7171        * asm_error.c: Add new error ASM_E_IOERROR. 
    7272        * libasmP.h: Add ASM_E_IOERROR definition. 
    7373 
     742005-05-31  Roland McGrath  <roland@redhat.com> 
     75 
     76        * Makefile.am (WEXTRA): New variable, substituted by configure. 
     77        (AM_CFLAGS): Use it in place of -Wextra. 
     78 
    74792005-02-15  Ulrich Drepper  <drepper@redhat.com> 
    7580 
    7681        * Makefile.am (AM_CFLAGS): Add -Wunused -Wextra -Wformat=2. 
  • libasm/Makefile.in

    a b INSTALL_PROGRAM = @INSTALL_PROGRAM@ 
    147147INSTALL_SCRIPT = @INSTALL_SCRIPT@ 
    148148INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 
    149149LDFLAGS = @LDFLAGS@ 
     150LD_AS_NEEDED = @LD_AS_NEEDED@ 
    150151LEX = @LEX@ 
    151152LEXLIB = @LEXLIB@ 
    152153LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ 
    SHELL = @SHELL@ 
    176177STRIP = @STRIP@ 
    177178USE_NLS = @USE_NLS@ 
    178179VERSION = 1 
     180WEXTRA = @WEXTRA@ 
    179181XGETTEXT = @XGETTEXT@ 
    180182XGETTEXT_015 = @XGETTEXT_015@ 
    181183XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ 
    INCLUDES = -I. -I$(srcdir) -I$(top_srcdi 
    239241        -I$(top_srcdir)/libdw 
    240242AM_CFLAGS = -std=gnu99 -Wall -Wshadow $(if \ 
    241243        $($(*F)_no_Werror),,-Werror) $(if \ 
    242         $($(*F)_no_Wunused),,-Wunused -Wextra) $(if \ 
     244        $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) $(if \ 
    243245        $($(*F)_no_Wformat),-Wno-format,-Wformat=2) $($(*F)_CFLAGS) \ 
    244246        $(am__append_1) 
    245247@MUDFLAP_FALSE@libmudflap =  
  • libcpu/ChangeLog

    a b  
    1515 
    16162009-01-23  Roland McGrath  <roland@redhat.com> 
    1717 
     18        * i386_disasm.c (i386_disasm): Add abort after assert-constant for old 
     19        compilers that don't realize it's noreturn. 
     20 
    1821        * Makefile.am (i386_parse_CFLAGS): Use quotes around command 
    1922        substitution that can produce leading whitespace. 
    2023 
     
    344347        * defs/i386.doc: New file. 
    345348        * defs/x86_64: New file. 
    346349 
     3502005-04-04  Roland McGrath  <roland@redhat.com> 
     351 
     352        * Makefile.am (WEXTRA): New variable, substituted by configure. 
     353        (AM_CFLAGS): Use it instead of -Wextra. 
     354 
    3473552005-02-15  Ulrich Drepper  <drepper@redhat.com> 
    348356 
    349357        * Makefile (AM_CFLAGS): Add -Wunused -Wextra -Wformat=2. 
  • libcpu/i386_disasm.c

    a b i386_disasm (const uint8_t **startp, con 
    791791 
    792792                        default: 
    793793                          assert (! "INVALID not handled"); 
     794                          abort (); 
    794795                        } 
    795796                    } 
    796797                  else 
  • libcpu/Makefile.in

    a b INSTALL_PROGRAM = @INSTALL_PROGRAM@ 
    116116INSTALL_SCRIPT = @INSTALL_SCRIPT@ 
    117117INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 
    118118LDFLAGS = @LDFLAGS@ 
     119LD_AS_NEEDED = @LD_AS_NEEDED@ 
    119120LEX = @LEX@ 
    120121LEXLIB = @LEXLIB@ 
    121122LEX_OUTPUT_ROOT = lex.$(<F:lex.l=) 
    SHELL = @SHELL@ 
    145146STRIP = @STRIP@ 
    146147USE_NLS = @USE_NLS@ 
    147148VERSION = @VERSION@ 
     149WEXTRA = @WEXTRA@ 
    148150XGETTEXT = @XGETTEXT@ 
    149151XGETTEXT_015 = @XGETTEXT_015@ 
    150152XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ 
    INCLUDES = -I. -I$(srcdir) -I$(top_srcdi 
    208210        -I$(srcdir)/../libdw -I$(srcdir)/../libasm 
    209211AM_CFLAGS = -std=gnu99 -Wall -Wshadow $(if \ 
    210212        $($(*F)_no_Werror),,-Werror) $(if \ 
    211         $($(*F)_no_Wunused),,-Wunused -Wextra) $(if \ 
     213        $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) $(if \ 
    212214        $($(*F)_no_Wformat),-Wno-format,-Wformat=2) $($(*F)_CFLAGS) \ 
    213215        $(am__append_1) -fpic -fdollars-in-identifiers 
    214216@MUDFLAP_FALSE@libmudflap =  
  • libdw/ChangeLog

    a b  
    308308 
    309309        * dwarf_hasattr_integrate.c: Integrate DW_AT_specification too. 
    310310 
     3112009-08-17  Roland McGrath  <roland@redhat.com> 
     312 
     313        * libdw.h: Disable extern inlines for GCC 4.2. 
     314 
    3113152009-08-10  Roland McGrath  <roland@redhat.com> 
    312316 
    313317        * dwarf_getscopevar.c: Use dwarf_diename. 
     
    10761080 
    107710812005-05-31  Roland McGrath  <roland@redhat.com> 
    10781082 
     1083        * Makefile.am (WEXTRA): New variable, substituted by configure. 
     1084        (AM_CFLAGS): Use it in place of -Wextra. 
     1085 
     10862005-05-31  Roland McGrath  <roland@redhat.com> 
     1087 
    10791088        * dwarf_formref_die.c (dwarf_formref_die): Add CU header offset to 
    10801089        formref offset. 
    10811090 
  • libdw/libdw.h

    a b extern Dwarf_OOM dwarf_new_oom_handler ( 
    852852 
    853853 
    854854/* Inline optimizations.  */ 
    855 #ifdef __OPTIMIZE__ 
     855#if defined __OPTIMIZE__ && !(__GNUC__ == 4 && __GNUC_MINOR__ == 2) 
    856856/* Return attribute code of given attribute.  */ 
    857857__libdw_extern_inline unsigned int 
    858858dwarf_whatattr (Dwarf_Attribute *attr) 
  • libdw/Makefile.in

    a b INSTALL_PROGRAM = @INSTALL_PROGRAM@ 
    192192INSTALL_SCRIPT = @INSTALL_SCRIPT@ 
    193193INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 
    194194LDFLAGS = @LDFLAGS@ 
     195LD_AS_NEEDED = @LD_AS_NEEDED@ 
    195196LEX = @LEX@ 
    196197LEXLIB = @LEXLIB@ 
    197198LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ 
    SHELL = @SHELL@ 
    221222STRIP = @STRIP@ 
    222223USE_NLS = @USE_NLS@ 
    223224VERSION = 1 
     225WEXTRA = @WEXTRA@ 
    224226XGETTEXT = @XGETTEXT@ 
    225227XGETTEXT_015 = @XGETTEXT_015@ 
    226228XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ 
    INCLUDES = -I. -I$(srcdir) -I$(top_srcdi 
    283285        -I$(srcdir)/../libelf 
    284286AM_CFLAGS = -std=gnu99 -Wall -Wshadow $(if \ 
    285287        $($(*F)_no_Werror),,-Werror) $(if \ 
    286         $($(*F)_no_Wunused),,-Wunused -Wextra) $(if \ 
     288        $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) $(if \ 
    287289        $($(*F)_no_Wformat),-Wno-format,-Wformat=2) $($(*F)_CFLAGS) \ 
    288290        $(am__append_1) $(am__append_2) 
    289291@MUDFLAP_FALSE@libmudflap =  
  • libdwfl/ChangeLog

    a b  
    13661366 
    136713672005-07-21  Roland McGrath  <roland@redhat.com> 
    13681368 
     1369        * Makefile.am (WEXTRA): New variable, substituted by configure. 
     1370        (AM_CFLAGS): Use it in place of -Wextra. 
     1371 
     13722005-07-21  Roland McGrath  <roland@redhat.com> 
     1373 
    13691374        * Makefile.am (noinst_HEADERS): Add loc2c.c. 
    13701375 
    13711376        * test2.c (main): Check sscanf result to quiet warning. 
  • libdwfl/Makefile.in

    a b INSTALL_PROGRAM = @INSTALL_PROGRAM@ 
    182182INSTALL_SCRIPT = @INSTALL_SCRIPT@ 
    183183INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 
    184184LDFLAGS = @LDFLAGS@ 
     185LD_AS_NEEDED = @LD_AS_NEEDED@ 
    185186LEX = @LEX@ 
    186187LEXLIB = @LEXLIB@ 
    187188LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ 
    SHELL = @SHELL@ 
    211212STRIP = @STRIP@ 
    212213USE_NLS = @USE_NLS@ 
    213214VERSION = 1 
     215WEXTRA = @WEXTRA@ 
    214216XGETTEXT = @XGETTEXT@ 
    215217XGETTEXT_015 = @XGETTEXT_015@ 
    216218XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ 
    INCLUDES = -I. -I$(srcdir) -I$(top_srcdi 
    274276        -I$(srcdir)/../libdw 
    275277AM_CFLAGS = -std=gnu99 -Wall -Wshadow $(if \ 
    276278        $($(*F)_no_Werror),,-Werror) $(if \ 
    277         $($(*F)_no_Wunused),,-Wunused -Wextra) $(if \ 
     279        $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) $(if \ 
    278280        $($(*F)_no_Wformat),-Wno-format,-Wformat=2) $($(*F)_CFLAGS) \ 
    279281        $(am__append_1) 
    280282@MUDFLAP_FALSE@libmudflap =  
  • libebl/ChangeLog

    a b  
    628628        * Makefile.am (libebl_*_so_SOURCES): Set to $(*_SRCS) so dependency 
    629629        tracking works right. 
    630630 
     6312005-05-31  Roland McGrath  <roland@redhat.com> 
     632 
     633        * Makefile.am (WEXTRA): New variable, substituted by configure. 
     634        (AM_CFLAGS): Use it in place of -Wextra. 
     635 
    6316362005-05-21  Ulrich Drepper  <drepper@redhat.com> 
    632637 
    633638        * libebl_x86_64.map: Add x86_64_core_note. 
  • libebl/Makefile.in

    a b INSTALL_PROGRAM = @INSTALL_PROGRAM@ 
    143143INSTALL_SCRIPT = @INSTALL_SCRIPT@ 
    144144INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 
    145145LDFLAGS = @LDFLAGS@ 
     146LD_AS_NEEDED = @LD_AS_NEEDED@ 
    146147LEX = @LEX@ 
    147148LEXLIB = @LEXLIB@ 
    148149LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ 
    SHELL = @SHELL@ 
    172173STRIP = @STRIP@ 
    173174USE_NLS = @USE_NLS@ 
    174175VERSION = 1 
     176WEXTRA = @WEXTRA@ 
    175177XGETTEXT = @XGETTEXT@ 
    176178XGETTEXT_015 = @XGETTEXT_015@ 
    177179XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ 
    INCLUDES = -I. -I$(srcdir) -I$(top_srcdi 
    235237        -I$(srcdir)/../libasm 
    236238AM_CFLAGS = -std=gnu99 -Wall -Wshadow $(if \ 
    237239        $($(*F)_no_Werror),,-Werror) $(if \ 
    238         $($(*F)_no_Wunused),,-Wunused -Wextra) $(if \ 
     240        $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) $(if \ 
    239241        $($(*F)_no_Wformat),-Wno-format,-Wformat=2) $($(*F)_CFLAGS) \ 
    240242        $(am__append_1) -fpic 
    241243@MUDFLAP_FALSE@libmudflap =  
  • libelf/ChangeLog

    a b  
    671671 
    672672        * elf.h: Update from glibc. 
    673673 
     6742005-05-31  Roland McGrath  <roland@redhat.com> 
     675 
     676        * Makefile.am (WEXTRA): New variable, substituted by configure. 
     677        (AM_CFLAGS): Use it in place of -Wextra. 
     678 
    6746792005-05-08  Roland McGrath  <roland@redhat.com> 
    675680 
    676681        * elf_begin.c (read_file) [_MUDFLAP]: Don't use mmap for now. 
  • libelf/common.h

    a b libelf_release_all (Elf *elf) 
    160160  (Var) = (sizeof (Var) == 1                                                  \ 
    161161           ? (unsigned char) (Var)                                            \ 
    162162           : (sizeof (Var) == 2                                               \ 
    163               ? bswap_16 (Var)                                                \ 
     163              ? (unsigned short int) bswap_16 (Var)                           \ 
    164164              : (sizeof (Var) == 4                                            \ 
    165165                 ? bswap_32 (Var)                                             \ 
    166166                 : bswap_64 (Var)))) 
    libelf_release_all (Elf *elf) 
    169169  (Dst) = (sizeof (Var) == 1                                                  \ 
    170170           ? (unsigned char) (Var)                                            \ 
    171171           : (sizeof (Var) == 2                                               \ 
    172               ? bswap_16 (Var)                                                \ 
     172              ? (unsigned short int) bswap_16 (Var)                           \ 
    173173              : (sizeof (Var) == 4                                            \ 
    174174                 ? bswap_32 (Var)                                             \ 
    175175                 : bswap_64 (Var)))) 
  • libelf/Makefile.in

    a b INSTALL_PROGRAM = @INSTALL_PROGRAM@ 
    189189INSTALL_SCRIPT = @INSTALL_SCRIPT@ 
    190190INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 
    191191LDFLAGS = @LDFLAGS@ 
     192LD_AS_NEEDED = @LD_AS_NEEDED@ 
    192193LEX = @LEX@ 
    193194LEXLIB = @LEXLIB@ 
    194195LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ 
    SHELL = @SHELL@ 
    218219STRIP = @STRIP@ 
    219220USE_NLS = @USE_NLS@ 
    220221VERSION = 1 
     222WEXTRA = @WEXTRA@ 
    221223XGETTEXT = @XGETTEXT@ 
    222224XGETTEXT_015 = @XGETTEXT_015@ 
    223225XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ 
    zip_LIBS = @zip_LIBS@ 
    279281INCLUDES = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. 
    280282AM_CFLAGS = -std=gnu99 -Wall -Wshadow $(if \ 
    281283        $($(*F)_no_Werror),,-Werror) $(if \ 
    282         $($(*F)_no_Wunused),,-Wunused -Wextra) $(if \ 
     284        $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) $(if \ 
    283285        $($(*F)_no_Wformat),-Wno-format,-Wformat=2) $($(*F)_CFLAGS) \ 
    284286        $(am__append_1) $(am__append_2) 
    285287@MUDFLAP_FALSE@libmudflap =  
  • m4/Makefile.in

    a b INSTALL_PROGRAM = @INSTALL_PROGRAM@ 
    7575INSTALL_SCRIPT = @INSTALL_SCRIPT@ 
    7676INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 
    7777LDFLAGS = @LDFLAGS@ 
     78LD_AS_NEEDED = @LD_AS_NEEDED@ 
    7879LEX = @LEX@ 
    7980LEXLIB = @LEXLIB@ 
    8081LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ 
    SHELL = @SHELL@ 
    104105STRIP = @STRIP@ 
    105106USE_NLS = @USE_NLS@ 
    106107VERSION = @VERSION@ 
     108WEXTRA = @WEXTRA@ 
    107109XGETTEXT = @XGETTEXT@ 
    108110XGETTEXT_015 = @XGETTEXT_015@ 
    109111XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ 
  • Makefile.in

    a b INSTALL_PROGRAM = @INSTALL_PROGRAM@ 
    155155INSTALL_SCRIPT = @INSTALL_SCRIPT@ 
    156156INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 
    157157LDFLAGS = @LDFLAGS@ 
     158LD_AS_NEEDED = @LD_AS_NEEDED@ 
    158159LEX = @LEX@ 
    159160LEXLIB = @LEXLIB@ 
    160161LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ 
    SHELL = @SHELL@ 
    184185STRIP = @STRIP@ 
    185186USE_NLS = @USE_NLS@ 
    186187VERSION = @VERSION@ 
     188WEXTRA = @WEXTRA@ 
    187189XGETTEXT = @XGETTEXT@ 
    188190XGETTEXT_015 = @XGETTEXT_015@ 
    189191XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ 
  • src/addr2line.c

    a b handle_address (const char *string, Dwfl 
    455455      bool parsed = false; 
    456456      int i, j; 
    457457      char *name = NULL; 
    458       if (sscanf (string, "(%m[^)])%" PRIiMAX "%n", &name, &addr, &i) == 2 
     458      if (sscanf (string, "(%a[^)])%" PRIiMAX "%n", &name, &addr, &i) == 2 
    459459          && string[i] == '\0') 
    460460        parsed = adjust_to_section (name, &addr, dwfl); 
    461       switch (sscanf (string, "%m[^-+]%n%" PRIiMAX "%n", &name, &i, &addr, &j)) 
     461      switch (sscanf (string, "%a[^-+]%n%" PRIiMAX "%n", &name, &i, &addr, &j)) 
    462462        { 
    463463        default: 
    464464          break; 
  • src/ChangeLog

    a b  
    260260        * readelf.c (attr_callback): Use print_block only when we don't use 
    261261        print_ops. 
    262262 
     2632009-08-17  Roland McGrath  <roland@redhat.com> 
     264 
     265        * ld.h: Disable extern inlines for GCC 4.2. 
     266 
    2632672009-08-14  Roland McGrath  <roland@redhat.com> 
    264268 
     269        * strings.c (read_block): Conditionalize posix_fadvise use 
     270        on [POSIX_FADV_SEQUENTIAL]. 
     271        From Petr Salinger <Petr.Salinger@seznam.cz>. 
     272 
    265273        * ar.c (do_oper_extract): Use pathconf instead of statfs. 
    266274 
    2672752009-08-01  Ulrich Drepper  <drepper@redhat.com> 
     
    425433        * readelf.c (print_debug_frame_section): Use t instead of j formats 
    426434        for ptrdiff_t OFFSET. 
    427435 
     436        * addr2line.c (handle_address): Use %a instead of %m for compatibility. 
     437 
    4284382009-01-21  Ulrich Drepper  <drepper@redhat.com> 
    429439 
    430440        * elflint.c (check_program_header): Fix typo in .eh_frame_hdr section 
     
    608618        that matches its PT_LOAD's p_flags &~ PF_W.  On sparc, PF_X really 
    609619        is valid in RELRO. 
    610620 
     6212008-03-01  Roland McGrath  <roland@redhat.com> 
     622 
     623        * readelf.c (dump_archive_index): Tweak portability hack 
     624        to match [__GNUC__ < 4] too. 
     625 
    6116262008-02-29  Roland McGrath  <roland@redhat.com> 
    612627 
    613628        * readelf.c (print_attributes): Add a cast. 
     
    859874 
    860875        * readelf.c (hex_dump): Fix rounding error in whitespace calculation. 
    861876 
     877        * Makefile.am (readelf_no_Werror): New variable. 
     878 
    8628792007-10-15  Roland McGrath  <roland@redhat.com> 
    863880 
    864881        * make-debug-archive.in: New file. 
     
    12981315        * elflint.c (valid_e_machine): Add EM_ALPHA. 
    12991316        Reported by Christian Aichinger <Greek0@gmx.net>. 
    13001317 
     1318        * strings.c (map_file): Define POSIX_MADV_SEQUENTIAL to 
     1319        MADV_SEQUENTIAL if undefined.   Don't call posix_madvise 
     1320        if neither is defined. 
     1321 
    130113222006-08-08  Ulrich Drepper  <drepper@redhat.com> 
    13021323 
    13031324        * elflint.c (check_dynamic): Don't require DT_HASH for DT_SYMTAB. 
     
    13741395        * Makefile.am: Add hacks to create dependency files for non-generic 
    13751396        linker. 
    13761397 
     13982006-04-05  Roland McGrath  <roland@redhat.com> 
     1399 
     1400        * strings.c (MAP_POPULATE): Define to 0 if undefined. 
     1401 
    137714022006-06-12  Ulrich Drepper  <drepper@redhat.com> 
    13781403 
    13791404        * ldgeneric.c (ld_generic_generate_sections): Don't create .interp 
     
    17221747        * readelf.c (print_debug_loc_section): Fix indentation for larger 
    17231748        address size. 
    17241749 
     17502005-05-31  Roland McGrath  <roland@redhat.com> 
     1751 
     1752        * Makefile.am (WEXTRA): New variable, substituted by configure. 
     1753        (AM_CFLAGS): Use it in place of -Wextra. 
     1754 
    172517552005-05-30  Roland McGrath  <roland@redhat.com> 
    17261756 
    17271757        * readelf.c (print_debug_line_section): Print section offset of each 
  • src/findtextrel.c

    a b ptrcompare (const void *p1, const void * 
    504504 
    505505 
    506506static void 
    507 check_rel (size_t nsegments, struct segments segments[nsegments], 
     507check_rel (size_t nsegments, struct segments segments[ 
     508#if __GNUC__ >= 4 
     509                                                      nsegments 
     510#endif 
     511           ], 
    508512           GElf_Addr addr, Elf *elf, Elf_Scn *symscn, Dwarf *dw, 
    509513           const char *fname, bool more_than_one, void **knownsrcs) 
    510514{ 
  • src/ld.h

    a b extern bool dynamically_linked_p (void); 
    11221122 
    11231123/* Checked whether the symbol is undefined and referenced from a DSO.  */ 
    11241124extern bool linked_from_dso_p (struct scninfo *scninfo, size_t symidx); 
     1125#if defined __OPTIMIZE__ && !(__GNUC__ == 4 && __GNUC_MINOR__ == 2) 
    11251126#ifdef __GNUC_STDC_INLINE__ 
    11261127__attribute__ ((__gnu_inline__)) 
    11271128#endif 
    linked_from_dso_p (struct scninfo *scnin 
    11391140 
    11401141  return sym->defined && sym->in_dso; 
    11411142} 
     1143#endif  /* Optimizing and not GCC 4.2.  */ 
    11421144 
    11431145#endif  /* ld.h */ 
  • src/Makefile.am

    a b addr2line_no_Wformat = yes 
    9999# XXX While the file is not finished, don't warn about this 
    100100ldgeneric_no_Wunused = yes 
    101101 
     102# Buggy old compilers. 
     103readelf_no_Werror = yes 
     104 
    102105readelf_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) $(libmudflap) -ldl 
    103106nm_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) $(libmudflap) -ldl 
    104107size_LDADD = $(libelf) $(libeu) $(libmudflap) 
  • src/Makefile.in

    a b INSTALL_PROGRAM = @INSTALL_PROGRAM@ 
    228228INSTALL_SCRIPT = @INSTALL_SCRIPT@ 
    229229INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 
    230230LDFLAGS = @LDFLAGS@ 
     231LD_AS_NEEDED = @LD_AS_NEEDED@ 
    231232LEX = @LEX@ 
    232233LEXLIB = @LEXLIB@ 
    233234LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ 
    SHELL = @SHELL@ 
    257258STRIP = @STRIP@ 
    258259USE_NLS = @USE_NLS@ 
    259260VERSION = @VERSION@ 
     261WEXTRA = @WEXTRA@ 
    260262XGETTEXT = @XGETTEXT@ 
    261263XGETTEXT_015 = @XGETTEXT_015@ 
    262264XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ 
    INCLUDES = -I. -I$(srcdir) -I$(top_srcdi 
    321323        -I$(srcdir)/../libasm 
    322324AM_CFLAGS = -std=gnu99 -Wall -Wshadow $(if \ 
    323325        $($(*F)_no_Werror),,-Werror) $(if \ 
    324         $($(*F)_no_Wunused),,-Wunused -Wextra) $(if \ 
     326        $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) $(if \ 
    325327        $($(*F)_no_Wformat),-Wno-format,-Wformat=2) $($(*F)_CFLAGS) \ 
    326328        $(am__append_1) 
    327329@MUDFLAP_FALSE@libmudflap =  
    strings_no_Wformat = yes 
    368370addr2line_no_Wformat = yes 
    369371# XXX While the file is not finished, don't warn about this 
    370372ldgeneric_no_Wunused = yes 
     373 
     374# Buggy old compilers. 
     375readelf_no_Werror = yes 
    371376readelf_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) $(libmudflap) -ldl 
    372377nm_LDADD = $(libdw) $(libebl) $(libelf) $(libeu) $(libmudflap) -ldl 
    373378size_LDADD = $(libelf) $(libeu) $(libmudflap) 
  • src/readelf.c

    a b struct listptr 
    42744274#define listptr_offset_size(p)  ((p)->dwarf64 ? 8 : 4) 
    42754275#define listptr_address_size(p) ((p)->addr64 ? 8 : 4) 
    42764276 
     4277static const char *listptr_name; 
    42774278static int 
    4278 compare_listptr (const void *a, const void *b, void *arg) 
     4279compare_listptr (const void *a, const void *b) 
    42794280{ 
    4280   const char *name = arg; 
     4281  const char *const name = listptr_name; 
    42814282  struct listptr *p1 = (void *) a; 
    42824283  struct listptr *p2 = (void *) b; 
    42834284 
    static void 
    43574358sort_listptr (struct listptr_table *table, const char *name) 
    43584359{ 
    43594360  if (table->n > 0) 
    4360     qsort_r (table->table, table->n, sizeof table->table[0], 
    4361              &compare_listptr, (void *) name); 
     4361    { 
     4362      listptr_name = name; 
     4363      qsort (table->table, table->n, sizeof table->table[0], 
     4364             &compare_listptr); 
     4365    } 
    43624366} 
    43634367 
    43644368static bool 
    dump_archive_index (Elf *elf, const char 
    80988102          if (unlikely (elf_rand (elf, as_off) == 0) 
    80998103              || unlikely ((subelf = elf_begin (-1, ELF_C_READ_MMAP, elf)) 
    81008104                           == NULL)) 
    8101 #if __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 7) 
     8105#if __GLIBC__ < 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ < 7) || __GNUC__ < 4 
    81028106            while (1) 
    81038107#endif 
    81048108              error (EXIT_FAILURE, 0, 
  • src/strings.c

    a b  
    5151 
    5252#include <system.h> 
    5353 
     54#ifndef MAP_POPULATE 
     55# define MAP_POPULATE 0 
     56#endif 
     57 
    5458 
    5559/* Prototypes of local functions.  */ 
    5660static int read_fd (int fd, const char *fname, off64_t fdlen); 
    map_file (int fd, off64_t start_off, off 
    491495                    fd, start_off); 
    492496      if (mem != MAP_FAILED) 
    493497        { 
     498#if !defined POSIX_MADV_SEQUENTIAL && defined MADV_SEQUENTIAL 
     499# define POSIX_MADV_SEQUENTIAL MADV_SEQUENTIAL 
     500#endif 
     501#ifdef POSIX_MADV_SEQUENTIAL 
    494502          /* We will go through the mapping sequentially.  */ 
    495503          (void) posix_madvise (mem, map_size, POSIX_MADV_SEQUENTIAL); 
     504#endif 
    496505          break; 
    497506        } 
    498507      if (errno != EINVAL && errno != ENOMEM) 
    read_block (int fd, const char *fname, o 
    584593      elfmap_off = from & ~(ps - 1); 
    585594      elfmap_base = elfmap = map_file (fd, elfmap_off, fdlen, &elfmap_size); 
    586595 
     596#ifdef POSIX_FADV_SEQUENTIAL 
    587597      if (unlikely (elfmap == MAP_FAILED)) 
    588598        /* Let the kernel know we are going to read everything in sequence.  */ 
    589599        (void) posix_fadvise (fd, 0, 0, POSIX_FADV_SEQUENTIAL); 
     600#endif 
    590601    } 
    591602 
    592603  if (unlikely (elfmap == MAP_FAILED)) 
  • src/strip.c

    a b  
    5353#include <libebl.h> 
    5454#include <system.h> 
    5555 
     56#ifdef HAVE_FUTIMES 
     57# define FUTIMES(fd, fname, tvp) futimes (fd, tvp) 
     58#else 
     59# define FUTIMES(fd, fname, tvp) utimes (fname, tvp) 
     60#endif 
     61 
    5662 
    5763/* Name and version of program.  */ 
    5864static void print_version (FILE *stream, struct argp_state *state); 
    process_file (const char *fname) 
    311317 
    312318      /* If we have to preserve the timestamp, we need it in the 
    313319         format utimes() understands.  */ 
     320#ifdef HAVE_STRUCT_STAT_ST_ATIM 
    314321      TIMESPEC_TO_TIMEVAL (&tv[0], &pre_st.st_atim); 
     322#else 
     323      tv[0].tv_sec = pre_st.st_atime; 
     324      tv[0].tv_usec = 0; 
     325#endif 
     326#ifdef HAVE_STRUCT_STAT_ST_MTIM 
    315327      TIMESPEC_TO_TIMEVAL (&tv[1], &pre_st.st_mtim); 
     328#else 
     329      tv[1].tv_sec = pre_st.st_atime; 
     330      tv[1].tv_usec = 0; 
     331#endif 
    316332    } 
    317333 
    318334  /* Open the file.  */ 
    while computing checksum for debug infor 
    18091825  /* If requested, preserve the timestamp.  */ 
    18101826  if (tvp != NULL) 
    18111827    { 
    1812       if (futimes (fd, tvp) != 0) 
     1828      if (FUTIMES (fd, output_fname, tvp) != 0) 
    18131829        { 
    18141830          error (0, errno, gettext ("\ 
    18151831cannot set access and modification date of '%s'"), 
    handle_ar (int fd, Elf *elf, const char 
    18661882 
    18671883  if (tvp != NULL) 
    18681884    { 
    1869       if (unlikely (futimes (fd, tvp) != 0)) 
     1885      if (unlikely (FUTIMES (fd, fname, tvp) != 0)) 
    18701886        { 
    18711887          error (0, errno, gettext ("\ 
    18721888cannot set access and modification date of '%s'"), fname); 
  • tests/ChangeLog

    a b  
    205205 
    2062062008-01-21  Roland McGrath  <roland@redhat.com> 
    207207 
     208        * line2addr.c (main): Revert last change. 
     209 
    208210        * testfile45.S.bz2: Add tests for cltq, cqto. 
    209211        * testfile45.expect.bz2: Adjust. 
    210212 
     
    913915        * Makefile.am (TESTS): Add run-elflint-test.sh. 
    914916        (EXTRA_DIST): Add run-elflint-test.sh and testfile18.bz2. 
    915917 
     9182005-05-31  Roland McGrath  <roland@redhat.com> 
     919 
     920        * Makefile.am (WEXTRA): New variable, substituted by configure. 
     921        (AM_CFLAGS): Use it in place of -Wextra. 
     922 
    9169232005-05-24  Ulrich Drepper  <drepper@redhat.com> 
    917924 
    918925        * get-files.c (main): Use correct format specifier. 
  • tests/line2addr.c

    a b main (int argc, char *argv[]) 
    132132    { 
    133133      struct args a = { .arg = argv[cnt] }; 
    134134 
    135       switch (sscanf (a.arg, "%m[^:]:%d", &a.file, &a.line)) 
     135      switch (sscanf (a.arg, "%a[^:]:%d", &a.file, &a.line)) 
    136136        { 
    137137        default: 
    138138        case 0: 
  • tests/Makefile.in

    a b INSTALL_PROGRAM = @INSTALL_PROGRAM@ 
    372372INSTALL_SCRIPT = @INSTALL_SCRIPT@ 
    373373INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ 
    374374LDFLAGS = @LDFLAGS@ 
     375LD_AS_NEEDED = @LD_AS_NEEDED@ 
    375376LEX = @LEX@ 
    376377LEXLIB = @LEXLIB@ 
    377378LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@ 
    SHELL = @SHELL@ 
    401402STRIP = @STRIP@ 
    402403USE_NLS = @USE_NLS@ 
    403404VERSION = @VERSION@ 
     405WEXTRA = @WEXTRA@ 
    404406XGETTEXT = @XGETTEXT@ 
    405407XGETTEXT_015 = @XGETTEXT_015@ 
    406408XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@ 
    zip_LIBS = @zip_LIBS@ 
    462464INCLUDES = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. $(am__append_2) 
    463465AM_CFLAGS = -std=gnu99 -Wall -Wshadow $(if \ 
    464466        $($(*F)_no_Werror),,-Werror) $(if \ 
    465         $($(*F)_no_Wunused),,-Wunused -Wextra) $(if \ 
     467        $($(*F)_no_Wunused),,-Wunused $(WEXTRA)) $(if \ 
    466468        $($(*F)_no_Wformat),-Wno-format,-Wformat=2) $($(*F)_CFLAGS) \ 
    467469        $(am__append_1) 
    468470@MUDFLAP_FALSE@libmudflap =  
Note: See TracBrowser for help on using the repository browser.