Browse Source

binutils: Updated (2.28 -> 2.35.1)

tc-work-musl-mess
Nagy Károly Gábriel 4 years ago
parent
commit
4f7e3ff964
Signed by: karasz GPG Key ID: C6BA1070A8CBDA0C
4 changed files with 310 additions and 5 deletions
  1. +255
    -0
      base/binutils/0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch
  2. +5
    -2
      base/binutils/binutils.conf
  3. +3
    -3
      base/binutils/binutils.desc
  4. +47
    -0
      base/binutils/hash-style-gnu.patch.disable

+ 255
- 0
base/binutils/0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch

@ -0,0 +1,255 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../binutils/0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch
# Copyright (C) 2020 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---
<!DOCTYPE html>
<html lang='en'>
<head>
<title>0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch\binutils\main - aports - Unnamed repository; edit this file 'description' to name the repository.
</title>
<meta name='generator' content='cgit v1.2.1'/>
<meta name='robots' content='index, nofollow'/>
<link rel='stylesheet' type='text/css' href='/cgit.css'/>
<link rel='shortcut icon' href='//alpinelinux.org/alpine-logo.ico'/>
<link rel='alternate' title='Atom feed' href='http://git.alpinelinux.org/aports/atom/main/binutils/0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch?h=master' type='application/atom+xml'/>
<link rel='vcs-git' href='git://git.alpinelinux.org/aports' title='aports Git repository'/>
<link rel='vcs-git' href='https://git.alpinelinux.org/aports' title='aports Git repository'/>
</head>
<body>
<div id='cgit'><table id='header'>
<tr>
<td class='logo' rowspan='2'><a href='/'><img src='//wiki.alpinelinux.org/images/alogo.png' alt='cgit logo'/></a></td>
<td class='main'><a href='/'>index</a> : <a title='aports' href='/aports/'>aports</a></td><td class='form'><form method='get'>
<select name='h' onchange='this.form.submit();'>
<option value='1.10-stable'>1.10-stable</option>
<option value='1.9'>1.9</option>
<option value='2.0-stable'>2.0-stable</option>
<option value='2.1-stable'>2.1-stable</option>
<option value='2.2-stable'>2.2-stable</option>
<option value='2.3-stable'>2.3-stable</option>
<option value='2.4-stable'>2.4-stable</option>
<option value='2.5-stable'>2.5-stable</option>
<option value='2.6-stable'>2.6-stable</option>
<option value='2.7-stable'>2.7-stable</option>
<option value='3.0-stable'>3.0-stable</option>
<option value='3.1-stable'>3.1-stable</option>
<option value='3.10-stable'>3.10-stable</option>
<option value='3.11-stable'>3.11-stable</option>
<option value='3.12-stable'>3.12-stable</option>
<option value='3.2-stable'>3.2-stable</option>
<option value='3.3-stable'>3.3-stable</option>
<option value='3.4-stable'>3.4-stable</option>
<option value='3.5-stable'>3.5-stable</option>
<option value='3.6-stable'>3.6-stable</option>
<option value='3.7-stable'>3.7-stable</option>
<option value='3.8-stable'>3.8-stable</option>
<option value='3.9-stable'>3.9-stable</option>
<option value='master' selected='selected'>master</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>Unnamed repository; edit this file 'description' to name the repository.
</td><td class='sub right'>uwsgi</td></tr></table>
<table class='tabs'><tr><td>
<a href='/aports/about/'>about</a><a href='/aports/'>summary</a><a href='/aports/refs/'>refs</a><a href='/aports/log/main/binutils/0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch'>log</a><a class='active' href='/aports/tree/main/binutils/0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch'>tree</a><a href='/aports/commit/main/binutils/0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch'>commit</a><a href='/aports/diff/main/binutils/0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch'>diff</a><a href='/aports/stats/main/binutils/0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch'>stats</a></td><td class='form'><form class='right' method='get' action='/aports/log/main/binutils/0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch'>
<select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/aports/tree/'>root</a>/<a href='/aports/tree/main'>main</a>/<a href='/aports/tree/main/binutils'>binutils</a>/<a href='/aports/tree/main/binutils/0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch'>0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch</a></div><div class='content'>blob: 5de937f4fcce88d4ab1478af6c83b0e305584ba9 (<a href='/aports/plain/main/binutils/0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch'>plain</a>) (<a href='/aports/blame/main/binutils/0001-Revert-PR25882-.gnu.attributes-are-not-checked-for-s.patch'>blame</a>)
<table summary='blob content' class='blob'>
<tr><td class='linenumbers'><pre><a id='n1' href='#n1'>1</a>
<a id='n2' href='#n2'>2</a>
<a id='n3' href='#n3'>3</a>
<a id='n4' href='#n4'>4</a>
<a id='n5' href='#n5'>5</a>
<a id='n6' href='#n6'>6</a>
<a id='n7' href='#n7'>7</a>
<a id='n8' href='#n8'>8</a>
<a id='n9' href='#n9'>9</a>
<a id='n10' href='#n10'>10</a>
<a id='n11' href='#n11'>11</a>
<a id='n12' href='#n12'>12</a>
<a id='n13' href='#n13'>13</a>
<a id='n14' href='#n14'>14</a>
<a id='n15' href='#n15'>15</a>
<a id='n16' href='#n16'>16</a>
<a id='n17' href='#n17'>17</a>
<a id='n18' href='#n18'>18</a>
<a id='n19' href='#n19'>19</a>
<a id='n20' href='#n20'>20</a>
<a id='n21' href='#n21'>21</a>
<a id='n22' href='#n22'>22</a>
<a id='n23' href='#n23'>23</a>
<a id='n24' href='#n24'>24</a>
<a id='n25' href='#n25'>25</a>
<a id='n26' href='#n26'>26</a>
<a id='n27' href='#n27'>27</a>
<a id='n28' href='#n28'>28</a>
<a id='n29' href='#n29'>29</a>
<a id='n30' href='#n30'>30</a>
<a id='n31' href='#n31'>31</a>
<a id='n32' href='#n32'>32</a>
<a id='n33' href='#n33'>33</a>
<a id='n34' href='#n34'>34</a>
<a id='n35' href='#n35'>35</a>
<a id='n36' href='#n36'>36</a>
<a id='n37' href='#n37'>37</a>
<a id='n38' href='#n38'>38</a>
<a id='n39' href='#n39'>39</a>
<a id='n40' href='#n40'>40</a>
<a id='n41' href='#n41'>41</a>
<a id='n42' href='#n42'>42</a>
<a id='n43' href='#n43'>43</a>
<a id='n44' href='#n44'>44</a>
<a id='n45' href='#n45'>45</a>
<a id='n46' href='#n46'>46</a>
<a id='n47' href='#n47'>47</a>
<a id='n48' href='#n48'>48</a>
<a id='n49' href='#n49'>49</a>
<a id='n50' href='#n50'>50</a>
<a id='n51' href='#n51'>51</a>
<a id='n52' href='#n52'>52</a>
<a id='n53' href='#n53'>53</a>
<a id='n54' href='#n54'>54</a>
<a id='n55' href='#n55'>55</a>
<a id='n56' href='#n56'>56</a>
<a id='n57' href='#n57'>57</a>
<a id='n58' href='#n58'>58</a>
<a id='n59' href='#n59'>59</a>
<a id='n60' href='#n60'>60</a>
<a id='n61' href='#n61'>61</a>
<a id='n62' href='#n62'>62</a>
<a id='n63' href='#n63'>63</a>
<a id='n64' href='#n64'>64</a>
<a id='n65' href='#n65'>65</a>
<a id='n66' href='#n66'>66</a>
<a id='n67' href='#n67'>67</a>
<a id='n68' href='#n68'>68</a>
<a id='n69' href='#n69'>69</a>
<a id='n70' href='#n70'>70</a>
<a id='n71' href='#n71'>71</a>
<a id='n72' href='#n72'>72</a>
<a id='n73' href='#n73'>73</a>
<a id='n74' href='#n74'>74</a>
<a id='n75' href='#n75'>75</a>
<a id='n76' href='#n76'>76</a>
<a id='n77' href='#n77'>77</a>
<a id='n78' href='#n78'>78</a>
<a id='n79' href='#n79'>79</a>
<a id='n80' href='#n80'>80</a>
<a id='n81' href='#n81'>81</a>
<a id='n82' href='#n82'>82</a>
<a id='n83' href='#n83'>83</a>
<a id='n84' href='#n84'>84</a>
<a id='n85' href='#n85'>85</a>
<a id='n86' href='#n86'>86</a>
</pre></td>
<td class='lines'><pre><code>From b1faf99f3e546df2cd302bb1ad36a2078224fe8b Mon Sep 17 00:00:00 2001
From: Ariadne Conill &lt;ariadne&#64;dereferenced.org&gt;
Date: Fri, 30 Oct 2020 16:59:48 -0600
Subject: [PATCH] Revert &quot;PR25882, .gnu.attributes are not checked for shared
libraries&quot;
This reverts commit a8acd6eeb6dc2cc5460ece90f90ebe36b56b20ba.
<span style="color:#000000; font-weight:bold">---</span>
bfd/ChangeLog | 6 ------
bfd/elf32-tic6x.c | 3 ---
ld/ChangeLog | 6 ------
ld/ldlang.c | 9 ++++-----
4 files changed, 4 insertions(+), 20 deletions(-)
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 9fac12538a..b5461494e8 100644
<span style="color:#000000; font-weight:bold">--- a/bfd/ChangeLog</span>
<span style="color:#0057ae">+++ b/bfd/ChangeLog</span>
<span style="color:#010181">&#64;&#64; -1422,12 +1422,6 &#64;&#64;</span>
accessing root.u.def of symbols. Also check root.u.def.section
is non-NULL. Reverse tests so as to make the logic positive.
<span style="color:#000000; font-weight:bold">-2020-05-01 Alan Modra &lt;amodra&#64;gmail.com&gt;</span>
<span style="color:#000000; font-weight:bold">-</span>
<span style="color:#000000; font-weight:bold">- PR 25882</span>
<span style="color:#000000; font-weight:bold">- * elf32-tic6x.c (elf32_tic6x_merge_attributes): Don&#39;t transfer</span>
<span style="color:#000000; font-weight:bold">- Tag_ABI_PIC or Tag_ABI_PID from dynamic objects to the output.</span>
<span style="color:#000000; font-weight:bold">-</span>
2020-05-01 Alan Modra &lt;amodra&#64;gmail.com&gt;
PR 25882
diff --git a/bfd/elf32-tic6x.c b/bfd/elf32-tic6x.c
index b8b916bfd3..91bb6a10b1 100644
<span style="color:#000000; font-weight:bold">--- a/bfd/elf32-tic6x.c</span>
<span style="color:#0057ae">+++ b/bfd/elf32-tic6x.c</span>
&#64;&#64; -3748,9 +3748,6 &#64;&#64; elf32_tic6x_merge_attributes (bfd *ibfd, struct bfd_link_info *info)
case Tag_ABI_PIC:
case Tag_ABI_PID:
<span style="color:#000000; font-weight:bold">- /* Don&#39;t transfer these tags from dynamic objects. */</span>
<span style="color:#000000; font-weight:bold">- if ((ibfd-&gt;flags &amp; DYNAMIC) != 0)</span>
<span style="color:#000000; font-weight:bold">- continue;</span>
if (out_attr[i].i &gt; in_attr[i].i)
out_attr[i].i = in_attr[i].i;
break;
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 4eec7d2977..b93452f70c 100644
<span style="color:#000000; font-weight:bold">--- a/ld/ChangeLog</span>
<span style="color:#0057ae">+++ b/ld/ChangeLog</span>
<span style="color:#010181">&#64;&#64; -1319,12 +1319,6 &#64;&#64;</span>
* testsuite/ld-aarch64/farcall-group.d: New test driver.
* testsuite/ld-aarch64/aarch64-elf.exp: Run the new test.
<span style="color:#000000; font-weight:bold">-2020-05-01 Alan Modra &lt;amodra&#64;gmail.com&gt;</span>
<span style="color:#000000; font-weight:bold">-</span>
<span style="color:#000000; font-weight:bold">- PR 25882</span>
<span style="color:#000000; font-weight:bold">- * ldlang.c (lang_check): Call bfd_merge_private_bfd_data for</span>
<span style="color:#000000; font-weight:bold">- shared libraries.</span>
<span style="color:#000000; font-weight:bold">-</span>
2020-05-01 Alan Modra &lt;amodra&#64;gmail.com&gt;
* po/BLD-POTFILES.in: Regenerate.
diff --git a/ld/ldlang.c b/ld/ldlang.c
index 9977195074..173d8ec349 100644
<span style="color:#000000; font-weight:bold">--- a/ld/ldlang.c</span>
<span style="color:#0057ae">+++ b/ld/ldlang.c</span>
&#64;&#64; -6972,12 +6972,11 &#64;&#64; lang_check (void)
bfd_printable_name (input_bfd), input_bfd,
bfd_printable_name (link_info.output_bfd));
}
<span style="color:#000000; font-weight:bold">-</span>
<span style="color:#000000; font-weight:bold">- /* If the input bfd has no contents, it shouldn&#39;t set the</span>
<span style="color:#000000; font-weight:bold">- private data of the output bfd. */</span>
<span style="color:#000000; font-weight:bold">- else if ((input_bfd-&gt;flags &amp; DYNAMIC) != 0</span>
<span style="color:#000000; font-weight:bold">- || bfd_count_sections (input_bfd) != 0)</span>
<span style="color:#0057ae">+ else if (bfd_count_sections (input_bfd))</span>
{
<span style="color:#0057ae">+ /* If the input bfd has no contents, it shouldn&#39;t set the</span>
<span style="color:#0057ae">+ private data of the output bfd. */</span>
<span style="color:#0057ae">+</span>
bfd_error_handler_type pfn = NULL;
/* If we aren&#39;t supposed to warn about mismatched input
<span style="color:#000000; font-weight:bold">-- </span>
2.29.2
</code></pre></td></tr></table>
</div> <!-- class=content -->
<div class='footer'>generated by <a href='https://git.zx2c4.com/cgit/about/'>cgit v1.2.1</a> (<a href='https://git-scm.com/'>git 2.18.0</a>) at 2020-11-06 09:59:19 +0000</div>
</div> <!-- id=cgit -->
</body>
</html>

+ 5
- 2
base/binutils/binutils.conf

@ -2,7 +2,7 @@
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../binutils/binutils.conf
# Copyright (C) 2007 - 2016 The OpenSDE Project
# Copyright (C) 2007 - 2020 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
@ -17,7 +17,10 @@ hook_add preconf 5 "mkdir -p objdir; cd objdir; configscript=../configure"
var_append confopt " " "--disable-werror"
var_append confopt " " "--disable-nls"
var_append confopt " " "--enable-ld=default --enable-64-bit-bfd --enable-plugins --enable-install-libiberty"
var_append confopt " " "--enable-ld=default --enable-64-bit-bfd --enable-plugins --enable-install-libiberty --enable-secureplt --with-mmap --enable-deterministic-archives"
[[ $arch = "x86_64" ]] && var_append confopt "--enable-targets=x86_64-pep"
[[ $arch = "i686" ]] && var_append confopt "--enable-targets=x86_64-linux-gnu,x86_64-pep"
if atstage toolchain; then
bindir="/$prefix/crosscc"; mkdir -p $root/$prefix/crosscc

+ 3
- 3
base/binutils/binutils.desc

@ -3,7 +3,7 @@
[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch.
[COPY]
[COPY] Filename: package/.../binutils/binutils.desc
[COPY] Copyright (C) 2006 - 2017 The OpenSDE Project
[COPY] Copyright (C) 2006 - 2020 The OpenSDE Project
[COPY] Copyright (C) 2004 - 2006 The T2 SDE Project
[COPY] Copyright (C) 1998 - 2003 Clifford Wolf
[COPY]
@ -41,8 +41,8 @@
[L] GPL
[S] Stable
[V] 2.28
[V] 2.35.1
[P] X 012--5---9 102.100
[D] 2369536305 binutils-2.28.tar.bz2 http://ftp.gnu.org/gnu/binutils/
[D] 157427237 binutils-2.35.1.tar.bz2 http://ftp.gnu.org/gnu/binutils/

+ 47
- 0
base/binutils/hash-style-gnu.patch.disable

@ -0,0 +1,47 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../binutils/hash-style-gnu.patch.disable
# Copyright (C) 2015 - 2020 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---
# DP: Default to --hash-style=gnu in ld.bfd and ld.gold.
--- a/ld/ldmain.c
+++ b/ld/ldmain.c
@@ -287,6 +288,15 @@
emulation = get_emulation (argc, argv);
ldemul_choose_mode (emulation);
default_target = ldemul_choose_target (argc, argv);
+
+ /* Default to --hash-style=gnu */
+ if (strcmp (default_target, "elf32-tradbigmips") != 0
+ && strcmp (default_target, "elf32-tradlittlemips") != 0)
+ {
+ link_info.emit_gnu_hash = TRUE;
+ link_info.emit_hash = FALSE;
+ }
+
config.maxpagesize = bfd_emul_get_maxpagesize (default_target);
config.commonpagesize = bfd_emul_get_commonpagesize (default_target);
lang_init ();
--- a/gold/options.h
+++ b/gold/options.h
@@ -794,7 +794,7 @@
N_("Min fraction of empty buckets in dynamic hash"),
N_("FRACTION"));
- DEFINE_enum(hash_style, options::TWO_DASHES, '\0', "sysv",
+ DEFINE_enum(hash_style, options::TWO_DASHES, '\0', "gnu",
N_("Dynamic hash style"), N_("[sysv,gnu,both]"),
{"sysv", "gnu", "both"});

Loading…
Cancel
Save