binutils-vl.spec 61 KB

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