binutils-vl.spec 62 KB

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