package/elf2flt: update to version 2021.08
PATCH v2 2/3 package/binutils: re-enable recent versions of binutils for FLAT binaries
In reply to Thomas Petazzoni via buildrootThanks to the bump of elf2flt to version 2021.08, the issue with recent versions of binutils has been fixed, so we can re-enable using the recent binutils versions.
--- package/binutils/Config.in.host | 9 --------- 1 file changed, 9 deletions(-)
package/binutils/Config.in.host +0 -9
@@ -19,21 +19,12 @@ config BR2_BINUTILS_VERSION_2_32_X config BR2_BINUTILS_VERSION_2_36_X bool "binutils 2.36.1" depends on !BR2_csky - # https://github.com/uclinux-dev/elf2flt/pull/16 - # https://github.com/uclinux-dev/elf2flt/issues/12 - depends on !BR2_BINFMT_FLAT config BR2_BINUTILS_VERSION_2_37_X bool "binutils 2.37" - # https://github.com/uclinux-dev/elf2flt/pull/16 - # https://github.com/uclinux-dev/elf2flt/issues/12 - depends on !BR2_BINFMT_FLAT config BR2_BINUTILS_VERSION_2_38_X bool "binutils 2.38" - # https://github.com/uclinux-dev/elf2flt/pull/16 - # https://github.com/uclinux-dev/elf2flt/issues/12 - depends on !BR2_BINFMT_FLAT config BR2_BINUTILS_VERSION_ARC bool "binutils arc (2.34.50)"
Signature · 6 lines
2.35.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 1/3 package/elf2flt: update to version 2021.08
It contains several fixes and improvements compared to our current version, and two of our patches have been accepted upstream. Most notably, it fixes the issue we had in using elf2flt with recent versions of binutils (upstream commit ba379d08bb78c9300e84351c11080c26ddcc36b3).
Patch 0001-ld-elf2flt-behave-properly-when-called-with-a-name-d.patch is upstream as of commit 1c9b454336eaf38f7d037917a3120fae04193fbe
Patch 0002-elf2flt.c-add-new-relocation-types-for-xtensa.patch is upstream as of commit d7eb73163bcea31168c438fc132a0967ac172e3d
The other two patches are refreshed to apply properly on 2021.08.
---
Changes since v1:
- Drop patch numbering, as pointed by Baruch
---
...> 0001-elf2flt-handle-binutils-2.34.patch} | 78 ++++----
...e-properly-when-called-with-a-name-d.patch | 79 --------
...2-elf2flt-add-riscv-64-bits-support.patch} | 38 ++--
...-add-new-relocation-types-for-xtensa.patch | 188 ------------------
package/elf2flt/elf2flt.hash | 2 +-
package/elf2flt/elf2flt.mk | 4 +-
6 files changed, 57 insertions(+), 332 deletions(-)
rename package/elf2flt/{0003-elf2flt-handle-binutils-2.34.patch => 0001-elf2flt-handle-binutils-2.34.patch} (89%)
delete mode 100644 package/elf2flt/0001-ld-elf2flt-behave-properly-when-called-with-a-name-d.patch
rename package/elf2flt/{0004-elf2flt-add-riscv-64-bits-support.patch => 0002-elf2flt-add-riscv-64-bits-support.patch} (83%)
delete mode 100644 package/elf2flt/0002-elf2flt.c-add-new-relocation-types-for-xtensa.patchpackage/elf2flt/0001-elf2flt-handle-binutils-2.34.patch renamed from package/elf2flt/0003-elf2flt-handle-binutils-2.34.patch +39 -39
@@ -1,4 +1,4 @@ -From 26165906f85d82f0a4456f34b5c60fcaaef48535 Mon Sep 17 00:00:00 2001 +From d78acba6510527aaa01a41eaf4c931f7a57e5f44 Mon Sep 17 00:00:00 2001 From: Romain Naour <[email protected]> Date: Wed, 5 Feb 2020 10:31:32 +0100 Subject: [PATCH] elf2flt: handle binutils >= 2.34
@@ -30,7 +30,7 @@ Signed-off-by: Romain Naour <[email protected]> 2 files changed, 61 insertions(+), 36 deletions(-) diff --git a/configure.ac b/configure.ac -index e82eb1d..cf7dea8 100644 +index b7db2cb..fdc0876 100644 --- a/configure.ac +++ b/configure.ac @@ -229,6 +229,22 @@ AC_CHECK_FUNCS([ \
@@ -57,7 +57,7 @@ index e82eb1d..cf7dea8 100644 CFLAGS="-Wall $CFLAGS" if test "$werror" = 1 ; then diff --git a/elf2flt.c b/elf2flt.c -index b93aecd..3bcf4fe 100644 +index 7ac0617..ea6b5a1 100644 --- a/elf2flt.c +++ b/elf2flt.c @@ -149,6 +149,17 @@ const char *elf2flt_progname;
@@ -100,7 +100,7 @@ index b93aecd..3bcf4fe 100644 if (verbose) printf("SECTION: %s [%p]: flags=0x%x vma=0x%"PRIx32"\n", -@@ -442,7 +451,7 @@ output_relocs ( +@@ -443,7 +452,7 @@ output_relocs ( continue; if (verbose) printf(" RELOCS: %s [%p]: flags=0x%x vma=0x%"BFD_VMA_FMT"x\n",
@@ -109,7 +109,7 @@ index b93aecd..3bcf4fe 100644 if ((r->flags & SEC_RELOC) == 0) continue; relsize = bfd_get_reloc_upper_bound(rel_bfd, r); -@@ -694,7 +703,7 @@ output_relocs ( +@@ -695,7 +704,7 @@ output_relocs ( case R_BFIN_RIMM16: case R_BFIN_LUIMM16: case R_BFIN_HUIMM16:
@@ -118,7 +118,7 @@ index b93aecd..3bcf4fe 100644 sym_addr += sym_vma + q->addend; if (weak_und_symbol(sym_section->name, (*(q->sym_ptr_ptr)))) -@@ -727,7 +736,7 @@ output_relocs ( +@@ -728,7 +737,7 @@ output_relocs ( break; case R_BFIN_BYTE4_DATA:
@@ -127,7 +127,7 @@ index b93aecd..3bcf4fe 100644 sym_addr += sym_vma + q->addend; if (weak_und_symbol (sym_section->name, (*(q->sym_ptr_ptr)))) -@@ -885,7 +894,7 @@ output_relocs ( +@@ -886,7 +895,7 @@ output_relocs ( #if defined(TARGET_m68k) case R_68K_32: relocation_needed = 1;
@@ -136,7 +136,7 @@ index b93aecd..3bcf4fe 100644 sym_addr += sym_vma + q->addend; break; case R_68K_PC16: -@@ -910,7 +919,7 @@ output_relocs ( +@@ -911,7 +920,7 @@ output_relocs ( q->address, sym_addr, (*p)->howto->rightshift, *(uint32_t *)r_mem);
@@ -145,7 +145,7 @@ index b93aecd..3bcf4fe 100644 sym_addr += sym_vma + q->addend; break; case R_ARM_GOT32: -@@ -938,7 +947,7 @@ output_relocs ( +@@ -939,7 +948,7 @@ output_relocs ( #ifdef TARGET_v850 case R_V850_ABS32: relocation_needed = 1;
@@ -154,7 +154,7 @@ index b93aecd..3bcf4fe 100644 sym_addr += sym_vma + q->addend; break; case R_V850_ZDA_16_16_OFFSET: -@@ -960,7 +969,7 @@ output_relocs ( +@@ -961,7 +970,7 @@ output_relocs ( sym_addr = (*(q->sym_ptr_ptr))->value; q->address -= 1; r_mem -= 1; /* tracks q->address */
@@ -163,7 +163,7 @@ index b93aecd..3bcf4fe 100644 sym_addr += sym_vma + q->addend; sym_addr |= (*(unsigned char *)r_mem<<24); break; -@@ -973,7 +982,7 @@ output_relocs ( +@@ -974,7 +983,7 @@ output_relocs ( /* Absolute symbol done not relocation */ relocation_needed = !bfd_is_abs_section(sym_section); sym_addr = (*(q->sym_ptr_ptr))->value;
@@ -172,7 +172,7 @@ index b93aecd..3bcf4fe 100644 sym_addr += sym_vma + q->addend; break; case R_H8_DIR32: -@@ -986,7 +995,7 @@ output_relocs ( +@@ -987,7 +996,7 @@ output_relocs ( } relocation_needed = 1; sym_addr = (*(q->sym_ptr_ptr))->value;
@@ -181,7 +181,7 @@ index b93aecd..3bcf4fe 100644 sym_addr += sym_vma + q->addend; break; case R_H8_PCREL16: -@@ -1012,7 +1021,7 @@ output_relocs ( +@@ -1013,7 +1022,7 @@ output_relocs ( #ifdef TARGET_microblaze case R_MICROBLAZE_64: /* work out the relocation */
@@ -190,7 +190,7 @@ index b93aecd..3bcf4fe 100644 sym_addr += sym_vma + q->addend; /* Write relocated pointer back */ r_mem[2] = (sym_addr >> 24) & 0xff; -@@ -1026,7 +1035,7 @@ output_relocs ( +@@ -1027,7 +1036,7 @@ output_relocs ( pflags = 0x80000000; break; case R_MICROBLAZE_32:
@@ -199,7 +199,7 @@ index b93aecd..3bcf4fe 100644 sym_addr += sym_vma + q->addend; relocation_needed = 1; break; -@@ -1058,7 +1067,7 @@ output_relocs ( +@@ -1059,7 +1068,7 @@ output_relocs ( case R_NIOS2_BFD_RELOC_32: relocation_needed = 1; pflags = (FLAT_NIOS2_R_32 << 28);
@@ -208,25 +208,25 @@ index b93aecd..3bcf4fe 100644 sym_addr += sym_vma + q->addend; /* modify target, in target order */ *(unsigned long *)r_mem = htoniosl(sym_addr); -@@ -1068,7 +1077,7 @@ output_relocs ( +@@ -1069,7 +1078,7 @@ output_relocs ( unsigned long exist_val; relocation_needed = 1; pflags = (FLAT_NIOS2_R_CALL26 << 28); - sym_vma = bfd_section_vma(abs_bfd, sym_section); + sym_vma = elf2flt_bfd_section_vma(sym_section); sym_addr += sym_vma + q->addend; - + /* modify target, in target order */ -@@ -1099,7 +1108,7 @@ output_relocs ( +@@ -1100,7 +1109,7 @@ output_relocs ( ? FLAT_NIOS2_R_HIADJ_LO : FLAT_NIOS2_R_HI_LO; pflags <<= 28; - + - sym_vma = bfd_section_vma(abs_bfd, sym_section); -+ sym_vma = elf2flt_bfd_section_vma(sym_section); ++ sym_vma = elf2flt_bfd_section_vma(abs_bfd, sym_section); sym_addr += sym_vma + q->addend; /* modify high 16 bits, in target order */ -@@ -1132,7 +1141,7 @@ output_relocs ( +@@ -1133,7 +1142,7 @@ output_relocs ( goto NIOS2_RELOC_ERR; } /* _gp holds a absolute value, otherwise the ld cannot generate correct code */
@@ -235,7 +235,7 @@ index b93aecd..3bcf4fe 100644 //printf("sym=%x, %d, _gp=%x, %d\n", sym_addr+sym_vma, sym_addr+sym_vma, gp, gp); sym_addr += sym_vma + q->addend; sym_addr -= gp; -@@ -1213,7 +1222,7 @@ NIOS2_RELOC_ERR: +@@ -1214,7 +1223,7 @@ NIOS2_RELOC_ERR: case R_SPARC_32: case R_SPARC_UA32: relocation_needed = 1;
@@ -244,7 +244,7 @@ index b93aecd..3bcf4fe 100644 sym_addr += sym_vma + q->addend; break; case R_SPARC_PC22: -@@ -1232,7 +1241,7 @@ NIOS2_RELOC_ERR: +@@ -1233,7 +1242,7 @@ NIOS2_RELOC_ERR: case R_SPARC_HI22: relocation_needed = 1; pflags = 0x80000000;
@@ -253,7 +253,7 @@ index b93aecd..3bcf4fe 100644 sym_addr += sym_vma + q->addend; sym_addr |= ( htonl(*(uint32_t *)r_mem) -@@ -1242,7 +1251,7 @@ NIOS2_RELOC_ERR: +@@ -1243,7 +1252,7 @@ NIOS2_RELOC_ERR: case R_SPARC_LO10: relocation_needed = 1; pflags = 0x40000000;
@@ -262,7 +262,7 @@ index b93aecd..3bcf4fe 100644 sym_addr += sym_vma + q->addend; sym_addr &= 0x000003ff; sym_addr |= ( -@@ -1256,7 +1265,7 @@ NIOS2_RELOC_ERR: +@@ -1257,7 +1266,7 @@ NIOS2_RELOC_ERR: #ifdef TARGET_sh case R_SH_DIR32: relocation_needed = 1;
@@ -271,7 +271,7 @@ index b93aecd..3bcf4fe 100644 sym_addr += sym_vma + q->addend; break; case R_SH_REL32: -@@ -1288,7 +1297,7 @@ NIOS2_RELOC_ERR: +@@ -1289,7 +1298,7 @@ NIOS2_RELOC_ERR: case R_E1_CONST31: relocation_needed = 1; DBG_E1("Handling Reloc <CONST31>\n");
@@ -280,7 +280,7 @@ index b93aecd..3bcf4fe 100644 DBG_E1("sec_vma : [0x%x], sym_addr : [0x%x], q->address : [0x%x]\n", sec_vma, sym_addr, q->address); sym_addr = sec_vma + sym_addr; -@@ -1303,7 +1312,7 @@ NIOS2_RELOC_ERR: +@@ -1304,7 +1313,7 @@ NIOS2_RELOC_ERR: relocation_needed = 0; DBG_E1("Handling Reloc <CONST31_PCREL>\n"); DBG_E1("DONT RELOCATE AT LOADING\n");
@@ -289,7 +289,7 @@ index b93aecd..3bcf4fe 100644 DBG_E1("sec_vma : [0x%x], sym_addr : [0x%x], q->address : [0x%x]\n", sec_vma, sym_addr, q->address); sym_addr = sec_vma + sym_addr; -@@ -1330,7 +1339,7 @@ NIOS2_RELOC_ERR: +@@ -1331,7 +1340,7 @@ NIOS2_RELOC_ERR: relocation_needed = 0; DBG_E1("Handling Reloc <DIS29W_PCREL>\n"); DBG_E1("DONT RELOCATE AT LOADING\n");
@@ -298,7 +298,7 @@ index b93aecd..3bcf4fe 100644 DBG_E1("sec_vma : [0x%x], sym_addr : [0x%x], q->address : [0x%x]\n", sec_vma, sym_addr, q->address); sym_addr = sec_vma + sym_addr; -@@ -1363,7 +1372,7 @@ NIOS2_RELOC_ERR: +@@ -1364,7 +1373,7 @@ NIOS2_RELOC_ERR: DBG_E1("Handling Reloc <DIS29B>\n"); DIS29_RELOCATION: relocation_needed = 1;
@@ -307,7 +307,7 @@ index b93aecd..3bcf4fe 100644 DBG_E1("sec_vma : [0x%x], sym_addr : [0x%08x]\n", sec_vma, sym_addr); sym_addr = sec_vma + sym_addr; -@@ -1380,7 +1389,7 @@ DIS29_RELOCATION: +@@ -1381,7 +1390,7 @@ DIS29_RELOCATION: relocation_needed = 0; DBG_E1("Handling Reloc <IMM32_PCREL>\n"); DBG_E1("DONT RELOCATE AT LOADING\n");
@@ -316,7 +316,7 @@ index b93aecd..3bcf4fe 100644 DBG_E1("sec_vma : [0x%x], sym_addr : [0x%x]\n", sec_vma, sym_addr); sym_addr = sec_vma + sym_addr; -@@ -1406,7 +1415,7 @@ DIS29_RELOCATION: +@@ -1407,7 +1416,7 @@ DIS29_RELOCATION: case R_E1_IMM32: relocation_needed = 1; DBG_E1("Handling Reloc <IMM32>\n");
@@ -325,7 +325,7 @@ index b93aecd..3bcf4fe 100644 DBG_E1("sec_vma : [0x%x], sym_addr : [0x%x]\n", sec_vma, sym_addr); sym_addr = sec_vma + sym_addr; -@@ -1422,7 +1431,7 @@ DIS29_RELOCATION: +@@ -1423,7 +1432,7 @@ DIS29_RELOCATION: case R_E1_WORD: relocation_needed = 1; DBG_E1("Handling Reloc <WORD>\n");
@@ -334,7 +334,7 @@ index b93aecd..3bcf4fe 100644 DBG_E1("sec_vma : [0x%x], sym_addr : [0x%x]\n", sec_vma, sym_addr); sym_addr = sec_vma + sym_addr; -@@ -1449,7 +1458,7 @@ DIS29_RELOCATION: +@@ -1450,7 +1459,7 @@ DIS29_RELOCATION: } sprintf(&addstr[0], "+0x%lx", sym_addr - (*(q->sym_ptr_ptr))->value -
@@ -343,7 +343,7 @@ index b93aecd..3bcf4fe 100644 /* -@@ -1887,8 +1896,8 @@ int main(int argc, char *argv[]) +@@ -1890,8 +1899,8 @@ int main(int argc, char *argv[]) } else continue;
@@ -354,8 +354,8 @@ index b93aecd..3bcf4fe 100644 if (sec_vma < *vma) { if (*len > 0) -@@ -1913,7 +1922,7 @@ int main(int argc, char *argv[]) - if (s->flags & SEC_CODE) +@@ -1920,7 +1929,7 @@ int main(int argc, char *argv[]) + (SEC_DATA | SEC_READONLY | SEC_RELOC))) if (!bfd_get_section_contents(abs_bfd, s, text + (s->vma - text_vma), 0, - bfd_section_size(abs_bfd, s)))
@@ -363,8 +363,8 @@ index b93aecd..3bcf4fe 100644 { fatal("read error section %s", s->name); } -@@ -1939,7 +1948,7 @@ int main(int argc, char *argv[]) - if (s->flags & SEC_DATA) +@@ -1950,7 +1959,7 @@ int main(int argc, char *argv[]) + (SEC_READONLY | SEC_RELOC))) if (!bfd_get_section_contents(abs_bfd, s, data + (s->vma - data_vma), 0, - bfd_section_size(abs_bfd, s)))
@@ -373,5 +373,5 @@ index b93aecd..3bcf4fe 100644 fatal("read error section %s", s->name); } -- -2.25.4 +2.35.1
package/elf2flt/0001-ld-elf2flt-behave-properly-when-called-with-a-name-d.patch deleted +0 -79
79 lines not on this page · raw message
package/elf2flt/0002-elf2flt-add-riscv-64-bits-support.patch renamed from package/elf2flt/0004-elf2flt-add-riscv-64-bits-support.patch +15 -23
@@ -1,4 +1,4 @@ -From 1dea576eac4289602adc4a37f48c80330bf82e63 Mon Sep 17 00:00:00 2001 +From 3879965dfda08a24e7d44ed76bbcc2f4a41df1fa Mon Sep 17 00:00:00 2001 From: Damien Le Moal <[email protected]> Date: Wed, 9 Sep 2020 17:31:33 +0900 Subject: [PATCH] elf2flt: add riscv 64-bits support
@@ -26,15 +26,15 @@ This patch is based on earlier work by Christoph Hellwig <[email protected]>. Signed-off-by: Damien Le Moal <[email protected]> --- elf2flt.c | 23 +++++++++++++++++++++++ - elf2flt.ld.in | 9 +++++---- + elf2flt.ld.in | 1 + ld-elf2flt.c | 16 ++++++++++++++++ - 3 files changed, 44 insertions(+), 4 deletions(-) + 3 files changed, 40 insertions(+) diff --git a/elf2flt.c b/elf2flt.c -index f87f1fc..dbce467 100644 +index ea6b5a1..7100c20 100644 --- a/elf2flt.c +++ b/elf2flt.c -@@ -80,6 +80,8 @@ const char *elf2flt_progname; +@@ -81,6 +81,8 @@ const char *elf2flt_progname; #include <elf/v850.h> #elif defined(TARGET_xtensa) #include <elf/xtensa.h>
@@ -43,7 +43,7 @@ index f87f1fc..dbce467 100644 #endif #if defined(__MINGW32__) -@@ -122,6 +124,8 @@ const char *elf2flt_progname; +@@ -123,6 +125,8 @@ const char *elf2flt_progname; #define ARCH "nios2" #elif defined(TARGET_xtensa) #define ARCH "xtensa"
@@ -52,7 +52,7 @@ index f87f1fc..dbce467 100644 #else #error "Don't know how to support your CPU architecture??" #endif -@@ -797,6 +801,16 @@ output_relocs ( +@@ -821,6 +825,16 @@ output_relocs ( goto good_32bit_resolved_reloc; default: goto bad_resolved_reloc;
@@ -69,7 +69,7 @@ index f87f1fc..dbce467 100644 #else default: /* The default is to assume that the -@@ -1806,6 +1820,15 @@ int main(int argc, char *argv[]) +@@ -1841,6 +1855,15 @@ int main(int argc, char *argv[]) if (!load_to_ram && !pfile) load_to_ram = 1;
@@ -86,27 +86,19 @@ index f87f1fc..dbce467 100644 if (pfile) { diff --git a/elf2flt.ld.in b/elf2flt.ld.in -index ec1fe6f..c0c44b8 100644 +index 0df999d..f1eed1f 100644 --- a/elf2flt.ld.in +++ b/elf2flt.ld.in -@@ -70,10 +70,11 @@ W_RODAT *(.gnu.linkonce.r*) +@@ -109,6 +109,7 @@ W_RODAT: *(.gnu.linkonce.r*) . = ALIGN(0x20) ; LONG(-1) . = ALIGN(0x20) ; --R_RODAT *(.rodata) --R_RODAT *(.rodata1) --R_RODAT *(.rodata.*) --R_RODAT *(.gnu.linkonce.r*) +RISCV_GP: __global_pointer$ = . + 0x800 ; -+R_RODAT *(.rodata) -+R_RODAT *(.rodata1) -+R_RODAT *(.rodata.*) -+R_RODAT *(.gnu.linkonce.r*) - *(.data) - *(.data1) - *(.data.*) + R_RODAT: *(.rodata) + R_RODAT: *(.rodata1) + R_RODAT: *(.rodata.*) diff --git a/ld-elf2flt.c b/ld-elf2flt.c -index e5de506..31b565f 100644 +index 7cb02d5..1a503dd 100644 --- a/ld-elf2flt.c +++ b/ld-elf2flt.c @@ -324,6 +324,22 @@ static int do_final_link(void)
@@ -133,5 +125,5 @@ index e5de506..31b565f 100644 if (!linker_script) linker_script = concat(ldscriptpath, "/elf2flt.ld", NULL); -- -2.31.1 +2.35.1
package/elf2flt/0002-elf2flt.c-add-new-relocation-types-for-xtensa.patch deleted +0 -188
188 lines not on this page · raw message
package/elf2flt/elf2flt.hash +1 -1
@@ -1,3 +1,3 @@ # Locally calculated -sha256 d63baae6fe0d7fcc50a635be151a6f9e1e83dba30568046a869a395c15bf6284 elf2flt-7e33f28df198c46764021ed14408bd262751e148.tar.gz +sha256 6637432ed58dee2d42d09e3b9a902a0dd3b9975acba0c0b24ef9e4e9253159a9 elf2flt-2021.08.tar.gz sha256 f20bc5007904094e3a4e9fbcc3526cdd40893f91d458c3139b308e5c4c0899c6 LICENSE.TXT
package/elf2flt/elf2flt.mk +2 -2
@@ -4,8 +4,8 @@ # ################################################################################ -ELF2FLT_VERSION = 7e33f28df198c46764021ed14408bd262751e148 -ELF2FLT_SITE = $(call github,uclinux-dev,elf2flt,$(ELF2FLT_VERSION)) +ELF2FLT_VERSION = 2021.08 +ELF2FLT_SITE = $(call github,uclinux-dev,elf2flt,v$(ELF2FLT_VERSION)) ELF2FLT_LICENSE = GPL-2.0+ ELF2FLT_LICENSE_FILES = LICENSE.TXT
Signature · 6 lines
2.35.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 3/3 package/binutils: drop version 2.32
Now that recent versions of binutils work with FLAT binaries, we can drop the old 2.32 version, which was kept only to keep support FLAT binaries.
---
Changes since v1:
- Drop binutils 2.32 hash in binutils.hash
--- Config.in.legacy | 6 + package/binutils/2.32/0001-sh-conf.patch | 48 -- .../2.32/0002-poison-system-directories.patch | 306 ----------- ...hrink_dynamic_reloc_sections-for-exp.patch | 41 -- ...s-const16-for-xtensa-loop-relaxation.patch | 294 ---------- ...t-.literal_position-at-section-start.patch | 96 ---- ...ct-value-in-PLT-GOT-entries-causing-.patch | 46 -- .../0007-bfd-xtensa-fix-PR-ld-25630.patch | 37 -- .../2.32/0008-xtensa-fix-PR-ld-25861.patch | 432 --------------- ...TENSA_NDIFF-handling-for-PR-ld-25861.patch | 128 ----- ...ith-plt-link-failure-for-local-calls.patch | 59 --- ...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 ------------------ ...or1k-fix-building-with-gcc-version-5.patch | 50 -- ...tive-relocation-against-dynamic-on-P.patch | 59 --- ...K_GOT16-signed-overflow-by-using-spe.patch | 75 --- package/binutils/Config.in.host | 5 - package/binutils/binutils.hash | 1 - 19 files changed, 6 insertions(+), 2494 deletions(-) delete mode 100644 package/binutils/2.32/0001-sh-conf.patch delete mode 100644 package/binutils/2.32/0002-poison-system-directories.patch delete mode 100644 package/binutils/2.32/0003-bfd-xtensa-fix-shrink_dynamic_reloc_sections-for-exp.patch delete mode 100644 package/binutils/2.32/0004-gas-use-literals-const16-for-xtensa-loop-relaxation.patch delete mode 100644 package/binutils/2.32/0005-xtensa-gas-put-.literal_position-at-section-start.patch delete mode 100644 package/binutils/2.32/0006-or1k-Fix-incorrect-value-in-PLT-GOT-entries-causing-.patch delete mode 100644 package/binutils/2.32/0007-bfd-xtensa-fix-PR-ld-25630.patch delete mode 100644 package/binutils/2.32/0008-xtensa-fix-PR-ld-25861.patch delete mode 100644 package/binutils/2.32/0009-xtensa-fix-XTENSA_NDIFF-handling-for-PR-ld-25861.patch delete mode 100644 package/binutils/2.32/0010-or1k-Fix-issue-with-plt-link-failure-for-local-calls.patch delete mode 100644 package/binutils/2.32/0011-or1k-Implement-relocation-R_OR1K_GOT_AHI16-for-gotha.patch delete mode 100644 package/binutils/2.32/0012-or1k-Avoid-R_OR1K_GOT16-overflow-failures-in-presenc.patch delete mode 100644 package/binutils/2.32/0013-or1k-Support-large-plt_relocs-when-generating-plt-en.patch delete mode 100644 package/binutils/2.32/0014-bfd-elf32-or1k-fix-building-with-gcc-version-5.patch delete mode 100644 package/binutils/2.32/0015-or1k-fix-pc-relative-relocation-against-dynamic-on-P.patch delete mode 100644 package/binutils/2.32/0016-or1k-Avoid-R_OR1K_GOT16-signed-overflow-by-using-spe.patch
Config.in.legacy +6 -0
@@ -146,6 +146,12 @@ endif comment "Legacy options removed in 2022.05" +config BR2_BINUTILS_VERSION_2_32_X + bool "binutils 2.32.x has been removed" + select BR2_LEGACY + help + binutils 2.32 has been removed, use a newer version. + config BR2_sh2a bool "sh2a architecture support removed" select BR2_LEGACY
package/binutils/2.32/0001-sh-conf.patch deleted +0 -48
48 lines not on this page · raw message
package/binutils/2.32/0002-poison-system-directories.patch deleted +0 -306
306 lines not on this page · raw message
package/binutils/2.32/0003-bfd-xtensa-fix-shrink_dynamic_reloc_sections-for-exp.patch deleted +0 -41
41 lines not on this page · raw message
package/binutils/2.32/0004-gas-use-literals-const16-for-xtensa-loop-relaxation.patch deleted +0 -294
294 lines not on this page · raw message
package/binutils/2.32/0005-xtensa-gas-put-.literal_position-at-section-start.patch deleted +0 -96
96 lines not on this page · raw message
package/binutils/2.32/0006-or1k-Fix-incorrect-value-in-PLT-GOT-entries-causing-.patch deleted +0 -46
46 lines not on this page · raw message
package/binutils/2.32/0007-bfd-xtensa-fix-PR-ld-25630.patch deleted +0 -37
@@ -1,37 +0,0 @@ -From 85dcca5997cf3822d6456a5c9c59c46b56adfbb8 Mon Sep 17 00:00:00 2001 -From: Max Filippov <[email protected]> -Date: Wed, 4 Mar 2020 14:54:27 -0800 -Subject: [PATCH] bfd: xtensa: fix PR ld/25630 - -bfd/ -2020-03-05 Max Filippov <[email protected]> - - * elf32-xtensa.c (shrink_dynamic_reloc_sections): Shrink dynamic - relocation sections for any removed reference to a dynamic symbol. - -Signed-off-by: Max Filippov <[email protected]> ---- - bfd/elf32-xtensa.c | 7 +++---- - 1 file changed, 3 insertions(+), 4 deletions(-) - -diff --git a/bfd/elf32-xtensa.c b/bfd/elf32-xtensa.c -index 12ff9f772aaf..65e14d87940c 100644 ---- a/bfd/elf32-xtensa.c -+++ b/bfd/elf32-xtensa.c -@@ -10148,10 +10148,9 @@ shrink_dynamic_reloc_sections (struct bfd_link_info *info, - - if ((r_type == R_XTENSA_32 || r_type == R_XTENSA_PLT) - && (input_section->flags & SEC_ALLOC) != 0 -- && (dynamic_symbol || bfd_link_pic (info)) -- && (!h || h->root.type != bfd_link_hash_undefweak -- || (dynamic_symbol -- && (bfd_link_dll (info) || info->export_dynamic)))) -+ && (dynamic_symbol -+ || (bfd_link_pic (info) -+ && (!h || h->root.type != bfd_link_hash_undefweak)))) - { - asection *srel; - bfd_boolean is_plt = FALSE; --- -2.20.1 -
package/binutils/2.32/0008-xtensa-fix-PR-ld-25861.patch deleted +0 -432
432 lines not on this page · raw message
package/binutils/2.32/0009-xtensa-fix-XTENSA_NDIFF-handling-for-PR-ld-25861.patch deleted +0 -128
128 lines not on this page · raw message
package/binutils/2.32/0010-or1k-Fix-issue-with-plt-link-failure-for-local-calls.patch deleted +0 -59
59 lines not on this page · raw message
package/binutils/2.32/0011-or1k-Implement-relocation-R_OR1K_GOT_AHI16-for-gotha.patch deleted +0 -256
256 lines not on this page · raw message
package/binutils/2.32/0012-or1k-Avoid-R_OR1K_GOT16-overflow-failures-in-presenc.patch deleted +0 -61
61 lines not on this page · raw message
package/binutils/2.32/0013-or1k-Support-large-plt_relocs-when-generating-plt-en.patch deleted +0 -500
500 lines not on this page · raw message
package/binutils/2.32/0014-bfd-elf32-or1k-fix-building-with-gcc-version-5.patch deleted +0 -50
50 lines not on this page · raw message
package/binutils/2.32/0015-or1k-fix-pc-relative-relocation-against-dynamic-on-P.patch deleted +0 -59
59 lines not on this page · raw message
package/binutils/2.32/0016-or1k-Avoid-R_OR1K_GOT16-signed-overflow-by-using-spe.patch deleted +0 -75
75 lines not on this page · raw message
package/binutils/Config.in.host +0 -5
@@ -12,10 +12,6 @@ choice help Select the version of binutils you wish to use. -config BR2_BINUTILS_VERSION_2_32_X - bool "binutils 2.32" - depends on !BR2_csky - config BR2_BINUTILS_VERSION_2_36_X bool "binutils 2.36.1" depends on !BR2_csky
@@ -35,7 +31,6 @@ endchoice config BR2_BINUTILS_VERSION string default "arc-2020.09-release" if BR2_BINUTILS_VERSION_ARC - default "2.32" if BR2_BINUTILS_VERSION_2_32_X default "2.36.1" if BR2_BINUTILS_VERSION_2_36_X default "2.37" if BR2_BINUTILS_VERSION_2_37_X default "2.38" if BR2_BINUTILS_VERSION_2_38_X
package/binutils/binutils.hash +0 -1
@@ -1,5 +1,4 @@ # From ftp://gcc.gnu.org/pub/binutils/releases/sha512.sum -sha512 d326408f12a03d9a61a9de56584c2af12f81c2e50d2d7e835d51565df8314df01575724afa1e43bd0db45cfc9916b41519b67dfce03232aa4978704492a6994a binutils-2.32.tar.xz sha512 cc24590bcead10b90763386b6f96bb027d7594c659c2d95174a6352e8b98465a50ec3e4088d0da038428abe059bbc4ae5f37b269f31a40fc048072c8a234f4e9 binutils-2.36.1.tar.xz sha512 5c11aeef6935860a6819ed3a3c93371f052e52b4bdc5033da36037c1544d013b7f12cb8d561ec954fe7469a68f1b66f1a3cd53d5a3af7293635a90d69edd15e7 binutils-2.37.tar.xz sha512 8bf0b0d193c9c010e0518ee2b2e5a830898af206510992483b427477ed178396cd210235e85fd7bd99a96fc6d5eedbeccbd48317a10f752b7336ada8b2bb826d binutils-2.38.tar.xz
Signature · 6 lines
2.35.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH v2 3/3] package/binutils: drop version 2.32
p
Thomas, All,
On 2022-04-26 23:53 +0200, Thomas Petazzoni via buildroot spake thusly:
Quoted 5 lines
Now that recent versions of binutils work with FLAT binaries, we can drop the old 2.32 version, which was kept only to keep support FLAT binaries.
Signed-off-by Thomas Petazzoni <[email protected]>
As seen on IRC: binutils-2.32 is the latest version that can still build afboot-stm32. binutils-2.36.1 onward break the build.
As you noticed, this is because of:
https://github.com/mcoquelin-stm32/afboot-stm32/commit/0f3e61c9dd48fd8b4248ce4672c044c2562e4de1
That change is wrong: -nostartfiles is a gcc option, not an ld option.
Older ld version seemed to somehow ignore it, while at least since 2.36.1 it is now an error:
...ld.real: Error: unable to disambiguate: -nostartfiles (did you mean --nostartfiles ?)
This is because, starting with binutils 2.36, ld got an improved flag parsing that now generates that error (but that's incorrect too, as --nostartfiles does not exist either). -nostartfiles is a gcc option, but afboot-stm32 directly calls the linker...
A similar issue was raised fot at91bootstrap, and fixed by removing -nostarfiles:
https://github.com/linux4sam/at91bootstrap/issues/127 https://github.com/linux4sam/at91bootstrap/pull/129
So, as you said on IRC that you'd send a followup eries with a fix to afboot-stm32, I've marked this series as changes requested in the meantime.
Regards,
Yann E. MORIN.
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