diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2024-03-22 14:05:52 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2024-03-22 14:09:49 +0100 |
commit | 4ba59fa35df5fcf568f0059c89eede6d05090d4d (patch) | |
tree | ee908847c2e948886436cebbeb0b9a2fd84668a9 /toolchain/elf2flt/patches | |
parent | 37294a09ebe6434c0dc13ca51b317593ee1073c9 (diff) |
elf2flt: fix alignment for riscv64 with ctors enabled in uClibc-ng, suggested by sorear
Diffstat (limited to 'toolchain/elf2flt/patches')
-rw-r--r-- | toolchain/elf2flt/patches/v2024.02/0003-riscv64-alignment.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/toolchain/elf2flt/patches/v2024.02/0003-riscv64-alignment.patch b/toolchain/elf2flt/patches/v2024.02/0003-riscv64-alignment.patch new file mode 100644 index 000000000..9feef7951 --- /dev/null +++ b/toolchain/elf2flt/patches/v2024.02/0003-riscv64-alignment.patch @@ -0,0 +1,12 @@ +diff -Nur elf2flt-v2024.02.orig/elf2flt.ld.in elf2flt-v2024.02/elf2flt.ld.in +--- elf2flt-v2024.02.orig/elf2flt.ld.in 2024-03-22 04:51:08.000000000 +0100 ++++ elf2flt-v2024.02/elf2flt.ld.in 2024-03-22 13:08:31.793773247 +0100 +@@ -139,7 +139,7 @@ + @SYMBOL_PREFIX@_ssro_size = @SYMBOL_PREFIX@_essro - @SYMBOL_PREFIX@_ssro; + PROVIDE(@SYMBOL_PREFIX@_SDA2_BASE_ = @SYMBOL_PREFIX@_ssro + (@SYMBOL_PREFIX@_ssro_size / 2)); + +- . = ALIGN(4) ; ++ . = ALIGN(8) ; + TOR: @SYMBOL_PREFIX@__CTOR_LIST__ = .; + TOR: LONG((@SYMBOL_PREFIX@__CTOR_END__ - @SYMBOL_PREFIX@__CTOR_LIST__) / 4 - 2) + SINGLE_LINK: /* gcc uses crtbegin.o to find the start of |