All of lore.kernel.org
 help / color / mirror / Atom feed
From: Romain Naour <romain.naour@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/9] package/binutils: add upstream backported patches to support -mcmodel=large gcc option
Date: Tue, 8 Jun 2021 23:29:21 +0200	[thread overview]
Message-ID: <982098ed-c9d0-a15c-ca2b-5143d64e53e3@gmail.com> (raw)
In-Reply-To: <20210503111350.2933319-3-giulio.benetti@benettiengineering.com>

Hi Giulio, All,

Le 03/05/2021 ? 13:13, Giulio Benetti a ?crit?:
> Add upstream backported patches that allows using -mcmodel=large gcc option
> that in order allows fixing build failure due to binutils bug 21464:
> https://sourceware.org/bugzilla/show_bug.cgi?id=21464
> 
> Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
> ---
>  ...elocation-R_OR1K_GOT_AHI16-for-gotha.patch | 256 +++++++++
>  ...K_GOT16-overflow-failures-in-presenc.patch |  61 +++
>  ...ge-plt_relocs-when-generating-plt-en.patch | 500 ++++++++++++++++++
>  ...elocation-R_OR1K_GOT_AHI16-for-gotha.patch | 256 +++++++++
>  ...K_GOT16-overflow-failures-in-presenc.patch |  61 +++
>  ...ge-plt_relocs-when-generating-plt-en.patch | 500 ++++++++++++++++++
>  ...elocation-R_OR1K_GOT_AHI16-for-gotha.patch | 256 +++++++++
>  ...K_GOT16-overflow-failures-in-presenc.patch |  61 +++
>  ...ge-plt_relocs-when-generating-plt-en.patch | 500 ++++++++++++++++++
>  ...elocation-R_OR1K_GOT_AHI16-for-gotha.patch | 256 +++++++++
>  ...K_GOT16-overflow-failures-in-presenc.patch |  61 +++
>  ...ge-plt_relocs-when-generating-plt-en.patch | 500 ++++++++++++++++++
>  12 files changed, 3268 insertions(+)
>  create mode 100644 package/binutils/2.32/0011-or1k-Implement-relocation-R_OR1K_GOT_AHI16-for-gotha.patch
>  create mode 100644 package/binutils/2.32/0012-or1k-Avoid-R_OR1K_GOT16-overflow-failures-in-presenc.patch
>  create mode 100644 package/binutils/2.32/0013-or1k-Support-large-plt_relocs-when-generating-plt-en.patch
>  create mode 100644 package/binutils/2.34/0004-or1k-Implement-relocation-R_OR1K_GOT_AHI16-for-gotha.patch
>  create mode 100644 package/binutils/2.34/0005-or1k-Avoid-R_OR1K_GOT16-overflow-failures-in-presenc.patch
>  create mode 100644 package/binutils/2.34/0006-or1k-Support-large-plt_relocs-when-generating-plt-en.patch
>  create mode 100644 package/binutils/2.35.2/0004-or1k-Implement-relocation-R_OR1K_GOT_AHI16-for-gotha.patch
>  create mode 100644 package/binutils/2.35.2/0005-or1k-Avoid-R_OR1K_GOT16-overflow-failures-in-presenc.patch
>  create mode 100644 package/binutils/2.35.2/0006-or1k-Support-large-plt_relocs-when-generating-plt-en.patch
>  create mode 100644 package/binutils/2.36.1/0004-or1k-Implement-relocation-R_OR1K_GOT_AHI16-for-gotha.patch
>  create mode 100644 package/binutils/2.36.1/0005-or1k-Avoid-R_OR1K_GOT16-overflow-failures-in-presenc.patch
>  create mode 100644 package/binutils/2.36.1/0006-or1k-Support-large-plt_relocs-when-generating-plt-en.patch
> 

> +   unsigned nodelay = elf_elfheader (output_bfd)->e_flags & EF_OR1K_NODELAY;
> +-  unsigned insn4;
> ++  unsigned output_insns[PLT_MAX_INSN_COUNT];
> ++
> ++  /* Copy instructions into the output buffer.  */
> ++  for (size_t i = 0; i < insn_count; i++)
> ++    output_insns[i] = insns[i];
> + 

This syntax break with good old compilers :)

elf32-or1k.c:2251:3: error: 'for' loop initial declarations are only allowed in
C99 or C11 mode
   for (size_t i = 0; i < insn_count; i++)
   ^

See:
https://gitlab.com/bootlin/toolchains-builder/-/jobs/1325646298

Best regards,
Romain

  reply	other threads:[~2021-06-08 21:29 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-03 11:13 [Buildroot] [PATCH 0/9] Fix binutils bug 21464 and remove it Giulio Benetti
2021-05-03 11:13 ` [Buildroot] [PATCH 1/9] package/binutils: update or1k patches for plt link version with upstream Giulio Benetti
2021-05-03 11:13 ` [Buildroot] [PATCH 2/9] package/binutils: add upstream backported patches to support -mcmodel=large gcc option Giulio Benetti
2021-06-08 21:29   ` Romain Naour [this message]
2021-06-08 22:16     ` Giulio Benetti
2021-06-09  6:26       ` Romain Naour
2021-06-09 16:27         ` [Buildroot] [PATCH] package/binutils: fix building or1k with host gcc version < 5 Giulio Benetti
2021-06-09 17:10           ` Romain Naour
2021-07-18 20:35           ` Thomas Petazzoni
2021-06-09 16:50         ` [Buildroot] [PATCH 2/9] package/binutils: add upstream backported patches to support -mcmodel=large gcc option Giulio Benetti
2021-06-09 16:57           ` Romain Naour
2021-05-03 11:13 ` [Buildroot] [PATCH 3/9] package/gcc: add upstream patches that introduce -mcmodel=large option for or1k Giulio Benetti
2021-05-03 11:13 ` [Buildroot] [PATCH 4/9] package/libgeos: fix build failure due to missing -mcmodel=large Giulio Benetti
2021-05-03 11:13 ` [Buildroot] [PATCH 5/9] package/protobuf: " Giulio Benetti
2021-05-03 11:13 ` [Buildroot] [PATCH 6/9] toolchain: remove binutils bug 21464 Giulio Benetti
2021-05-03 11:13 ` [Buildroot] [PATCH 7/9] package/libgeos: remove binutils bug 21464 dependency Giulio Benetti
2021-05-03 11:13 ` [Buildroot] [PATCH 8/9] package/postgis: remove libgeos binutils bug 21464 inheritance Giulio Benetti
2021-05-03 11:13 ` [Buildroot] [PATCH 9/9] package/protobuf: remove binutils bug 21464 dependency Giulio Benetti
2021-05-21  8:46 ` [Buildroot] [PATCH 0/9] Fix binutils bug 21464 and remove it Arnout Vandecappelle
2021-05-21 14:21   ` Giulio Benetti
2021-05-21 21:26     ` Yann E. MORIN
2021-05-21 21:28       ` Giulio Benetti

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=982098ed-c9d0-a15c-ca2b-5143d64e53e3@gmail.com \
    --to=romain.naour@gmail.com \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.