<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/dangole/toolchain, branch main</title>
<subtitle>Staging tree of Daniel Golle</subtitle>
<id>https://git.openwrt.org/openwrt/staging/dangole/atom?h=main</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/dangole/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/dangole/'/>
<updated>2024-05-28T21:55:27Z</updated>
<entry>
<title>toolchain: gcc: update to 13.3</title>
<updated>2024-05-28T21:55:27Z</updated>
<author>
<name>Olcay Korkmaz</name>
</author>
<published>2024-05-28T19:42:41Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/dangole/commit/?id=3b63abfbfce7aff54023c7b1eff3f13c85693369'/>
<id>urn:sha1:3b63abfbfce7aff54023c7b1eff3f13c85693369</id>
<content type='text'>
Release Notes:
https://gcc.gnu.org/pipermail/gcc/2024-May/243980.html

Remove upstreamed patches:
- patches-13.x/020-Include-safe-ctype.h-after-C-standard-headers-to-avo.patch
- patches-13.x/021-libcc1-fix-vector-include.patch
- patches-13.x/400-LoongArch-Fix-MUSL_DYNAMIC_LINKER.patch
- patches-13.x/401-LoongArch-Modify-MUSL_DYNAMIC_LINKER.patch

Refresh patches:
- patches-13.x/300-mips_Os_cpu_rtx_cost_model.patch
- patches-13.x/970-macos_arm64-building-fix.patch

Signed-off-by: Olcay Korkmaz &lt;nuke_mania@hotmail.com&gt;
</content>
</entry>
<entry>
<title>toolchain: gcc: add support for GCC 14</title>
<updated>2024-05-12T11:47:12Z</updated>
<author>
<name>Rui Salvaterra</name>
</author>
<published>2024-05-07T11:57:49Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/dangole/commit/?id=c758d6427c40e7518f0a85ce607930335c88e56f'/>
<id>urn:sha1:c758d6427c40e7518f0a85ce607930335c88e56f</id>
<content type='text'>
Deleted (upstreamed):
- 020-Include-safe-ctype.h-after-C-standard-headers-to-avo.patch [1]
- 021-libcc1-fix-vector-include.patch [2]

All other patches automatically rebased.

Note that selecting GCC 14, as of now, *will* result in build failures. The
packages that fail to build will be fixed as they're found. Thus, GCC 13.x is
the default, for the time being.

[1] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=9970b576b7e4ae337af1268395ff221348c4b34a
[2] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=5213047b1d50af63dfabb5e5649821a6cb157e33

Signed-off-by: Rui Salvaterra &lt;rsalvaterra@gmail.com&gt;
</content>
</entry>
<entry>
<title>toolchain: glibc: Update glibc 2.38 to recent HEAD</title>
<updated>2024-05-04T18:03:47Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2024-04-28T20:05:23Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/dangole/commit/?id=6b3195ae62091fc224500e50661ccdc9651376fc'/>
<id>urn:sha1:6b3195ae62091fc224500e50661ccdc9651376fc</id>
<content type='text'>
23514c72b7 syslog: Fix heap buffer overflow in __vsyslog_internal (CVE-2023-6246)
d0338312aa syslog: Fix heap buffer overflow in __vsyslog_internal (CVE-2023-6779)
d37c2b20a4 syslog: Fix integer overflow in __vsyslog_internal (CVE-2023-6780)
30e546d76e x86_64: Optimize ffsll function code size.
18876c9ff5 S390: Fix building with --disable-mutli-arch [BZ #31196]
6f68075869 sparc: Fix broken memset for sparc32 [BZ #31068]
0e383d2d4e sparc64: Remove unwind information from signal return stubs [BZ#31244]
aac57faf54 sparc: Fix sparc64 memmove length comparison (BZ 31266)
0c5e5bace5 sparc: Remove unwind information from signal return stubs [BZ #31244]
b09073e631 arm: Remove wrong ldr from _dl_start_user (BZ 31339)
506e47da1d malloc: Use __get_nprocs on arena_get2 (BZ 30945)
ee4806e978 S390: Do not clobber r7 in clone [BZ #31402]
5753cda1ca linux: Use rseq area unconditionally in sched_getcpu (bug 31479)
0518bb0c16 LoongArch: Correct {__ieee754, _}_scalb -&gt; {__ieee754, _}_scalbf
5456ff5d80 Add HWCAP2_MOPS from Linux 6.5 to AArch64 bits/hwcap.h
d8a2b56b4f AArch64: Add support for MOPS memcpy/memmove/memset
25b66e8c4a AArch64: Cleanup ifuncs
1521237c32 AArch64: Cleanup emag memset
156e44845f AArch64: Add memset_zva64
a08ff92294 AArch64: Remove Falkor memcpy
168ae58e6e aarch64: correct CFI in rawmemchr (bug 31113)
1bf17ce978 aarch64: fix check for SVE support in assembler
92da7c2cfe AArch64: Check kernel version for SVE ifuncs
20534f8176 powerpc: Fix ld.so address determination for PCREL mode (bug 31640)
e1135387de iconv: ISO-2022-CN-EXT: fix out-of-bound writes when writing escape sequence (CVE-2024-2961)
61484011e7 sparc: Remove 64 bit check on sparc32 wordsize (BZ 27574)
78d9f91da6 login: Check default sizes of structs utmp, utmpx, lastlog
68bff88592 login: structs utmp, utmpx, lastlog _TIME_BITS independence (bug 30701)
decc9f504a nptl: Fix tst-cancel30 on kernels without ppoll_time64 support
29e20bd122 i386: ulp update for SSE2 --disable-multi-arch configurations
5968aebb86 CVE-2024-33599: nscd: Stack-based buffer overflow in netgroup cache (bug 31677)
541ea5172a CVE-2024-33600: nscd: Do not send missing not-found response in addgetnetgrentX (bug 31678)
2ae9446c1b CVE-2024-33600: nscd: Avoid null pointer crashes after notfound response (bug 31678)
71af8ca864 CVE-2024-33601, CVE-2024-33602: nscd: netgroup: Use two buffers in addgetnetgrentX (bug 31680)
e9f05fa1c6 elf: Also compile dl-misc.os with $(rtld-early-cflags)

Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>loongarch64: new target</title>
<updated>2024-05-04T06:14:16Z</updated>
<author>
<name>Weijie Gao</name>
</author>
<published>2024-01-06T19:10:45Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/dangole/commit/?id=7fcb82665e96a50174084c8bfcd0302ce31291f4'/>
<id>urn:sha1:7fcb82665e96a50174084c8bfcd0302ce31291f4</id>
<content type='text'>
Add target for Loongson LoongArch64-based boards.

LoongArch is a new RISC ISA developed by Loongson. It's a bit like
MIPS or RISC-V. LoongArch includes both 32-bit and 64-bit versions
(LoongArch32/LoongArch64).

Loongson 3A5000 and 3A6000 are the two existing CPUs of LoongArch64
and is used for PC products. It's BIOS supports ACPI and UEFI-only
boot. These CPUs supports SMP and SMT.

At present only LoongArch64 is supported by linux kernel.

Toolchain requirement:
binutils &gt;= 2.40
gcc &gt;= 13.1

For details, please check the following links:
https://lwn.net/Articles/861951/
https://loongson.github.io/LoongArch-Documentation/README-EN.html

Signed-off-by: Weijie Gao &lt;hackpascal@gmail.com&gt;
</content>
</entry>
<entry>
<title>toolchain/musl: fix loongarch64 ldso file name</title>
<updated>2024-05-04T06:12:56Z</updated>
<author>
<name>Weijie Gao</name>
</author>
<published>2024-04-17T16:08:24Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/dangole/commit/?id=197d90dc31741a5510cd2218eff0befa935312cd'/>
<id>urn:sha1:197d90dc31741a5510cd2218eff0befa935312cd</id>
<content type='text'>
GCC has changed musl dynamic linker name from
ld-musl-loongarch-lp64d.so.1 to ld-musl-loongarch64.so.1 recently [1].

This means there are two dynamic linker names will be used across different
ersions of GCC. But musl 1.2.5 only supports the new name while the GCC
we're currently using uses the old name.

To maintain compatibility with all versions of GCC, the musl is then patched
to generate two symbolic links to libc.so with both old and new names.

[1] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=8bccee51f0deac64b79cd9ad75df599422f4c8ff

Signed-off-by: Weijie Gao &lt;hackpascal@gmail.com&gt;
</content>
</entry>
<entry>
<title>toolchain/gcc: fix loongarch64 ldso file name</title>
<updated>2024-05-04T06:12:56Z</updated>
<author>
<name>Weijie Gao</name>
</author>
<published>2024-04-18T10:58:18Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/dangole/commit/?id=c5946c07241272361da702b5eebd5f887b8a68c1'/>
<id>urn:sha1:c5946c07241272361da702b5eebd5f887b8a68c1</id>
<content type='text'>
GCC has changed musl dynamic linker name from
ld-musl-loongarch-lp64d.so.1 to ld-musl-loongarch64.so.1 recently [1].

Meanwhile musl 1.2.5 only supports the new name. So it's better to follow
the new name.

[1] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=8bccee51f0deac64b79cd9ad75df599422f4c8ff

Signed-off-by: Weijie Gao &lt;hackpascal@gmail.com&gt;
</content>
</entry>
<entry>
<title>toolchain: glibc: update to glibc 2.38</title>
<updated>2024-04-29T20:55:02Z</updated>
<author>
<name>Kazuki H</name>
</author>
<published>2023-12-22T14:58:16Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/dangole/commit/?id=5ee2b6fe57857ca479f86a778811ecb3230e3e83'/>
<id>urn:sha1:5ee2b6fe57857ca479f86a778811ecb3230e3e83</id>
<content type='text'>
This updates glibc to version 2.38.

Add --enable-crypt since the crypt function got disabled in 2.38, but we
still need it.
Also add the newly introduced --enable-fortify-source flag and hook it up
to the build system.

Switch to .zst archive while at it.

Signed-off-by: Kazuki H &lt;kazukih0205@gmail.com&gt;
Link: https://github.com/openwrt/openwrt/pull/14259
[ switch to .zst and fix mirror HASH ]
Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
<entry>
<title>toolchain: binutils: switch to version 2.42 by default</title>
<updated>2024-04-28T22:41:47Z</updated>
<author>
<name>Nick Hainke</name>
</author>
<published>2024-02-07T11:27:55Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/dangole/commit/?id=c390c6c7090c7d66471dac6079343a697afc59ba'/>
<id>urn:sha1:c390c6c7090c7d66471dac6079343a697afc59ba</id>
<content type='text'>
Change the default binutils version to 2.42.

Tested-by: Jonathan Lancett &lt;j.lancett@ntlworld.com&gt;
Tested-by: Andre Heider &lt;a.heider@gmail.com&gt;
Signed-off-by: Nick Hainke &lt;vincent@systemli.org&gt;
</content>
</entry>
<entry>
<title>toolchain/nasm: fix PKG_CPE_ID</title>
<updated>2024-04-27T10:08:41Z</updated>
<author>
<name>Fabrice Fontaine</name>
</author>
<published>2024-04-26T08:41:15Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/dangole/commit/?id=e1ca08518e96ccf088119fbc9930c5e4beef86cc'/>
<id>urn:sha1:e1ca08518e96ccf088119fbc9930c5e4beef86cc</id>
<content type='text'>
cpe:/a:nasm:netwide_assembler is the correct CPE ID for nasm:
https://nvd.nist.gov/products/cpe/search/results?keyword=cpe:2.3:a:nasm:netwide_assembler

Fixes: bcf02c5d3123a99c717ca33f1d7c6250acf0f33f (toolchain: assign PKG_CPE_ID)

Signed-off-by: Fabrice Fontaine &lt;fontaine.fabrice@gmail.com&gt;
</content>
</entry>
<entry>
<title>toolchain/wrapper: fill and reference info.mk in staging_dir ext toolchain</title>
<updated>2024-04-21T15:59:17Z</updated>
<author>
<name>Christian Marangi</name>
</author>
<published>2024-04-20T16:29:23Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/dangole/commit/?id=0e161968a7358cc23af28b627ecb794b3cdaea72'/>
<id>urn:sha1:0e161968a7358cc23af28b627ecb794b3cdaea72</id>
<content type='text'>
Currently when external toolchain is used, a info.mk is created (with
to-be-filled values) but is never actually filled with real values and
is never actually used in rules.mk.

This info.mk is used down the code with special packages like libgcc to
reference info like gcc version and package special library.

To mimic what is done with internal toolchain, add the include in
rules.mk for info.mk also for external library and in fix
toolchain/wrapper to fill the staging_dir info.mk.

The logic is to check if the external toolchain provide an info.mk and
if it doesn't we at least fill the GCC_VERSION with the value set in the
.config file.

With this special library like libgcc correctly reference and have set the
GCC_VERSION variable.

Signed-off-by: Christian Marangi &lt;ansuelsmth@gmail.com&gt;
</content>
</entry>
</feed>
