Bläddra i källkod

Merge pull request #787 from luizluca/elfutils-update

elfutils: update to 0.161
Luiz Angelo Daros de Luca 10 år sedan
förälder
incheckning
a1bea97f76

+ 3
- 3
libs/elfutils/Makefile Visa fil

@@ -7,12 +7,12 @@
7 7
 include $(TOPDIR)/rules.mk
8 8
 
9 9
 PKG_NAME:=elfutils
10
-PKG_VERSION:=0.160
11
-PKG_RELEASE:=2
10
+PKG_VERSION:=0.161
11
+PKG_RELEASE:=1
12 12
 
13 13
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
14 14
 PKG_SOURCE_URL:=http://fedorahosted.org/releases/e/l/$(PKG_NAME)/$(PKG_VERSION)
15
-PKG_MD5SUM:=7527f22dff8b1ac8c122cfc4d3d3bb1e
15
+PKG_MD5SUM:=e1b9847c9a6a1ad340de8d47a863ec52
16 16
 PKG_MAINTAINER:=Luiz Angelo Daros de Luca <luizluca@gmail.com>
17 17
 PKG_LICENSE:=GPL-3.0+
18 18
 PKG_LICENSE_FILES:=COPYING COPYING-GPLV2 COPYING-LGPLV3

+ 84
- 82
libs/elfutils/patches/001-elfutils-portability.patch Visa fil

@@ -1,6 +1,6 @@
1 1
 --- elfutils/backends/ChangeLog
2 2
 +++ elfutils/backends/ChangeLog
3
-@@ -413,6 +413,10 @@
3
+@@ -433,6 +433,10 @@
4 4
  	* ppc_attrs.c (ppc_check_object_attribute): Handle tag
5 5
  	GNU_Power_ABI_Struct_Return.
6 6
  
@@ -11,7 +11,7 @@
11 11
  2008-10-04  Ulrich Drepper  <drepper@redhat.com>
12 12
  
13 13
  	* i386_reloc.def: Fix entries for TLS_GOTDESC, TLS_DESC_CALL, and
14
-@@ -740,6 +744,11 @@
14
+@@ -760,6 +764,11 @@
15 15
  	* sparc_init.c: Likewise.
16 16
  	* x86_64_init.c: Likewise.
17 17
  
@@ -23,7 +23,7 @@
23 23
  2005-11-19  Roland McGrath  <roland@redhat.com>
24 24
  
25 25
  	* ppc64_reloc.def: REL30 -> ADDR30.
26
-@@ -762,6 +771,9 @@
26
+@@ -782,6 +791,9 @@
27 27
  	* Makefile.am (uninstall): Don't try to remove $(pkgincludedir).
28 28
  	(CLEANFILES): Add libebl_$(m).so.
29 29
  
@@ -41,7 +41,7 @@
41 41
  		-Wl,--version-script,$(@:.so=.map) \
42 42
 -		-Wl,-z,defs -Wl,--as-needed $(libelf) $(libdw)
43 43
 +		-Wl,-z,defs $(LD_AS_NEEDED) $(libelf) $(libdw)
44
- 	$(textrel_check)
44
+ 	@$(textrel_check)
45 45
  
46 46
  libebl_i386.so: $(cpu_i386)
47 47
 --- elfutils/backends/Makefile.in
@@ -87,18 +87,18 @@
87 87
  COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
88 88
  CLEANFILES = *.gcno *.gcda $(foreach m,$(modules), libebl_$(m).map \
89 89
  	libebl_$(m).so $(am_libebl_$(m)_pic_a_OBJECTS))
90
-@@ -885,7 +888,7 @@ libebl_%.so libebl_%.map: libebl_%_pic.a
90
+@@ -888,7 +891,7 @@ libebl_%.so libebl_%.map: libebl_%_pic.a
91 91
  	$(LINK) -shared -o $(@:.map=.so) \
92 92
  		-Wl,--whole-archive $< $(cpu_$*) -Wl,--no-whole-archive \
93 93
  		-Wl,--version-script,$(@:.so=.map) \
94 94
 -		-Wl,-z,defs -Wl,--as-needed $(libelf) $(libdw)
95 95
 +		-Wl,-z,defs $(LD_AS_NEEDED) $(libelf) $(libdw)
96
- 	$(textrel_check)
96
+ 	@$(textrel_check)
97 97
  
98 98
  libebl_i386.so: $(cpu_i386)
99 99
 --- elfutils/ChangeLog
100 100
 +++ elfutils/ChangeLog
101
-@@ -170,6 +170,8 @@
101
+@@ -187,6 +187,8 @@
102 102
  
103 103
  2012-01-24  Mark Wielaard  <mjw@redhat.com>
104 104
  
@@ -107,7 +107,7 @@
107 107
  	* COPYING: Fix address. Updated version from gnulib.
108 108
  
109 109
  2012-01-23  Mark Wielaard  <mjw@redhat.com>
110
-@@ -188,6 +190,9 @@
110
+@@ -205,6 +207,9 @@
111 111
  
112 112
  2011-10-08  Mike Frysinger  <vapier@gentoo.org>
113 113
  
@@ -117,7 +117,7 @@
117 117
  	* configure.ac: Fix use of AC_ARG_ENABLE to handle $enableval correctly.
118 118
  
119 119
  2011-10-02  Ulrich Drepper  <drepper@gmail.com>
120
-@@ -209,6 +214,10 @@
120
+@@ -226,6 +231,10 @@
121 121
  
122 122
  	* configure.ac (LOCALEDIR, DATADIRNAME): Removed.
123 123
  
@@ -128,7 +128,7 @@
128 128
  2009-09-21  Ulrich Drepper  <drepper@redhat.com>
129 129
  
130 130
  	* configure.ac: Update for more modern autoconf.
131
-@@ -217,6 +226,10 @@
131
+@@ -234,6 +243,10 @@
132 132
  
133 133
  	* configure.ac (zip_LIBS): Check for liblzma too.
134 134
  
@@ -139,7 +139,7 @@
139 139
  2009-04-19  Roland McGrath  <roland@redhat.com>
140 140
  
141 141
  	* configure.ac (eu_version): Round down here, not in version.h macros.
142
-@@ -228,6 +241,8 @@
142
+@@ -245,6 +258,8 @@
143 143
  
144 144
  2009-01-23  Roland McGrath  <roland@redhat.com>
145 145
  
@@ -148,7 +148,7 @@
148 148
  	* configure.ac (zlib check): Check for gzdirect, need zlib >= 1.2.2.3.
149 149
  
150 150
  	* configure.ac (__thread check): Use AC_LINK_IFELSE, in case of
151
-@@ -308,6 +323,10 @@
151
+@@ -325,6 +340,10 @@
152 152
  	* configure.ac: Add dummy automake conditional to get dependencies
153 153
  	for non-generic linker right.  See src/Makefile.am.
154 154
  
@@ -159,7 +159,7 @@
159 159
  2005-11-18  Roland McGrath  <roland@redhat.com>
160 160
  
161 161
  	* Makefile.am (DISTCHECK_CONFIGURE_FLAGS): New variable.
162
-@@ -355,6 +374,17 @@
162
+@@ -372,6 +391,17 @@
163 163
  	* Makefile.am (all_SUBDIRS): Add libdwfl.
164 164
  	* configure.ac: Write libdwfl/Makefile.
165 165
  
@@ -179,7 +179,7 @@
179 179
  	* configure.ac [AH_BOTTOM] (INTDECL, _INTDECL): New macros.
180 180
 --- elfutils/config/ChangeLog
181 181
 +++ elfutils/config/ChangeLog
182
-@@ -62,6 +62,10 @@
182
+@@ -71,6 +71,10 @@
183 183
  
184 184
  	* known-dwarf.awk: Use gawk.
185 185
  
@@ -226,7 +226,7 @@
226 226
  %.os: %.c %.o
227 227
 --- elfutils/config/Makefile.in
228 228
 +++ elfutils/config/Makefile.in
229
-@@ -146,6 +146,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
229
+@@ -147,6 +147,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
230 230
  INSTALL_SCRIPT = @INSTALL_SCRIPT@
231 231
  INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
232 232
  LDFLAGS = @LDFLAGS@
@@ -234,7 +234,7 @@
234 234
  LEX = @LEX@
235 235
  LEXLIB = @LEXLIB@
236 236
  LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
237
-@@ -177,6 +178,7 @@ SHELL = @SHELL@
237
+@@ -178,6 +179,7 @@ SHELL = @SHELL@
238 238
  STRIP = @STRIP@
239 239
  USE_NLS = @USE_NLS@
240 240
  VERSION = @VERSION@
@@ -264,7 +264,7 @@
264 264
  #include <eu-config.h>
265 265
 --- elfutils/configure
266 266
 +++ elfutils/configure
267
-@@ -661,6 +661,8 @@ ZLIB_TRUE
267
+@@ -663,6 +663,8 @@ ZLIB_TRUE
268 268
  LIBEBL_SUBDIR
269 269
  TESTS_RPATH_FALSE
270 270
  TESTS_RPATH_TRUE
@@ -273,7 +273,7 @@
273 273
  BUILD_STATIC_FALSE
274 274
  BUILD_STATIC_TRUE
275 275
  USE_VALGRIND_FALSE
276
-@@ -676,6 +678,8 @@ NEVER_TRUE
276
+@@ -678,6 +680,8 @@ NEVER_TRUE
277 277
  base_cpu
278 278
  NATIVE_LD_FALSE
279 279
  NATIVE_LD_TRUE
@@ -282,7 +282,7 @@
282 282
  NM
283 283
  READELF
284 284
  ac_ct_AR
285
-@@ -796,6 +800,7 @@ enable_debugpred
285
+@@ -798,6 +802,7 @@ enable_debugpred
286 286
  enable_gprof
287 287
  enable_gcov
288 288
  enable_valgrind
@@ -290,7 +290,7 @@
290 290
  enable_tests_rpath
291 291
  enable_libebl_subdir
292 292
  with_zlib
293
-@@ -1452,6 +1457,7 @@ Optional Features:
293
+@@ -1455,6 +1460,7 @@ Optional Features:
294 294
    --enable-gprof          build binaries with gprof support
295 295
    --enable-gcov           build binaries with gcov support
296 296
    --enable-valgrind       run all tests under valgrind
@@ -298,7 +298,7 @@
298 298
    --enable-tests-rpath    build $ORIGIN-using rpath into tests
299 299
    --enable-libebl-subdir=DIR
300 300
                            install libebl_CPU modules in $(libdir)/DIR
301
-@@ -4728,6 +4734,130 @@ if test "x$ac_cv_c99" != xyes; then :
301
+@@ -4843,6 +4849,130 @@ if test "x$ac_cv_c99" != xyes; then :
302 302
    as_fn_error $? "gcc with C99 support required" "$LINENO" 5
303 303
  fi
304 304
  
@@ -429,7 +429,7 @@
429 429
  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread support" >&5
430 430
  $as_echo_n "checking for __thread support... " >&6; }
431 431
  if ${ac_cv_tls+:} false; then :
432
-@@ -4764,7 +4894,13 @@ fi
432
+@@ -4879,7 +5009,13 @@ fi
433 433
  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
434 434
  $as_echo "$ac_cv_tls" >&6; }
435 435
  if test "x$ac_cv_tls" != xyes; then :
@@ -444,7 +444,7 @@
444 444
  fi
445 445
  
446 446
  # Check whether --enable-largefile was given.
447
-@@ -5131,6 +5267,22 @@ else
447
+@@ -5246,6 +5382,22 @@ else
448 448
  fi
449 449
  
450 450
  
@@ -467,7 +467,7 @@
467 467
  # Check whether --enable-tests-rpath was given.
468 468
  if test "${enable_tests_rpath+set}" = set; then :
469 469
    enableval=$enable_tests_rpath; tests_use_rpath=$enableval
470
-@@ -5854,7 +6006,7 @@ case "$eu_version" in
470
+@@ -5983,7 +6135,7 @@ case "$eu_version" in
471 471
  esac
472 472
  
473 473
  # Round up to the next release API (x.y) version.
@@ -476,7 +476,7 @@
476 476
  
477 477
  ac_ext=c
478 478
  ac_cpp='$CPP $CPPFLAGS'
479
-@@ -6600,6 +6752,10 @@ if test -z "${BUILD_STATIC_TRUE}" && tes
479
+@@ -6729,6 +6881,10 @@ if test -z "${BUILD_STATIC_TRUE}" && tes
480 480
    as_fn_error $? "conditional \"BUILD_STATIC\" was never defined.
481 481
  Usually this means the macro was only invoked conditionally." "$LINENO" 5
482 482
  fi
@@ -568,7 +568,7 @@
568 568
  AC_ARG_ENABLE([tests-rpath],
569 569
  AS_HELP_STRING([--enable-tests-rpath],[build $ORIGIN-using rpath into tests]),
570 570
  	       [tests_use_rpath=$enableval], [tests_use_rpath=no])
571
-@@ -297,7 +353,7 @@ case "$eu_version" in
571
+@@ -302,7 +358,7 @@ case "$eu_version" in
572 572
  esac
573 573
  
574 574
  # Round up to the next release API (x.y) version.
@@ -660,10 +660,10 @@
660 660
 +	$(am__append_1) -fpic
661 661
  COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
662 662
  CLEANFILES = *.gcno *.gcda
663
- textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then exit 1; fi
663
+ textrel_msg = echo "WARNING: TEXTREL found in '$@'"
664 664
 --- elfutils/libasm/ChangeLog
665 665
 +++ elfutils/libasm/ChangeLog
666
-@@ -79,6 +79,11 @@
666
+@@ -87,6 +87,11 @@
667 667
  	* asm_error.c: Add new error ASM_E_IOERROR.
668 668
  	* libasmP.h: Add ASM_E_IOERROR definition.
669 669
  
@@ -721,7 +721,7 @@
721 721
  COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
722 722
  CLEANFILES = *.gcno *.gcda $(am_libasm_pic_a_OBJECTS) \
723 723
  	libasm.so.$(VERSION)
724
-@@ -370,7 +373,7 @@ libasm_a_SOURCES = asm_begin.c asm_abort
724
+@@ -373,7 +376,7 @@ libasm_a_SOURCES = asm_begin.c asm_abort
725 725
  
726 726
  libasm_pic_a_SOURCES = 
727 727
  am_libasm_pic_a_OBJECTS = $(libasm_a_SOURCES:.c=.os)
@@ -807,7 +807,7 @@
807 807
  	$P.mnemonics)
808 808
 --- elfutils/libdw/ChangeLog
809 809
 +++ elfutils/libdw/ChangeLog
810
-@@ -439,6 +439,10 @@
810
+@@ -717,6 +717,10 @@
811 811
  
812 812
  	* Makefile.am (known-dwarf.h): Run gawk on config/known-dwarf.awk.
813 813
  
@@ -818,7 +818,7 @@
818 818
  2011-07-14  Mark Wielaard  <mjw@redhat.com>
819 819
  
820 820
  	* libdw.h (dwarf_offdie): Fix documentation to mention .debug_info.
821
-@@ -798,6 +802,10 @@
821
+@@ -1076,6 +1080,10 @@
822 822
  
823 823
  	* dwarf_hasattr_integrate.c: Integrate DW_AT_specification too.
824 824
  
@@ -829,7 +829,7 @@
829 829
  2009-08-10  Roland McGrath  <roland@redhat.com>
830 830
  
831 831
  	* dwarf_getscopevar.c: Use dwarf_diename.
832
-@@ -1566,6 +1574,11 @@
832
+@@ -1844,6 +1852,11 @@
833 833
  
834 834
  2005-05-31  Roland McGrath  <roland@redhat.com>
835 835
  
@@ -860,7 +860,7 @@
860 860
  #endif
861 861
 --- elfutils/libdw/libdw.h
862 862
 +++ elfutils/libdw/libdw.h
863
-@@ -915,7 +915,7 @@ extern Dwarf_OOM dwarf_new_oom_handler (
863
+@@ -1003,7 +1003,7 @@ extern Dwarf_OOM dwarf_new_oom_handler (
864 864
  
865 865
  
866 866
  /* Inline optimizations.  */
@@ -881,7 +881,7 @@
881 881
  noinst_PROGRAMS = $(am__EXEEXT_1)
882 882
  subdir = libdw
883 883
  ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
884
-@@ -296,6 +297,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
884
+@@ -298,6 +299,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
885 885
  INSTALL_SCRIPT = @INSTALL_SCRIPT@
886 886
  INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
887 887
  LDFLAGS = @LDFLAGS@
@@ -889,7 +889,7 @@
889 889
  LEX = @LEX@
890 890
  LEXLIB = @LEXLIB@
891 891
  LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
892
-@@ -327,6 +329,7 @@ SHELL = @SHELL@
892
+@@ -329,6 +331,7 @@ SHELL = @SHELL@
893 893
  STRIP = @STRIP@
894 894
  USE_NLS = @USE_NLS@
895 895
  VERSION = 1
@@ -897,7 +897,7 @@
897 897
  XGETTEXT = @XGETTEXT@
898 898
  XGETTEXT_015 = @XGETTEXT_015@
899 899
  XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
900
-@@ -388,10 +391,11 @@ top_srcdir = @top_srcdir@
900
+@@ -390,10 +393,11 @@ top_srcdir = @top_srcdir@
901 901
  zip_LIBS = @zip_LIBS@
902 902
  AM_CPPFLAGS = -I. -I$(srcdir) -I$(top_srcdir)/lib -I.. \
903 903
  	-I$(srcdir)/../libelf
@@ -911,7 +911,7 @@
911 911
 +	$(am__append_1) $(am__append_2)
912 912
  COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
913 913
  CLEANFILES = *.gcno *.gcda
914
- textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then exit 1; fi
914
+ textrel_msg = echo "WARNING: TEXTREL found in '$@'"
915 915
 --- elfutils/libdwelf/Makefile.in
916 916
 +++ elfutils/libdwelf/Makefile.in
917 917
 @@ -82,6 +82,7 @@ host_triplet = @host@
@@ -954,10 +954,10 @@
954 954
 +	$(am__append_1)
955 955
  COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
956 956
  CLEANFILES = *.gcno *.gcda $(am_libdwelf_pic_a_OBJECTS)
957
- textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then exit 1; fi
957
+ textrel_msg = echo "WARNING: TEXTREL found in '$@'"
958 958
 --- elfutils/libdwfl/ChangeLog
959 959
 +++ elfutils/libdwfl/ChangeLog
960
-@@ -467,6 +467,21 @@
960
+@@ -571,6 +571,21 @@
961 961
  	(dwfl_module_addrsym) (i_to_symfile): New function.
962 962
  	(dwfl_module_addrsym) (search_table): Use it.
963 963
  
@@ -979,7 +979,7 @@
979 979
  2013-11-07  Jan Kratochvil  <jan.kratochvil@redhat.com>
980 980
  	    Mark Wielaard  <mjw@redhat.com>
981 981
  
982
-@@ -2232,6 +2247,11 @@
982
+@@ -2336,6 +2351,11 @@
983 983
  
984 984
  2005-07-21  Roland McGrath  <roland@redhat.com>
985 985
  
@@ -1107,8 +1107,8 @@
1107 1107
 +	$(am__append_1)
1108 1108
  COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
1109 1109
  CLEANFILES = *.gcno *.gcda $(am_libdwfl_pic_a_OBJECTS)
1110
- textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then exit 1; fi
1111
-@@ -410,8 +413,8 @@ libdwfl_a_SOURCES = dwfl_begin.c dwfl_en
1110
+ textrel_msg = echo "WARNING: TEXTREL found in '$@'"
1111
+@@ -413,8 +416,8 @@ libdwfl_a_SOURCES = dwfl_begin.c dwfl_en
1112 1112
  	dwfl_module_register_names.c dwfl_segment_report_module.c \
1113 1113
  	link_map.c core-file.c open.c image-header.c dwfl_frame.c \
1114 1114
  	frame_unwind.c dwfl_frame_pc.c linux-pid-attach.c \
@@ -1121,7 +1121,7 @@
1121 1121
  libelf = ../libelf/libelf.so
1122 1122
 --- elfutils/libebl/ChangeLog
1123 1123
 +++ elfutils/libebl/ChangeLog
1124
-@@ -754,6 +754,11 @@
1124
+@@ -765,6 +765,11 @@
1125 1125
  	* Makefile.am (libebl_*_so_SOURCES): Set to $(*_SRCS) so dependency
1126 1126
  	tracking works right.
1127 1127
  
@@ -1172,10 +1172,10 @@
1172 1172
 +	$(am__append_1) -fpic
1173 1173
  COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
1174 1174
  CLEANFILES = *.gcno *.gcda $(am_libebl_pic_a_OBJECTS)
1175
- textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then exit 1; fi
1175
+ textrel_msg = echo "WARNING: TEXTREL found in '$@'"
1176 1176
 --- elfutils/libelf/ChangeLog
1177 1177
 +++ elfutils/libelf/ChangeLog
1178
-@@ -139,6 +139,11 @@
1178
+@@ -244,6 +244,11 @@
1179 1179
  
1180 1180
  	* elf-knowledge.h (SECTION_STRIP_P): Remove < SHT_NUM check.
1181 1181
  
@@ -1187,7 +1187,7 @@
1187 1187
  2011-02-26  Mark Wielaard  <mjw@redhat.com>
1188 1188
  
1189 1189
  	* elf_end.c (elf_end): Call rwlock_unlock before rwlock_fini.
1190
-@@ -816,6 +821,11 @@
1190
+@@ -921,6 +926,11 @@
1191 1191
  
1192 1192
  	* elf.h: Update from glibc.
1193 1193
  
@@ -1285,7 +1285,7 @@
1285 1285
  COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
1286 1286
  CLEANFILES = *.gcno *.gcda $(am_libelf_pic_a_OBJECTS) \
1287 1287
  	libelf.so.$(VERSION)
1288
-@@ -446,7 +450,7 @@ libelf_a_SOURCES = elf_version.c elf_has
1288
+@@ -449,7 +453,7 @@ libelf_a_SOURCES = elf_version.c elf_has
1289 1289
  
1290 1290
  libelf_pic_a_SOURCES = 
1291 1291
  am_libelf_pic_a_OBJECTS = $(libelf_a_SOURCES:.c=.os)
@@ -1347,7 +1347,7 @@
1347 1347
  	  break;
1348 1348
 --- elfutils/src/ChangeLog
1349 1349
 +++ elfutils/src/ChangeLog
1350
-@@ -1155,8 +1155,16 @@
1350
+@@ -1371,8 +1371,16 @@
1351 1351
  	* readelf.c (attr_callback): Use print_block only when we don't use
1352 1352
  	print_ops.
1353 1353
  
@@ -1364,7 +1364,7 @@
1364 1364
  	* ar.c (do_oper_extract): Use pathconf instead of statfs.
1365 1365
  
1366 1366
  2009-08-01  Ulrich Drepper  <drepper@redhat.com>
1367
-@@ -1320,6 +1328,8 @@
1367
+@@ -1536,6 +1544,8 @@
1368 1368
  	* readelf.c (print_debug_frame_section): Use t instead of j formats
1369 1369
  	for ptrdiff_t OFFSET.
1370 1370
  
@@ -1373,7 +1373,7 @@
1373 1373
  2009-01-21  Ulrich Drepper  <drepper@redhat.com>
1374 1374
  
1375 1375
  	* elflint.c (check_program_header): Fix typo in .eh_frame_hdr section
1376
-@@ -1503,6 +1513,11 @@
1376
+@@ -1719,6 +1729,11 @@
1377 1377
  	that matches its PT_LOAD's p_flags &~ PF_W.  On sparc, PF_X really
1378 1378
  	is valid in RELRO.
1379 1379
  
@@ -1385,7 +1385,7 @@
1385 1385
  2008-02-29  Roland McGrath  <roland@redhat.com>
1386 1386
  
1387 1387
  	* readelf.c (print_attributes): Add a cast.
1388
-@@ -1754,6 +1769,8 @@
1388
+@@ -1970,6 +1985,8 @@
1389 1389
  
1390 1390
  	* readelf.c (hex_dump): Fix rounding error in whitespace calculation.
1391 1391
  
@@ -1394,7 +1394,7 @@
1394 1394
  2007-10-15  Roland McGrath  <roland@redhat.com>
1395 1395
  
1396 1396
  	* make-debug-archive.in: New file.
1397
-@@ -2193,6 +2210,10 @@
1397
+@@ -2409,6 +2426,10 @@
1398 1398
  	* elflint.c (valid_e_machine): Add EM_ALPHA.
1399 1399
  	Reported by Christian Aichinger <Greek0@gmx.net>.
1400 1400
  
@@ -1405,7 +1405,7 @@
1405 1405
  2006-08-08  Ulrich Drepper  <drepper@redhat.com>
1406 1406
  
1407 1407
  	* elflint.c (check_dynamic): Don't require DT_HASH for DT_SYMTAB.
1408
-@@ -2269,6 +2290,10 @@
1408
+@@ -2485,6 +2506,10 @@
1409 1409
  	* Makefile.am: Add hacks to create dependency files for non-generic
1410 1410
  	linker.
1411 1411
  
@@ -1416,7 +1416,7 @@
1416 1416
  2006-06-12  Ulrich Drepper  <drepper@redhat.com>
1417 1417
  
1418 1418
  	* ldgeneric.c (ld_generic_generate_sections): Don't create .interp
1419
-@@ -2617,6 +2642,11 @@
1419
+@@ -2833,6 +2858,11 @@
1420 1420
  	* readelf.c (print_debug_loc_section): Fix indentation for larger
1421 1421
  	address size.
1422 1422
  
@@ -1430,7 +1430,7 @@
1430 1430
  	* readelf.c (print_debug_line_section): Print section offset of each
1431 1431
 --- elfutils/src/findtextrel.c
1432 1432
 +++ elfutils/src/findtextrel.c
1433
-@@ -496,7 +496,11 @@ ptrcompare (const void *p1, const void *
1433
+@@ -502,7 +502,11 @@ ptrcompare (const void *p1, const void *
1434 1434
  
1435 1435
  
1436 1436
  static void
@@ -1538,7 +1538,7 @@
1538 1538
  COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
1539 1539
  CLEANFILES = *.gcno *.gcda make-debug-archive none_ld.os \
1540 1540
  	$(ld_modules:.c=.os) *.gconv
1541
-@@ -449,8 +452,8 @@ AM_LFLAGS = -Pld -olex.yy.c
1541
+@@ -452,8 +455,8 @@ AM_LFLAGS = -Pld -olex.yy.c
1542 1542
  native_ld = @native_ld@
1543 1543
  ld_dsos = libld_elf_i386_pic.a
1544 1544
  @NATIVE_LD_FALSE@noinst_LIBRARIES = libld_elf.a libar.a $(ld_dsos) \
@@ -1549,7 +1549,7 @@
1549 1549
  @NATIVE_LD_TRUE@native_ld_cflags = -DBASE_ELF_NAME=elf_$(base_cpu)
1550 1550
  @NEVER_TRUE@libdummy_a_SOURCES = i386_ld.c
1551 1551
  ld_SOURCES = ld.c ldgeneric.c ldlex.l ldscript.y symbolhash.c sectionhash.c \
1552
-@@ -476,13 +479,18 @@ libeu = ../lib/libeu.a
1552
+@@ -479,13 +482,18 @@ libeu = ../lib/libeu.a
1553 1553
  
1554 1554
  # XXX While the file is not finished, don't warn about this
1555 1555
  ldgeneric_no_Wunused = yes
@@ -1571,7 +1571,7 @@
1571 1571
  findtextrel_LDADD = $(libdw) $(libelf)
1572 1572
 --- elfutils/src/readelf.c
1573 1573
 +++ elfutils/src/readelf.c
1574
-@@ -4253,10 +4253,12 @@ listptr_base (struct listptr *p)
1574
+@@ -4368,10 +4368,12 @@ listptr_base (struct listptr *p)
1575 1575
    return base;
1576 1576
  }
1577 1577
  
@@ -1586,7 +1586,7 @@
1586 1586
    struct listptr *p1 = (void *) a;
1587 1587
    struct listptr *p2 = (void *) b;
1588 1588
  
1589
-@@ -4345,8 +4347,11 @@ static void
1589
+@@ -4467,8 +4469,11 @@ static void
1590 1590
  sort_listptr (struct listptr_table *table, const char *name)
1591 1591
  {
1592 1592
    if (table->n > 0)
@@ -1600,7 +1600,7 @@
1600 1600
  }
1601 1601
  
1602 1602
  static bool
1603
-@@ -9268,7 +9273,7 @@ dump_archive_index (Elf *elf, const char
1603
+@@ -9539,7 +9544,7 @@ dump_archive_index (Elf *elf, const char
1604 1604
  	  if (unlikely (elf_rand (elf, as_off) == 0)
1605 1605
  	      || unlikely ((subelf = elf_begin (-1, ELF_C_READ_MMAP, elf))
1606 1606
  			   == NULL))
@@ -1682,7 +1682,7 @@
1682 1682
      }
1683 1683
  
1684 1684
    /* Open the file.  */
1685
-@@ -2086,7 +2102,7 @@ while computing checksum for debug infor
1685
+@@ -2091,7 +2107,7 @@ while computing checksum for debug infor
1686 1686
    /* If requested, preserve the timestamp.  */
1687 1687
    if (tvp != NULL)
1688 1688
      {
@@ -1691,7 +1691,7 @@
1691 1691
  	{
1692 1692
  	  error (0, errno, gettext ("\
1693 1693
  cannot set access and modification date of '%s'"),
1694
-@@ -2143,7 +2159,7 @@ handle_ar (int fd, Elf *elf, const char
1694
+@@ -2148,7 +2164,7 @@ handle_ar (int fd, Elf *elf, const char
1695 1695
  
1696 1696
    if (tvp != NULL)
1697 1697
      {
@@ -1712,7 +1712,7 @@
1712 1712
  #ifndef __linux__
1713 1713
 --- elfutils/tests/ChangeLog
1714 1714
 +++ elfutils/tests/ChangeLog
1715
-@@ -304,6 +304,13 @@
1715
+@@ -421,6 +421,13 @@
1716 1716
  
1717 1717
  2013-12-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1718 1718
  
@@ -1726,7 +1726,7 @@
1726 1726
  	* Makefile.am (check_PROGRAMS): Add backtrace, backtrace-child,
1727 1727
  	backtrace-data and backtrace-dwarf.
1728 1728
  	(BUILT_SOURCES, clean-local, backtrace-child-biarch): New.
1729
-@@ -1168,6 +1175,8 @@
1729
+@@ -1285,6 +1292,8 @@
1730 1730
  
1731 1731
  2008-01-21  Roland McGrath  <roland@redhat.com>
1732 1732
  
@@ -1735,7 +1735,7 @@
1735 1735
  	* testfile45.S.bz2: Add tests for cltq, cqto.
1736 1736
  	* testfile45.expect.bz2: Adjust.
1737 1737
  
1738
-@@ -1876,6 +1885,11 @@
1738
+@@ -1993,6 +2002,11 @@
1739 1739
  	* Makefile.am (TESTS): Add run-elflint-test.sh.
1740 1740
  	(EXTRA_DIST): Add run-elflint-test.sh and testfile18.bz2.
1741 1741
  
@@ -1760,7 +1760,7 @@
1760 1760
  	case 0:
1761 1761
 --- elfutils/tests/Makefile.am
1762 1762
 +++ elfutils/tests/Makefile.am
1763
-@@ -356,6 +356,7 @@ get_lines_LDADD = $(libdw) $(libelf)
1763
+@@ -365,6 +365,7 @@ get_lines_LDADD = $(libdw) $(libelf)
1764 1764
  get_files_LDADD = $(libdw) $(libelf)
1765 1765
  get_aranges_LDADD = $(libdw) $(libelf)
1766 1766
  allfcts_LDADD = $(libdw) $(libelf)
@@ -1788,24 +1788,23 @@
1788 1788
  check_PROGRAMS = arextract$(EXEEXT) arsymtest$(EXEEXT) \
1789 1789
  	newfile$(EXEEXT) saridx$(EXEEXT) scnnames$(EXEEXT) \
1790 1790
  	sectiondump$(EXEEXT) showptable$(EXEEXT) update1$(EXEEXT) \
1791
-@@ -111,7 +112,7 @@ check_PROGRAMS = arextract$(EXEEXT) arsy
1792
- 	backtrace-data$(EXEEXT) backtrace-dwarf$(EXEEXT) \
1793
- 	debuglink$(EXEEXT) debugaltlink$(EXEEXT) buildid$(EXEEXT) \
1794
- 	$(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_4)
1791
+@@ -113,7 +114,7 @@ check_PROGRAMS = arextract$(EXEEXT) arsy
1792
+ 	deleted$(EXEEXT) deleted-lib.so$(EXEEXT) \
1793
+ 	aggregate_size$(EXEEXT) vdsosyms$(EXEEXT) $(am__EXEEXT_1) \
1794
+ 	$(am__EXEEXT_2) $(am__EXEEXT_4)
1795 1795
 -@BIARCH_TRUE@am__append_4 = backtrace-child-biarch
1796 1796
 +@BIARCH_TRUE@am__append_5 = backtrace-child-biarch
1797 1797
  TESTS = run-arextract.sh run-arsymtest.sh newfile$(EXEEXT) \
1798 1798
  	test-nlist$(EXEEXT) update1$(EXEEXT) update2$(EXEEXT) \
1799 1799
  	update3$(EXEEXT) update4$(EXEEXT) run-show-die-info.sh \
1800
-@@ -155,14 +156,14 @@ TESTS = run-arextract.sh run-arsymtest.s
1801
- 	run-backtrace-core-s390.sh run-backtrace-core-aarch64.sh \
1802
- 	run-backtrace-demangle.sh run-stack-d-test.sh \
1800
+@@ -159,14 +160,14 @@ TESTS = run-arextract.sh run-arsymtest.s
1803 1801
  	run-stack-i-test.sh run-readelf-dwz-multi.sh \
1804
--	run-allfcts-multi.sh $(am__EXEEXT_2) $(am__append_7) \
1805
--	$(am__append_8) $(am__EXEEXT_4)
1802
+ 	run-allfcts-multi.sh run-deleted.sh run-linkmap-cut.sh \
1803
+ 	run-aggregate-size.sh vdsosyms$(EXEEXT) run-readelf-A.sh \
1804
+-	$(am__EXEEXT_2) $(am__append_7) $(am__append_8) \
1805
++	$(am__EXEEXT_2) $(am__append_8) $(am__append_9) \
1806
+ 	$(am__EXEEXT_4)
1806 1807
 -@STANDALONE_FALSE@am__append_5 = msg_tst md5-sha1-test
1807
-+	run-allfcts-multi.sh $(am__EXEEXT_2) $(am__append_8) \
1808
-+	$(am__append_9) $(am__EXEEXT_4)
1809 1808
  @STANDALONE_FALSE@am__append_6 = msg_tst md5-sha1-test
1810 1809
 -@LZMA_TRUE@am__append_7 = run-readelf-s.sh run-dwflsyms.sh
1811 1810
 -@ZLIB_TRUE@am__append_8 = run-readelf-zdebug.sh
@@ -1818,7 +1817,7 @@
1818 1817
  subdir = tests
1819 1818
  ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
1820 1819
  am__aclocal_m4_deps = $(top_srcdir)/m4/biarch.m4 \
1821
-@@ -768,6 +769,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
1820
+@@ -787,6 +788,7 @@ INSTALL_PROGRAM = @INSTALL_PROGRAM@
1822 1821
  INSTALL_SCRIPT = @INSTALL_SCRIPT@
1823 1822
  INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
1824 1823
  LDFLAGS = @LDFLAGS@
@@ -1826,7 +1825,7 @@
1826 1825
  LEX = @LEX@
1827 1826
  LEXLIB = @LEXLIB@
1828 1827
  LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
1829
-@@ -799,6 +801,7 @@ SHELL = @SHELL@
1828
+@@ -818,6 +820,7 @@ SHELL = @SHELL@
1830 1829
  STRIP = @STRIP@
1831 1830
  USE_NLS = @USE_NLS@
1832 1831
  VERSION = @VERSION@
@@ -1834,7 +1833,7 @@
1834 1833
  XGETTEXT = @XGETTEXT@
1835 1834
  XGETTEXT_015 = @XGETTEXT_015@
1836 1835
  XGETTEXT_EXTRA_OPTIONS = @XGETTEXT_EXTRA_OPTIONS@
1837
-@@ -858,17 +861,17 @@ top_build_prefix = @top_build_prefix@
1836
+@@ -877,12 +880,12 @@ top_build_prefix = @top_build_prefix@
1838 1837
  top_builddir = @top_builddir@
1839 1838
  top_srcdir = @top_srcdir@
1840 1839
  zip_LIBS = @zip_LIBS@
@@ -1852,14 +1851,17 @@
1852 1851
 +	$(am__append_1)
1853 1852
  COMPILE.os = $(filter-out -fprofile-arcs -ftest-coverage, $(COMPILE))
1854 1853
  CLEANFILES = *.gcno *.gcda
1855
- textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then exit 1; fi
1854
+ textrel_msg = echo "WARNING: TEXTREL found in '$@'"
1855
+@@ -890,7 +893,7 @@ textrel_msg = echo "WARNING: TEXTREL fou
1856
+ @FATAL_TEXTREL_TRUE@textrel_found = $(textrel_msg); exit 1
1857
+ textrel_check = if $(READELF) -d $@ | fgrep -q TEXTREL; then $(textrel_found); fi
1856 1858
  BUILD_RPATH = \$$ORIGIN/../libasm:\$$ORIGIN/../libdw:\$$ORIGIN/../backends:\$$ORIGIN/../libelf
1857 1859
 -AM_LDFLAGS = $(am__append_2) $(am__append_3)
1858 1860
 +AM_LDFLAGS = $(am__append_3) $(am__append_4)
1859 1861
  @TESTS_RPATH_FALSE@tests_rpath = no
1860 1862
  @TESTS_RPATH_TRUE@tests_rpath = yes
1861 1863
  asm_TESTS = asm-tst1 asm-tst2 asm-tst3 asm-tst4 asm-tst5 \
1862
-@@ -1077,6 +1080,7 @@ get_lines_LDADD = $(libdw) $(libelf)
1864
+@@ -1106,6 +1109,7 @@ get_lines_LDADD = $(libdw) $(libelf)
1863 1865
  get_files_LDADD = $(libdw) $(libelf)
1864 1866
  get_aranges_LDADD = $(libdw) $(libelf)
1865 1867
  allfcts_LDADD = $(libdw) $(libelf)

+ 4
- 15
libs/elfutils/patches/006-libdw_LIBS.patch Visa fil

@@ -1,22 +1,11 @@
1
---- elfutils-0.160/libdw/Makefile.am.old	2014-11-06 03:02:12.700116452 -0200
2
-+++ elfutils-0.160/libdw/Makefile.am	2014-11-06 03:02:55.732116447 -0200
3
-@@ -110,7 +110,7 @@
4
- 		-Wl,--enable-new-dtags,-rpath,$(pkglibdir) \
5
- 		-Wl,--version-script,$<,--no-undefined \
6
- 		-Wl,--whole-archive $(filter-out $<,$^) -Wl,--no-whole-archive\
7
--		-ldl $(zip_LIBS)
8
-+		-ldl $(zip_LIBS) x $(LIBS)
9
- 	if $(READELF) -d $@ | fgrep -q TEXTREL; then exit 1; fi
10
- 	ln -fs $@ $@.$(VERSION)
11
- 
12
---- elfutils-0.160/libdw/Makefile.in.old	2014-11-06 03:28:53.092116261 -0200
13
-+++ elfutils-0.160/libdw/Makefile.in	2014-11-06 03:29:02.528116260 -0200
14
-@@ -958,7 +958,7 @@
1
+--- elfutils-0.161/libdw/Makefile.in.orig	2015-01-16 03:50:15.311237461 -0200
2
++++ elfutils-0.161/libdw/Makefile.in	2015-01-16 03:55:35.082090075 -0200
3
+@@ -969,7 +969,7 @@
15 4
  		-Wl,--enable-new-dtags,-rpath,$(pkglibdir) \
16 5
  		-Wl,--version-script,$<,--no-undefined \
17 6
  		-Wl,--whole-archive $(filter-out $<,$^) -Wl,--no-whole-archive\
18 7
 -		-ldl $(zip_LIBS)
19 8
 +		-ldl $(zip_LIBS) $(LIBS)
20
- 	if $(READELF) -d $@ | fgrep -q TEXTREL; then exit 1; fi
9
+ 	@$(textrel_check)
21 10
  	ln -fs $@ $@.$(VERSION)
22 11
  

+ 1
- 12
libs/elfutils/patches/100-musl-compat.patch Visa fil

@@ -775,20 +775,9 @@
775 775
  	  if (*file_name == NULL)
776 776
  	    {
777 777
  	      *file_name = name;
778
---- a/libdw/dwarf_getpubnames.c
779
-+++ b/libdw/dwarf_getpubnames.c
780
-@@ -208,7 +208,7 @@ dwarf_getpubnames (dbg, callback, arg, o
781
- 	  gl.die_offset += dbg->pubnames_sets[cnt].cu_offset;
782
- 
783
- 	  gl.name = (char *) readp;
784
--	  readp = (unsigned char *) rawmemchr (gl.name, '\0') + 1;
785
-+	  readp = (unsigned char *) memchr (gl.name, '\0', SIZE_MAX) + 1;
786
- 
787
- 	  /* We found name and DIE offset.  Report it.  */
788
- 	  if (callback (dbg, &gl, arg) != DWARF_CB_OK)
789 778
 --- a/libelf/elf_getarsym.c
790 779
 +++ b/libelf/elf_getarsym.c
791
-@@ -283,7 +283,7 @@ elf_getarsym (elf, ptr)
780
+@@ -284,7 +284,7 @@ elf_getarsym (elf, ptr)
792 781
  		arsym[cnt].as_off = file_data->u32[cnt];
793 782
  
794 783
  	      arsym[cnt].as_hash = _dl_elf_hash (str_data);

+ 2
- 2
libs/elfutils/patches/101-no-fts.patch Visa fil

@@ -90,7 +90,7 @@
90 90
  	dwfl_addrmodule.$(OBJEXT) dwfl_addrdwarf.$(OBJEXT) \
91 91
  	cu.$(OBJEXT) dwfl_module_nextcu.$(OBJEXT) \
92 92
  	dwfl_nextcu.$(OBJEXT) dwfl_cumodule.$(OBJEXT) \
93
-@@ -399,7 +399,7 @@ libdwfl_a_SOURCES = dwfl_begin.c dwfl_en
93
+@@ -402,7 +402,7 @@ libdwfl_a_SOURCES = dwfl_begin.c dwfl_en
94 94
  	dwfl_getmodules.c dwfl_getdwarf.c dwfl_module_getdwarf.c \
95 95
  	dwfl_module_getelf.c dwfl_validate_address.c argp-std.c \
96 96
  	find-debuginfo.c dwfl_build_id_find_elf.c \
@@ -99,7 +99,7 @@
99 99
  	linux-proc-maps.c dwfl_addrmodule.c dwfl_addrdwarf.c cu.c \
100 100
  	dwfl_module_nextcu.c dwfl_nextcu.c dwfl_cumodule.c \
101 101
  	dwfl_module_addrdie.c dwfl_addrdie.c lines.c dwfl_lineinfo.c \
102
-@@ -537,7 +537,6 @@ distclean-compile:
102
+@@ -540,7 +540,6 @@ distclean-compile:
103 103
  @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/lines.Po@am__quote@
104 104
  @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/link_map.Po@am__quote@
105 105
  @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/linux-core-attach.Po@am__quote@