binutils-vl.spec 63 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788
  1. # rpmbuild parameters:
  2. # --with debug: Build without optimizations and without splitting the debuginfo.
  3. # --without testsuite: Do not run the testsuite. Default is to run it.
  4. # --with testsuite: Run the testsuite. Default --with debug is not to run it.
  5. # Enable support for GCC LTO compilation.
  6. %define enable_lto 1
  7. # Enable support for generating new dtags in the linker
  8. # Disable if it is necessary to use RPATH instead.
  9. %define enable_new_dtags 1
  10. # Disable the default generation of compressed debug sections.
  11. %define default_compress_debug 0
  12. # Default to read-only-relocations (relro) in shared binaries.
  13. %define default_relro 1
  14. # Disable the default generation of GNU Build notes by the assembler.
  15. # This has turned out to be problematic for the i686 architecture.
  16. # although the exact reason has not been determined. (See BZ 1572485)
  17. # It also breaks building EFI binaries on AArch64, as these cannot have
  18. # relocations against absolute symbols.
  19. %define default_generate_notes 0
  20. # Enable thread support in the GOLD linker. This is particularly
  21. # important if plugins to the linker intend to use threads themselves.
  22. # See BZ 1636479 for more details. This option is made configurable
  23. # in case there is ever a need to disable thread support.
  24. %define enable_threading 1
  25. %define binutils_target %{_target_platform}
  26. %define isnative 1
  27. %define enable_shared 1
  28. %bcond_without testsuite
  29. %bcond_without docs
  30. Summary: A GNU collection of binary utilities.
  31. Summary(ja): GNU 版バイナリユーティリティ集
  32. Name: binutils
  33. Version: 2.37
  34. Release: 3%{?_dist_release}
  35. Group: programming
  36. Vendor: Project Vine
  37. Distribution: Vine Linux
  38. Packager: kenta, shaolin, inagaki
  39. License: GPLv3+
  40. URL: http://sources.redhat.com/binutils
  41. # Source: ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2
  42. # The ftp.kernel.org/pub/linux/devel/binutils/ page is (temporarily) unavailable
  43. # so we use the GNU site instead.
  44. # Source: ftp://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.bz2
  45. Source: https://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.xz
  46. Source2: binutils-2.19.50.0.1-output-format.sed
  47. #----------------------------------------------------------------------------
  48. Patch00: binutils-2.37-20211223.patch
  49. # Purpose: Use /lib64 and /usr/lib64 instead of /lib and /usr/lib in the
  50. # default library search path of 64-bit targets.
  51. # Lifetime: Permanent, but it should not be. This is a bug in the libtool
  52. # sources used in both binutils and gcc, (specifically the
  53. # libtool.m4 file). These are based on a version released in 2009
  54. # (2.2.6?) rather than the latest version. (Definitely fixed in
  55. # libtool version 2.4.6).
  56. Patch01: binutils-libtool-lib64.patch
  57. # Purpose: Appends a RHEL or Fedora release string to the generic binutils
  58. # version string.
  59. # Lifetime: Permanent. This is a RHEL/Fedora specific patch.
  60. Patch02: binutils-version.patch
  61. # Purpose: Exports the demangle.h header file (associated with the libiberty
  62. # sources) with the binutils-devel rpm.
  63. # Lifetime: Permanent. This is a RHEL/Fedora specific patch.
  64. Patch03: binutils-export-demangle.h.patch
  65. # Purpose: Disables the check in the BFD library's bfd.h header file that
  66. # config.h has been included before the bfd.h header. See BZ
  67. # #845084 for more details.
  68. # Lifetime: Permanent - but it should not be. The bfd.h header defines
  69. # various types that are dependent upon configuration options, so
  70. # the order of inclusion is important.
  71. # FIXME: It would be better if the packages using the bfd.h header were
  72. # fixed so that they do include the header files in the correct
  73. # order.
  74. Patch04: binutils-no-config-h-check.patch
  75. # Purpose: Include the filename concerned in readelf error messages. This
  76. # makes readelf's output more helpful when it is run on multiple
  77. # input files.
  78. # Lifetime: Permanent. This patch changes the format of readelf's output,
  79. # making it better (IMHO) but also potentially breaking tools that
  80. # depend upon readelf's current format. Hence it remains a local
  81. # patch.
  82. Patch05: binutils-filename-in-error-messages.patch
  83. # Purpose: Disable an x86/x86_64 optimization that moves functions from the
  84. # PLT into the GOTPLT for faster access. This optimization is
  85. # problematic for tools that want to intercept PLT entries, such
  86. # as ltrace and LD_AUDIT. See BZs 1452111 and 1333481.
  87. # Lifetime: Permanent. But it should not be.
  88. # FIXME: Replace with a configure time option.
  89. Patch06: binutils-revert-PLT-elision.patch
  90. # Purpose: Changes readelf so that when it displays extra information about
  91. # a symbol, this information is placed at the end of the line.
  92. # Lifetime: Permanent.
  93. # FIXME: The proper fix would be to update the scripts that are expecting
  94. # a fixed output from readelf. But it seems that some of them are
  95. # no longer being maintained.
  96. Patch07: binutils-readelf-other-sym-info.patch
  97. # Purpose: Do not create PLT entries for AARCH64 IFUNC symbols referenced in
  98. # debug sections.
  99. # Lifetime: Permanent.
  100. # FIXME: Find related bug. Decide on permanency.
  101. Patch08: binutils-2.27-aarch64-ifunc.patch
  102. # Purpose: Stop the binutils from statically linking with libstdc++.
  103. # Lifetime: Permanent.
  104. Patch09: binutils-do-not-link-with-static-libstdc++.patch
  105. # Purpose: Allow OS specific sections in section groups.
  106. # Lifetime: Fixed in 2.38 (maybe)
  107. Patch10: binutils-special-sections-in-groups.patch
  108. # Purpose: Fix linker testsuite failures.
  109. # Lifetime: Fixed in 2.37 (maybe)
  110. Patch11: binutils-fix-testsuite-failures.patch
  111. # Purpose: Stop gold from aborting when input sections with the same name
  112. # have different flags.
  113. # Lifetime: Fixed in 2.38 (maybe)
  114. Patch12: binutils-gold-mismatched-section-flags.patch
  115. # Purpose: Add a check to the GOLD linker for a corrupt input file
  116. # with a fuzzed section offset.
  117. # Lifetime: Fixed in 2.38 (maybe)
  118. Patch13: binutils-CVE-2019-1010204.patch
  119. # Purpose: Change the gold configuration script to only warn about
  120. # unsupported targets. This allows the binutils to be built with
  121. # BPF support enabled.
  122. # Lifetime: Permanent.
  123. Patch14: binutils-gold-warn-unsupported.patch
  124. # Purpose: Use the "unsigned long long" type for pointers on hosts where
  125. # long is a 32-bit type but pointers are a 64-bit type. Necessary
  126. # because users expect to be able to install both the i686- and
  127. # x86_64 versions of binutils-devel on the same machine, so they
  128. # need to identical versions of the bfd.h header file.
  129. # Lifetime: Permanent.
  130. Patch15: binutils-use-long-long.patch
  131. # Purpose: Fix testsuite failures due to the patches applied here.
  132. # Lifetime: Permanent, but varying with each new rebase.
  133. Patch16: binutils-testsuite-fixes.patch
  134. # Purpose: Enable the creation of .note.gnu.property sections by the GOLD
  135. # linker for x86 binaries.
  136. # Lifetime: Fixed in 2.38 maybe
  137. Patch17: binutils-gold-i386-gnu-property-notes.patch
  138. # Purpose: Ensure that the 0'th entry in DWARF-5 directory tables generated
  139. # by gas contains the current working directory.
  140. # Lifetime: Fixed in 2.38
  141. Patch18: binutils-dwarf-5-dir0.patch
  142. # Purpose: Ensure that the manual pages are generated.
  143. # Lifetime: Fixed in 2.38
  144. #Patch19: binutils-missing-man-pages.patch
  145. # Purpose: Close the file descriptor if there is no archive plugin file
  146. # descriptor to avoid running out of file descriptors on thin archives
  147. # with many archive members.
  148. # Lifetime: Fixed in 2.38
  149. #Patch20: binutils-bfd-close-fds.patch
  150. # Purpose: Allow the binutils to be configured with any (recent) version of
  151. # autoconf.
  152. # Lifetime: Fixed in 2.38 (maybe ?)
  153. Patch21: binutils-autoconf-version.patch
  154. # Purpose: Set the entry address of shared libraries to 0, so that they can
  155. # be detected by the loader and not run as an executable.
  156. # Lifetime: Permanent.
  157. Patch22: binutils-ld-default-entry-of-0-for-shared.patch
  158. # Purpose: Fix a seg-fault compiling the efivar libraries.
  159. # Lifetime: Fixed in 2.38.
  160. Patch23: binutils-empty-MIND-string.patch
  161. # Purpose: Fix ccache test failure introduced with 2.37
  162. # Lifetime: Fixed in 2.38.
  163. Patch24: binutils-gas-Use-the-directory-name-in-.file-0.patch
  164. #----------------------------------------------------------------------------
  165. Patch1001: binutils-2.26-uio-vine.patch
  166. Patch2000: CVE-2021-45078.patch
  167. %define gold_arches %ix86 x86_64
  168. %if 0%{?_with_debug:1}
  169. # Define this if you want to skip the strip step and preserve debug info.
  170. # Useful for testing.
  171. %define __debug_install_post : > %{_builddir}/%{?buildsubdir}/debugfiles.list
  172. %define debug_package %{nil}
  173. %define run_testsuite 0%{?_with_testsuite:1}
  174. %else
  175. %define run_testsuite 0%{!?_without_testsuite:1}
  176. %endif
  177. Buildroot: %{_tmppath}/%{name}-%{version}-root
  178. BuildRequires: texinfo >= 4.0, gettext, flex, bison, zlib-devel
  179. # Required for: ld-bootstrap/bootstrap.exp bootstrap with --static
  180. # It should not be required for: ld-elf/elf.exp static {preinit,init,fini} array
  181. %if %{run_testsuite}
  182. BuildRequires: dejagnu, zlib-static, glibc-devel, sharutils
  183. #BuildRequires: dejagnu, zlib-static, glibc-static, sharutils
  184. %endif
  185. Conflicts: gcc-c++ < 4.0.0
  186. %ifarch ia64
  187. Obsoletes: gnupro
  188. %endif
  189. # The higher of these two numbers determines the default ld.
  190. %{!?ld_bfd_priority: %global ld_bfd_priority 50}
  191. %{!?ld_gold_priority:%global ld_gold_priority 30}
  192. %ifarch %gold_arches
  193. Requires(post): coreutils
  194. Requires(post): alternatives
  195. Requires(preun): alternatives
  196. %endif
  197. # On ARM EABI systems, we do want -gnueabi to be part of the
  198. # target triple.
  199. %ifnarch %{arm}
  200. %define _gnu %{nil}
  201. %endif
  202. %description
  203. Binutils is a collection of binary utilities, including ar (for
  204. creating, modifying and extracting from archives), as (a family of GNU
  205. assemblers), gprof (for displaying call graph profile data), ld (the
  206. GNU linker), nm (for listing symbols from object files), objcopy (for
  207. copying and translating object files), objdump (for displaying
  208. information from object files), ranlib (for generating an index for
  209. the contents of an archive), size (for listing the section sizes of an
  210. object or archive file), strings (for listing printable strings from
  211. files), strip (for discarding symbols), and addr2line (for converting
  212. addresses to file and line).
  213. %description -l ja
  214. Binutils はバイナリユーティリティ集です。 ar (アーカイブの作成、修正、
  215. 取り出しを行う)、as (GNU アセンブラファミリ)、gprof (グラフプロファイル
  216. データの表示)、ld (GNU リンカ)、nm (オブジェクトファイルのシンボル一覧を
  217. 表示)、objcopy (オブジェクトファイルのコピー,変換を行う)、
  218. objdump (オブジェクトファイルの情報を表示する)、ranlib (アーカイブの内容
  219. 一覧を作成)、size (オブジェクトやアーカイブのセクションサイズを表示)、
  220. strings (ファイルから表示可能な文字列を表示する)、strip (シンボルを
  221. 削除する)、addr2line (アドレスをファイル等に変換する) などが含まれています。
  222. %package devel
  223. Summary: BFD and opcodes static libraries and header files
  224. Group: programming
  225. Conflicts: binutils < 2.17.50.0.3-4
  226. Requires: zlib-devel
  227. %description devel
  228. This package contains BFD and opcodes static libraries and associated
  229. header files. Only *.a libraries are included, because BFD doesn't
  230. have a stable ABI. Developers starting new projects are strongly encouraged
  231. to consider using libelf instead of BFD.
  232. %debug_package
  233. %prep
  234. %setup -q -n binutils-%{version}
  235. %autopatch -p1
  236. # We cannot run autotools as there is an exact requirement of autoconf-2.59.
  237. # On ppc64 and aarch64, we might use 64KiB pages
  238. sed -i -e '/#define.*ELF_COMMONPAGESIZE/s/0x1000$/0x10000/' bfd/elf*ppc.c
  239. sed -i -e '/#define.*ELF_COMMONPAGESIZE/s/0x1000$/0x10000/' bfd/elf*aarch64.c
  240. sed -i -e '/common_pagesize/s/4 /64 /' gold/powerpc.cc
  241. sed -i -e '/pagesize/s/0x1000,/0x10000,/' gold/aarch64.cc
  242. # LTP sucks
  243. perl -pi -e 's/i\[3-7\]86/i[34567]86/g' */conf*
  244. sed -i -e 's/%''{release}/%{release}/g' bfd/Makefile{.am,.in}
  245. sed -i -e '/^libopcodes_la_\(DEPENDENCIES\|LIBADD\)/s,$, ../bfd/libbfd.la,' opcodes/Makefile.{am,in}
  246. # Build libbfd.so and libopcodes.so with -Bsymbolic-functions if possible.
  247. if gcc %{optflags} -v --help 2>&1 | grep -q -- -Bsymbolic-functions; then
  248. sed -i -e 's/^libbfd_la_LDFLAGS = /&-Wl,-Bsymbolic-functions /' bfd/Makefile.{am,in}
  249. sed -i -e 's/^libopcodes_la_LDFLAGS = /&-Wl,-Bsymbolic-functions /' opcodes/Makefile.{am,in}
  250. fi
  251. # $PACKAGE is used for the gettext catalog name.
  252. sed -i -e 's/^ PACKAGE=/ PACKAGE=%{?cross}/' */configure
  253. # Undo the name change to run the testsuite.
  254. for tool in binutils gas ld
  255. do
  256. sed -i -e "2aDEJATOOL = $tool" $tool/Makefile.am
  257. sed -i -e "s/^DEJATOOL = .*/DEJATOOL = $tool/" $tool/Makefile.in
  258. done
  259. touch */configure
  260. # Touch the .info files so that they are newer then the .texi files and
  261. # hence do not need to be rebuilt. This eliminates the need for makeinfo.
  262. # The -print is there just to confirm that the command is working.
  263. %if %{without docs}
  264. find . -name *.info -print -exec touch {} \;
  265. %endif
  266. # revert development mode
  267. sed -i -e 's/development=true/development=false/' bfd/development.sh
  268. # use newer autoconf
  269. sed -i -e 's/2\.69/2.71/' config/override.m4
  270. %build
  271. echo target is %{binutils_target}
  272. %set_build_flags
  273. # BZ 1541027 - include the linker flags from redhat-rpm-config as well.
  274. export LDFLAGS=$RPM_LD_FLAGS
  275. %if %{enable_new_dtags}
  276. export LDFLAGS="$LD_FLAGS -Wl,--enable-new-dtags"
  277. %endif
  278. export CFLAGS="$RPM_OPT_FLAGS"
  279. CARGS=
  280. case %{binutils_target} in i?86*|sparc*|ppc*|s390*|sh*|arm*|aarch64*)
  281. CARGS="$CARGS --enable-64-bit-bfd"
  282. ;;
  283. esac
  284. case %{binutils_target} in x86_64*|i?86*|arm*|aarch64*)
  285. CARGS="$CARGS --enable-targets=x86_64-pep,bpf-unknown-none"
  286. ;;
  287. esac
  288. %if %{default_relro}
  289. CARGS="$CARGS --enable-relro=yes"
  290. %else
  291. CARGS="$CARGS --enable-relro=no"
  292. %endif
  293. %if 0%{?_with_debug:1}
  294. CFLAGS="$CFLAGS -O0 -ggdb2 -Wno-error -D_FORTIFY_SOURCE=0"
  295. %define enable_shared 0
  296. %endif
  297. # Dependencies are not set up to rebuild the configure files
  298. # in the subdirectories. So we just rebuild the ones we care
  299. # about after applying the configure patches
  300. pushd libiberty
  301. autoconf
  302. sed -i -e 's/^ac_aux_dir_candidates=.*$/ac_aux_dir_candidates=../' configure
  303. popd
  304. pushd intl
  305. autoconf
  306. popd
  307. # We could optimize the cross builds size by --enable-shared but the produced
  308. # binaries may be less convenient in the embedded environment.
  309. %configure \
  310. --build=%{_target_platform} --host=%{_target_platform} \
  311. --target=%{binutils_target} \
  312. %ifarch %gold_arches
  313. --enable-gold=default \
  314. %else
  315. --enable-gold=no \
  316. %endif
  317. --enable-ld \
  318. %if %{isnative}
  319. --with-sysroot=/ \
  320. %else
  321. --enable-targets=%{_host} \
  322. --with-sysroot=%{_prefix}/%{binutils_target}/sys-root \
  323. --program-prefix=%{cross} \
  324. %endif
  325. --with-system-zlib \
  326. %if %{enable_shared}
  327. --enable-shared \
  328. %else
  329. --disable-shared \
  330. %endif
  331. %if %{enable_lto}
  332. --enable-lto \
  333. %endif
  334. %if %{enable_new_dtags}
  335. --enable-new-dtags \
  336. --disable-rpath \
  337. %endif
  338. %if %{default_compress_debug}
  339. --enable-compressed-debug-sections=all \
  340. %else
  341. --enable-compressed-debug-sections=none \
  342. %endif
  343. %if %{default_generate_notes}
  344. --enable-generate-build-notes=yes \
  345. %else
  346. --enable-generate-build-notes=no \
  347. %endif
  348. %if %{enable_threading}
  349. --enable-threads=yes \
  350. %else
  351. --enable-threads=no \
  352. %endif
  353. $CARGS \
  354. --enable-plugins \
  355. --disable-werror \
  356. --with-bugurl=http://mantis.vinelinux.org/ \
  357. || cat config.log
  358. %if %{with docs}
  359. make %{_smp_mflags} tooldir=%{_prefix} all
  360. make %{_smp_mflags} tooldir=%{_prefix} info
  361. %else
  362. %make_build %{_smp_mflags} tooldir=%{_prefix} MAKEINFO=true all
  363. %endif
  364. # Do not use %%check as it is run after %%install where libbfd.so is rebuild
  365. # with -fvisibility=hidden no longer being usable in its shared form.
  366. %if !%{run_testsuite}
  367. echo ====================TESTSUITE DISABLED=========================
  368. %else
  369. make -k check < /dev/null || :
  370. echo ====================TESTING=========================
  371. cat {gas/testsuite/gas,ld/ld,binutils/binutils}.sum
  372. if [ -f gold/test-suite.log ]; then
  373. cat gold/test-suite.log
  374. fi
  375. if [ -f gold/testsuite/test-suite.log ]; then
  376. cat gold/testsuite/*.log
  377. fi
  378. echo ====================TESTING END=====================
  379. for file in {gas/testsuite/gas,ld/ld,binutils/binutils}.{sum,log}
  380. do
  381. ln $file binutils-%{_target_platform}-$(basename $file) || :
  382. done
  383. tar cjf binutils-%{_target_platform}.tar.xz binutils-%{_target_platform}-*.{sum,log}
  384. uuencode binutils-%{_target_platform}.tar.xz binutils-%{_target_platform}.tar.xz
  385. rm -f binutils-%{_target_platform}.tar.xz binutils-%{_target_platform}-*.{sum,log}
  386. if [ -f gold/testsuite/test-suite.log ]; then
  387. tar cjf binutils-%{_target_platform}-gold.log.tar.xz gold/testsuite/*.log
  388. uuencode binutils-%{_target_platform}-gold.log.tar.xz binutils-%{_target_platform}-gold.log.tar.xz
  389. rm -f binutils-%{_target_platform}-gold.log.tar.xz
  390. fi
  391. %endif
  392. %install
  393. rm -rf $RPM_BUILD_ROOT
  394. %if %{with docs}
  395. %make_install DESTDIR=%{buildroot}
  396. %else
  397. %make_install DESTDIR=%{buildroot} MAKEINFO=true
  398. %endif
  399. %if %{isnative}
  400. %if %{with docs}
  401. make prefix=%{buildroot}%{_prefix} infodir=%{buildroot}%{_infodir} install-info
  402. %endif
  403. # Rebuild libiberty.a with -fPIC.
  404. # Future: Remove it together with its header file, projects should bundle it.
  405. make -C libiberty clean
  406. make CFLAGS="-g -fPIC $RPM_OPT_FLAGS" -C libiberty
  407. # Rebuild libbfd.a with -fPIC.
  408. # Without the hidden visibility the 3rd party shared libraries would export
  409. # the bfd non-stable ABI.
  410. make -C bfd clean
  411. make CFLAGS="-g -fPIC $RPM_OPT_FLAGS -fvisibility=hidden" -C bfd
  412. # Rebuild libopcodes.a with -fPIC.
  413. make -C opcodes clean
  414. make CFLAGS="-g -fPIC $RPM_OPT_FLAGS" -C opcodes
  415. install -m 644 bfd/libbfd.a $RPM_BUILD_ROOT%{_libdir}
  416. install -m 644 libiberty/libiberty.a $RPM_BUILD_ROOT%{_libdir}
  417. install -m 644 include/libiberty.h $RPM_BUILD_ROOT%{_prefix}/include
  418. install -m 644 opcodes/libopcodes.a %{buildroot}%{_libdir}
  419. # Remove Windows/Novell only man pages
  420. rm -f %{buildroot}%{_mandir}/man1/{dlltool,nlmconv,windres,windmc}*
  421. %if %{without docs}
  422. rm -f %{buildroot}%{_mandir}/man1/{addr2line,ar,as,c++filt,elfedit,gprof,ld,nm,objcopy,objdump,ranlib,readelf,size,strings,strip}*
  423. rm -f %{buildroot}%{_infodir}/{as,bfd,binutils,gprof,ld}*
  424. %endif
  425. %if %{enable_shared}
  426. chmod +x $RPM_BUILD_ROOT%{_libdir}/lib*.so*
  427. %endif
  428. # Prevent programs from linking against libbfd and libopcodes
  429. # dynamically, as they are change far too often.
  430. rm -f $RPM_BUILD_ROOT%{_libdir}/lib{bfd,opcodes}.so
  431. # Remove libtool files, which reference the .so libs
  432. rm -f $RPM_BUILD_ROOT%{_libdir}/lib{bfd,ctf,ctf-nobfd,opcodes}.la
  433. # Sanity check --enable-64-bit-bfd really works.
  434. grep '^#define BFD_ARCH_SIZE 64$' %{buildroot}%{_prefix}/include/bfd.h
  435. # Fix multilib conflicts of generated values by __WORDSIZE-based expressions.
  436. %ifarch %{ix86} x86_64 ppc %{power64} s390 s390x sh3 sh4 sparc sparc64 arm
  437. sed -i -e '/^#include "ansidecl.h"/{p;s~^.*$~#include <bits/wordsize.h>~;}' \
  438. -e 's/^#define BFD_DEFAULT_TARGET_SIZE \(32\|64\) *$/#define BFD_DEFAULT_TARGET_SIZE __WORDSIZE/' \
  439. -e 's/^#define BFD_HOST_64BIT_LONG [01] *$/#define BFD_HOST_64BIT_LONG (__WORDSIZE == 64)/' \
  440. -e 's/^#define BFD_HOST_64_BIT \(long \)\?long *$/#if __WORDSIZE == 32\
  441. #define BFD_HOST_64_BIT long long\
  442. #else\
  443. #define BFD_HOST_64_BIT long\
  444. #endif/' \
  445. -e 's/^#define BFD_HOST_U_64_BIT unsigned \(long \)\?long *$/#define BFD_HOST_U_64_BIT unsigned BFD_HOST_64_BIT/' \
  446. %{buildroot}%{_prefix}/include/bfd.h
  447. %endif
  448. touch -r bfd/bfd-in2.h %{buildroot}%{_prefix}/include/bfd.h
  449. # Generate .so linker scripts for dependencies; imported from glibc/Makerules:
  450. # This fragment of linker script gives the OUTPUT_FORMAT statement
  451. # for the configuration we are building.
  452. OUTPUT_FORMAT="\
  453. /* Ensure this .so library will not be used by a link for a different format
  454. on a multi-architecture system. */
  455. $(gcc $CFLAGS $LDFLAGS -shared -x c /dev/null -o /dev/null -Wl,--verbose -v 2>&1 | sed -n -f "%{SOURCE2}")"
  456. tee $RPM_BUILD_ROOT%{_libdir}/libbfd.so <<EOH
  457. /* GNU ld script */
  458. $OUTPUT_FORMAT
  459. /* The libz dependency is unexpected by legacy build scripts. */
  460. /* The libdl dependency is for plugin support. (BZ 889134) */
  461. INPUT ( %{_libdir}/libbfd.a -liberty -lz -ldl )
  462. EOH
  463. tee %{buildroot}%{_libdir}/libopcodes.so <<EOH
  464. /* GNU ld script */
  465. $OUTPUT_FORMAT
  466. INPUT ( %{_libdir}/libopcodes.a -lbfd )
  467. EOH
  468. %endif # !isnative
  469. # This one comes from gcc
  470. rm -f $RPM_BUILD_ROOT%{_infodir}/dir
  471. rm -rf $RPM_BUILD_ROOT%{_prefix}/%{binutils_target}
  472. %find_lang binutils
  473. %find_lang opcodes
  474. %find_lang bfd
  475. %find_lang gas
  476. %find_lang gprof
  477. cat opcodes.lang >> binutils.lang
  478. cat bfd.lang >> binutils.lang
  479. cat gas.lang >> binutils.lang
  480. cat gprof.lang >> binutils.lang
  481. if [ -x ld/ld-new ]; then
  482. %find_lang ld
  483. cat ld.lang >> binutils.lang
  484. fi
  485. if [ -x gold/ld-new ]; then
  486. %find_lang gold
  487. cat gold.lang >> binutils.lang
  488. fi
  489. /bin/ls %{buildroot}%{_bindir} | sed -e 's|^|%{_bindir}/|' -e '/\/ld$/d' > binutils.list
  490. %clean
  491. rm -rf $RPM_BUILD_ROOT
  492. %post
  493. %ifarch %gold_arches
  494. %__rm -f %{_bindir}/ld
  495. /sbin/alternatives --install %{_bindir}/ld ld \
  496. %{_bindir}/ld.bfd %{ld_bfd_priority}
  497. /sbin/alternatives --install %{_bindir}/ld ld \
  498. %{_bindir}/ld.gold %{ld_gold_priority}
  499. /sbin/alternatives --auto ld
  500. %endif
  501. %preun
  502. %ifarch %gold_arches
  503. if [ $1 = 0 ]; then
  504. /sbi/alternatives --remove ld %{_bindir}/ld.gold
  505. /sbin/alternatives --remove ld %{_bindir}/ld.bfd
  506. fi
  507. %endif
  508. %files -f binutils.lang -f binutils.list
  509. %license COPYING COPYING3 COPYING3.LIB COPYING.LIB
  510. %defattr(-,root,root,-)
  511. %doc README
  512. %ifarch %gold_arches
  513. %ghost %{_bindir}/ld
  514. %else
  515. %{_bindir}/ld
  516. %endif
  517. %{_mandir}/man1/*
  518. %if %{enable_shared}
  519. %{_libdir}/lib*.so
  520. %{_libdir}/libctf*.so.*
  521. %exclude %{_libdir}/libbfd.so
  522. %exclude %{_libdir}/libopcodes.so
  523. %dir %{_libdir}/bfd-plugins
  524. %{_libdir}/bfd-plugins/*.so
  525. %endif
  526. %{_infodir}/[^b]*info*
  527. %{_infodir}/binutils*info*
  528. %files devel
  529. %defattr(-,root,root)
  530. %{_prefix}/include/*
  531. %{_libdir}/libbfd.so
  532. %{_libdir}/libopcodes.so
  533. %{_libdir}/lib*.a
  534. %{_infodir}/bfd*info*
  535. %changelog
  536. * Thu Dec 23 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.37-3
  537. - updated Patch00.
  538. - imported Patch2000 from upstream to fix CVE-2021-45078.
  539. * Mon Nov 01 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.37-2
  540. - updated Patch00.
  541. - imported Patch18-24 from rawhide.
  542. - dropped install-info scriptlets.
  543. * Wed Aug 04 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.37-1
  544. - updated to 2.37.
  545. - imported Patch00 from upstream.
  546. - re-imported patches from rawhide.
  547. * Sat Apr 10 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.36.1-2
  548. - imported Patch00 from upstream.
  549. - built with gcc-10.3.
  550. - updated Patch34.
  551. * Tue Feb 09 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.36.1-1
  552. - updated to 2.36.
  553. - dropped Patch10, 11 and 16.
  554. - renumbered patches.
  555. - imported Patch15-34 from rawhide.
  556. - added Patch0.
  557. - updated Patch6.
  558. * Thu Mar 19 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.34-1
  559. - updated to 2.34.
  560. - dropped Patch14-20, 22-26 and 28-29.
  561. - renumbered patches.
  562. - imported Patch16 from rawhide.
  563. * Sun Sep 22 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.32-1
  564. - updated to 2.32.
  565. - dropped Patch11, 13-22, 24 and 25: fixed in upstream.
  566. - renumbered patches.
  567. - imported Patch14-29 from rawhide.
  568. * Tue Jan 15 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.31.1-1
  569. - updated to 2.31.1.
  570. - dropped Patch1-9.
  571. - imported Patch01-25 from rawhide.
  572. * Sun Jun 26 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.26-4
  573. - rebuild with gcc-5.4.0
  574. * Tue May 24 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.26-3
  575. - rebuilt only.
  576. * Sun May 22 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.26-2
  577. - added Patch09 (binutils-2.26-symbol-version.patch).
  578. * Sat May 07 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.26-1
  579. - update to 2.26
  580. - update Patch04 (binutils-2.26-version.patch)
  581. - update Patch05 (binutils-2.26-set-long-long.patch)
  582. - remove Patch06 (binutils-2.23.2-build-id.patch)
  583. - update Patch07 (binutils-2.26-copy-osabi.patch)
  584. - update Patch08 (binutils-2.26-sec-merge-emit.patch)
  585. - add Patch1001: binutils-2.26-uio-vine.patch
  586. * Sun Dec 13 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.23.2-2
  587. - rebuild with VineSeed environment
  588. * Mon Nov 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.23.2-1
  589. - update to 2.23.2
  590. - remove Patch02 (binutils-2.20.51.0.12-ppc64-pie.patch)
  591. - update Patch06 (binutils-2.23.2-build-id.patch)
  592. * Tue Oct 01 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 2.22-3
  593. - rebuild with gcc-4.8.1
  594. * Sat Jan 14 2012 NAKAMURA Kenta <kenta@vinelinux.org> - 2.22-2
  595. - enabled linker plugins support
  596. * Fri Nov 25 2011 NAKAMURA Kenta <kenta@vinelinux.org> - 2.22-1
  597. - updated to 2.22 (gnu.org)
  598. - updated Patch06: build-id patch
  599. - dropped Patch09: gold-plugins patch
  600. * Sun Apr 03 2011 NAKAMURA Kenta <kenta@vinelinux.org> - 2.20.51.0.12-1
  601. - updated to 2.20.51.0.12
  602. - updated --build-id patch.
  603. - dropped redundant patches:
  604. binutils-2.20.51.0.2-envvar-revert.patch,
  605. binutils-2.20.51.0.2-add-needed.patch,
  606. binutils-2.20.51.0.2-ifunc-ld-s.patch,
  607. binutils-2.20.51.0.2-lwp.patch,
  608. binutils-2.20.51.0.2-gas-expr.patch,
  609. binutils-2.20.51.0.2-ppc-hidden-plt-relocs.patch.
  610. * Tue Apr 6 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.20.51.0.2-5
  611. - rebuilt with gcc-4.4.3-4
  612. * Mon Feb 8 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.20.51.0.2-4
  613. - rebuilt with gcc-4.4.3-3
  614. * Mon Feb 1 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.20.51.0.2-3
  615. - add Patch12 and Patch13 for PR 10856 and 11088 respectively
  616. * Mon Jan 25 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.20.51.0.2-2
  617. - rebuilt with gcc-4.4.3
  618. * Sun Nov 8 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 2.20.51.0.2-1
  619. - updated to 2.20.51.0.2
  620. * Wed Sep 24 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.18.50.0.6-1
  621. - updated to 2.18.50.0.6
  622. * Wed Jul 09 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.17.50.0.18-3
  623. - new versioning policy
  624. - rebuild with gcc-4.1.2-18
  625. * Sun Feb 10 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.17.50.0.18-1vl2
  626. - rebuilt with glibc-2.7-2vl3 and gcc-4.1.2-0vl17
  627. * Wed Feb 06 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.17.50.0.18-1vl1
  628. - updated to 2.17.50.0.18
  629. - Thu Aug 16 2007 Jakub Jelinek <jakub@redhat.com> 2.17.50.0.18-1
  630. - update to 2.17.50.0.18
  631. - GPLv3+
  632. - preserve .note.gnu.build-id in objcopy --only-keep-debug (#251935)
  633. - fix sparc64/alpha broken by --build-id patch (#252936)
  634. - update License tag
  635. - fix ld crash with --build-id and non-ELF output format (Alan Modra, BZ#4923)
  636. - Tue Jul 31 2007 Jakub Jelinek <jakub@redhat.com> 2.17.50.0.17-7
  637. - fix ppc32 secure PLT detection (Alan Modra)
  638. - Wed Jul 25 2007 Jakub Jelinek <jakub@redhat.com> 2.17.50.0.17-6
  639. - rebuilt to make sure even libbfd.so and libopcodes.so aren't
  640. broken by #249435
  641. - Tue Jul 24 2007 Jakub Jelinek <jakub@redhat.com> 2.17.50.0.17-5
  642. - add .note.gnu.build-id into default linker script (#249435)
  643. - Tue Jul 24 2007 Jakub Jelinek <jakub@redhat.com> 2.17.50.0.17-4
  644. - don't kill the %%{_gnu} part of target name on arm
  645. (Lennert Buytenhek, #243516)
  646. - create just one PT_NOTE segment header for all consecutive SHT_NOTE
  647. sections
  648. - Wed Jul 18 2007 Roland McGrath <roland@redhat.com> 2.17.50.0.17-3
  649. - fix for ld --build-id
  650. - Sun Jul 15 2007 Roland McGrath <roland@redhat.com> 2.17.50.0.17-2
  651. - ld --build-id support
  652. - Wed Jun 27 2007 Jakub Jelinek <jakub@redhat.com> 2.17.50.0.17-1
  653. - update to 2.17.50.0.17
  654. - Tue Jun 12 2007 Jakub Jelinek <jakub@redhat.com> 2.17.50.0.16-1
  655. - update to 2.17.50.0.16
  656. - Sat Apr 14 2007 Jakub Jelinek <jakub@redhat.com> 2.17.50.0.12-4
  657. - fix linking non-ELF input objects into ELF output (#235747)
  658. - Wed Mar 14 2007 Jakub Jelinek <jakub@redhat.com> 2.17.50.0.12-3
  659. - don't require matching ELF_OSABI for target vecs with ELFOSABI_NONE,
  660. only prefer specific osabi target vecs over the generic ones
  661. (H.J.Lu, #230964, BZ#3826)
  662. - build libbfd.so and libopcodes.so with -Bsymbolic-functions
  663. - Fri Mar 2 2007 Jakub Jelinek <jakub@redhat.com> 2.17.50.0.12-2
  664. - ignore install-info errors from scriptlets (#223678)
  665. - Thu Mar 1 2007 Jakub Jelinek <jakub@redhat.com> 2.17.50.0.12-1
  666. - update to 2.17.50.0.12
  667. - revert the misdesigned LD_SYMBOLIC{,_FUNCTIONS} env var support,
  668. only support -Bsymbolic/-Bsymbolic-functions/--dynamic-list*
  669. - Mon Jan 8 2007 Jakub Jelinek <jakub@redhat.com> 2.17.50.0.9-1
  670. - update to 2.17.50.0.9
  671. - fix tekhex reader
  672. - Sat Dec 23 2006 Jakub Jelinek <jakub@redhat.com> 2.17.50.0.8-2
  673. - fix --as-needed on ppc64 (#219629)
  674. - Sun Dec 3 2006 Jakub Jelinek <jakub@redhat.com> 2.17.50.0.8-1
  675. - update to 2.17.50.0.8
  676. - initialize frch_cfi_data (BZ#3607)
  677. - Fri Dec 1 2006 Jakub Jelinek <jakub@redhat.com> 2.17.50.0.7-1
  678. - update to 2.17.50.0.7
  679. - .cfi_personality and .cfi_lsda directives, per subsection .cfi_*
  680. directives, better .eh_frame CIE merging
  681. - Thu Nov 9 2006 Jakub Jelinek <jakub@redhat.com> 2.17.50.0.6-3
  682. - fix popcnt instruction assembly and disassembly on amd64 (#214767)
  683. * Mon Jan 07 2008 Shu KONNO <owa@bg.wakwak.com> 2.17.50.0.6-2vl5
  684. - dropt unnecessary changes of 2.17.50.0.6-2vl4
  685. * Fri Jan 04 2008 Shu KONNO <owa@bg.wakwak.com> 2.17.50.0.6-2vl4
  686. - added -fPIC to make (if x86_64)
  687. * Sat Jul 28 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.17.50.0.6-2vl3
  688. - rebuild with gcc-4.1.2-0vl12
  689. - changed devel package Group to Development/Libraries
  690. * Sun May 13 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.17.50.0.6-2vl2
  691. - rebuild with gcc-4.1.2-0vl7 (expecially for ppc)
  692. * Sun May 13 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.17.50.0.6-2vl1
  693. - updated to 2.17.50.0.6
  694. - Thu Dec 21 2006 Jakub Jelinek <jakub@redhat.com> 2.17.50.0.6-2.fc6
  695. - update to 2.17.50.0.6
  696. - fix for section relative linker script defined symbols in
  697. empty sections (#212032, BZ#3267)
  698. - fix handling of DW_CFA_set_loc in .eh_frame optimizations
  699. - fix R_PPC_{PLT,GOT{,_TLSGD,_TLSLD,_TPREL,_DTPREL}}16_HA relocation
  700. handling with weak undefined symbols (Alan Modra, #211094)
  701. - fix --cref (#212099)
  702. - fix --emit-relocs on ppc64 (#211991)
  703. - fix popcnt instruction assembly and disassembly on amd64 (#214767)
  704. * Sat May 12 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.17.50.0.3-6vl2
  705. - rebuilt with gcc-4.1.2-0vl6 and glibc-2.5-12vl1
  706. * Sun May 06 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.17.50.0.3-6vl1
  707. - rebuild
  708. * Tue Apr 03 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.17.50.0.3-6vl0
  709. - initial build for VineSeed based on FC 2.17.50.0.3-6
  710. * Tue Sep 12 2006 Jakub Jelinek <jakub@redhat.com> 2.17.50.0.3-6
  711. - fix multilib conflict in %{_prefix}/include/bfd.h
  712. * Tue Sep 12 2006 Jakub Jelinek <jakub@redhat.com> 2.17.50.0.3-5
  713. - fix efi-app-ia64 magic number (#206002, BZ#3171)
  714. * Tue Sep 5 2006 Jakub Jelinek <jakub@redhat.com> 2.17.50.0.3-4
  715. - link libopcodes*.so against libbfd*.so (#202327)
  716. - split *.a and header files into binutils-devel
  717. * Fri Aug 18 2006 Jakub Jelinek <jakub@redhat.com> 2.17.50.0.3-3
  718. - on ppc and ppc64 increase default -z commonpagesize to 64K (#203001)
  719. * Fri Jul 28 2006 Alexandre Oliva <aoliva@redhat.com> 2.17.50.0.3-2
  720. - do not infer x86 arch implicitly based on instruction in the input
  721. (#200330)
  722. * Mon Jul 17 2006 Jakub Jelinek <jakub@redhat.com> 2.17.50.0.3-1
  723. - update to 2.17.50.0.3
  724. * Fri Jul 14 2006 Jakub Jelinek <jakub@redhat.com> 2.17.50.0.2-8
  725. - add support for new AMDFAM10 instructions (#198281, IT#97662)
  726. - add -march=/-mtune= gas support on x86/x86-64
  727. - x86/x86-64 nop insn improvements
  728. - fix DT_GNU_HASH shift count value computation
  729. * Tue Jul 11 2006 Jakub Jelinek <jakub@redhat.com> 2.17.50.0.2-7
  730. - add DT_GNU_HASH support (--hash-style=gnu and --hash-style=both
  731. ld options)
  732. * Thu Jun 29 2006 Jakub Jelinek <jakub@redhat.com> 2.17.50.0.2-4
  733. - fix i?86 TLS GD->IE transition in executables (#196157, BZ#2513)
  734. * Mon Jun 19 2006 Jakub Jelinek <jakub@redhat.com> 2.17.50.0.2-3
  735. - fix two places in ld that misbehaved with MALLOC_PERTURB_=N
  736. - fix .tls_common handling in relocatable linking
  737. * Mon Jun 5 2006 Jakub Jelinek <jakub@redhat.com> 2.17.50.0.2-2
  738. - fix --as-needed (Alan Modra, #193689, BZ#2721)
  739. * Thu Jun 1 2006 Jakub Jelinek <jakub@redhat.com> 2.17.50.0.2-1
  740. - update to 2.17.50.0.2
  741. - update from CVS to 20060601
  742. - speed up the ELF linker by caching the result of kept section check
  743. (H.J. Lu)
  744. * Tue May 9 2006 Jakub Jelinek <jakub@redhat.com> 2.17.50.0.1-1
  745. - update to 2.17.50.0.1
  746. * Fri Mar 31 2006 Jakub Jelinek <jakub@redhat.com> 2.16.91.0.6-6
  747. - fix ld error message formatting, so that collect2 parser can
  748. parse it again for g++ -frepo (#187142)
  749. * Thu Mar 9 2006 Alexandre Oliva <aoliva@redhat.com> 2.16.91.0.6-4
  750. - fix relaxation of TLS GD to LE on PPC (#184590)
  751. * Fri Mar 3 2006 Jakub Jelinek <jakub@redhat.com> 2.16.91.0.6-3
  752. - support DW_CFA_val_{offset,offset_sf,expression} in readelf/objdump
  753. * Tue Feb 28 2006 Jakub Jelinek <jakub@redhat.com> 2.16.91.0.6-2
  754. - add MNI support on i?86/x86_64 (#183080)
  755. - support S signal frame augmentation flag in .eh_frame,
  756. add .cfi_signal_frame support (#175951, PR other/26208, BZ#300)
  757. * Tue Feb 14 2006 Jakub Jelinek <jakub@redhat.com> 2.16.91.0.6-1
  758. - update to 2.16.91.0.6
  759. - fix ppc64 --gc-sections
  760. - disassembler fixes for x86_64 cr/debug regs
  761. - fix linker search order for DT_NEEDED libs
  762. * Mon Jan 02 2006 Jakub Jelinek <jakub@redhat.com> 2.16.91.0.5-1
  763. - update to 2.16.91.0.5
  764. - don't error about .toc1 references to discarded sectiosn on ppc64
  765. (#175944)
  766. * Wed Dec 14 2005 Jakub Jelinek <jakub@redhat.com> 2.16.91.0.3-2
  767. - put .gnu.linkonce.d.rel.ro.* sections into relro region
  768. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
  769. - rebuilt
  770. * Fri Nov 11 2005 Jakub Jelinek <jakub@redhat.com> 2.16.91.0.3-1
  771. - update to 2.16.91.0.3
  772. - add .weakref support (Alexandre Oliva, #115157, #165728)
  773. * Thu Aug 18 2005 Jakub Jelinek <jakub@redhat.com> 2.16.91.0.2-4
  774. - install-info also configure.info
  775. - update standards.texi from gnulib (#165530)
  776. * Tue Aug 16 2005 Jakub Jelinek <jakub@redhat.com> 2.16.91.0.2-3
  777. - update to 20050816 CVS
  778. - better fix for ld-cdtest
  779. - fix symbol version script parsing
  780. * Fri Jul 29 2005 Jakub Jelinek <jakub@redhat.com> 2.16.91.0.2-2
  781. - don't complain about relocs to discarded sections in ppc32
  782. .got2 sections (Alan Modra, PR target/17828)
  783. * Fri Jul 22 2005 Jakub Jelinek <jakub@redhat.com> 2.16.91.0.2-1
  784. - update to 2.16.91.0.2
  785. * Thu Jul 21 2005 Jakub Jelinek <jakub@redhat.com> 2.16.91.0.1-3
  786. - fix buffer overflow in readelf ia64 unwind printing code
  787. - use vsnprintf rather than vsprintf in gas diagnostics (Tavis Ormandy)
  788. - fix ld-cdtest when CFLAGS contains -fexceptions
  789. * Wed Jul 20 2005 Jakub Jelinek <jakub@redhat.com> 2.16.91.0.1-2
  790. - update to 20050720 CVS
  791. * Mon Jul 11 2005 Jakub Jelinek <jakub@redhat.com> 2.16.91.0.1-1
  792. - update to 2.16.91.0.1 plus 20050708 CVS
  793. * Wed Jun 15 2005 Jakub Jelinek <jakub@redhat.com> 2.16.90.0.3-1
  794. - update to 2.16.90.0.3
  795. - update to 20050615 CVS
  796. - ppc32 secure PLT support (Alan Modra)
  797. - further bfd/readelf robustification
  798. * Sat Jun 11 2005 Jakub Jelinek <jakub@redhat.com> 2.15.94.0.2.2-4
  799. - further bfd robustification (CAN-2005-1704, #158680)
  800. * Fri Jun 10 2005 Jakub Jelinek <jakub@redhat.com> 2.15.94.0.2.2-3
  801. - further objdump and readelf robustification (CAN-2005-1704, #158680)
  802. * Wed May 25 2005 Jakub Jelinek <jakub@redhat.com> 2.15.94.0.2.2-2
  803. - bfd and readelf robustification (CAN-2005-1704, #158680)
  804. * Tue Mar 29 2005 Jakub Jelinek <jakub@redhat.com> 2.15.94.0.2.2-1
  805. - update to 2.15.94.0.2.2
  806. - speed up walk_wild_section (Robert O'Callahan)
  807. * Mon Mar 7 2005 Jakub Jelinek <jakub@redhat.com> 2.15.94.0.2-4
  808. - rebuilt with GCC 4
  809. * Mon Feb 28 2005 Jakub Jelinek <jakub@redhat.com> 2.15.94.0.2-3
  810. - fix buffer overflows in readelf (#149506)
  811. - move c++filt to binutils from gcc-c++, conflict with gcc-c++ < 4.0 (#86333)
  812. * Thu Feb 10 2005 Jakub Jelinek <jakub@redhat.com> 2.15.94.0.2-1
  813. - update to 2.15.94.0.2
  814. - fix .note.GNU-stack/PT_GNU_STACK computation in linker on ppc64 (#147296)
  815. - fix stripping of binaries/libraries that have empty sections right before
  816. .dynamic section (with the same starting address; #144038)
  817. - handle AS_NEEDED (...) in linker script INPUT/GROUP
  818. * Tue Dec 14 2004 Jakub Jelinek <jakub@redhat.com> 2.15.92.0.2-11
  819. - fix a longstanding -z relro bug
  820. * Mon Dec 13 2004 Jakub Jelinek <jakub@redhat.com> 2.15.92.0.2-10
  821. - avoid unnecessary gap with -z relro showing on i686 libc.so
  822. - ppc64 --emit-relocs fix (Alan Modra)
  823. - don't crash if STT_SECTION symbol has incorrect st_shndx (e.g. SHN_ABS,
  824. as created by nasm; #142181)
  825. - don't try to make absptr LSDAs relative if they don't have relocations
  826. against them (Alan Modra, #141162)
  827. * Wed Oct 27 2004 Jakub Jelinek <jakub@redhat.com> 2.15.92.0.2-5.EL4
  828. - fix ar xo (#104344)
  829. * Wed Oct 20 2004 Jakub Jelinek <jakub@redhat.com> 2.15.92.0.2-5
  830. - fix --just-symbols on ppc64 (Alan Modra, #135498)
  831. * Fri Oct 15 2004 Jakub Jelinek <jakub@redhat.com> 2.15.92.0.2-4
  832. - fix code detecting matching linkonce and single member comdat
  833. group sections (#133078)
  834. * Mon Oct 11 2004 Jakub Jelinek <jakub@redhat.com> 2.15.92.0.2-3
  835. - revert Sep 09 change to make ppc L second argument e.g. for tlbie
  836. non-optional
  837. - fix stripping of prelinked binaries and libraries (#133734)
  838. - allow strings(1) on 32-bit arches to be used again with > 2GB
  839. files (#133555)
  840. * Mon Oct 4 2004 Jakub Jelinek <jakub@redhat.com> 2.15.92.0.2-2
  841. - update to 2.15.92.0.2
  842. - change ld's ld.so.conf parser to match ldconfig's (#129340)
  843. * Mon Sep 20 2004 Jakub Jelinek <jakub@redhat.com> 2.15.91.0.2-9
  844. - avoid almost 1MB (sparse) gaps in the middle of -z relro
  845. libraries on x86-64 (Andreas Schwab)
  846. - fix -z relro to make sure end of PT_GNU_RELRO segment is always
  847. COMMONPAGESIZE aligned
  848. * Mon Aug 16 2004 Jakub Jelinek <jakub@redhat.com> 2.15.91.0.2-8
  849. - fix linker segfaults on input objects with SHF_LINK_ORDER with
  850. incorrect sh_link (H.J.Lu, Nick Clifton, #130198, BZ #290)
  851. * Mon Aug 16 2004 Jakub Jelinek <jakub@redhat.com> 2.15.91.0.2-7
  852. - resolve all undefined ppc64 .* syms to the function bodies through
  853. .opd, not just those used in brach instructions (Alan Modra)
  854. * Mon Aug 16 2004 Jakub Jelinek <jakub@redhat.com> 2.15.91.0.2-6
  855. - fix ppc64 ld --dotsyms (Alan Modra)
  856. * Mon Aug 16 2004 Jakub Jelinek <jakub@redhat.com> 2.15.91.0.2-5
  857. - various ppc64 make check fixes when using non-dot-syms gcc (Alan Modra)
  858. - fix --gc-sections
  859. - on ia64 create empty .gnu.linkonce.ia64unw*.* sections for
  860. .gnu.linkonce.t.* function doesn't need unwind info
  861. * Mon Aug 16 2004 Jakub Jelinek <jakub@redhat.com> 2.15.91.0.2-4
  862. - kill ppc64 dot symbols (Alan Modra)
  863. - objdump -d support for objects without dot symbols
  864. - support for overlapping ppc64 .opd entries
  865. * Mon Aug 9 2004 Jakub Jelinek <jakub@redhat.com> 2.15.91.0.2-3
  866. - fix a newly introduced linker crash on x86-64
  867. * Sun Aug 8 2004 Alan Cox <alan@redhat.com> 2.15.91.0.2-2
  868. - BuildRequire bison and macroise buildroot - from Steve Grubb
  869. * Fri Jul 30 2004 Jakub Jelinek <jakub@redhat.com> 2.15.91.0.2-1
  870. - update to 2.15.91.0.2
  871. - BuildRequire flex (#117763)
  872. * Wed May 19 2004 Jakub Jelinek <jakub@redhat.com> 2.15.90.0.3-7
  873. - use lib64 instead of lib directories on ia64 if %%{_lib} is
  874. set to lib64 by rpm
  875. * Sat May 15 2004 Jakub Jelinek <jakub@redhat.com> 2.15.90.0.3-6
  876. - fix a bug introduced in the ++/-- rejection patch
  877. from 2.15.90.0.3 (Alan Modra)
  878. * Tue May 4 2004 Jakub Jelinek <jakub@redhat.com> 2.15.90.0.3-5
  879. - fix s390{,x} .{,b,p2}align handling
  880. - ppc/ppc64 testsuite fix
  881. * Mon May 3 2004 Jakub Jelinek <jakub@redhat.com> 2.15.90.0.3-4
  882. - -z relro ppc/ppc64/ia64 fixes
  883. - change x86-64 .plt symbol st_size handling to match ia32
  884. - prettify objdump -d output
  885. * Tue Apr 20 2004 Jakub Jelinek <jakub@redhat.com> 2.15.90.0.3-3
  886. - several SPARC fixes
  887. * Sun Apr 18 2004 Jakub Jelinek <jakub@redhat.com> 2.15.90.0.3-2
  888. - yet another fix for .tbss handling
  889. * Fri Apr 16 2004 Jakub Jelinek <jakub@redhat.com> 2.15.90.0.3-1
  890. - update to 2.15.90.0.3
  891. * Fri Mar 26 2004 Jakub Jelinek <jakub@redhat.com> 2.15.90.0.1.1-2
  892. - update to 20040326 CVS
  893. - fix ppc64 weak .opd symbol handling (Alan Modra, #119086)
  894. - fix .tbss handling bug introduced
  895. * Fri Mar 26 2004 Jakub Jelinek <jakub@redhat.com> 2.15.90.0.1.1-1
  896. - update to 2.15.90.0.1.1
  897. * Sat Feb 21 2004 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.8-8
  898. - with -z now without --enable-new-dtags create DT_BIND_NOW
  899. dynamic entry in addition to DT_FLAGS_1 with DF_1_NOW bit set
  900. * Fri Feb 20 2004 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.8-7
  901. - fix -pie on ppc32
  902. * Fri Feb 20 2004 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.8-6
  903. - clear .plt sh_entsize on sparc32
  904. - put whole .got into relro area with -z now -z relro
  905. * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
  906. - rebuilt
  907. * Thu Jan 22 2004 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.8-4
  908. - fix -pie on IA64
  909. * Mon Jan 19 2004 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.8-3
  910. - fix testcases on s390 and s390x
  911. * Fri Jan 16 2004 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.8-2
  912. - fix testcases on AMD64
  913. - fix .got's sh_entsize on IA32/AMD64
  914. - set COMMONPAGESIZE on s390/s390x
  915. - set COMMONPAGESIZE on ppc32 (Alan Modra)
  916. * Fri Jan 16 2004 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.8-1
  917. - update to 2.14.90.0.8
  918. * Tue Jan 13 2004 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.7-4
  919. - fix -z relro on 64-bit arches
  920. * Mon Jan 12 2004 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.7-3
  921. - fix some bugs in -z relro support
  922. * Fri Jan 9 2004 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.7-2
  923. - -z relro support, reordering of RW sections
  924. * Fri Jan 9 2004 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.7-1
  925. - update to 2.14.90.0.7
  926. * Mon Nov 24 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.6-4
  927. - fix assembly parsing of foo=(.-bar)/4 (Alan Modra)
  928. - fix IA-64 assembly parsing of (p7) hint @pause
  929. * Tue Sep 30 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.6-3
  930. - don't abort on some linker warnings/errors on IA-64
  931. * Sat Sep 20 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.6-2
  932. - fix up merge2.s to use .p2align instead of .align
  933. * Sat Sep 20 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.6-1
  934. - update to 2.14.90.0.6
  935. - speed up string merging (Lars Knoll, Michael Matz, Alan Modra)
  936. - speed up IA-64 local symbol handling during linking
  937. * Fri Sep 5 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.5-7
  938. - avoid ld -s segfaults introduced in 2.14.90.0.5-5 (Dmitry V. Levin,
  939. #103180)
  940. * Fri Aug 29 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.5-6
  941. - build old demangler into libiberty.a (#102268)
  942. - SPARC .cfi* support
  943. * Tue Aug 5 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.5-5
  944. - fix orphan section placement
  945. * Tue Jul 29 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.5-4
  946. - fix ppc64 elfvsb linker tests
  947. - some more 64-bit cleanliness fixes, give ppc64 fdesc symbols
  948. type and size (Alan Modra)
  949. * Tue Jul 29 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.5-3
  950. - fix 64-bit unclean code in ppc-opc.c
  951. * Mon Jul 28 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.5-2
  952. - fix 64-bit unclean code in tc-ppc.c
  953. * Mon Jul 28 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.5-1
  954. - update to 2.14.90.0.5
  955. - fix ld -r on ppc64 (Alan Modra)
  956. * Fri Jul 18 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.4-23
  957. - rebuilt
  958. * Thu Jul 17 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.4-22
  959. - fix elfNN_ia64_dynamic_symbol_p (Richard Henderson, #86661)
  960. - don't access memory beyond what was allocated in readelf
  961. (Richard Henderson)
  962. * Thu Jul 10 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.4-21
  963. - add .cfi_* support on ppc{,64} and s390{,x}
  964. * Tue Jul 8 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.4-20
  965. - remove lib{bfd,opcodes}.la (#98190)
  966. * Mon Jul 7 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.4-19
  967. - fix -pie support on amd64, s390, s390x and ppc64
  968. - issue relocation overflow errors for s390/s390x -fpic code when
  969. accessing .got slots above 4096 bytes from .got start
  970. * Thu Jul 3 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.4-18
  971. - rebuilt
  972. * Thu Jul 3 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.4-17
  973. - fix ia64 -pie support
  974. - require no undefined non-weak symbols in PIEs like required for normal
  975. binaries
  976. * Wed Jul 2 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.4-16
  977. - fix readelf -d on IA-64
  978. - build libiberty.a with -fPIC, so that it can be lined into shared
  979. libraries
  980. * Wed Jun 25 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.4-15
  981. - rebuilt
  982. * Wed Jun 25 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.4-14
  983. - added support for Intel Prescott instructions
  984. - fix hint@pause for ia64
  985. - add workaround for LTP sillyness (#97934)
  986. * Wed Jun 18 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.4-13
  987. - update CFI stuff to 2003-06-18
  988. - make sure .eh_frame is aligned to 8 bytes on 64-bit arches,
  989. remove padding within one .eh_frame section
  990. * Tue Jun 17 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.4-12
  991. - rebuilt
  992. * Tue Jun 17 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.4-11
  993. - one more fix for the same patch
  994. * Tue Jun 17 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.4-10
  995. - fix previous patch
  996. * Mon Jun 16 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.4-9
  997. - ensure R_PPC64_{RELATIVE,ADDR64} have *r_offset == r_addend
  998. and the other relocs have *r_offset == 0
  999. * Tue Jun 10 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.4-8
  1000. - remove some unnecessary provides in ppc64 linker script
  1001. which were causing e.g. empty .ctors/.dtors section creation
  1002. * Fri Jun 6 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.4-7
  1003. - some CFI updates/fixes
  1004. - don't create dynamic relocations against symbols defined in PIE
  1005. exported from its .dynsym
  1006. * Wed Jun 4 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.4-6
  1007. - update gas to 20030604
  1008. - PT_GNU_STACK support
  1009. * Mon Jun 2 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.4-5
  1010. - buildrequire gettext (#91838)
  1011. * Sat May 31 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.4-4
  1012. - fix shared libraries with >= 8192 .plt slots on ppc32
  1013. * Thu May 29 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.4-3
  1014. - rebuilt
  1015. * Thu May 29 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.4-2
  1016. - rename ld --dynamic option to --pic-executable or --pie
  1017. - fix ld --help output
  1018. - document --pie/--pic-executable in ld.info and ld.1
  1019. * Wed May 28 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.4-1
  1020. - update to 2.14.90.0.4-1
  1021. - gas CFI updates (Richard Henderson)
  1022. - dynamic executables (Ulrich Drepper)
  1023. * Tue May 20 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.2-2
  1024. - fix ELF visibility handling
  1025. - tidy plt entries on IA-32, ppc and ppc64
  1026. * Mon May 19 2003 Jakub Jelinek <jakub@redhat.com> 2.14.90.0.2-1
  1027. - update to 2.14.90.0.2-1
  1028. * Tue May 13 2003 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.20-8
  1029. - fix bfd_elf_hash on 64-bit arches (Andrew Haley)
  1030. * Wed Apr 30 2003 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.20-7
  1031. - rebuilt
  1032. * Mon Apr 14 2003 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.20-6
  1033. - optimize DW_CFA_advance_loc4 in gas even if there is 'z' augmentation
  1034. with size 0 in FDE
  1035. * Fri Apr 11 2003 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.20-5
  1036. - fix SPARC build
  1037. * Thu Apr 3 2003 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.20-4
  1038. - fix ppc32 plt reference counting
  1039. - don't include %{_prefix}/%{_lib}/debug in the non-debuginfo package
  1040. (#87729)
  1041. * Mon Mar 31 2003 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.20-3
  1042. - make elf64ppc target native extra on ppc and elf32ppc native extra
  1043. on ppc64.
  1044. * Fri Mar 28 2003 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.20-2
  1045. - fix TLS on IA-64 with ld relaxation
  1046. * Sat Mar 22 2003 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.20-1
  1047. - update to 2.13.90.0.20
  1048. * Mon Feb 24 2003 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.18-9
  1049. - rebuilt
  1050. * Mon Feb 24 2003 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.18-8
  1051. - don't strip binaries in %%install, so that there is non-empty
  1052. debuginfo
  1053. * Mon Feb 24 2003 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.18-7
  1054. - don't optimize .eh_frame during ld -r
  1055. * Thu Feb 13 2003 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.18-6
  1056. - don't clear elf_link_hash_flags in the .symver patch
  1057. - only use TC_FORCE_RELOCATION in s390's TC_FORCE_RELOCATION_SUB_SAME
  1058. (Alan Modra)
  1059. * Mon Feb 10 2003 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.18-5
  1060. - fix the previous .symver change
  1061. - remove libbfd.so and libopcodes.so symlinks, so that other packages
  1062. link statically, not dynamically against libbfd and libopcodes
  1063. whose ABI is everything but stable
  1064. * Mon Feb 10 2003 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.18-4
  1065. - do .symver x, x@FOO handling earlier
  1066. - support .file and .loc on s390*
  1067. * Mon Feb 10 2003 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.18-3
  1068. - handle .symver x, x@FOO in ld such that relocs against x become
  1069. dynamic relocations against x@FOO (#83325)
  1070. - two PPC64 TLS patches (Alan Modra)
  1071. * Sun Feb 09 2003 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.18-2
  1072. - fix SEARCH_DIR on x86_64/s390x
  1073. - fix Alpha --relax
  1074. - create DT_RELA{,SZ,ENT} on s390 even if there is just .rela.plt
  1075. and no .rela.dyn section
  1076. - support IA-32 on IA-64 (#83752)
  1077. - .eh_frame_hdr fix (Andreas Schwab)
  1078. * Thu Feb 06 2003 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.18-1
  1079. - update to 2.13.90.0.18 + 20030121->20030206 CVS diff
  1080. * Tue Feb 04 2003 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.16-8
  1081. - alpha TLS fixes
  1082. - use .debug_line directory table to make the section tiny bit smaller
  1083. - libtool fix from Jens Petersen
  1084. * Sun Feb 02 2003 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.16-7
  1085. - sparc32 TLS
  1086. * Fri Jan 24 2003 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.16-6
  1087. - s390{,x} TLS and two other mainframe patches
  1088. * Fri Jan 17 2003 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.16-5
  1089. - fix IA-64 TLS IE in shared libs
  1090. - .{preinit,init,fini}_array compat hack from Alexandre Oliva
  1091. * Thu Jan 16 2003 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.16-4
  1092. - IA-64 TLS fixes
  1093. - fix .plt sh_entsize on Alpha
  1094. - build with %%_smp_mflags
  1095. * Sat Nov 30 2002 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.16-3
  1096. - fix strip on TLS binaries and libraries
  1097. * Fri Nov 29 2002 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.16-2
  1098. - fix IA-64 ld bootstrap
  1099. * Thu Nov 28 2002 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.16-1
  1100. - update to 2.13.90.0.16
  1101. - STT_TLS SHN_UNDEF fix
  1102. * Wed Nov 27 2002 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.10-4
  1103. - pad .rodata.cstNN sections at the end if they aren't sized to multiple
  1104. of sh_entsize
  1105. - temporary patch to make .eh_frame and .gcc_except_table sections
  1106. readonly if possible (should be removed when AUTO_PLACE is implemented)
  1107. - fix .PPC.EMB.apuinfo section flags
  1108. * Wed Oct 23 2002 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.10-3
  1109. - fix names and content of alpha non-alloced .rela.* sections (#76583)
  1110. - delete unpackaged files from the buildroot
  1111. * Tue Oct 15 2002 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.10-2
  1112. - enable s390x resp. s390 emulation in linker too
  1113. * Mon Oct 14 2002 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.10-1
  1114. - update to 2.13.90.0.10
  1115. - add a bi-arch patch for sparc/s390/x86_64
  1116. - add --enable-64-bit-bfd on sparc, s390 and ppc
  1117. * Thu Oct 10 2002 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.4-3
  1118. - fix combreloc testcase
  1119. * Thu Oct 10 2002 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.4-2
  1120. - fix orphan .rel and .rela section placement with -z combreloc (Alan Modra)
  1121. - skip incompatible linker scripts when searching for libraries
  1122. * Tue Oct 1 2002 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.4-1
  1123. - update to 2.13.90.0.4
  1124. - x86-64 TLS support
  1125. - some IA-32 TLS fixes
  1126. - some backported patches from trunk
  1127. - include opcodes, ld, gas and bfd l10n too
  1128. * Thu Sep 19 2002 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.2-3
  1129. - allow addends for IA-32 TLS @tpoff, @ntpoff and @dtpoff
  1130. - clear memory at *r_offset of dynamic relocs on PPC
  1131. - avoid ld crash if accessing non-local symbols through LE relocs
  1132. - new IA-32 TLS relocs, bugfixes and testcases
  1133. - use brl insn on IA-64 (Richard Henderson)
  1134. - fix R_IA64_PCREL21{M,F} handling (Richard Henderson)
  1135. - build in separate builddir, so that gasp tests don't fail
  1136. - include localization
  1137. * Thu Aug 8 2002 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.2-2
  1138. - fix R_386_TPOFF32 addends (#70824)
  1139. * Sat Aug 3 2002 Jakub Jelinek <jakub@redhat.com> 2.13.90.0.2-1
  1140. - update to 2.13.90.0.2
  1141. - fix ld TLS assertion failure (#70084)
  1142. - fix readelf --debug-dump= handling to match man page and --help
  1143. (#68997)
  1144. - fix _GLOBAL_OFFSET_TABLE gas handling (#70241)
  1145. * Wed Jul 24 2002 Jakub Jelinek <jakub@redhat.com> 2.12.90.0.15-1
  1146. - update to 2.12.90.0.15
  1147. - TLS .tbss fix
  1148. - don't use rpm %%configure macro, it is broken too often (#69366)
  1149. * Thu May 30 2002 Jakub Jelinek <jakub@redhat.com> 2.12.90.0.9-1
  1150. - update to 2.12.90.0.9
  1151. - TLS support
  1152. - remove gasp.info from %%post/%%preun (#65400)
  1153. * Mon Apr 29 2002 Jakub Jelinek <jakub@redhat.com> 2.12.90.0.7-1
  1154. - update to 2.12.90.0.7
  1155. - run make check
  1156. * Mon Apr 29 2002 Jakub Jelinek <jakub@redhat.com> 2.11.93.0.2-12
  1157. - fix .hidden handling on SPARC (Richard Henderson)
  1158. - don't crash when linking -shared non-pic code with SHF_MERGE
  1159. - fix .eh_frame_hdr for DW_EH_PE_aligned
  1160. - correctly adjust DW_EH_PE_pcrel encoded personalities in CIEs
  1161. * Fri Apr 5 2002 Jakub Jelinek <jakub@redhat.com> 2.11.93.0.2-11
  1162. - don't emit dynamic R_SPARC_DISP* relocs against STV_HIDDEN symbols
  1163. into shared libraries
  1164. * Thu Mar 21 2002 Jakub Jelinek <jakub@redhat.com> 2.11.93.0.2-10
  1165. - don't merge IA-64 unwind info sections together during ld -r
  1166. * Mon Mar 11 2002 Jakub Jelinek <jakub@redhat.com> 2.11.93.0.2-9
  1167. - fix DATA_SEGMENT_ALIGN on ia64/alpha/sparc/sparc64
  1168. * Fri Mar 8 2002 Jakub Jelinek <jakub@redhat.com> 2.11.93.0.2-8
  1169. - don't crash on SHN_UNDEF local dynsyms (Andrew MacLeod)
  1170. * Thu Mar 7 2002 Jakub Jelinek <jakub@redhat.com> 2.11.93.0.2-7
  1171. - fix bfd configury bug (Alan Modra)
  1172. * Tue Mar 5 2002 Jakub Jelinek <jakub@redhat.com> 2.11.93.0.2-6
  1173. - don't copy visibility when equating symbols
  1174. - fix alpha .text/.data with .previous directive bug
  1175. * Tue Mar 5 2002 Jakub Jelinek <jakub@redhat.com> 2.11.93.0.2-5
  1176. - fix SHF_MERGE crash with --gc-sections (#60369)
  1177. - C++ symbol versioning patch
  1178. * Fri Feb 22 2002 Jakub Jelinek <jakub@redhat.com> 2.11.93.0.2-4
  1179. - add DW_EH_PE_absptr -> DW_EH_PE_pcrel optimization for shared libs,
  1180. if DW_EH_PE_absptr cannot be converted that way, don't build the
  1181. .eh_frame_hdr search table
  1182. * Fri Feb 15 2002 Jakub Jelinek <jakub@redhat.com> 2.11.93.0.2-3
  1183. - fix ld -N broken by last patch
  1184. * Tue Feb 12 2002 Jakub Jelinek <jakub@redhat.com> 2.11.93.0.2-2
  1185. - trade one saved runtime page for data segment (=almost always not shared)
  1186. for up to one page of disk space where possible
  1187. * Fri Feb 8 2002 Jakub Jelinek <jakub@redhat.com> 2.11.93.0.2-1
  1188. - update to 2.11.93.0.2
  1189. - use %%{ix86} instead of i386 for -z combreloc default (#59086)
  1190. * Thu Jan 31 2002 Jakub Jelinek <jakub@redhat.com> 2.11.92.0.12-10
  1191. - don't create SHN_UNDEF STB_WEAK symbols unless there are any relocations
  1192. against them
  1193. * Wed Jan 30 2002 Bill Nottingham <notting@redhat.com> 2.11.92.0.12-9.1
  1194. - rebuild (fix ia64 miscompilation)
  1195. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  1196. - automated rebuild
  1197. * Fri Dec 28 2001 Jakub Jelinek <jakub@redhat.com> 2.11.92.0.12-8
  1198. - two further .eh_frame patch fixes
  1199. * Wed Dec 19 2001 Jakub Jelinek <jakub@redhat.com> 2.11.92.0.12-7
  1200. - as ld is currently not able to shrink input sections to zero size
  1201. during discard_info, build a fake minimal CIE in that case
  1202. - update elf-strtab patch to what was commited
  1203. * Mon Dec 17 2001 Jakub Jelinek <jakub@redhat.com> 2.11.92.0.12-6
  1204. - one more .eh_frame patch fix
  1205. - fix alpha .eh_frame handling
  1206. - optimize elf-strtab finalize
  1207. * Sat Dec 15 2001 Jakub Jelinek <jakub@redhat.com> 2.11.92.0.12-5
  1208. - yet another fix for the .eh_frame patch
  1209. * Fri Dec 14 2001 Jakub Jelinek <jakub@redhat.com> 2.11.92.0.12-4
  1210. - Alan Modra's patch to avoid crash if there is no dynobj
  1211. * Thu Dec 13 2001 Jakub Jelinek <jakub@redhat.com> 2.11.92.0.12-3
  1212. - H.J.'s patch to avoid crash if input files are not ELF
  1213. - don't crash if a SHF_MERGE for some reason could not be merged
  1214. - fix objcopy/strip to preserve SHF_MERGE sh_entsize
  1215. - optimize .eh_frame sections, add PT_GNU_EH_FRAME support
  1216. - support anonymous version tags in version script
  1217. * Tue Nov 27 2001 Jakub Jelinek <jakub@redhat.com> 2.11.92.0.12-2
  1218. - fix IA-64 SHF_MERGE handling
  1219. * Tue Nov 27 2001 Jakub Jelinek <jakub@redhat.com> 2.11.92.0.12-1
  1220. - update to 2.11.92.0.12
  1221. - optimize .dynstr and .shstrtab sections (#55524)
  1222. - fix ld.1 glitch (#55459)
  1223. - turn relocs against SHF_MERGE local symbols with zero addend
  1224. into STT_SECTION + addend
  1225. - remove man pages for programs not included (nlmconv, windres, dlltool;
  1226. #55456, #55461)
  1227. - add BuildRequires for texinfo
  1228. * Thu Oct 25 2001 Jakub Jelinek <jakub@redhat.com> 2.11.92.0.7-2
  1229. - duh, fix strings on bfd objects (#55084)
  1230. * Sat Oct 20 2001 Jakub Jelinek <jakub@redhat.com> 2.11.92.0.7-1
  1231. - update to 2.11.92.0.7
  1232. - remove .rel{,a}.dyn from output if it is empty
  1233. * Thu Oct 11 2001 Jakub Jelinek <jakub@redhat.com> 2.11.92.0.5-2
  1234. - fix strings patch
  1235. - use getc_unlocked in strings to speed it up by 50% on large files
  1236. * Wed Oct 10 2001 Jakub Jelinek <jakub@redhat.com> 2.11.92.0.5-1
  1237. - update to 2.11.92.0.5
  1238. - binutils localization (#45148)
  1239. - fix typo in REPORT_BUGS_TO (#54325)
  1240. - support files bigger than 2GB in strings (#54406)
  1241. * Wed Sep 26 2001 Jakub Jelinek <jakub@redhat.com> 2.11.90.0.8-12
  1242. - on IA-64, don't mix R_IA64_IPLTLSB relocs with non-PLT relocs in
  1243. .rela.dyn section.
  1244. * Tue Sep 25 2001 Jakub Jelinek <jakub@redhat.com> 2.11.90.0.8-11
  1245. - add iplt support for IA-64 (Richard Henderson)
  1246. - switch to new section flags for SHF_MERGE and SHF_STRINGS, put
  1247. in compatibility code
  1248. - "s" section flag for small data sections on IA-64 and Alpha
  1249. (Richard Henderson)
  1250. - fix sparc64 .plt[32768+] handling
  1251. - don't emit .rela.stab on sparc
  1252. * Mon Sep 10 2001 Jakub Jelinek <jakub@redhat.com> 2.11.90.0.8-10
  1253. - fix SHF_MERGE on Sparc
  1254. * Fri Aug 31 2001 Jakub Jelinek <jakub@redhat.com> 2.11.90.0.8-9
  1255. - on Alpha, copy *r_offset to R_ALPHA_RELATIVE's r_addend
  1256. * Thu Aug 30 2001 Jakub Jelinek <jakub@redhat.com> 2.11.90.0.8-8
  1257. - on IA-64, put crtend{,S}.o's .IA_64.unwind section last in
  1258. .IA_64.unwind output section (for compatibility with 7.1 eh)
  1259. * Fri Aug 24 2001 Jakub Jelinek <jakub@redhat.com> 2.11.90.0.8-7
  1260. - put RELATIVE relocs first, not last
  1261. - enable -z combreloc by default on IA-{32,64}, Alpha, Sparc*
  1262. * Thu Aug 23 2001 Jakub Jelinek <jakub@redhat.com> 2.11.90.0.8-6
  1263. - support for -z combreloc
  1264. - remove .dynamic patch, -z combreloc patch does this better
  1265. - set STT_FUNC default symbol sizes in .endp directive on IA-64
  1266. * Mon Jul 16 2001 Jakub Jelinek <jakub@redhat.com> 2.11.90.0.8-5
  1267. - fix last patch (H.J.Lu)
  1268. * Fri Jul 13 2001 Jakub Jelinek <jakub@redhat.com> 2.11.90.0.8-4
  1269. - fix placing of orphan sections
  1270. * Sat Jun 23 2001 Jakub Jelinek <jakub@redhat.com>
  1271. - fix SHF_MERGE support on Alpha
  1272. * Fri Jun 8 2001 Jakub Jelinek <jakub@redhat.com>
  1273. - 2.11.90.0.8
  1274. - some SHF_MERGE suport fixes
  1275. - don't build with tooldir /usrusr instead of /usr (#40937)
  1276. - reserve few .dynamic entries for prelinking
  1277. * Mon Apr 16 2001 Jakub Jelinek <jakub@redhat.com>
  1278. - 2.11.90.0.5
  1279. - SHF_MERGE support
  1280. * Tue Apr 3 2001 Jakub Jelinek <jakub@redhat.com>
  1281. - 2.11.90.0.4
  1282. - fix uleb128 support, so that CVS gcc bootstraps
  1283. - some ia64 fixes
  1284. * Mon Mar 19 2001 Jakub Jelinek <jakub@redhat.com>
  1285. - add -Bgroup support from Ulrich Drepper
  1286. * Fri Mar 9 2001 Jakub Jelinek <jakub@redhat.com>
  1287. - hack - add elf_i386_glibc21 emulation
  1288. * Fri Feb 16 2001 Jakub Jelinek <jakub@redhat.com>
  1289. - 2.10.91.0.2
  1290. * Fri Feb 9 2001 Jakub Jelinek <jakub@redhat.com>
  1291. - 2.10.1.0.7
  1292. - remove ExcludeArch ia64
  1293. - back out the -oformat, -omagic and -output change for now
  1294. * Fri Dec 15 2000 Jakub Jelinek <jakub@redhat.com>
  1295. - Prereq /sbin/install-info
  1296. * Tue Nov 21 2000 Jakub Jelinek <jakub@redhat.com>
  1297. - 2.10.1.0.2
  1298. * Tue Nov 21 2000 Jakub Jelinek <jakub@redhat.com>
  1299. - add one more alpha patch
  1300. * Wed Nov 15 2000 Jakub Jelinek <jakub@redhat.com>
  1301. - fix alpha visibility as problem
  1302. - add support for Ultra-III
  1303. * Fri Sep 15 2000 Jakub Jelinek <jakub@redhat.com>
  1304. - and one more alpha patch
  1305. * Fri Sep 15 2000 Jakub Jelinek <jakub@redhat.com>
  1306. - two sparc patches
  1307. * Mon Jul 24 2000 Jakub Jelinek <jakub@redhat.com>
  1308. - 2.10.0.18
  1309. * Mon Jul 10 2000 Jakub Jelinek <jakub@redhat.com>
  1310. - 2.10.0.12
  1311. * Mon Jun 26 2000 Jakub Jelinek <jakub@redhat.com>
  1312. - 2.10.0.9
  1313. * Thu Jun 15 2000 Jakub Jelinek <jakub@redhat.com>
  1314. - fix ld -r
  1315. * Mon Jun 5 2000 Jakub Jelinek <jakub@redhat.com>
  1316. - 2.9.5.0.46
  1317. - use _mandir/_infodir/_lib
  1318. * Mon May 8 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  1319. - 2.9.5.0.41
  1320. * Wed Apr 12 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  1321. - 2.9.5.0.34
  1322. * Wed Mar 22 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  1323. - 2.9.5.0.31
  1324. * Fri Feb 04 2000 Cristian Gafton <gafton@redhat.com>
  1325. - man pages are compressed
  1326. - apply kingdon's patch from #5031
  1327. * Wed Jan 19 2000 Jeff Johnson <jbj@redhat.com>
  1328. - Permit package to be built with a prefix other than /usr.
  1329. * Thu Jan 13 2000 Cristian Gafton <gafton@redhat.com>
  1330. - add pacth from hjl to fix the versioning problems in ld
  1331. * Tue Jan 11 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  1332. - Add sparc patches from Jakub Jelinek <jakub@redhat.com>
  1333. - Add URL:
  1334. * Tue Dec 14 1999 Bernhard Rosenkraenzer <bero@redhat.com>
  1335. - 2.9.5.0.22
  1336. * Wed Nov 24 1999 Bernhard Rosenkraenzer <bero@redhat.com>
  1337. - 2.9.5.0.19
  1338. * Sun Oct 24 1999 Bernhard Rosenkraenzer <bero@redhat.com>
  1339. - 2.9.5.0.16
  1340. * Mon Sep 06 1999 Jakub Jelinek <jj@ultra.linux.cz>
  1341. - make shared non-pic libraries work on sparc with glibc 2.1.
  1342. * Fri Aug 27 1999 Jim Kingdon
  1343. - No source/spec changes, just rebuilding with egcs-1.1.2-18 because
  1344. the older egcs was miscompling gprof.
  1345. * Mon Apr 26 1999 Cristian Gafton <gafton@redhat.com>
  1346. - back out very *stupid* sparc patch done by HJLu. People, keep out of
  1347. things you don't understand.
  1348. - add alpha relax patch from rth
  1349. * Mon Apr 05 1999 Cristian Gafton <gafton@redhat.com>
  1350. - version 2.9.1.0.23
  1351. - patch to make texinfo documentation compile
  1352. - auto rebuild in the new build environment (release 2)
  1353. * Tue Feb 23 1999 Cristian Gafton <gafton@redhat.com>
  1354. - updated to 2.9.1.0.21
  1355. - merged with UltraPenguin
  1356. * Mon Jan 04 1999 Cristian Gafton <gafton@redhat.com>
  1357. - added ARM patch from philb
  1358. - version 2.9.1.0.19a
  1359. - added a patch to allow arm* arch to be identified as an ARM
  1360. * Thu Oct 01 1998 Cristian Gafton <gafton@redhat.com>
  1361. - updated to 2.9.1.0.14.
  1362. * Sat Sep 19 1998 Jeff Johnson <jbj@redhat.com>
  1363. - updated to 2.9.1.0.13.
  1364. * Wed Sep 09 1998 Cristian Gafton <gafton@redhat.com>
  1365. - updated to 2.9.1.0.12
  1366. * Thu Jul 2 1998 Jeff Johnson <jbj@redhat.com>
  1367. - updated to 2.9.1.0.7.
  1368. * Wed Jun 03 1998 Jeff Johnson <jbj@redhat.com>
  1369. - updated to 2.9.1.0.6.
  1370. * Tue Jun 02 1998 Erik Troan <ewt@redhat.com>
  1371. - added patch from rth to get right offsets for sections in relocateable
  1372. objects on sparc32
  1373. * Thu May 07 1998 Prospector System <bugs@redhat.com>
  1374. - translations modified for de, fr, tr
  1375. * Tue May 05 1998 Cristian Gafton <gafton@redhat.com>
  1376. - version 2.9.1.0.4 is out; even more, it is public !
  1377. * Tue May 05 1998 Jeff Johnson <jbj@redhat.com>
  1378. - updated to 2.9.1.0.3.
  1379. * Mon Apr 20 1998 Cristian Gafton <gafton@redhat.com>
  1380. - updated to 2.9.0.3
  1381. * Tue Apr 14 1998 Cristian Gafton <gafton@redhat.com>
  1382. - upgraded to 2.9.0.2
  1383. * Sun Apr 05 1998 Cristian Gafton <gafton@redhat.com>
  1384. - updated to 2.8.1.0.29 (HJ warned me that this thing is a moving target...
  1385. :-)
  1386. - "fixed" the damn make install command so that all tools get installed
  1387. * Thu Apr 02 1998 Cristian Gafton <gafton@redhat.com>
  1388. - upgraded again to 2.8.1.0.28 (at least on alpha now egcs will compile)
  1389. - added info packages handling
  1390. * Tue Mar 10 1998 Cristian Gafton <gafton@redhat.com>
  1391. - upgraded to 2.8.1.0.23
  1392. * Mon Mar 02 1998 Cristian Gafton <gafton@redhat.com>
  1393. - updated to 2.8.1.0.15 (required to compile the newer glibc)
  1394. - all patches are obsoleted now
  1395. * Wed Oct 22 1997 Erik Troan <ewt@redhat.com>
  1396. - added 2.8.1.0.1 patch from hj
  1397. - added patch for alpha palcode form rth