[PATCH 0/2] xtensa: don't link with libgcc

Max Filippov
2022-03-09T22:34:42Z

Hello,

this series removes xtensa kernel dependency on the libgcc by providing
assembly sources for optimized compiler support functions and using
generic implementations for the rest.

Max Filippov (2):
xtensa: add helpers for division, remainder and shifts
xtensa: don't link with libgcc

arch/xtensa/Kconfig | 3 +
arch/xtensa/Makefile | 6 +-
arch/xtensa/include/asm/asmmacro.h | 34 ++++++++
arch/xtensa/kernel/xtensa_ksyms.c | 14 ---
arch/xtensa/lib/Makefile | 2 +
arch/xtensa/lib/ashldi3.S | 28 ++++++
arch/xtensa/lib/ashrdi3.S | 28 ++++++
arch/xtensa/lib/divsi3.S | 74 ++++++++++++++++
arch/xtensa/lib/lshrdi3.S | 28 ++++++
arch/xtensa/lib/modsi3.S | 87 +++++++++++++++++++
arch/xtensa/lib/mulsi3.S | 133 +++++++++++++++++++++++++++++
arch/xtensa/lib/udivsi3.S | 68 +++++++++++++++
arch/xtensa/lib/umodsi3.S | 57 +++++++++++++
13 files changed, 543 insertions(+), 19 deletions(-)
create mode 100644 arch/xtensa/lib/ashldi3.S
create mode 100644 arch/xtensa/lib/ashrdi3.S
create mode 100644 arch/xtensa/lib/divsi3.S
create mode 100644 arch/xtensa/lib/lshrdi3.S
create mode 100644 arch/xtensa/lib/modsi3.S
create mode 100644 arch/xtensa/lib/mulsi3.S
create mode 100644 arch/xtensa/lib/udivsi3.S
create mode 100644 arch/xtensa/lib/umodsi3.S

--
2.30.2