]> git.ipfire.org Git - thirdparty/openwrt.git/commit
toolchain: gcc: Backport patch to fix mips16 linking 18688/head
authorHauke Mehrtens <hauke@hauke-m.de>
Fri, 2 May 2025 22:38:31 +0000 (00:38 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 3 May 2025 20:04:13 +0000 (22:04 +0200)
commit0744d77779967af196f100c13ecf1937e6eaca8b
tree2e4448b5a43c864fdf020af2d278f7d068a1e575
parente184be34ab18b7e8b58f857984abdf27e2869079
toolchain: gcc: Backport patch to fix mips16 linking

Backport patch from upstream GCC 14 branch which fixes linking with
MIPS16 on the pistachio target.

This fixes the following link problem:
```
/builder/shared-workdir/build/staging_dir/toolchain-mipsel_24kc+24kf_gcc-14.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/14.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld.bfd: ./liblua.so: undefined reference to `__mips16_ledf2'
/builder/shared-workdir/build/staging_dir/toolchain-mipsel_24kc+24kf_gcc-14.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/14.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld.bfd: ./liblua.so: undefined reference to `__mips16_call_stub_df_2'
/builder/shared-workdir/build/staging_dir/toolchain-mipsel_24kc+24kf_gcc-14.2.0_musl/lib/gcc/mipsel-openwrt-linux-musl/14.2.0/../../../../mipsel-openwrt-linux-musl/bin/ld.bfd: ./liblua.so: undefined reference to `__mips16_muldf3'
```

Link: https://github.com/openwrt/openwrt/pull/18688
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
toolchain/gcc/patches-14.x/020-MIPS-Include-missing-mips16.S-in-libgcc-lib1funcs.S.patch [new file with mode: 0644]