Skip to contentSkip to conversation

package/binutils: fix an OpenRISC binutils 2.37 patch

PATCH Applied Thomas Petazzoni 4 participants 4 messages Dec 26, 2021 – Jan 25, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/binutils: fix an OpenRISC binutils 2.37 patch

When binutils 2.37 was introduced in commit 62f0232980c8168631b29f27edf612af8109c691 ("package/binutils: add version 2.37"), the patch 0008-or1k-fix-pc-relative-relocation-against-dynamic-on-P.patch was not properly updated. Indeed, between binutils 2.36 and 2.37, binutils has switched to using the standard "bool" type, so instead of using TRUE/FALSE, true/false must be used.

With this change, the binutils patch matches the one that was merged upstream.

---
 ...4-or1k-fix-pc-relative-relocation-against-dynamic-on-P.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/binutils/2.37/0004-or1k-fix-pc-relative-relocation-against-dynamic-on-P.patch +1 -1
index 779baeab63..0d18321ee1 100644
@@ -46,7 +46,7 @@ index 32063ab0289..67252394173 100644
 +	      _bfd_error_handler
 +		(_("%pB: pc-relative relocation against dynamic symbol %s"),
 +		 input_bfd, name);
-+	      ret_val = FALSE;
++	      ret_val = false;
 +	      bfd_set_error (bfd_error_bad_value);
 +	    }
 +	  break;
Signature · 6 lines
2.31.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Thomas Petazzoni

When binutils 2.37 was introduced in commit 62f0232980c8168631b29f27edf612af8109c691 ("package/binutils: add version 2.37"), the patch 0008-or1k-fix-pc-relative-relocation-against-dynamic-on-P.patch was not properly updated. Indeed, between binutils 2.36 and 2.37, binutils has switched to using the standard "bool" type, so instead of using TRUE/FALSE, true/false must be used.

Quoted 4 lines

With this change, the binutils patch matches the one that was merged upstream.

Best regards

Signature · 2 lines
Giulio Benetti
Benetti Engineering sas
Quoted 10 lines
---
  ...4-or1k-fix-pc-relative-relocation-against-dynamic-on-P.patch | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
package/binutils/2.37/0004-or1k-fix-pc-relative-relocation-against-dynamic-on-P.patch +0 -0
index 779baeab63..0d18321ee1 100644

package/binutils/2.37/0004-or1k-fix-pc-relative-relocation-against-dynamic-on-P.patch index 32063ab0289..67252394173 100644 · line 52

Quoted 8 lines
package/binutils/2.37/0004-or1k-fix-pc-relative-relocation-against-dynamic-on-P.patch +1 -1
@@ -46,7 +46,7 @@ index 32063ab0289..67252394173 100644
  +	      _bfd_error_handler
  +		(_("%pB: pc-relative relocation against dynamic symbol %s"),
  +		 input_bfd, name);
-+	      ret_val = FALSE;
++	      ret_val = false;
  +	      bfd_set_error (bfd_error_bad_value);
  +	    }
  +	  break;

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
In reply to Thomas Petazzoni

Thomas, All,

On 2021-12-26 11:33 +0100, Thomas Petazzoni spake thusly:

Quoted 8 lines

When binutils 2.37 was introduced in commit 62f0232980c8168631b29f27edf612af8109c691 ("package/binutils: add version 2.37"), the patch 0008-or1k-fix-pc-relative-relocation-against-dynamic-on-P.patch was not properly updated. Indeed, between binutils 2.36 and 2.37, binutils has switched to using the standard "bool" type, so instead of using TRUE/FALSE, true/false must be used.

Quoted 4 lines

With this change, the binutils patch matches the one that was merged upstream.

Applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 24 lines
---
 ...4-or1k-fix-pc-relative-relocation-against-dynamic-on-P.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
package/binutils/2.37/0004-or1k-fix-pc-relative-relocation-against-dynamic-on-P.patch +1 -1
index 779baeab63..0d18321ee1 100644
@@ -46,7 +46,7 @@ index 32063ab0289..67252394173 100644
 +	      _bfd_error_handler
 +		(_("%pB: pc-relative relocation against dynamic symbol %s"),
 +		 input_bfd, name);
-+	      ret_val = FALSE;
++	      ret_val = false;
 +	      bfd_set_error (bfd_error_bad_value);
 +	    }
 +	  break;
Signature · 6 lines
2.31.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Signature · 10 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#3 lore raw
In reply to Thomas Petazzoni
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Thomas" == Thomas Petazzoni <[email protected]> writes:

When binutils 2.37 was introduced in commit 62f0232980c8168631b29f27edf612af8109c691 ("package/binutils: add version 2.37"), the patch 0008-or1k-fix-pc-relative-relocation-against-dynamic-on-P.patch was not properly updated. Indeed, between binutils 2.36 and 2.37, binutils has switched to using the standard "bool" type, so instead of using TRUE/FALSE, true/false must be used.

Quoted 4 lines

With this change, the binutils patch matches the one that was merged upstream.

Committed to 2021.11.x, thanks.

Signature · 5 lines
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot